1
0

HC5XXX.dtsi 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. #include "mt7620a.dtsi"
  2. #include <dt-bindings/input/input.h>
  3. / {
  4. chosen {
  5. bootargs = "console=ttyS0,115200";
  6. };
  7. gpio-keys-polled {
  8. compatible = "gpio-keys-polled";
  9. #address-cells = <1>;
  10. #size-cells = <0>;
  11. poll-interval = <20>;
  12. reset {
  13. label = "reset";
  14. gpios = <&gpio0 12 1>;
  15. linux,code = <KEY_RESTART>;
  16. };
  17. };
  18. gpio_export {
  19. compatible = "gpio-export";
  20. #size-cells = <0>;
  21. usbpower {
  22. gpio-export,name = "usbpower";
  23. gpio-export,output = <1>;
  24. gpios = <&gpio0 13 0>;
  25. };
  26. };
  27. };
  28. &sysc {
  29. ralink,gpiomux = "i2c", "jtag";
  30. ralink,uartmux = "gpio";
  31. ralink,wdtmux = <1>;
  32. };
  33. &gpio0 {
  34. status = "okay";
  35. };
  36. &gpio2 {
  37. status = "okay";
  38. };
  39. &gpio3 {
  40. status = "okay";
  41. };
  42. &spi0 {
  43. status = "okay";
  44. m25p80@0 {
  45. #address-cells = <1>;
  46. #size-cells = <1>;
  47. compatible = "jedec,spi-nor";
  48. reg = <0>;
  49. spi-max-frequency = <10000000>;
  50. partition@0 {
  51. label = "u-boot";
  52. reg = <0x0 0x30000>;
  53. };
  54. partition@30000 {
  55. label = "u-boot-env";
  56. reg = <0x30000 0x10000>;
  57. read-only;
  58. };
  59. factory: partition@40000 {
  60. label = "factory";
  61. reg = <0x40000 0x10000>;
  62. };
  63. partition@50000 {
  64. label = "firmware";
  65. reg = <0x50000 0xf80000>;
  66. };
  67. partition@fd0000 {
  68. label = "hwf_config";
  69. reg = <0xfd0000 0x10000>;
  70. };
  71. bdinfo: partition@fe0000 {
  72. label = "bdinfo";
  73. reg = <0xfe0000 0x10000>;
  74. };
  75. partition@ff0000 {
  76. label = "backup";
  77. reg = <0xff0000 0x10000>;
  78. };
  79. };
  80. };
  81. &ehci {
  82. status = "okay";
  83. };
  84. &ohci {
  85. status = "okay";
  86. };
  87. &ethernet {
  88. pinctrl-names = "default";
  89. pinctrl-0 = <&ephy_pins>;
  90. mtd-mac-address = <&factory 0x4>;
  91. mediatek,portmap = "wllll";
  92. };
  93. &sdhci {
  94. status = "okay";
  95. };
  96. &wmac {
  97. ralink,mtd-eeprom = <&factory 0>;
  98. };
  99. &pcie {
  100. status = "okay";
  101. };
  102. &pinctrl {
  103. state_default: pinctrl0 {
  104. gpio {
  105. ralink,group = "uartf", "wled", "nd_sd";
  106. ralink,function = "gpio";
  107. };
  108. pa {
  109. ralink,group = "pa";
  110. ralink,function = "pa";
  111. };
  112. };
  113. };