1
0

ar9344_winchannel_wb2000.dts 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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 "ar9344.dtsi"
  6. / {
  7. model = "Winchannel WB2000";
  8. compatible = "winchannel,wb2000", "qca,ar9344";
  9. chosen {
  10. bootargs = "console=ttyS0,115200n8";
  11. };
  12. aliases {
  13. led-boot = &led_system;
  14. led-failsafe = &led_system;
  15. led-running = &led_system;
  16. led-upgrade = &led_system;
  17. };
  18. i2c {
  19. compatible = "i2c-gpio";
  20. gpios = <&gpio 17 GPIO_ACTIVE_HIGH
  21. &gpio 16 GPIO_ACTIVE_HIGH
  22. >;
  23. #address-cells = <1>;
  24. #size-cells = <0>;
  25. rtc@68 {
  26. compatible = "dallas,ds1339";
  27. reg = <0x68>;
  28. };
  29. };
  30. leds {
  31. compatible = "gpio-leds";
  32. wlan2g {
  33. label = "wb2000:green:2g";
  34. gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
  35. linux,default-trigger = "phy0tpt";
  36. };
  37. usb {
  38. label = "wb2000:green:usb";
  39. gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
  40. trigger-sources = <&hub_port1>, <&hub_port2>;
  41. linux,default-trigger = "usbport";
  42. };
  43. led_system: system {
  44. label = "wb2000:green:system";
  45. gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
  46. default-state = "on";
  47. };
  48. };
  49. keys {
  50. compatible = "gpio-keys-polled";
  51. poll-interval = <50>;
  52. reset {
  53. linux,code = <KEY_RESTART>;
  54. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  55. debounce-interval = <60>;
  56. };
  57. };
  58. ath9k-leds {
  59. compatible = "gpio-leds";
  60. wlan {
  61. label = "wb2000:green:5g";
  62. gpios = <&ath9k 6 GPIO_ACTIVE_LOW>;
  63. linux,default-trigger = "phy1tpt";
  64. };
  65. };
  66. };
  67. &ref {
  68. clock-frequency = <40000000>;
  69. };
  70. &uart {
  71. status = "okay";
  72. };
  73. &spi {
  74. num-cs = <1>;
  75. status = "okay";
  76. flash@0 {
  77. compatible = "jedec,spi-nor";
  78. reg = <0>;
  79. spi-max-frequency = <25000000>;
  80. partitions {
  81. compatible = "fixed-partitions";
  82. #address-cells = <1>;
  83. #size-cells = <1>;
  84. partition@0 {
  85. label = "u-boot";
  86. reg = <0x0 0x40000>;
  87. read-only;
  88. };
  89. partition@40000 {
  90. label = "u-boot-env";
  91. reg = <0x40000 0x10000>;
  92. read-only;
  93. };
  94. partition@50000 {
  95. label = "firmware";
  96. reg = <0x50000 0xf80000>;
  97. compatible = "denx,uimage";
  98. };
  99. partition@fd0000 {
  100. label = "nvram";
  101. reg = <0xfd0000 0x10000>;
  102. read-only;
  103. };
  104. art: partition@fe0000 {
  105. label = "art";
  106. reg = <0xfe0000 0x10000>;
  107. read-only;
  108. };
  109. addr: partition@ff0000 {
  110. label = "addr";
  111. reg = <0xff0000 0x10000>;
  112. read-only;
  113. };
  114. };
  115. };
  116. };
  117. &pcie {
  118. status = "okay";
  119. ath9k: wifi@0,0 {
  120. compatible = "pci168c,0030";
  121. reg = <0x0000 0 0 0 0>;
  122. qca,no-eeprom;
  123. mtd-mac-address = <&addr 0x0>;
  124. mtd-mac-address-increment = <0x10>;
  125. #gpio-cells = <2>;
  126. gpio-controller;
  127. };
  128. };
  129. &usb {
  130. #address-cells = <1>;
  131. #size-cells = <0>;
  132. status = "okay";
  133. port@1 {
  134. #address-cells = <1>;
  135. #size-cells = <0>;
  136. reg = <1>;
  137. #trigger-source-cells = <0>;
  138. hub_port1: port@1 {
  139. reg = <1>;
  140. #trigger-source-cells = <0>;
  141. };
  142. hub_port2: port@2 {
  143. reg = <2>;
  144. #trigger-source-cells = <0>;
  145. };
  146. };
  147. };
  148. &usb_phy {
  149. status = "okay";
  150. };
  151. &wmac {
  152. status = "okay";
  153. mtd-cal-data = <&art 0x1000>;
  154. mtd-mac-address = <&addr 0x0>;
  155. };
  156. &mdio0 {
  157. status = "okay";
  158. phy-mask = <0x10>;
  159. phy4: ethernet-phy@4 {
  160. reg = <4>;
  161. };
  162. };
  163. &eth0 {
  164. status = "okay";
  165. pll-data = <0xe000000 0x04000101 0x04001313>;
  166. mtd-mac-address = <&addr 0x0>;
  167. mtd-mac-address-increment = <0x21>;
  168. phy-mode = "rgmii-rxid";
  169. phy-handle = <&phy4>;
  170. gmac-config {
  171. device = <&gmac>;
  172. rgmii-gmac0 = <1>;
  173. rxd-delay = <1>;
  174. rxdv-delay = <1>;
  175. };
  176. };