qcom-ipq4019-map-ac2200.dts 5.2 KB

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