qcom-ipq4019-fritzbox-7530.dts 5.1 KB

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