2
0

qcom-ipq4019-fritzbox-7530.dts 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  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!Box 7530";
  8. compatible = "avm,fritzbox-7530";
  9. aliases {
  10. led-boot = &power_green;
  11. led-failsafe = &info_red;
  12. led-running = &power_green;
  13. led-upgrade = &info_green;
  14. };
  15. soc {
  16. rng@22000 {
  17. status = "okay";
  18. };
  19. mdio@90000 {
  20. status = "okay";
  21. };
  22. ess-psgmii@98000 {
  23. status = "okay";
  24. };
  25. tcsr@1949000 {
  26. compatible = "qcom,tcsr";
  27. reg = <0x1949000 0x100>;
  28. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  29. };
  30. tcsr@194b000 {
  31. compatible = "qcom,tcsr";
  32. reg = <0x194b000 0x100>;
  33. qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
  34. };
  35. ess_tcsr@1953000 {
  36. compatible = "qcom,tcsr";
  37. reg = <0x1953000 0x1000>;
  38. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  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. usb3@8af8800 {
  46. status = "okay";
  47. };
  48. crypto@8e3a000 {
  49. status = "okay";
  50. };
  51. watchdog@b017000 {
  52. status = "okay";
  53. };
  54. ess-switch@c000000 {
  55. status = "okay";
  56. };
  57. edma@c080000 {
  58. status = "okay";
  59. qcom,num_gmac = <1>;
  60. };
  61. };
  62. keys {
  63. compatible = "gpio-keys";
  64. wlan {
  65. label = "wlan";
  66. gpios = <&tlmm 42 GPIO_ACTIVE_LOW>;
  67. linux,code = <KEY_RFKILL>;
  68. };
  69. wps {
  70. label = "wps";
  71. gpios = <&tlmm 41 GPIO_ACTIVE_LOW>;
  72. linux,code = <KEY_WPS_BUTTON>;
  73. };
  74. dect {
  75. label = "dect";
  76. gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
  77. linux,code = <KEY_PHONE>;
  78. };
  79. };
  80. leds {
  81. compatible = "gpio-leds";
  82. info_red: info_red {
  83. label = "red:info";
  84. gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
  85. };
  86. info_green: info {
  87. label = "green:info";
  88. gpios = <&tlmm 33 GPIO_ACTIVE_LOW>;
  89. };
  90. wlan {
  91. label = "green:wlan";
  92. gpios = <&tlmm 34 GPIO_ACTIVE_LOW>;
  93. };
  94. fon {
  95. label = "green:fon";
  96. gpios = <&tlmm 35 GPIO_ACTIVE_LOW>;
  97. };
  98. power_green: power {
  99. label = "green:power";
  100. gpios = <&tlmm 39 GPIO_ACTIVE_LOW>;
  101. };
  102. wps {
  103. label = "green:wps";
  104. gpios = <&tlmm 45 GPIO_ACTIVE_LOW>;
  105. };
  106. };
  107. };
  108. &tlmm {
  109. serial_0_pins: serial_pinmux {
  110. mux {
  111. pins = "gpio16", "gpio17";
  112. function = "blsp_uart0";
  113. bias-disable;
  114. };
  115. };
  116. nand_pins: nand_pins {
  117. pullups {
  118. pins = "gpio53", "gpio58", "gpio59";
  119. function = "qpic";
  120. bias-pull-up;
  121. };
  122. pulldowns {
  123. pins = "gpio54", "gpio55", "gpio56",
  124. "gpio57", "gpio60", "gpio61",
  125. "gpio62", "gpio63", "gpio64",
  126. "gpio65", "gpio66", "gpio67",
  127. "gpio68", "gpio69";
  128. function = "qpic";
  129. bias-pull-down;
  130. };
  131. };
  132. usb-power {
  133. line-name = "enable USB3 power";
  134. gpios = <49 GPIO_ACTIVE_HIGH>;
  135. gpio-hog;
  136. output-high;
  137. };
  138. };
  139. &nand {
  140. pinctrl-0 = <&nand_pins>;
  141. pinctrl-names = "default";
  142. status = "okay";
  143. nand@0 {
  144. partitions {
  145. compatible = "fixed-partitions";
  146. #address-cells = <1>;
  147. #size-cells = <1>;
  148. partition@0 {
  149. label = "SBL1";
  150. reg = <0x000000 0x80000>;
  151. read-only;
  152. };
  153. partition@80000 {
  154. label = "MIBIB";
  155. reg = <0x080000 0x80000>;
  156. read-only;
  157. };
  158. partition@100000 {
  159. label = "QSEE";
  160. reg = <0x100000 0x80000>;
  161. read-only;
  162. };
  163. partition@180000 {
  164. label = "CDT";
  165. reg = <0x180000 0x40000>;
  166. read-only;
  167. };
  168. partition@1c0000 {
  169. label = "QSEE_B";
  170. reg = <0x1c0000 0x80000>;
  171. read-only;
  172. };
  173. partition@240000 {
  174. label = "urlader0";
  175. reg = <0x240000 0x40000>;
  176. read-only;
  177. };
  178. partition@280000 {
  179. label = "urlader1";
  180. reg = <0x280000 0x40000>;
  181. read-only;
  182. };
  183. partition@2c0000 {
  184. label = "nand-tffs";
  185. reg = <0x2c0000 0x840000>;
  186. read-only;
  187. };
  188. partition@b00000 {
  189. /* 'kernel1' in AVM firmware */
  190. label = "uboot0";
  191. reg = <0xb00000 0x400000>;
  192. };
  193. partition@f00000 {
  194. /* 'kernel2' in AVM firmware */
  195. label = "uboot1";
  196. reg = <0xf00000 0x400000>;
  197. };
  198. partition@1300000 {
  199. label = "ubi";
  200. reg = <0x1300000 0x6d00000>;
  201. };
  202. };
  203. };
  204. };
  205. &cryptobam {
  206. status = "okay";
  207. };
  208. &blsp_dma {
  209. status = "okay";
  210. };
  211. &blsp1_uart1 {
  212. pinctrl-0 = <&serial_0_pins>;
  213. pinctrl-names = "default";
  214. status = "okay";
  215. };
  216. &usb3_ss_phy {
  217. status = "okay";
  218. };
  219. &usb3_hs_phy {
  220. status = "okay";
  221. };
  222. &qpic_bam {
  223. status = "okay";
  224. };
  225. &wifi0 {
  226. status = "okay";
  227. qcom,ath10k-calibration-variant = "AVM-FRITZBox-7530";
  228. };
  229. &wifi1 {
  230. status = "okay";
  231. qcom,ath10k-calibration-variant = "AVM-FRITZBox-7530";
  232. };
  233. &pcie0 {
  234. status = "okay";
  235. perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
  236. wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
  237. bridge@0,0 {
  238. reg = <0x00000000 0 0 0 0>;
  239. #address-cells = <3>;
  240. #size-cells = <2>;
  241. ranges;
  242. dsl@1,0 {
  243. compatible = "intel,vrx518";
  244. status = "okay";
  245. reg = <0x00010000 0 0 0 0>;
  246. };
  247. };
  248. };