1
0

ar9344_wd_mynet-n750.dts 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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 = "Western Digital My Net N750";
  8. compatible = "wd,mynet-n750", "qca,ar9344";
  9. chosen {
  10. bootargs = "console=ttyS0,115200n8";
  11. };
  12. aliases {
  13. led-boot = &power;
  14. led-failsafe = &power;
  15. led-running = &power;
  16. led-upgrade = &power;
  17. };
  18. leds {
  19. compatible = "gpio-leds";
  20. wifi {
  21. label = "mynet-n750:blue:wireless";
  22. gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
  23. };
  24. internet {
  25. label = "mynet-n750:blue:internet";
  26. gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
  27. };
  28. wps {
  29. label = "mynet-n750:blue:wps";
  30. gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
  31. };
  32. power: power {
  33. label = "mynet-n750:blue:power";
  34. gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
  35. };
  36. };
  37. keys {
  38. compatible = "gpio-keys";
  39. reset {
  40. linux,code = <KEY_RESTART>;
  41. gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
  42. };
  43. wps {
  44. linux,code = <KEY_WPS_BUTTON>;
  45. gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
  46. };
  47. };
  48. };
  49. &ref {
  50. clock-frequency = <40000000>;
  51. };
  52. &uart {
  53. status = "okay";
  54. };
  55. &gpio {
  56. status = "okay";
  57. gpio_ext_lna0 {
  58. gpio-hog;
  59. gpios = <15 0>;
  60. output-high;
  61. line-name = "mynet-n750:ext:lna0";
  62. };
  63. gpio_ext_lna1 {
  64. gpio-hog;
  65. gpios = <18 0>;
  66. output-high;
  67. line-name = "mynet-n750:ext:lna1";
  68. };
  69. };
  70. &spi {
  71. num-cs = <1>;
  72. status = "okay";
  73. flash@0 {
  74. compatible = "jedec,spi-nor";
  75. reg = <0>;
  76. spi-max-frequency = <25000000>;
  77. partitions {
  78. compatible = "fixed-partitions";
  79. #address-cells = <1>;
  80. #size-cells = <1>;
  81. partition@0 {
  82. label = "bootloader";
  83. reg = <0x000000 0x40000>;
  84. read-only;
  85. };
  86. partition@40000 {
  87. label = "bdcfg";
  88. reg = <0x040000 0x10000>;
  89. read-only;
  90. };
  91. partition@50000 {
  92. label = "devdata";
  93. reg = <0x050000 0x10000>;
  94. read-only;
  95. };
  96. partition@60000 {
  97. label = "devconf";
  98. reg = <0x060000 0x10000>;
  99. read-only;
  100. };
  101. partition@70000 {
  102. compatible = "seama";
  103. label = "firmware";
  104. reg = <0x070000 0xf80000>;
  105. };
  106. art: partition@ff0000 {
  107. label = "art";
  108. reg = <0xff0000 0x010000>;
  109. read-only;
  110. };
  111. };
  112. };
  113. };
  114. &usb {
  115. #address-cells = <1>;
  116. #size-cells = <0>;
  117. status = "okay";
  118. port@1 {
  119. #address-cells = <1>;
  120. #size-cells = <0>;
  121. reg = <1>;
  122. #trigger-source-cells = <0>;
  123. hub_port1: port@1 {
  124. reg = <1>;
  125. #trigger-source-cells = <0>;
  126. };
  127. hub_port2: port@2 {
  128. reg = <2>;
  129. #trigger-source-cells = <0>;
  130. };
  131. };
  132. };
  133. &usb_phy {
  134. status = "okay";
  135. };
  136. &pcie {
  137. status = "okay";
  138. wifi@0,0 {
  139. compatible = "pci168c,0033";
  140. reg = <0x0000 0 0 0 0>;
  141. qca,no-eeprom;
  142. };
  143. };
  144. &wmac {
  145. status = "okay";
  146. qca,no-eeprom;
  147. };
  148. &mdio0 {
  149. status = "okay";
  150. phy-mask = <0>;
  151. switch0@1f {
  152. compatible = "qca,ar8327";
  153. reg = <0x1f>;
  154. qca,ar8327-initvals = <
  155. 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
  156. 0x10 0x80000080 /* POWER_ON_STRIP */
  157. 0x50 0xc737c737 /* LED_CTRL0 */
  158. 0x54 0x00000000 /* LED_CTRL1 */
  159. 0x58 0x00000000 /* LED_CTRL2 */
  160. 0x5c 0x0030c300 /* LED_CTRL3 */
  161. 0x7c 0x0000007e /* PORT0_STATUS */
  162. >;
  163. };
  164. };
  165. &eth0 {
  166. status = "okay";
  167. /* default for ar934x, except for 1000M */
  168. pll-data = <0x06000000 0x00000101 0x00001616>;
  169. phy-mode = "rgmii";
  170. fixed-link {
  171. speed = <1000>;
  172. full-duplex;
  173. };
  174. };