qcom-ipq4019-orbi.dtsi 5.1 KB

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