1
0

WN-GX300GR.dts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. /dts-v1/;
  2. #include "mt7621.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "iodata,wn-gx300gr", "mediatek,mt7621-soc";
  7. model = "I-O DATA WN-GX300GR";
  8. aliases {
  9. led-boot = &led_power;
  10. led-failsafe = &led_power;
  11. led-running = &led_power;
  12. led-upgrade = &led_power;
  13. };
  14. memory@0 {
  15. device_type = "memory";
  16. reg = <0x0 0x4000000>;
  17. };
  18. chosen {
  19. bootargs = "console=ttyS0,115200";
  20. };
  21. gpio-leds {
  22. compatible = "gpio-leds";
  23. led_power: power {
  24. label = "wn-gx300gr:green:power";
  25. gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
  26. };
  27. wps {
  28. label = "wn-gx300gr:green:wps";
  29. gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
  30. };
  31. };
  32. gpio-keys-polled {
  33. compatible = "gpio-keys-polled";
  34. poll-interval = <20>;
  35. reset {
  36. label = "reset";
  37. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  38. linux,code = <KEY_RESTART>;
  39. };
  40. wps {
  41. label = "wps";
  42. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  43. linux,code = <KEY_WPS_BUTTON>;
  44. };
  45. auto {
  46. label = "auto";
  47. gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
  48. linux,code = <BTN_0>;
  49. linux,input-type = <EV_SW>;
  50. };
  51. custom {
  52. label = "custom";
  53. gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
  54. linux,code = <BTN_0>;
  55. linux,input-type = <EV_SW>;
  56. };
  57. };
  58. };
  59. &spi0 {
  60. status = "okay";
  61. m25p80@0 {
  62. compatible = "jedec,spi-nor";
  63. reg = <0>;
  64. spi-max-frequency = <10000000>;
  65. m25p,chunked-io = <32>;
  66. partitions {
  67. compatible = "fixed-partitions";
  68. #address-cells = <1>;
  69. #size-cells = <1>;
  70. partition@0 {
  71. label = "Bootloader";
  72. reg = <0x0 0x30000>;
  73. read-only;
  74. };
  75. partition@30000 {
  76. label = "Config";
  77. reg = <0x30000 0x10000>;
  78. read-only;
  79. };
  80. Factory: partition@40000 {
  81. label = "Factory";
  82. reg = <0x40000 0x10000>;
  83. read-only;
  84. };
  85. partition@50000 {
  86. label = "iNIC_rf";
  87. reg = <0x50000 0x10000>;
  88. read-only;
  89. };
  90. partition@60000 {
  91. label = "firmware";
  92. reg = <0x60000 0x770000>;
  93. };
  94. partition@7d0000 {
  95. label = "Key";
  96. reg = <0x7d0000 0x10000>;
  97. read-only;
  98. };
  99. partition@7e0000 {
  100. label = "backup";
  101. reg = <0x7e0000 0x10000>;
  102. read-only;
  103. };
  104. partition@7f0000 {
  105. label = "storage";
  106. reg = <0x7f0000 0x10000>;
  107. read-only;
  108. };
  109. };
  110. };
  111. };
  112. &ethernet {
  113. mtd-mac-address = <&Factory 0x4>;
  114. };
  115. &pinctrl {
  116. state_default: pinctrl0 {
  117. gpio {
  118. ralink,group = "uart2", "uart3", "jtag";
  119. ralink,function = "gpio";
  120. };
  121. };
  122. };
  123. &pcie {
  124. status = "okay";
  125. };
  126. &pcie0 {
  127. mt76@0,0 {
  128. reg = <0x0000 0 0 0 0>;
  129. mediatek,mtd-eeprom = <&Factory 0x0>;
  130. };
  131. };
  132. &xhci {
  133. status = "disabled";
  134. };