qcom-ipq4019-fritzrepeater-1200.dts 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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/soc/qcom,tcsr.h>
  6. / {
  7. model = "AVM FRITZ!Repeater 1200";
  8. compatible = "avm,fritzrepeater-1200";
  9. aliases {
  10. led-boot = &power_green;
  11. led-failsafe = &power_red;
  12. led-running = &power_green;
  13. led-upgrade = &power_red;
  14. label-mac-device = &wifi0;
  15. };
  16. soc {
  17. rng@22000 {
  18. status = "okay";
  19. };
  20. mdio@90000 {
  21. status = "okay";
  22. pinctrl-0 = <&mdio_pins>;
  23. pinctrl-names = "default";
  24. /delete-node/ ethernet-phy@1;
  25. /delete-node/ ethernet-phy@2;
  26. /delete-node/ ethernet-phy@3;
  27. /delete-node/ ethernet-phy@4;
  28. /delete-node/ psgmii-phy@5;
  29. };
  30. tcsr@1949000 {
  31. compatible = "qcom,tcsr";
  32. reg = <0x1949000 0x100>;
  33. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  34. };
  35. ess_tcsr@1953000 {
  36. compatible = "qcom,tcsr";
  37. reg = <0x1953000 0x1000>;
  38. qcom,ess-interface-select = <TCSR_ESS_PSGMII_RGMII5>;
  39. };
  40. tcsr@1957000 {
  41. compatible = "qcom,tcsr";
  42. reg = <0x1957000 0x100>;
  43. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  44. };
  45. crypto@8e3a000 {
  46. status = "okay";
  47. };
  48. watchdog@b017000 {
  49. status = "okay";
  50. };
  51. ess-switch@c000000 {
  52. switch_mac_mode = <0x3>; /* mac mode for RGMII RMII */
  53. switch_lan_bmp = <0x0>; /* lan port bitmap */
  54. switch_wan_bmp = <0x10>; /* wan port bitmap */
  55. };
  56. edma@c080000 {
  57. status = "okay";
  58. phy-mode = "rgmii-rxid";
  59. qcom,num_gmac = <1>;
  60. qcom,single-phy;
  61. };
  62. };
  63. key {
  64. compatible = "gpio-keys";
  65. wps {
  66. label = "WPS button";
  67. gpios = <&tlmm 10 GPIO_ACTIVE_LOW>;
  68. linux,code = <KEY_WPS_BUTTON>;
  69. };
  70. };
  71. leds {
  72. compatible = "gpio-leds";
  73. power_red: power_red {
  74. label = "red:power";
  75. gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
  76. };
  77. power_green: power_green {
  78. label = "green:power";
  79. gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
  80. };
  81. power_yellow {
  82. label = "yellow:power";
  83. gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
  84. };
  85. };
  86. };
  87. &tlmm {
  88. serial_0_pins: serial_pinmux {
  89. mux {
  90. pins = "gpio16", "gpio17";
  91. function = "blsp_uart0";
  92. bias-disable;
  93. };
  94. };
  95. nand_pins: nand_pins {
  96. pullups {
  97. pins = "gpio53", "gpio58", "gpio59";
  98. function = "qpic";
  99. bias-pull-up;
  100. };
  101. pulldowns {
  102. pins = "gpio54", "gpio55", "gpio56",
  103. "gpio57", "gpio60", "gpio61",
  104. "gpio62", "gpio63", "gpio64",
  105. "gpio65", "gpio66", "gpio67",
  106. "gpio68", "gpio69";
  107. function = "qpic";
  108. bias-pull-down;
  109. };
  110. };
  111. mdio_pins: mdio_pinmux {
  112. mux_1 {
  113. pins = "gpio6";
  114. function = "mdio";
  115. bias-pull-up;
  116. };
  117. mux_2 {
  118. pins = "gpio7";
  119. function = "mdc";
  120. bias-pull-up;
  121. };
  122. };
  123. phy-reset {
  124. line-name = "PHY-reset";
  125. gpios = <19 GPIO_ACTIVE_HIGH>;
  126. gpio-hog;
  127. output-high;
  128. };
  129. phy-reset-2 {
  130. line-name = "PHY-reset-2";
  131. gpios = <47 GPIO_ACTIVE_HIGH>;
  132. gpio-hog;
  133. output-high;
  134. };
  135. };
  136. &nand {
  137. pinctrl-0 = <&nand_pins>;
  138. pinctrl-names = "default";
  139. status = "okay";
  140. nand@0 {
  141. partitions {
  142. compatible = "fixed-partitions";
  143. #address-cells = <1>;
  144. #size-cells = <1>;
  145. partition@0 {
  146. label = "SBL1";
  147. reg = <0x0 0x80000>;
  148. read-only;
  149. };
  150. partition@80000 {
  151. label = "MIBIB";
  152. reg = <0x80000 0x80000>;
  153. read-only;
  154. };
  155. partition@100000 {
  156. label = "QSEE";
  157. reg = <0x100000 0x80000>;
  158. read-only;
  159. };
  160. partition@180000 {
  161. label = "CDT";
  162. reg = <0x180000 0x40000>;
  163. read-only;
  164. };
  165. partition@1c0000 {
  166. label = "QSEE_B";
  167. reg = <0x1c0000 0x80000>;
  168. read-only;
  169. };
  170. partition@240000 {
  171. label = "urlader0";
  172. reg = <0x240000 0x40000>;
  173. read-only;
  174. };
  175. partition@280000 {
  176. label = "urlader1";
  177. reg = <0x280000 0x40000>;
  178. read-only;
  179. };
  180. partition@2c0000 {
  181. label = "nand-tffs";
  182. reg = <0x2c0000 0x840000>;
  183. read-only;
  184. };
  185. partition@b00000 {
  186. /* 'kernel1' in AVM firmware */
  187. label = "uboot0";
  188. reg = <0xb00000 0x400000>;
  189. };
  190. partition@f00000 {
  191. /* 'kernel2' in AVM firmware */
  192. label = "uboot1";
  193. reg = <0xf00000 0x400000>;
  194. };
  195. partition@1300000 {
  196. label = "ubi";
  197. reg = <0x1300000 0x6d00000>;
  198. };
  199. };
  200. };
  201. };
  202. &cryptobam {
  203. status = "okay";
  204. };
  205. &blsp_dma {
  206. status = "okay";
  207. };
  208. &blsp1_uart1 {
  209. pinctrl-0 = <&serial_0_pins>;
  210. pinctrl-names = "default";
  211. status = "okay";
  212. };
  213. &qpic_bam {
  214. status = "okay";
  215. };
  216. &wifi0 {
  217. status = "okay";
  218. qcom,ath10k-calibration-variant = "AVM-FRITZRepeater-1200";
  219. };
  220. &wifi1 {
  221. status = "okay";
  222. qcom,ath10k-calibration-variant = "AVM-FRITZRepeater-1200";
  223. };
  224. &gmac0 {
  225. qcom,phy_mdio_addr = <0>;
  226. qcom,poll_required = <1>;
  227. vlan_tag = <0 0x20>;
  228. };