2
0

qcom-ipq4018-wac510.dts 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /* Copyright (c) 2020, Robert Marko <[email protected]> */
  3. #include "qcom-ipq4019.dtsi"
  4. #include <dt-bindings/gpio/gpio.h>
  5. #include <dt-bindings/input/input.h>
  6. #include <dt-bindings/soc/qcom,tcsr.h>
  7. / {
  8. model = "Netgear WAC510";
  9. compatible = "netgear,wac510";
  10. aliases {
  11. led-boot = &led_power_amber;
  12. led-failsafe = &led_power_amber;
  13. led-running = &led_power_green;
  14. led-upgrade = &led_power_amber;
  15. label-mac-device = &gmac0;
  16. };
  17. chosen {
  18. bootargs-append = " root=/dev/ubiblock0_1";
  19. };
  20. soc {
  21. rng@22000 {
  22. status = "okay";
  23. };
  24. ess-psgmii@98000 {
  25. status = "okay";
  26. };
  27. counter@4a1000 {
  28. compatible = "qcom,qca-gcnt";
  29. reg = <0x4a1000 0x4>;
  30. };
  31. tcsr@1949000 {
  32. compatible = "qcom,tcsr";
  33. reg = <0x1949000 0x100>;
  34. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  35. };
  36. tcsr@194b000 {
  37. status = "okay";
  38. compatible = "qcom,tcsr";
  39. reg = <0x194b000 0x100>;
  40. qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
  41. };
  42. ess_tcsr@1953000 {
  43. compatible = "qcom,tcsr";
  44. reg = <0x1953000 0x1000>;
  45. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  46. };
  47. tcsr@1957000 {
  48. compatible = "qcom,tcsr";
  49. reg = <0x1957000 0x100>;
  50. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  51. };
  52. usb2: usb2@60f8800 {
  53. status = "okay";
  54. };
  55. usb3: usb3@8af8800 {
  56. status = "okay";
  57. };
  58. crypto@8e3a000 {
  59. status = "okay";
  60. };
  61. watchdog@b017000 {
  62. status = "okay";
  63. };
  64. ess-switch@c000000 {
  65. status = "okay";
  66. };
  67. edma@c080000 {
  68. status = "okay";
  69. };
  70. };
  71. keys {
  72. compatible = "gpio-keys";
  73. reset {
  74. label = "reset";
  75. gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
  76. linux,code = <KEY_RESTART>;
  77. };
  78. };
  79. led_spi {
  80. compatible = "spi-gpio";
  81. #address-cells = <1>;
  82. #size-cells = <0>;
  83. sck-gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
  84. mosi-gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
  85. num-chipselects = <0>;
  86. ssr: ssr@0 {
  87. compatible = "fairchild,74hc595";
  88. reg = <0>;
  89. gpio-controller;
  90. #gpio-cells = <2>;
  91. registers-number = <1>;
  92. spi-max-frequency = <1000000>;
  93. };
  94. };
  95. leds {
  96. compatible = "gpio-leds";
  97. led_power_amber: power_amber {
  98. label = "amber:power";
  99. gpios = <&ssr 6 GPIO_ACTIVE_LOW>;
  100. panic-indicator;
  101. };
  102. led_power_green: power_green {
  103. label = "green:power";
  104. gpios = <&ssr 5 GPIO_ACTIVE_LOW>;
  105. };
  106. wlan2g_blue {
  107. label = "blue:wlan2g";
  108. gpios = <&ssr 4 GPIO_ACTIVE_LOW>;
  109. linux,default-trigger = "phy0tpt";
  110. };
  111. wlan2g_green {
  112. label = "green:wlan2g";
  113. gpios = <&ssr 3 GPIO_ACTIVE_LOW>;
  114. linux,default-trigger = "phy0radio";
  115. };
  116. wlan5g_blue {
  117. label = "blue:wlan5g";
  118. gpios = <&ssr 2 GPIO_ACTIVE_LOW>;
  119. linux,default-trigger = "phy1tpt";
  120. };
  121. wlan5g_green {
  122. label = "green:wlan5g";
  123. gpios = <&ssr 1 GPIO_ACTIVE_LOW>;
  124. linux,default-trigger = "phy1radio";
  125. };
  126. act_green {
  127. label = "green:act";
  128. gpios = <&ssr 0 GPIO_ACTIVE_LOW>;
  129. };
  130. };
  131. };
  132. &qpic_bam {
  133. status = "okay";
  134. };
  135. &tlmm {
  136. mdio_pins: mdio_pinmux {
  137. mux_1 {
  138. pins = "gpio53";
  139. function = "mdio";
  140. bias-pull-up;
  141. };
  142. mux_2 {
  143. pins = "gpio52";
  144. function = "mdc";
  145. bias-pull-up;
  146. };
  147. };
  148. serial_pins: serial_pinmux {
  149. mux {
  150. pins = "gpio60", "gpio61";
  151. function = "blsp_uart0";
  152. bias-disable;
  153. };
  154. };
  155. spi_0_pins: spi_0_pinmux {
  156. pinmux {
  157. function = "blsp_spi0";
  158. pins = "gpio55", "gpio56", "gpio57";
  159. drive-strength = <12>;
  160. bias-disable;
  161. };
  162. pinmux_cs {
  163. function = "gpio";
  164. pins = "gpio54", "gpio59";
  165. drive-strength = <2>;
  166. bias-disable;
  167. output-high;
  168. };
  169. };
  170. };
  171. &blsp_dma {
  172. status = "okay";
  173. };
  174. &blsp1_spi1 {
  175. status = "okay";
  176. pinctrl-0 = <&spi_0_pins>;
  177. pinctrl-names = "default";
  178. cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
  179. <&tlmm 59 GPIO_ACTIVE_HIGH>;
  180. flash@0 {
  181. compatible = "jedec,spi-nor";
  182. spi-max-frequency = <50000000>;
  183. reg = <0>;
  184. partitions {
  185. compatible = "fixed-partitions";
  186. #address-cells = <1>;
  187. #size-cells = <1>;
  188. partition@0 {
  189. label = "0:SBL1";
  190. reg = <0x00000000 0x00040000>;
  191. read-only;
  192. };
  193. partition@40000 {
  194. label = "0:MIBIB";
  195. reg = <0x00040000 0x00020000>;
  196. read-only;
  197. };
  198. partition@60000 {
  199. label = "0:QSEE";
  200. reg = <0x00060000 0x00060000>;
  201. read-only;
  202. };
  203. partition@c0000 {
  204. label = "0:CDT";
  205. reg = <0x000c0000 0x00010000>;
  206. read-only;
  207. };
  208. partition@d0000 {
  209. label = "0:DDRPARAMS";
  210. reg = <0x000d0000 0x00010000>;
  211. read-only;
  212. };
  213. partition@e0000 {
  214. label = "0:APPSBLENV";
  215. reg = <0x000e0000 0x00010000>;
  216. };
  217. partition@f0000 {
  218. label = "0:APPSBL";
  219. reg = <0x000f0000 0x000f0000>;
  220. read-only;
  221. };
  222. partition@1e0000 {
  223. label = "0:MANUDATA";
  224. reg = <0x001e0000 0x00010000>;
  225. read-only;
  226. };
  227. partition@1f0000 {
  228. label = "0:ART";
  229. reg = <0x001f0000 0x00010000>;
  230. read-only;
  231. };
  232. };
  233. };
  234. nand@1 {
  235. compatible = "spi-nand";
  236. reg = <1>;
  237. spi-max-frequency = <48000000>;
  238. partitions {
  239. compatible = "fixed-partitions";
  240. #address-cells = <1>;
  241. #size-cells = <1>;
  242. partition@0 {
  243. label = "rootfs";
  244. reg = <0x00000000 0x03800000>;
  245. };
  246. partition@3800000 {
  247. label = "rootfs_1";
  248. reg = <0x03800000 0x03800000>;
  249. };
  250. partition@7000000 {
  251. label = "var_config";
  252. reg = <0x07000000 0x00f00000>;
  253. read-only;
  254. };
  255. partition@7f00000 {
  256. label = "Oops_log";
  257. reg = <0x07f00000 0x000c0000>;
  258. read-only;
  259. };
  260. };
  261. };
  262. };
  263. &blsp1_uart1 {
  264. status = "okay";
  265. pinctrl-0 = <&serial_pins>;
  266. pinctrl-names = "default";
  267. };
  268. &cryptobam {
  269. status = "okay";
  270. };
  271. &mdio {
  272. status = "okay";
  273. pinctrl-0 = <&mdio_pins>;
  274. pinctrl-names = "default";
  275. reset-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
  276. reset-delay-us = <2000>;
  277. };
  278. &gmac0 {
  279. qcom,forced_duplex = <1>;
  280. qcom,forced_speed = <1000>;
  281. qcom,phy_mdio_addr = <3>;
  282. qcom,poll_required = <1>;
  283. vlan_tag = <1 0x10>;
  284. };
  285. &wifi0 {
  286. status = "okay";
  287. qcom,ath10k-calibration-variant = "Netgear-WAC510";
  288. };
  289. &wifi1 {
  290. status = "okay";
  291. qcom,ath10k-calibration-variant = "Netgear-WAC510";
  292. };
  293. &usb3_ss_phy {
  294. status = "okay";
  295. };
  296. &usb3_hs_phy {
  297. status = "okay";
  298. };
  299. &usb2_hs_phy {
  300. status = "okay";
  301. };