qcom-ipq4018-ea6350v3.dts 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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 = "Linksys EA6350v3";
  8. compatible = "linksys,ea6350v3", "qcom,ipq4019";
  9. aliases {
  10. led-boot = &power;
  11. led-failsafe = &power;
  12. led-running = &power;
  13. led-upgrade = &power;
  14. };
  15. soc {
  16. mdio@90000 {
  17. status = "okay";
  18. };
  19. ess-psgmii@98000 {
  20. status = "okay";
  21. };
  22. tcsr@1949000 {
  23. compatible = "qcom,tcsr";
  24. reg = <0x1949000 0x100>;
  25. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  26. };
  27. tcsr@194b000 {
  28. compatible = "qcom,tcsr";
  29. reg = <0x194b000 0x100>;
  30. qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
  31. };
  32. ess_tcsr@1953000 {
  33. compatible = "qcom,tcsr";
  34. reg = <0x1953000 0x1000>;
  35. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  36. };
  37. tcsr@1957000 {
  38. compatible = "qcom,tcsr";
  39. reg = <0x1957000 0x100>;
  40. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  41. };
  42. usb2@60f8800 {
  43. status = "okay";
  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. };
  60. };
  61. keys {
  62. compatible = "gpio-keys";
  63. reset {
  64. label = "reset";
  65. gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
  66. linux,code = <KEY_RESTART>;
  67. };
  68. wps {
  69. label = "wps";
  70. gpios = <&tlmm 0 GPIO_ACTIVE_LOW>;
  71. linux,code = <KEY_WPS_BUTTON>;
  72. };
  73. };
  74. leds {
  75. compatible = "gpio-leds";
  76. power: status {
  77. label = "EA6350v3:green:status";
  78. gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
  79. };
  80. };
  81. };
  82. &blsp1_uart1 {
  83. pinctrl-0 = <&serial_pins>;
  84. pinctrl-names = "default";
  85. status = "okay";
  86. };
  87. &cryptobam {
  88. status = "okay";
  89. };
  90. &wifi0 {
  91. status = "okay";
  92. qcom,ath10k-calibration-variant = "linksys-ea6350v3";
  93. };
  94. &wifi1 {
  95. status = "okay";
  96. qcom,ath10k-calibration-variant = "linksys-ea6350v3";
  97. };
  98. &blsp_dma {
  99. status = "okay";
  100. };
  101. &tlmm {
  102. serial_pins: serial_pinmux {
  103. mux {
  104. pins = "gpio60", "gpio61";
  105. function = "blsp_uart0";
  106. bias-disable;
  107. };
  108. };
  109. spi_0_pins: spi_0_pinmux {
  110. mux {
  111. function = "blsp_spi0";
  112. pins = "gpio55", "gpio56", "gpio57";
  113. drive-strength = <12>;
  114. bias-disable;
  115. };
  116. mux_cs {
  117. function = "gpio";
  118. pins = "gpio54", "gpio59";
  119. drive-strength = <2>;
  120. bias-disable;
  121. output-high;
  122. };
  123. };
  124. };
  125. &blsp1_spi1 { /* BLSP1 QUP1 */
  126. pinctrl-0 = <&spi_0_pins>;
  127. pinctrl-names = "default";
  128. status = "okay";
  129. cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
  130. <&tlmm 59 GPIO_ACTIVE_HIGH>;
  131. flash@0 {
  132. compatible = "jedec,spi-nor";
  133. reg = <0>;
  134. spi-max-frequency = <24000000>;
  135. partitions {
  136. compatible = "fixed-partitions";
  137. #address-cells = <1>;
  138. #size-cells = <1>;
  139. SBL1@0 {
  140. label = "SBL1";
  141. reg = <0x00000000 0x00040000>;
  142. read-only;
  143. };
  144. MBIB@40000 {
  145. label = "MIBIB";
  146. reg = <0x00040000 0x00020000>;
  147. read-only;
  148. };
  149. QSEE@60000 {
  150. label = "QSEE";
  151. reg = <0x00060000 0x00060000>;
  152. read-only;
  153. };
  154. CDT@c0000 {
  155. label = "CDT";
  156. reg = <0x000c0000 0x00010000>;
  157. read-only;
  158. };
  159. APPSBLENV@d0000 {
  160. label = "APPSBLENV";
  161. reg = <0x000d0000 0x00010000>;
  162. read-only;
  163. };
  164. APPSBL@e0000 {
  165. label = "APPSBL"; /* uboot */
  166. reg = <0x000e0000 0x00080000>;
  167. read-only;
  168. };
  169. ART@160000 {
  170. label = "ART";
  171. reg = <0x00160000 0x00010000>;
  172. read-only;
  173. };
  174. u_env@170000 {
  175. label = "u_env";
  176. reg = <0x00170000 0x00020000>;
  177. };
  178. s_env@190000 {
  179. label = "s_env";
  180. reg = <0x00190000 0x00020000>;
  181. };
  182. devinfo@1b0000 {
  183. label = "devinfo";
  184. reg = <0x001b0000 0x00010000>;
  185. };
  186. /* 0x001c0000 - 0x00200000 unused */
  187. };
  188. };
  189. flash@1 {
  190. status = "okay";
  191. compatible = "spinand,mt29f", "w25n01gv";
  192. reg = <1>;
  193. spi-max-frequency = <24000000>;
  194. partitions {
  195. compatible = "fixed-partitions";
  196. #address-cells = <1>;
  197. #size-cells = <1>;
  198. kernel@0 {
  199. label = "kernel";
  200. reg = <0x00000000 0x02800000>;
  201. };
  202. rootfs@300000 {
  203. label = "rootfs";
  204. reg = <0x00300000 0x02500000>;
  205. };
  206. alt_kernel@2800000 {
  207. label = "alt_kernel";
  208. reg = <0x02800000 0x02800000>;
  209. };
  210. alt_rootfs@2b00000 {
  211. label = "alt_rootfs";
  212. reg = <0x02b00000 0x02500000>;
  213. };
  214. sysdiag@5000000 {
  215. label = "sysdiag";
  216. reg = <0x05000000 0x00100000>;
  217. };
  218. syscfg@5100000 {
  219. label = "syscfg";
  220. reg = <0x05100000 0x02F00000>;
  221. };
  222. /* 0x00000000 - 0x08000000: 128 MiB */
  223. };
  224. };
  225. };
  226. &usb3_ss_phy {
  227. status = "okay";
  228. };
  229. &usb3_hs_phy {
  230. status = "okay";
  231. };
  232. &usb2_hs_phy {
  233. status = "okay";
  234. };