qcom-ipq4019-map-ac2200.dts 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  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 = "ASUS Lyra MAP-AC2200";
  9. compatible = "asus,map-ac2200";
  10. aliases {
  11. led-boot = &led_blue0;
  12. led-failsafe = &led_red0;
  13. led-running = &led_blue0;
  14. led-upgrade = &led_red0;
  15. ethernet1 = &swport4;
  16. };
  17. soc {
  18. rng@22000 {
  19. status = "okay";
  20. };
  21. mdio@90000 {
  22. status = "okay";
  23. };
  24. tcsr@1949000 {
  25. compatible = "qcom,tcsr";
  26. reg = <0x1949000 0x100>;
  27. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  28. };
  29. ess_tcsr@1953000 {
  30. compatible = "qcom,tcsr";
  31. reg = <0x1953000 0x1000>;
  32. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  33. };
  34. tcsr@1957000 {
  35. compatible = "qcom,tcsr";
  36. reg = <0x1957000 0x100>;
  37. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  38. };
  39. usb2@60f8800 {
  40. status = "okay";
  41. };
  42. crypto@8e3a000 {
  43. status = "okay";
  44. };
  45. watchdog@b017000 {
  46. status = "okay";
  47. };
  48. };
  49. keys {
  50. compatible = "gpio-keys";
  51. reset {
  52. label = "reset";
  53. gpios = <&tlmm 34 GPIO_ACTIVE_LOW>;
  54. linux,code = <KEY_RESTART>;
  55. };
  56. wps {
  57. label = "wps";
  58. gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
  59. linux,code = <KEY_WPS_BUTTON>;
  60. };
  61. };
  62. };
  63. &nand {
  64. pinctrl-0 = <&nand_pins>;
  65. pinctrl-names = "default";
  66. status = "okay";
  67. nand@0 {
  68. partitions {
  69. compatible = "fixed-partitions";
  70. #address-cells = <1>;
  71. #size-cells = <1>;
  72. partition@0 {
  73. label = "SBL1";
  74. reg = <0x0 0x80000>;
  75. read-only;
  76. };
  77. partition@80000 {
  78. label = "MIBIB";
  79. reg = <0x80000 0x80000>;
  80. read-only;
  81. };
  82. partition@100000 {
  83. label = "QSEE";
  84. reg = <0x100000 0x100000>;
  85. read-only;
  86. };
  87. partition@200000 {
  88. label = "CDT";
  89. reg = <0x200000 0x80000>;
  90. read-only;
  91. };
  92. partition@280000 {
  93. label = "APPSBL";
  94. reg = <0x280000 0x140000>;
  95. read-only;
  96. };
  97. partition@3c0000 {
  98. label = "APPSBLENV";
  99. reg = <0x3c0000 0x40000>;
  100. read-only;
  101. };
  102. partition@400000 {
  103. label = "ubi";
  104. reg = <0x400000 0x7c00000>;
  105. };
  106. };
  107. };
  108. };
  109. &tlmm {
  110. i2c_0_pins: i2c_0_pinmux {
  111. pinmux {
  112. function = "blsp_i2c0";
  113. pins = "gpio20", "gpio21";
  114. drive-strength = <16>;
  115. bias-disable;
  116. };
  117. };
  118. serial_pins: serial_pinmux {
  119. mux {
  120. pins = "gpio16", "gpio17";
  121. function = "blsp_uart0";
  122. bias-disable;
  123. };
  124. };
  125. nand_pins: nand_pins {
  126. pullups {
  127. pins = "gpio52", "gpio53", "gpio58",
  128. "gpio59";
  129. function = "qpic";
  130. bias-pull-up;
  131. };
  132. pulldowns {
  133. pins = "gpio54", "gpio55", "gpio56",
  134. "gpio57", "gpio60", "gpio61",
  135. "gpio62", "gpio63", "gpio64",
  136. "gpio65", "gpio66", "gpio67",
  137. "gpio68", "gpio69";
  138. function = "qpic";
  139. bias-pull-down;
  140. };
  141. };
  142. enable_ext_pa_high {
  143. gpio-hog;
  144. gpios = <44 GPIO_ACTIVE_HIGH>,
  145. <46 GPIO_ACTIVE_HIGH>;
  146. output-high;
  147. bias-pull-down;
  148. line-name = "enable external PA output-high";
  149. };
  150. enable_ext_pa_low {
  151. gpio-hog;
  152. gpios = <45 GPIO_ACTIVE_HIGH>,
  153. <47 GPIO_ACTIVE_HIGH>;
  154. output-low;
  155. bias-pull-down;
  156. line-name = "enable external PA output-low";
  157. };
  158. };
  159. &cryptobam {
  160. status = "okay";
  161. };
  162. &blsp_dma {
  163. status = "okay";
  164. };
  165. &qpic_bam {
  166. status = "okay";
  167. };
  168. &wifi0 {
  169. status = "okay";
  170. qcom,ath10k-calibration-variant = "ASUS-MAP-AC2200";
  171. };
  172. &wifi1 {
  173. status = "okay";
  174. qcom,ath10k-calibration-variant = "ASUS-MAP-AC2200";
  175. ieee80211-freq-limit = <5470000 5875000>;
  176. };
  177. &pcie0 {
  178. status = "okay";
  179. perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
  180. wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
  181. bridge@0,0 {
  182. reg = <0x00000000 0 0 0 0>;
  183. #address-cells = <3>;
  184. #size-cells = <2>;
  185. ranges;
  186. wifi2: wifi@1,0 {
  187. compatible = "qcom,ath10k";
  188. status = "okay";
  189. reg = <0x00010000 0 0 0 0>;
  190. qcom,ath10k-calibration-variant = "ASUS-MAP-AC2200";
  191. ieee80211-freq-limit = <5170000 5350000>;
  192. };
  193. };
  194. };
  195. &usb2_hs_phy {
  196. /* Bluetooth module attached via USB */
  197. status = "okay";
  198. };
  199. &blsp1_i2c3 {
  200. pinctrl-0 = <&i2c_0_pins>;
  201. pinctrl-names = "default";
  202. status = "okay";
  203. led-controller@32 {
  204. /* 9-channel RGB LED controller */
  205. compatible = "national,lp5523";
  206. reg = <0x32>;
  207. clock-mode = /bits/ 8 <1>;
  208. #address-cells = <1>;
  209. #size-cells = <0>;
  210. /*
  211. * There is only one single extremely bright RGB-LED.
  212. * The RGB-color channels are running in parallel to
  213. * increase the current delivery capabilities beyond
  214. * what a single PWM-output of the controller can do.
  215. */
  216. led_blue0: led@0 {
  217. chan-name = "blue-0";
  218. led-cur = /bits/ 8 <0xfa>;
  219. max-cur = /bits/ 8 <0xff>;
  220. reg = <0>;
  221. color = <LED_COLOR_ID_BLUE>;
  222. function-enumerator = <0>;
  223. };
  224. led@1 {
  225. chan-name = "blue-1";
  226. led-cur = /bits/ 8 <0xfa>;
  227. max-cur = /bits/ 8 <0xff>;
  228. reg = <1>;
  229. color = <LED_COLOR_ID_BLUE>;
  230. function-enumerator = <1>;
  231. };
  232. led@2 {
  233. chan-name = "blue-2";
  234. led-cur = /bits/ 8 <0xfa>;
  235. max-cur = /bits/ 8 <0xff>;
  236. reg = <2>;
  237. color = <LED_COLOR_ID_BLUE>;
  238. function-enumerator = <2>;
  239. };
  240. led_green0: led@3 {
  241. chan-name = "green-0";
  242. led-cur = /bits/ 8 <0xfa>;
  243. max-cur = /bits/ 8 <0xff>;
  244. reg = <3>;
  245. color = <LED_COLOR_ID_GREEN>;
  246. function-enumerator = <0>;
  247. };
  248. led@4 {
  249. chan-name = "green-1";
  250. led-cur = /bits/ 8 <0xfa>;
  251. max-cur = /bits/ 8 <0xff>;
  252. reg = <4>;
  253. color = <LED_COLOR_ID_GREEN>;
  254. function-enumerator = <1>;
  255. };
  256. led@5 {
  257. chan-name = "green-2";
  258. led-cur = /bits/ 8 <0xfa>;
  259. max-cur = /bits/ 8 <0xff>;
  260. reg = <5>;
  261. color = <LED_COLOR_ID_GREEN>;
  262. function-enumerator = <2>;
  263. };
  264. led_red0: led@6 {
  265. chan-name = "red-0";
  266. led-cur = /bits/ 8 <0xfa>;
  267. max-cur = /bits/ 8 <0xff>;
  268. reg = <6>;
  269. color = <LED_COLOR_ID_RED>;
  270. function-enumerator = <0>;
  271. };
  272. led@7 {
  273. chan-name = "red-1";
  274. led-cur = /bits/ 8 <0xfa>;
  275. max-cur = /bits/ 8 <0xff>;
  276. reg = <7>;
  277. color = <LED_COLOR_ID_RED>;
  278. function-enumerator = <1>;
  279. };
  280. led@8 {
  281. chan-name = "red-2";
  282. led-cur = /bits/ 8 <0xfa>;
  283. max-cur = /bits/ 8 <0xff>;
  284. reg = <8>;
  285. color = <LED_COLOR_ID_RED>;
  286. function-enumerator = <2>;
  287. };
  288. };
  289. };
  290. &blsp1_uart1 {
  291. pinctrl-0 = <&serial_pins>;
  292. pinctrl-names = "default";
  293. status = "okay";
  294. };
  295. &gmac {
  296. status = "okay";
  297. };
  298. &switch {
  299. status = "okay";
  300. };
  301. &swport4 {
  302. status = "okay";
  303. label = "wan";
  304. };
  305. &swport5 {
  306. status = "okay";
  307. label = "lan";
  308. };