qcom-ipq4019-fritzrepeater-3000.dts 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include "qcom-ipq4019.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. #include <dt-bindings/leds/common.h>
  6. #include <dt-bindings/soc/qcom,tcsr.h>
  7. / {
  8. model = "AVM FRITZ!Repeater 3000";
  9. compatible = "avm,fritzrepeater-3000";
  10. aliases {
  11. led-boot = &power_led;
  12. led-failsafe = &power_led;
  13. led-running = &power_led;
  14. led-upgrade = &power_led;
  15. };
  16. soc {
  17. rng@22000 {
  18. status = "okay";
  19. };
  20. mdio@90000 {
  21. status = "okay";
  22. };
  23. tcsr@1949000 {
  24. compatible = "qcom,tcsr";
  25. reg = <0x1949000 0x100>;
  26. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  27. };
  28. ess_tcsr@1953000 {
  29. compatible = "qcom,tcsr";
  30. reg = <0x1953000 0x1000>;
  31. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  32. };
  33. tcsr@1957000 {
  34. compatible = "qcom,tcsr";
  35. reg = <0x1957000 0x100>;
  36. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  37. };
  38. crypto@8e3a000 {
  39. status = "okay";
  40. };
  41. watchdog@b017000 {
  42. status = "okay";
  43. };
  44. };
  45. key {
  46. compatible = "gpio-keys";
  47. connect {
  48. label = "Connect";
  49. gpios = <&tlmm 10 GPIO_ACTIVE_LOW>;
  50. linux,code = <KEY_WPS_BUTTON>;
  51. };
  52. };
  53. leds {
  54. compatible = "gpio-leds";
  55. connect_red {
  56. label = "red:connect";
  57. gpios = <&tlmm 30 GPIO_ACTIVE_LOW>;
  58. };
  59. connect_green {
  60. label = "green:connect";
  61. gpios = <&tlmm 31 GPIO_ACTIVE_LOW>;
  62. };
  63. connect_blue {
  64. label = "blue:connect";
  65. gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
  66. };
  67. power_led: power {
  68. function = LED_FUNCTION_POWER;
  69. color = <LED_COLOR_ID_GREEN>;
  70. gpios = <&tlmm 33 GPIO_ACTIVE_LOW>;
  71. };
  72. };
  73. };
  74. &tlmm {
  75. serial_0_pins: serial_pinmux {
  76. mux {
  77. pins = "gpio16", "gpio17";
  78. function = "blsp_uart0";
  79. bias-disable;
  80. };
  81. };
  82. nand_pins: nand_pins {
  83. pullups {
  84. pins = "gpio53", "gpio58", "gpio59";
  85. function = "qpic";
  86. bias-pull-up;
  87. };
  88. pulldowns {
  89. pins = "gpio54", "gpio55", "gpio56",
  90. "gpio57", "gpio60", "gpio61",
  91. "gpio62", "gpio63", "gpio64",
  92. "gpio65", "gpio66", "gpio67",
  93. "gpio68", "gpio69";
  94. function = "qpic";
  95. bias-pull-down;
  96. };
  97. };
  98. };
  99. &nand {
  100. pinctrl-0 = <&nand_pins>;
  101. pinctrl-names = "default";
  102. status = "okay";
  103. nand@0 {
  104. /delete-property/ nand-ecc-strength;
  105. /delete-property/ nand-ecc-step-size;
  106. partitions {
  107. compatible = "fixed-partitions";
  108. #address-cells = <1>;
  109. #size-cells = <1>;
  110. partition@0 {
  111. label = "SBL1";
  112. reg = <0x000000 0x80000>;
  113. read-only;
  114. };
  115. partition@80000 {
  116. label = "MIBIB";
  117. reg = <0x080000 0x80000>;
  118. read-only;
  119. };
  120. partition@100000 {
  121. label = "QSEE";
  122. reg = <0x100000 0x80000>;
  123. read-only;
  124. };
  125. partition@180000 {
  126. label = "CDT";
  127. reg = <0x180000 0x40000>;
  128. read-only;
  129. };
  130. partition@1c0000 {
  131. label = "QSEE_B";
  132. reg = <0x1c0000 0x80000>;
  133. read-only;
  134. };
  135. partition@240000 {
  136. label = "urlader0";
  137. reg = <0x240000 0x40000>;
  138. read-only;
  139. };
  140. partition@280000 {
  141. label = "urlader1";
  142. reg = <0x280000 0x40000>;
  143. read-only;
  144. };
  145. partition@2c0000 {
  146. label = "nand-tffs";
  147. reg = <0x2c0000 0x840000>;
  148. read-only;
  149. };
  150. partition@b00000 {
  151. /* 'kernel1' in AVM firmware */
  152. label = "uboot0";
  153. reg = <0xb00000 0x400000>;
  154. };
  155. partition@f00000 {
  156. /* 'kernel2' in AVM firmware */
  157. label = "uboot1";
  158. reg = <0xf00000 0x400000>;
  159. };
  160. partition@1300000 {
  161. label = "ubi";
  162. reg = <0x1300000 0x6d00000>;
  163. };
  164. };
  165. };
  166. };
  167. &cryptobam {
  168. status = "okay";
  169. };
  170. &blsp_dma {
  171. status = "okay";
  172. };
  173. &blsp1_uart1 {
  174. pinctrl-0 = <&serial_0_pins>;
  175. pinctrl-names = "default";
  176. status = "okay";
  177. };
  178. &qpic_bam {
  179. status = "okay";
  180. };
  181. &wifi0 {
  182. status = "okay";
  183. /* BDFs are identical for the FRITZ!Box 7530 and the FRITZ!Repeater 3000 */
  184. qcom,ath10k-calibration-variant = "AVM-FRITZRepeater-3000";
  185. };
  186. &wifi1 {
  187. status = "okay";
  188. ieee80211-freq-limit = <5170000 5350000>;
  189. /* BDFs are identical for the FRITZ!Box 7530 and the FRITZ!Repeater 3000 */
  190. qcom,ath10k-calibration-variant = "AVM-FRITZRepeater-3000";
  191. };
  192. &pcie0 {
  193. status = "okay";
  194. perst-gpio = <&tlmm 35 GPIO_ACTIVE_LOW>;
  195. wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
  196. bridge@0,0 {
  197. reg = <0x00000000 0 0 0 0>;
  198. #address-cells = <3>;
  199. #size-cells = <2>;
  200. ranges;
  201. wifi@1,0 {
  202. /* QCA9984 */
  203. compatible = "qcom,ath10k";
  204. status = "okay";
  205. reg = <0x00010000 0 0 0 0>;
  206. ieee80211-freq-limit = <5470000 5875000>;
  207. /* Uses the reference BDF */
  208. };
  209. };
  210. };
  211. &gmac {
  212. status = "okay";
  213. };
  214. &switch {
  215. status = "okay";
  216. };
  217. &swport4 {
  218. status = "okay";
  219. label = "lan1";
  220. };
  221. &swport5 {
  222. status = "okay";
  223. label = "lan2";
  224. };