qcom-ipq4019-cm520-79f.dts 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  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 = "MobiPromo CM520-79F";
  8. compatible = "mobipromo,cm520-79f";
  9. aliases {
  10. led-boot = &led_sys;
  11. led-failsafe = &led_sys;
  12. led-running = &led_sys;
  13. led-upgrade = &led_sys;
  14. };
  15. soc {
  16. rng@22000 {
  17. status = "okay";
  18. };
  19. mdio@90000 {
  20. status = "okay";
  21. pinctrl-0 = <&mdio_pins>;
  22. pinctrl-names = "default";
  23. reset-gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
  24. reset-delay-us = <1000>;
  25. };
  26. ess-psgmii@98000 {
  27. status = "okay";
  28. };
  29. tcsr@1949000 {
  30. compatible = "qcom,tcsr";
  31. reg = <0x1949000 0x100>;
  32. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  33. };
  34. tcsr@194b000 {
  35. compatible = "qcom,tcsr";
  36. reg = <0x194b000 0x100>;
  37. qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
  38. };
  39. ess_tcsr@1953000 {
  40. compatible = "qcom,tcsr";
  41. reg = <0x1953000 0x1000>;
  42. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  43. };
  44. tcsr@1957000 {
  45. compatible = "qcom,tcsr";
  46. reg = <0x1957000 0x100>;
  47. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  48. };
  49. usb2@60f8800 {
  50. status = "okay";
  51. dwc3@6000000 {
  52. #address-cells = <1>;
  53. #size-cells = <0>;
  54. usb2_port1: port@1 {
  55. reg = <1>;
  56. #trigger-source-cells = <0>;
  57. };
  58. };
  59. };
  60. usb3@8af8800 {
  61. status = "okay";
  62. dwc3@8a00000 {
  63. #address-cells = <1>;
  64. #size-cells = <0>;
  65. usb3_port1: port@1 {
  66. reg = <1>;
  67. #trigger-source-cells = <0>;
  68. };
  69. usb3_port2: port@2 {
  70. reg = <2>;
  71. #trigger-source-cells = <0>;
  72. };
  73. };
  74. };
  75. crypto@8e3a000 {
  76. status = "okay";
  77. };
  78. watchdog@b017000 {
  79. status = "okay";
  80. };
  81. ess-switch@c000000 {
  82. status = "okay";
  83. };
  84. edma@c080000 {
  85. status = "okay";
  86. };
  87. };
  88. led_spi {
  89. compatible = "spi-gpio";
  90. #address-cells = <1>;
  91. #size-cells = <0>;
  92. sck-gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
  93. mosi-gpios = <&tlmm 36 GPIO_ACTIVE_HIGH>;
  94. num-chipselects = <0>;
  95. led_gpio: led_gpio@0 {
  96. compatible = "fairchild,74hc595";
  97. reg = <0>;
  98. gpio-controller;
  99. #gpio-cells = <2>;
  100. registers-number = <1>;
  101. spi-max-frequency = <1000000>;
  102. };
  103. };
  104. leds {
  105. compatible = "gpio-leds";
  106. usb {
  107. label = "blue:usb";
  108. gpios = <&tlmm 10 GPIO_ACTIVE_HIGH>;
  109. linux,default-trigger = "usbport";
  110. trigger-sources = <&usb3_port1>, <&usb3_port2>, <&usb2_port1>;
  111. };
  112. led_sys: can {
  113. label = "blue:can";
  114. gpios = <&tlmm 11 GPIO_ACTIVE_HIGH>;
  115. };
  116. wan {
  117. label = "blue:wan";
  118. gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
  119. };
  120. lan1 {
  121. label = "blue:lan1";
  122. gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
  123. };
  124. lan2 {
  125. label = "blue:lan2";
  126. gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
  127. };
  128. wlan2g {
  129. label = "blue:wlan2g";
  130. gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
  131. linux,default-trigger = "phy0tpt";
  132. };
  133. wlan5g {
  134. label = "blue:wlan5g";
  135. gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
  136. linux,default-trigger = "phy1tpt";
  137. };
  138. };
  139. keys {
  140. compatible = "gpio-keys";
  141. reset {
  142. label = "reset";
  143. gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
  144. linux,code = <KEY_RESTART>;
  145. };
  146. };
  147. };
  148. &blsp_dma {
  149. status = "okay";
  150. };
  151. &blsp1_uart1 {
  152. status = "okay";
  153. };
  154. &blsp1_uart2 {
  155. status = "okay";
  156. };
  157. &cryptobam {
  158. status = "okay";
  159. };
  160. &gmac0 {
  161. mtd-mac-address = <&art 0x1006>;
  162. };
  163. &gmac1 {
  164. mtd-mac-address = <&art 0x5006>;
  165. };
  166. &nand {
  167. pinctrl-0 = <&nand_pins>;
  168. pinctrl-names = "default";
  169. status = "okay";
  170. nand@0 {
  171. partitions {
  172. compatible = "fixed-partitions";
  173. #address-cells = <1>;
  174. #size-cells = <1>;
  175. partition@0 {
  176. label = "SBL1";
  177. reg = <0x0 0x100000>;
  178. read-only;
  179. };
  180. partition@100000 {
  181. label = "MIBIB";
  182. reg = <0x100000 0x100000>;
  183. read-only;
  184. };
  185. partition@200000 {
  186. label = "BOOTCONFIG";
  187. reg = <0x200000 0x100000>;
  188. };
  189. partition@300000 {
  190. label = "QSEE";
  191. reg = <0x300000 0x100000>;
  192. read-only;
  193. };
  194. partition@400000 {
  195. label = "QSEE_1";
  196. reg = <0x400000 0x100000>;
  197. read-only;
  198. };
  199. partition@500000 {
  200. label = "CDT";
  201. reg = <0x500000 0x80000>;
  202. read-only;
  203. };
  204. partition@580000 {
  205. label = "CDT_1";
  206. reg = <0x580000 0x80000>;
  207. read-only;
  208. };
  209. partition@600000 {
  210. label = "BOOTCONFIG1";
  211. reg = <0x600000 0x80000>;
  212. };
  213. partition@680000 {
  214. label = "APPSBLENV";
  215. reg = <0x680000 0x80000>;
  216. };
  217. partition@700000 {
  218. label = "APPSBL";
  219. reg = <0x700000 0x200000>;
  220. read-only;
  221. };
  222. partition@900000 {
  223. label = "APPSBL_1";
  224. reg = <0x900000 0x200000>;
  225. read-only;
  226. };
  227. art: partition@b00000 {
  228. label = "ART";
  229. reg = <0xb00000 0x80000>;
  230. read-only;
  231. };
  232. partition@b80000 {
  233. label = "ubi";
  234. reg = <0xb80000 0x7480000>;
  235. };
  236. };
  237. };
  238. };
  239. &qpic_bam {
  240. status = "okay";
  241. };
  242. &tlmm {
  243. mdio_pins: mdio_pinmux {
  244. mux_1 {
  245. pins = "gpio6";
  246. function = "mdio";
  247. bias-pull-up;
  248. };
  249. mux_2 {
  250. pins = "gpio7";
  251. function = "mdc";
  252. bias-pull-up;
  253. };
  254. };
  255. nand_pins: nand_pins {
  256. pullups {
  257. pins = "gpio52", "gpio53", "gpio58",
  258. "gpio59";
  259. function = "qpic";
  260. bias-pull-up;
  261. };
  262. pulldowns {
  263. pins = "gpio54", "gpio55", "gpio56",
  264. "gpio57", "gpio60", "gpio61",
  265. "gpio62", "gpio63", "gpio64",
  266. "gpio65", "gpio66", "gpio67",
  267. "gpio68", "gpio69";
  268. function = "qpic";
  269. bias-pull-down;
  270. };
  271. };
  272. };
  273. &usb3_ss_phy {
  274. status = "okay";
  275. };
  276. &usb3_hs_phy {
  277. status = "okay";
  278. };
  279. &usb2_hs_phy {
  280. status = "okay";
  281. };
  282. &wifi0 {
  283. status = "okay";
  284. qcom,ath10k-calibration-variant = "CM520-79F";
  285. };
  286. &wifi1 {
  287. status = "okay";
  288. qcom,ath10k-calibration-variant = "CM520-79F";
  289. };