qcom-ipq4018-fritzbox-4040.dts 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  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 4040";
  8. compatible = "avm,fritzbox-4040";
  9. aliases {
  10. led-boot = &power;
  11. led-failsafe = &flash;
  12. led-running = &power;
  13. led-upgrade = &flash;
  14. label-mac-device = &gmac0;
  15. };
  16. soc {
  17. rng@22000 {
  18. status = "okay";
  19. };
  20. mdio@90000 {
  21. status = "okay";
  22. };
  23. ess-psgmii@98000 {
  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. usb2@60f8800 {
  47. status = "okay";
  48. };
  49. usb3@8af8800 {
  50. status = "okay";
  51. };
  52. crypto@8e3a000 {
  53. status = "okay";
  54. };
  55. watchdog@b017000 {
  56. status = "okay";
  57. };
  58. ess-switch@c000000 {
  59. status = "okay";
  60. };
  61. edma@c080000 {
  62. status = "okay";
  63. };
  64. };
  65. keys {
  66. compatible = "gpio-keys";
  67. wlan {
  68. label = "wlan";
  69. gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
  70. linux,code = <KEY_RFKILL>;
  71. };
  72. wps {
  73. label = "wps";
  74. gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
  75. linux,code = <KEY_WPS_BUTTON>;
  76. };
  77. };
  78. switch-leds {
  79. compatible = "gpio-leds";
  80. wlan {
  81. label = "green:wlan";
  82. gpios = <&ethphy0 0 GPIO_ACTIVE_HIGH>;
  83. };
  84. panic: info_red {
  85. label = "red:info";
  86. gpios = <&ethphy0 1 GPIO_ACTIVE_HIGH>;
  87. panic-indicator;
  88. };
  89. wan {
  90. label = "green:wan";
  91. gpios = <&ethphy1 0 GPIO_ACTIVE_HIGH>;
  92. };
  93. power: power {
  94. label = "green:power";
  95. gpios = <&ethphy2 1 GPIO_ACTIVE_HIGH>;
  96. };
  97. lan {
  98. label = "green:lan";
  99. gpios = <&ethphy3 0 GPIO_ACTIVE_HIGH>;
  100. };
  101. flash: info_amber {
  102. label = "amber:info";
  103. gpios = <&ethphy3 1 GPIO_ACTIVE_HIGH>;
  104. };
  105. };
  106. };
  107. &tlmm {
  108. serial_pins: serial_pinmux {
  109. mux {
  110. pins = "gpio60", "gpio61";
  111. function = "blsp_uart0";
  112. bias-disable;
  113. };
  114. };
  115. spi_0_pins: spi_0_pinmux {
  116. mux {
  117. function = "blsp_spi0";
  118. pins = "gpio55", "gpio56", "gpio57";
  119. drive-strength = <12>;
  120. bias-disable;
  121. };
  122. mux_cs {
  123. function = "gpio";
  124. pins = "gpio54";
  125. drive-strength = <2>;
  126. bias-disable;
  127. output-high;
  128. };
  129. };
  130. };
  131. &cryptobam {
  132. status = "okay";
  133. };
  134. &blsp_dma {
  135. status = "okay";
  136. };
  137. &blsp1_spi1 { /* BLSP1 QUP1 */
  138. pinctrl-0 = <&spi_0_pins>;
  139. pinctrl-names = "default";
  140. status = "okay";
  141. cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
  142. flash@0 {
  143. compatible = "jedec,spi-nor";
  144. reg = <0>;
  145. spi-max-frequency = <24000000>;
  146. status = "okay";
  147. m25p,fast-read;
  148. partitions {
  149. compatible = "fixed-partitions";
  150. #address-cells = <1>;
  151. #size-cells = <1>;
  152. partition0@0 {
  153. label = "SBL1";
  154. reg = <0x00000000 0x00040000>;
  155. read-only;
  156. };
  157. partition1@40000 {
  158. label = "MIBIB";
  159. reg = <0x00040000 0x00020000>;
  160. read-only;
  161. };
  162. partition2@60000 {
  163. label = "QSEE";
  164. reg = <0x00060000 0x00060000>;
  165. read-only;
  166. };
  167. partition3@c0000 {
  168. label = "CDT";
  169. reg = <0x000c0000 0x00010000>;
  170. read-only;
  171. };
  172. partition4@d0000 {
  173. label = "DDRPARAMS";
  174. reg = <0x000d0000 0x00010000>;
  175. read-only;
  176. };
  177. partition5@e0000 {
  178. label = "APPSBLENV"; /* uboot env - empty */
  179. reg = <0x000e0000 0x00010000>;
  180. read-only;
  181. };
  182. partition6@f0000 {
  183. label = "urlader"; /* APPSBL */
  184. reg = <0x000f0000 0x0002dc000>;
  185. read-only;
  186. };
  187. partition7@11dc00 {
  188. /* make a backup of this partition! */
  189. label = "urlader_config";
  190. reg = <0x0011dc00 0x00002400>;
  191. read-only;
  192. };
  193. partition8@120000 {
  194. label = "tffs1";
  195. reg = <0x00120000 0x00080000>;
  196. read-only;
  197. };
  198. partition9@1a0000 {
  199. label = "tffs2";
  200. reg = <0x001a0000 0x00080000>;
  201. read-only;
  202. };
  203. partition10@220000 {
  204. label = "uboot";
  205. reg = <0x00220000 0x00080000>;
  206. read-only;
  207. };
  208. partition11@2A0000 {
  209. compatible = "denx,fit";
  210. label = "firmware";
  211. reg = <0x002a0000 0x01c60000>;
  212. };
  213. partition12@1f00000 {
  214. label = "jffs2";
  215. reg = <0x01f00000 0x00100000>;
  216. };
  217. };
  218. };
  219. };
  220. &blsp1_uart1 {
  221. pinctrl-0 = <&serial_pins>;
  222. pinctrl-names = "default";
  223. status = "okay";
  224. };
  225. &ethphy0 {
  226. gpio-controller;
  227. #gpio-cells = <2>;
  228. };
  229. &ethphy1 {
  230. gpio-controller;
  231. #gpio-cells = <2>;
  232. enable-usb-power {
  233. gpio-hog;
  234. line-name = "enable USB3 power";
  235. gpios = <1 GPIO_ACTIVE_HIGH>;
  236. output-high;
  237. };
  238. };
  239. &ethphy2 {
  240. gpio-controller;
  241. #gpio-cells = <2>;
  242. };
  243. &ethphy3 {
  244. gpio-controller;
  245. #gpio-cells = <2>;
  246. };
  247. &usb3_ss_phy {
  248. status = "okay";
  249. };
  250. &usb3_hs_phy {
  251. status = "okay";
  252. };
  253. &usb2_hs_phy {
  254. status = "okay";
  255. };
  256. &wifi0 {
  257. status = "okay";
  258. qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";
  259. };
  260. &wifi1 {
  261. status = "okay";
  262. qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";
  263. };