2
0

qcom-ipq4019-orbi.dtsi 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  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/leds/common.h>
  6. #include <dt-bindings/soc/qcom,tcsr.h>
  7. / {
  8. aliases {
  9. led-boot = &led_status_white;
  10. led-failsafe = &led_status_red;
  11. led-running = &led_status_green;
  12. led-upgrade = &led_status_blue;
  13. label-mac-device = &gmac;
  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. };
  24. counter@4a1000 {
  25. compatible = "qcom,qca-gcnt";
  26. reg = <0x4a1000 0x4>;
  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. status = "okay";
  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. crypto@8e3a000 {
  50. status = "okay";
  51. };
  52. watchdog@b017000 {
  53. status = "okay";
  54. };
  55. };
  56. keys {
  57. compatible = "gpio-keys";
  58. reset {
  59. label = "reset";
  60. gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
  61. linux,code = <KEY_RESTART>;
  62. };
  63. wps {
  64. label = "wps";
  65. gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
  66. linux,code = <KEY_WPS_BUTTON>;
  67. };
  68. };
  69. leds {
  70. compatible = "gpio-leds";
  71. led-0 {
  72. function = LED_FUNCTION_POWER;
  73. color = <LED_COLOR_ID_GREEN>;
  74. gpios = <&tlmm 63 GPIO_ACTIVE_HIGH>;
  75. default-state = "on";
  76. };
  77. led-1 {
  78. function = LED_FUNCTION_POWER;
  79. color = <LED_COLOR_ID_RED>;
  80. gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>;
  81. panic-indicator;
  82. };
  83. led_status_green: led-2 {
  84. function = LED_FUNCTION_STATUS;
  85. color = <LED_COLOR_ID_GREEN>;
  86. gpios = <&tlmm 53 GPIO_ACTIVE_HIGH>;
  87. };
  88. led_status_red: led-3 {
  89. function = LED_FUNCTION_STATUS;
  90. color = <LED_COLOR_ID_RED>;
  91. gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
  92. };
  93. led_status_blue: led-4 {
  94. function = LED_FUNCTION_STATUS;
  95. color = <LED_COLOR_ID_BLUE>;
  96. gpios = <&tlmm 57 GPIO_ACTIVE_HIGH>;
  97. };
  98. led_status_white: led-5 {
  99. function = LED_FUNCTION_STATUS;
  100. color = <LED_COLOR_ID_WHITE>;
  101. gpios = <&tlmm 60 GPIO_ACTIVE_HIGH>;
  102. };
  103. };
  104. };
  105. &vqmmc {
  106. status = "okay";
  107. };
  108. &sdhci {
  109. status = "okay";
  110. pinctrl-0 = <&sd_pins>;
  111. pinctrl-names = "default";
  112. cd-gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
  113. vqmmc-supply = <&vqmmc>;
  114. };
  115. &qpic_bam {
  116. status = "okay";
  117. };
  118. &tlmm {
  119. mdio_pins: mdio_pinmux {
  120. mux_1 {
  121. pins = "gpio6";
  122. function = "mdio";
  123. bias-pull-up;
  124. };
  125. mux_2 {
  126. pins = "gpio7";
  127. function = "mdc";
  128. bias-pull-up;
  129. };
  130. };
  131. serial_pins: serial_pinmux {
  132. mux {
  133. pins = "gpio16", "gpio17";
  134. function = "blsp_uart0";
  135. bias-disable;
  136. };
  137. };
  138. i2c_0_pins: i2c_0_pinmux {
  139. pinmux {
  140. function = "blsp_i2c0";
  141. pins = "gpio58", "gpio59";
  142. bias-disable;
  143. };
  144. };
  145. sd_pins: sd_pins {
  146. pinmux {
  147. function = "sdio";
  148. pins = "gpio23", "gpio24", "gpio25", "gpio26",
  149. "gpio28", "gpio29", "gpio30", "gpio31";
  150. drive-strength = <10>;
  151. };
  152. pinmux_sd_clk {
  153. function = "sdio";
  154. pins = "gpio27";
  155. drive-strength = <16>;
  156. };
  157. pinmux_sd7 {
  158. function = "sdio";
  159. pins = "gpio32";
  160. drive-strength = <10>;
  161. bias-disable;
  162. };
  163. };
  164. };
  165. &blsp_dma {
  166. status = "okay";
  167. };
  168. &blsp1_i2c3 {
  169. pinctrl-0 = <&i2c_0_pins>;
  170. pinctrl-names = "default";
  171. status = "okay";
  172. led-controller@27 {
  173. #address-cells = <1>;
  174. #size-cells = <0>;
  175. compatible = "ti,tlc59108"; /* really is tlc59208f */
  176. reg = <0x27>;
  177. led0@0 {
  178. label = "rgb:led0";
  179. reg = <0x0>;
  180. linux,default-trigger = "default-on";
  181. };
  182. led1@1 {
  183. label = "rgb:led1";
  184. reg = <0x1>;
  185. linux,default-trigger = "default-on";
  186. };
  187. led2@2 {
  188. label = "rgb:led2";
  189. reg = <0x2>;
  190. linux,default-trigger = "default-on";
  191. };
  192. led3@3 {
  193. label = "rgb:led3";
  194. reg = <0x3>;
  195. linux,default-trigger = "default-on";
  196. };
  197. led4@4 {
  198. label = "rgb:led4";
  199. reg = <0x4>;
  200. linux,default-trigger = "default-on";
  201. };
  202. led5@5 {
  203. label = "rgb:led5";
  204. reg = <0x5>;
  205. linux,default-trigger = "default-on";
  206. };
  207. led6@6 {
  208. label = "rgb:led6";
  209. reg = <0x6>;
  210. linux,default-trigger = "default-on";
  211. };
  212. led7@7 {
  213. label = "rgb:led7";
  214. reg = <0x7>;
  215. linux,default-trigger = "default-on";
  216. };
  217. };
  218. };
  219. &blsp1_uart1 {
  220. status = "okay";
  221. pinctrl-0 = <&serial_pins>;
  222. pinctrl-names = "default";
  223. };
  224. &cryptobam {
  225. status = "okay";
  226. };
  227. &gmac {
  228. status = "okay";
  229. };
  230. &switch {
  231. status = "okay";
  232. };
  233. &swport1 {
  234. status = "okay";
  235. label = "wan";
  236. };
  237. &swport2 {
  238. status = "okay";
  239. label = "lan1";
  240. };
  241. &swport3 {
  242. status = "okay";
  243. label = "lan2";
  244. };
  245. &swport4 {
  246. status = "okay";
  247. label = "lan3";
  248. };
  249. &ethphy4 {
  250. status = "disabled";
  251. };
  252. &pcie0 {
  253. status = "okay";
  254. perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
  255. wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
  256. bridge@0,0 {
  257. reg = <0x00000000 0 0 0 0>;
  258. #address-cells = <3>;
  259. #size-cells = <2>;
  260. ranges;
  261. wifi@1,0 {
  262. compatible = "qcom,ath10k";
  263. status = "okay";
  264. reg = <0x00010000 0 0 0 0>;
  265. ieee80211-freq-limit = <5470000 5875000>;
  266. qcom,ath10k-calibration-variant = "Netgear-Orbi-Pro-SRK60";
  267. };
  268. };
  269. };
  270. &wifi0 {
  271. status = "okay";
  272. qcom,ath10k-calibration-variant = "Netgear-Orbi-Pro-SRK60";
  273. };
  274. &wifi1 {
  275. status = "okay";
  276. qcom,ath10k-calibration-variant = "Netgear-Orbi-Pro-SRK60";
  277. };