qcom-ipq4019-whw03v2.dts 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514
  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. #include <dt-bindings/leds/common.h>
  7. / {
  8. model = "Linksys WHW03 V2 (Velop)";
  9. compatible = "linksys,whw03v2", "qcom,ipq4019";
  10. aliases {
  11. led-boot = &led_blue;
  12. led-failsafe = &led_red;
  13. led-running = &led_blue;
  14. led-upgrade = &led_red;
  15. };
  16. // The arguments rootfstype and ro are needed
  17. // to override the default bootargs
  18. chosen {
  19. bootargs-append = " root=/dev/ubiblock0_0 rootfstype=squashfs ro";
  20. stdout-path = &blsp1_uart1;
  21. };
  22. soc {
  23. ess-tcsr@1953000 {
  24. compatible = "qcom,tcsr";
  25. reg = <0x1953000 0x1000>;
  26. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  27. };
  28. tcsr@1949000 {
  29. compatible = "qcom,tcsr";
  30. reg = <0x1949000 0x100>;
  31. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  32. };
  33. tcsr@194b000 {
  34. compatible = "qcom,tcsr";
  35. reg = <0x194b000 0x100>;
  36. qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
  37. };
  38. tcsr@1957000 {
  39. compatible = "qcom,tcsr";
  40. reg = <0x1957000 0x100>;
  41. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  42. };
  43. };
  44. keys {
  45. compatible = "gpio-keys";
  46. reset {
  47. label = "reset";
  48. gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
  49. linux,code = <KEY_RESTART>;
  50. };
  51. };
  52. };
  53. &tlmm {
  54. mdio_pins: mdio-pinmux {
  55. mux-1 {
  56. pins = "gpio6";
  57. function = "mdio";
  58. bias-pull-up;
  59. };
  60. mux-2 {
  61. pins = "gpio7";
  62. function = "mdc";
  63. bias-pull-up;
  64. };
  65. };
  66. i2c_0_pins: i2c-0-pinmux {
  67. mux {
  68. function = "blsp_i2c0";
  69. pins = "gpio20", "gpio21";
  70. bias-disable;
  71. };
  72. };
  73. serial_0_pins: serial0-pinmux {
  74. mux {
  75. pins = "gpio16", "gpio17";
  76. function = "blsp_uart0";
  77. bias-disable;
  78. };
  79. };
  80. serial_1_pins: serial1-pinmux {
  81. mux {
  82. pins = "gpio8", "gpio9", "gpio10", "gpio11";
  83. function = "blsp_uart1";
  84. bias-disable;
  85. };
  86. };
  87. spi_0_pins: spi-0-pinmux {
  88. mux {
  89. function = "blsp_spi0";
  90. pins = "gpio13", "gpio14", "gpio15";
  91. drive-strength = <12>;
  92. bias-disable;
  93. };
  94. mux-cs {
  95. pins = "gpio12";
  96. drive-strength = <2>;
  97. bias-disable;
  98. output-high;
  99. };
  100. };
  101. spi_1_pins: spi-1-pinmux {
  102. mux-1 {
  103. function = "blsp_spi1";
  104. pins = "gpio44", "gpio46","gpio47";
  105. bias-disable;
  106. };
  107. mux-2 {
  108. pins = "gpio31", "gpio45", "gpio49";
  109. function = "gpio";
  110. bias-pull-up;
  111. output-high;
  112. };
  113. host-interrupt {
  114. pins = "gpio42";
  115. function = "gpio";
  116. input;
  117. };
  118. };
  119. wifi_0_pins: wifi0-pinmux {
  120. btcoexist {
  121. bias-pull-up;
  122. drive-strength = <6>;
  123. function = "gpio";
  124. output-high;
  125. pins = "gpio52";
  126. };
  127. };
  128. zigbee-0 {
  129. gpio-hog;
  130. gpios = <29 GPIO_ACTIVE_HIGH>;
  131. bias-disable;
  132. output-low;
  133. };
  134. zigbee-1 {
  135. gpio-hog;
  136. gpios = <50 GPIO_ACTIVE_HIGH>;
  137. bias-disable;
  138. input;
  139. };
  140. bluetooth-enable {
  141. gpio-hog;
  142. gpios = <32 GPIO_ACTIVE_HIGH>;
  143. output-high;
  144. };
  145. };
  146. &mdio {
  147. status = "okay";
  148. pinctrl-0 = <&mdio_pins>;
  149. pinctrl-names = "default";
  150. phy-reset-gpios = <&tlmm 19 GPIO_ACTIVE_LOW>;
  151. };
  152. &ethphy0 {
  153. status = "disabled";
  154. };
  155. &ethphy1 {
  156. status = "disabled";
  157. };
  158. &ethphy2 {
  159. status = "disabled";
  160. };
  161. &ethphy3 {
  162. reg = <0x1b>;
  163. };
  164. &ethphy4 {
  165. reg = <0x1c>;
  166. };
  167. &psgmiiphy {
  168. reg = <0x1d>;
  169. };
  170. &watchdog {
  171. status = "okay";
  172. };
  173. &prng {
  174. status = "okay";
  175. };
  176. &blsp_dma {
  177. status = "okay";
  178. };
  179. &cryptobam {
  180. num-channels = <4>;
  181. qcom,num-ees = <2>;
  182. status = "okay";
  183. };
  184. &crypto {
  185. status = "okay";
  186. };
  187. &blsp1_uart1 {
  188. status = "okay";
  189. pinctrl-0 = <&serial_0_pins>;
  190. pinctrl-names = "default";
  191. };
  192. &blsp1_uart2 {
  193. status = "okay";
  194. pinctrl-0 = <&serial_1_pins>;
  195. pinctrl-names = "default";
  196. bluetooth {
  197. compatible = "csr,8811";
  198. enable-gpios = <&tlmm 32 GPIO_ACTIVE_HIGH>;
  199. };
  200. };
  201. &blsp1_spi2 {
  202. pinctrl-0 = <&spi_1_pins>;
  203. pinctrl-names = "default";
  204. status = "okay";
  205. cs-gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
  206. zigbee@0 {
  207. #address-cells = <1>;
  208. #size-cells = <0>;
  209. compatible = "silabs,em3581";
  210. reg = <0>;
  211. spi-max-frequency = <12000000>;
  212. };
  213. };
  214. &blsp1_i2c3 {
  215. pinctrl-0 = <&i2c_0_pins>;
  216. pinctrl-names = "default";
  217. status = "okay";
  218. // RGB LEDs
  219. pca9633: led-controller@62 {
  220. compatible = "nxp,pca9633";
  221. nxp,hw-blink;
  222. reg = <0x62>;
  223. #address-cells = <1>;
  224. #size-cells = <0>;
  225. led_red: red@0 {
  226. color = <LED_COLOR_ID_RED>;
  227. function = LED_FUNCTION_INDICATOR;
  228. reg = <0>;
  229. };
  230. led_green: green@1 {
  231. color = <LED_COLOR_ID_GREEN>;
  232. function = LED_FUNCTION_INDICATOR;
  233. reg = <1>;
  234. };
  235. led_blue: blue@2 {
  236. color = <LED_COLOR_ID_BLUE>;
  237. function = LED_FUNCTION_INDICATOR;
  238. reg = <2>;
  239. };
  240. };
  241. };
  242. &usb3_ss_phy {
  243. status = "okay";
  244. };
  245. &usb3_hs_phy {
  246. status = "okay";
  247. };
  248. &usb2_hs_phy {
  249. status = "okay";
  250. };
  251. &nand {
  252. status = "okay";
  253. nand@0 {
  254. partitions {
  255. compatible = "fixed-partitions";
  256. #address-cells = <1>;
  257. #size-cells = <1>;
  258. partition@0 {
  259. label = "SBL1";
  260. reg = <0x0 0x100000>;
  261. read-only;
  262. };
  263. partition@100000 {
  264. label = "MIBIB";
  265. reg = <0x100000 0x100000>;
  266. read-only;
  267. };
  268. partition@200000 {
  269. label = "QSEE";
  270. reg = <0x200000 0x100000>;
  271. read-only;
  272. };
  273. partition@300000 {
  274. label = "CDT";
  275. reg = <0x300000 0x80000>;
  276. read-only;
  277. };
  278. partition@380000 {
  279. label = "APPSBL";
  280. reg = <0x380000 0x200000>;
  281. read-only;
  282. };
  283. partition@580000 {
  284. label = "ART";
  285. reg = <0x580000 0x80000>;
  286. read-only;
  287. nvmem-layout {
  288. compatible = "fixed-layout";
  289. #address-cells = <1>;
  290. #size-cells = <1>;
  291. macaddr_gmac0: macaddr@0 {
  292. compatible = "mac-base";
  293. reg = <0x0 0x6>;
  294. #nvmem-cell-cells = <1>;
  295. };
  296. macaddr_gmac1: macaddr@6 {
  297. reg = <0x6 0x6>;
  298. };
  299. precal_art_1000: precal@1000 {
  300. reg = <0x1000 0x2f20>;
  301. };
  302. precal_art_5000: precal@5000 {
  303. reg = <0x5000 0x2f20>;
  304. };
  305. precal_art_9000: precal@9000 {
  306. reg = <0x9000 0x2f20>;
  307. };
  308. };
  309. };
  310. partition@600000 {
  311. label = "u_env";
  312. reg = <0x600000 0x80000>;
  313. };
  314. partition@680000 {
  315. label = "s_env";
  316. reg = <0x680000 0x40000>;
  317. };
  318. partition@6c0000 {
  319. label = "devinfo";
  320. reg = <0x6c0000 0x40000>;
  321. read-only;
  322. };
  323. partition@700000 {
  324. label = "kernel";
  325. reg = <0x700000 0xa100000>;
  326. };
  327. partition@d00000 {
  328. label = "rootfs";
  329. reg = <0xd00000 0x9b00000>;
  330. };
  331. partition@a800000 {
  332. label = "alt_kernel";
  333. reg = <0xa800000 0xa100000>;
  334. };
  335. partition@ae00000 {
  336. label = "alt_rootfs";
  337. reg = <0xae00000 0x9b00000>;
  338. };
  339. partition@14900000 {
  340. label = "sysdiag";
  341. reg = <0x14900000 0x200000>;
  342. read-only;
  343. };
  344. partition@14b00000 {
  345. label = "syscfg";
  346. reg = <0x14b00000 0xb500000>;
  347. read-only;
  348. };
  349. };
  350. };
  351. };
  352. &pcie0 {
  353. status = "okay";
  354. perst-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
  355. wake-gpios = <&tlmm 40 GPIO_ACTIVE_LOW>;
  356. clkreq-gpios = <&tlmm 39 GPIO_ACTIVE_LOW>;
  357. bridge@0,0 {
  358. reg = <0x00000000 0 0 0 0>;
  359. #address-cells = <3>;
  360. #size-cells = <2>;
  361. ranges;
  362. wifi2: wifi@1,0 {
  363. compatible = "qcom,ath10k";
  364. reg = <0x00010000 0 0 0 0>;
  365. };
  366. };
  367. };
  368. &qpic_bam {
  369. status = "okay";
  370. };
  371. &gmac {
  372. status = "okay";
  373. };
  374. &switch {
  375. status = "okay";
  376. };
  377. &swport4 {
  378. status = "okay";
  379. label = "lan";
  380. nvmem-cell-names = "mac-address";
  381. nvmem-cells = <&macaddr_gmac1>;
  382. };
  383. &swport5 {
  384. status = "okay";
  385. label = "wan";
  386. nvmem-cell-names = "mac-address";
  387. nvmem-cells = <&macaddr_gmac0 0>;
  388. };
  389. &wifi0 {
  390. pinctrl-0 = <&wifi_0_pins>;
  391. pinctrl-names = "default";
  392. status = "okay";
  393. qcom,coexist-support = <1>;
  394. qcom,coexist-gpio-pin = <0x34>;
  395. qcom,ath10k-calibration-variant = "linksys-whw03v2";
  396. nvmem-cell-names = "pre-calibration", "mac-address";
  397. nvmem-cells = <&precal_art_1000>, <&macaddr_gmac0 1>;
  398. };
  399. &wifi1 {
  400. status = "okay";
  401. ieee80211-freq-limit = <5170000 5330000>;
  402. qcom,ath10k-calibration-variant = "linksys-whw03v2";
  403. nvmem-cell-names = "pre-calibration", "mac-address";
  404. nvmem-cells = <&precal_art_5000>, <&macaddr_gmac0 2>;
  405. };
  406. &wifi2 {
  407. status = "okay";
  408. ieee80211-freq-limit = <5490000 5835000>;
  409. qcom,ath10k-calibration-variant = "linksys-whw03v2";
  410. nvmem-cell-names = "pre-calibration", "mac-address";
  411. nvmem-cells = <&precal_art_9000>, <&macaddr_gmac0 3>;
  412. };