qca9557_iodata_wn-ac-dgr.dtsi 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /dts-v1/;
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. #include "qca9557.dtsi"
  6. / {
  7. aliases {
  8. led-boot = &power;
  9. led-failsafe = &power;
  10. led-running = &power;
  11. led-upgrade = &power;
  12. };
  13. chosen {
  14. bootargs = "console=ttyS0,115200n8";
  15. };
  16. leds {
  17. compatible = "gpio-leds";
  18. power: power {
  19. label = "iodata:green:power";
  20. gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
  21. default-state = "on";
  22. };
  23. copy {
  24. label = "iodata:green:copy";
  25. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  26. };
  27. eco {
  28. label = "iodata:green:eco";
  29. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  30. };
  31. wlan5g {
  32. label = "iodata:green:wlan5g";
  33. gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
  34. linux,default-trigger = "phy0tpt";
  35. };
  36. wlan2g {
  37. label = "iodata:green:wlan2g";
  38. gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
  39. linux,default-trigger = "phy1tpt";
  40. };
  41. notification {
  42. label = "iodata:amber:notification";
  43. gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
  44. };
  45. };
  46. keys {
  47. compatible = "gpio-keys-polled";
  48. poll-interval = <20>;
  49. button_eco {
  50. label = "eco";
  51. gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
  52. linux,code = <BTN_1>;
  53. debounce-interval = <60>;
  54. };
  55. auto {
  56. label = "auto";
  57. gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
  58. linux,code = <BTN_0>;
  59. linux,input-type = <EV_SW>;
  60. debounce-interval = <60>;
  61. };
  62. button_copy {
  63. label = "copy";
  64. gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
  65. linux,code = <BTN_1>;
  66. debounce-interval = <60>;
  67. };
  68. wps {
  69. label = "wps";
  70. gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
  71. linux,code = <KEY_WPS_BUTTON>;
  72. debounce-interval = <60>;
  73. };
  74. reset {
  75. label = "reset";
  76. gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
  77. linux,code = <KEY_RESTART>;
  78. debounce-interval = <60>;
  79. };
  80. router {
  81. label = "router";
  82. gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
  83. linux,code = <BTN_0>;
  84. linux,input-type = <EV_SW>;
  85. debounce-interval = <60>;
  86. };
  87. };
  88. };
  89. &spi {
  90. status = "okay";
  91. num-cs = <1>;
  92. flash@0 {
  93. compatible = "jedec,spi-nor";
  94. reg = <0>;
  95. spi-max-frequency = <25000000>;
  96. partitions {
  97. compatible = "fixed-partitions";
  98. #address-cells = <1>;
  99. #size-cells = <1>;
  100. partition@0 {
  101. label = "u-boot";
  102. reg = <0x000000 0x030000>;
  103. read-only;
  104. };
  105. partition@30000 {
  106. label = "u-boot-env";
  107. reg = <0x030000 0x010000>;
  108. read-only;
  109. };
  110. partition@40000 {
  111. compatible = "denx,uimage";
  112. label = "firmware";
  113. reg = <0x040000 0xe50000>;
  114. };
  115. partition@e90000 {
  116. label = "manufacture";
  117. reg = <0xe90000 0x100000>;
  118. read-only;
  119. };
  120. partition@f90000 {
  121. label = "backup";
  122. reg = <0xf90000 0x010000>;
  123. read-only;
  124. };
  125. partition@fa0000 {
  126. label = "storage";
  127. reg = <0xfa0000 0x050000>;
  128. read-only;
  129. };
  130. art: partition@ff0000 {
  131. label = "art";
  132. reg = <0xff0000 0x010000>;
  133. read-only;
  134. };
  135. };
  136. };
  137. };
  138. &mdio0 {
  139. status = "okay";
  140. phy0: ethernet-phy@0 {
  141. reg = <0>;
  142. qca,ar8327-initvals = <
  143. 0x04 0x87600000 /* PORT0 PAD MODE CTRL */
  144. 0x7c 0x0000007e /* PORT0_STATUS */
  145. >;
  146. };
  147. };
  148. &eth0 {
  149. status = "okay";
  150. pll-data = <0xa6000000 0x00000101 0x00001616>;
  151. phy-handle = <&phy0>;
  152. };
  153. &pcie1 {
  154. status = "okay";
  155. wifi@0,0 {
  156. compatible = "pci168c,003c";
  157. reg = <0x0000 0 0 0 0>;
  158. qca,no-eeprom;
  159. };
  160. };
  161. &uart {
  162. status = "okay";
  163. };
  164. &usb_phy0 {
  165. status = "okay";
  166. };
  167. &usb0 {
  168. status = "okay";
  169. };
  170. &wmac {
  171. status = "okay";
  172. qca,no-eeprom;
  173. };