ar7242_avm_fritz300e.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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 "ar7242.dtsi"
  6. / {
  7. compatible = "avm,fritz300e", "qca,ar7242";
  8. model = "AVM FRITZ!WLAN Repeater 300E";
  9. aliases {
  10. led-boot = &power;
  11. led-failsafe = &power;
  12. led-running = &power;
  13. led-upgrade = &power;
  14. };
  15. keys {
  16. compatible = "gpio-keys-polled";
  17. poll-interval = <20>;
  18. wps {
  19. label = "wps";
  20. linux,code = <KEY_WPS_BUTTON>;
  21. gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
  22. debounce-interval = <60>;
  23. };
  24. };
  25. leds {
  26. compatible = "gpio-leds";
  27. power: power {
  28. label = "fritz300e:green:power";
  29. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  30. default-state = "on";
  31. };
  32. lan {
  33. label = "fritz300e:green:lan";
  34. gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
  35. };
  36. wlan {
  37. label = "fritz300e:green:wlan";
  38. gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
  39. linux,default-trigger = "phy0tpt";
  40. };
  41. };
  42. ath9k-leds {
  43. compatible = "gpio-leds";
  44. rssi0 {
  45. label = "fritz300e:green:rssi0";
  46. gpios = <&ath9k 10 GPIO_ACTIVE_LOW>;
  47. };
  48. rssi1 {
  49. label = "fritz300e:green:rssi1";
  50. gpios = <&ath9k 4 GPIO_ACTIVE_LOW>;
  51. };
  52. rssi2 {
  53. label = "fritz300e:green:rssi2";
  54. gpios = <&ath9k 6 GPIO_ACTIVE_LOW>;
  55. };
  56. rssi3 {
  57. label = "fritz300e:green:rssi3";
  58. gpios = <&ath9k 7 GPIO_ACTIVE_LOW>;
  59. };
  60. rssi4 {
  61. label = "fritz300e:green:rssi4";
  62. gpios = <&ath9k 5 GPIO_ACTIVE_LOW>;
  63. };
  64. };
  65. eth-phy-reset {
  66. compatible = "regulator-fixed";
  67. regulator-name = "eth-phy-reset";
  68. regulator-min-microvolt = <3300000>;
  69. regulator-max-microvolt = <3300000>;
  70. gpio = <&gpio 11 GPIO_ACTIVE_LOW>;
  71. startup-delay-us = <300000>;
  72. enable-active-high;
  73. regulator-always-on;
  74. };
  75. };
  76. &spi {
  77. status = "okay";
  78. num-cs = <1>;
  79. flash@0 {
  80. compatible = "jedec,spi-nor";
  81. reg = <0>;
  82. spi-max-frequency = <25000000>;
  83. partitions {
  84. compatible = "fixed-partitions";
  85. #address-cells = <1>;
  86. #size-cells = <1>;
  87. partition@0 {
  88. reg = <0x0 0x20000>;
  89. label = "urloader";
  90. read-only;
  91. };
  92. partition@20000 {
  93. compatible = "avm,eva-firmware";
  94. reg = <0x20000 0xee0000>;
  95. label = "firmware";
  96. };
  97. partition@f00000 {
  98. reg = <0xf00000 0x80000>;
  99. label = "tffs (1)";
  100. read-only;
  101. };
  102. partition@f80000 {
  103. reg = <0xf80000 0x80000>;
  104. label = "tffs (2)";
  105. read-only;
  106. };
  107. };
  108. };
  109. };
  110. &uart {
  111. status = "okay";
  112. };
  113. &pcie {
  114. status = "okay";
  115. ath9k: wifi@0,0 {
  116. reg = <0x0000 0 0 0 0>;
  117. #gpio-cells = <2>;
  118. gpio-controller;
  119. qca,no-eeprom;
  120. };
  121. };
  122. &mdio0 {
  123. status = "okay";
  124. phy0: ethernet-phy@0 {
  125. reg = <0>;
  126. phy-mode = "rgmii";
  127. };
  128. };
  129. &eth0 {
  130. status = "okay";
  131. phy-mode = "rgmii";
  132. phy-handle = <&phy0>;
  133. pll-data = <0x16000000 0x00000101 0x00001313>;
  134. };