ar9344_wd_mynet-wifi-rangeextender.dts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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 Wi-Fi Range Extender";
  8. compatible = "wd,mynet-wifi-rangeextender", "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. power: power {
  21. label = "mynet-wifi-rangeextender:blue:power";
  22. gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
  23. /* LED has no off state. It's either on or it blinks */
  24. };
  25. lan {
  26. label = "mynet-wifi-rangeextender:green:lan";
  27. gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
  28. };
  29. wifi {
  30. label = "mynet-wifi-rangeextender:blue:wifi";
  31. gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
  32. linux,default-trigger = "phy0tpt";
  33. };
  34. wifi-rssi-low {
  35. label = "mynet-wifi-rangeextender:blue:rssi-low";
  36. gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
  37. };
  38. wifi-rssi-med {
  39. label = "mynet-wifi-rangeextender:blue:rssi-med";
  40. gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
  41. };
  42. wifi-rssi-max {
  43. label = "mynet-wifi-rangeextender:blue:rssi-max";
  44. gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
  45. };
  46. };
  47. keys {
  48. compatible = "gpio-keys";
  49. reset {
  50. linux,code = <KEY_RESTART>;
  51. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  52. };
  53. band-switch {
  54. linux,code = <BTN_1>;
  55. gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
  56. linux,input-type = <EV_SW>;
  57. };
  58. wps {
  59. linux,code = <KEY_WPS_BUTTON>;
  60. gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
  61. };
  62. };
  63. };
  64. &ref {
  65. clock-frequency = <25000000>;
  66. };
  67. &uart {
  68. status = "okay";
  69. };
  70. &spi {
  71. num-cs = <1>;
  72. status = "okay";
  73. flash@0 {
  74. compatible = /* "s25fl064k", */ "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. uboot: partition@0 {
  82. label = "u-boot";
  83. reg = <0x0 0x040000>;
  84. read-only;
  85. };
  86. partition@40000 {
  87. label = "firmware";
  88. reg = <0x40000 0x7a0000>;
  89. compatible = "cybertan,trx";
  90. };
  91. nvram: partition@7e0000 {
  92. label = "nvram";
  93. reg = <0x7e0000 0x10000>;
  94. };
  95. art: partition@7f0000 {
  96. label = "art";
  97. reg = <0x7f0000 0x10000>;
  98. read-only;
  99. };
  100. };
  101. };
  102. };
  103. &pcie {
  104. status = "okay";
  105. ath9k: wifi@0,0 {
  106. compatible = "pci168c,0030";
  107. reg = <0x0000 0 0 0 0>;
  108. qca,no-eeprom;
  109. /* wifi MAC is stored in nvram */
  110. };
  111. };
  112. &mdio0 {
  113. status = "okay";
  114. phy-mask = <0x10>;
  115. phy4: ethernet-phy@4 {
  116. reg = <4>;
  117. };
  118. };
  119. &eth0 {
  120. status = "okay";
  121. pll-data = <0x0e000000 0x3c000101 0x3c001313>;
  122. /* ethernet MAC is stored in nvram */
  123. phy-mode = "rgmii";
  124. phy-handle = <&phy4>;
  125. gmac-config {
  126. device = <&gmac>;
  127. rgmii-gmac0 = <1>;
  128. rxd-delay = <3>;
  129. rxdv-delay = <3>;
  130. };
  131. };
  132. &mdio1 {
  133. status = "disabled";
  134. };