qcom-ipq4029-ap-303h.dts 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  1. // SPDX-License-Identifier: GPL-2.0-only 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 = "Aruba AP-303H";
  8. compatible = "aruba,ap-303h";
  9. aliases {
  10. led-boot = &led_system_green;
  11. led-failsafe = &led_system_red;
  12. led-running = &led_system_green;
  13. led-upgrade = &led_system_amber;
  14. };
  15. memory {
  16. device_type = "memory";
  17. reg = <0x80000000 0x10000000>;
  18. };
  19. soc {
  20. rng@22000 {
  21. status = "okay";
  22. };
  23. mdio@90000 {
  24. status = "okay";
  25. pinctrl-0 = <&mdio_pins>;
  26. pinctrl-names = "default";
  27. reset-gpios = <&tlmm 19 GPIO_ACTIVE_LOW>;
  28. reset-delay-us = <2000>;
  29. };
  30. counter@4a1000 {
  31. compatible = "qcom,qca-gcnt";
  32. reg = <0x4a1000 0x4>;
  33. };
  34. ess_tcsr@1953000 {
  35. compatible = "qcom,tcsr";
  36. reg = <0x1953000 0x1000>;
  37. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  38. };
  39. tcsr@1949000 {
  40. compatible = "qcom,tcsr";
  41. reg = <0x1949000 0x100>;
  42. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  43. };
  44. tcsr@194b000 {
  45. compatible = "qcom,tcsr";
  46. reg = <0x194b000 0x100>;
  47. qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
  48. };
  49. tcsr@1957000 {
  50. compatible = "qcom,tcsr";
  51. reg = <0x1957000 0x100>;
  52. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  53. };
  54. usb2@60f8800 {
  55. status = "okay";
  56. };
  57. crypto@8e3a000 {
  58. status = "okay";
  59. };
  60. watchdog@b017000 {
  61. status = "okay";
  62. };
  63. ess-switch@c000000 {
  64. status = "okay";
  65. };
  66. edma@c080000 {
  67. status = "okay";
  68. };
  69. i2c_0: i2c@78b7000 {
  70. pinctrl-0 = <&i2c_0_pins>;
  71. pinctrl-names = "default";
  72. status = "okay";
  73. tpm@29 {
  74. /* No Driver */
  75. compatible = "atmel,at97sc3203";
  76. reg = <0x29>;
  77. read-only;
  78. };
  79. power-monitor@40 {
  80. /* No driver */
  81. compatible = "isl,isl28022";
  82. reg = <0x40>;
  83. };
  84. };
  85. };
  86. leds {
  87. compatible = "gpio-leds";
  88. wifi_green {
  89. label = "ap-303h:green:wifi";
  90. gpios = <&tlmm 27 GPIO_ACTIVE_HIGH>;
  91. linux,default-trigger = "phy0tpt";
  92. };
  93. wifi_amber {
  94. label = "ap-303h:amber:wifi";
  95. gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>;
  96. linux,default-trigger = "phy1tpt";
  97. };
  98. pse {
  99. label = "ap-303h:green:pse";
  100. gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>;
  101. };
  102. led_system_red: system_red {
  103. label = "ap-303h:red:system";
  104. gpios = <&tlmm 25 GPIO_ACTIVE_HIGH>;
  105. };
  106. led_system_green: system_green {
  107. label = "ap-303h:green:system";
  108. gpios = <&tlmm 24 GPIO_ACTIVE_HIGH>;
  109. };
  110. led_system_amber: system_amber {
  111. label = "ap-303h:amber:system";
  112. gpios = <&tlmm 26 GPIO_ACTIVE_HIGH>;
  113. };
  114. };
  115. keys {
  116. compatible = "gpio-keys";
  117. reset {
  118. label = "Reset button";
  119. gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
  120. linux,code = <KEY_RESTART>;
  121. };
  122. };
  123. };
  124. &blsp_dma {
  125. status = "okay";
  126. };
  127. &blsp1_uart1 {
  128. pinctrl-0 = <&serial_0_pins>;
  129. pinctrl-names = "default";
  130. status = "okay";
  131. };
  132. &blsp1_uart2 {
  133. /* Texas Instruments CC2540T BLE radio */
  134. pinctrl-0 = <&serial_1_pins>;
  135. pinctrl-names = "default";
  136. status = "okay";
  137. };
  138. &cryptobam {
  139. status = "okay";
  140. };
  141. &qpic_bam {
  142. status = "okay";
  143. };
  144. &tlmm {
  145. /*
  146. * In addition to the Pins listed below,
  147. * the following GPIOs have "features":
  148. * 39 - out - active low to force HW reset
  149. * 32 - out - active low to reset TPM
  150. * 43 - out - active low to reset BLE radio
  151. * 41 - out - pulse to set warm reset status
  152. * 34 - out - active low to enable PSE port
  153. * 22 - in - active low when 802.3at powered
  154. * 29 - in - active high when DC powered
  155. * 40 - in - active low when reset due to cold HW reset
  156. * 30 - in - active low when USB overcurrent detected
  157. * 35 - in - interrupt line for power monitor chip
  158. * 31 - in - active low when PSE port active
  159. */
  160. mdio_pins: mdio_pinmux {
  161. mux_1 {
  162. pins = "gpio6";
  163. function = "mdio";
  164. bias-pull-up;
  165. };
  166. mux_2 {
  167. pins = "gpio7";
  168. function = "mdc";
  169. bias-pull-up;
  170. };
  171. };
  172. spi_0_pins: spi_0_pinmux {
  173. pin {
  174. function = "blsp_spi0";
  175. pins = "gpio13", "gpio14", "gpio15";
  176. drive-strength = <12>;
  177. bias-disable;
  178. };
  179. pin_cs {
  180. function = "gpio";
  181. pins = "gpio12", "gpio59";
  182. drive-strength = <2>;
  183. bias-disable;
  184. output-high;
  185. };
  186. };
  187. i2c_0_pins: i2c_0_pinmux {
  188. mux {
  189. pins = "gpio20", "gpio21";
  190. function = "blsp_i2c0";
  191. drive-strength = <4>;
  192. bias-disable;
  193. };
  194. };
  195. serial_0_pins: serial_0_pinmux {
  196. mux {
  197. pins = "gpio16", "gpio17";
  198. function = "blsp_uart0";
  199. bias-disable;
  200. };
  201. };
  202. serial_1_pins: serial_1_pinmux {
  203. mux {
  204. pins = "gpio8", "gpio9";
  205. function = "blsp_uart1";
  206. bias-disable;
  207. };
  208. };
  209. usb-power {
  210. line-name = "USB-power";
  211. gpios = <23 GPIO_ACTIVE_HIGH>;
  212. gpio-hog;
  213. output-high;
  214. };
  215. };
  216. &blsp1_spi1 {
  217. pinctrl-0 = <&spi_0_pins>;
  218. pinctrl-names = "default";
  219. status = "okay";
  220. cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>, <&tlmm 59 GPIO_ACTIVE_HIGH>;
  221. flash@0 {
  222. compatible = "jedec,spi-nor";
  223. reg = <0>;
  224. spi-max-frequency = <24000000>;
  225. partitions {
  226. compatible = "fixed-partitions";
  227. #address-cells = <1>;
  228. #size-cells = <1>;
  229. /*
  230. * There is no partition map for the NOR flash
  231. * in the stock firmware.
  232. *
  233. * All partitions here are based on offsets
  234. * found in the U-Boot GPL code and information
  235. * from smem.
  236. */
  237. partition@0 {
  238. label = "sbl1";
  239. reg = <0x0 0x40000>;
  240. read-only;
  241. };
  242. partition@40000 {
  243. label = "mibib";
  244. reg = <0x40000 0x20000>;
  245. read-only;
  246. };
  247. partition@60000 {
  248. label = "qsee";
  249. reg = <0x60000 0x60000>;
  250. read-only;
  251. };
  252. partition@c0000 {
  253. label = "cdt";
  254. reg = <0xc0000 0x10000>;
  255. read-only;
  256. };
  257. partition@d0000 {
  258. label = "ddrparams";
  259. reg = <0xd0000 0x10000>;
  260. read-only;
  261. };
  262. partition@e0000 {
  263. label = "appsblenv";
  264. reg = <0xe0000 0x10000>;
  265. read-only;
  266. };
  267. partition@f0000 {
  268. label = "appsbl";
  269. reg = <0xf0000 0x100000>;
  270. read-only;
  271. };
  272. partition@1e0000 {
  273. label = "ART";
  274. reg = <0x1f0000 0x10000>;
  275. read-only;
  276. };
  277. partition@1f0000 {
  278. label = "osss";
  279. reg = <0x200000 0x170000>;
  280. read-only;
  281. };
  282. partition@200000 {
  283. label = "pds";
  284. reg = <0x370000 0x10000>;
  285. read-only;
  286. };
  287. partition@380000 {
  288. label = "apcd";
  289. reg = <0x380000 0x10000>;
  290. read-only;
  291. };
  292. partition@390000 {
  293. label = "mfginfo";
  294. reg = <0x390000 0x10000>;
  295. read-only;
  296. };
  297. partition@3a0000 {
  298. label = "fcache";
  299. reg = <0x3a0000 0x10000>;
  300. read-only;
  301. };
  302. partition@3b0000 {
  303. /* Called osss1 in smem */
  304. label = "u-boot-env-bak";
  305. reg = <0x3b0000 0x10000>;
  306. read-only;
  307. };
  308. partition@3f0000 {
  309. label = "u-boot-env";
  310. reg = <0x3c0000 0x40000>;
  311. read-only;
  312. };
  313. };
  314. };
  315. flash@1 {
  316. status = "okay";
  317. compatible = "spi-nand";
  318. reg = <1>;
  319. spi-max-frequency = <24000000>;
  320. partitions {
  321. compatible = "fixed-partitions";
  322. #address-cells = <1>;
  323. #size-cells = <1>;
  324. partition@0 {
  325. /* 'aos0' in Aruba firmware */
  326. label = "aos0";
  327. reg = <0x0 0x2000000>;
  328. read-only;
  329. };
  330. partition@2000000 {
  331. /* 'aos1' in Aruba firmware */
  332. label = "ubi";
  333. reg = <0x2000000 0x2000000>;
  334. };
  335. partition@4000000 {
  336. label = "aruba-ubifs";
  337. reg = <0x4000000 0x4000000>;
  338. read-only;
  339. };
  340. };
  341. };
  342. };
  343. &usb2_hs_phy {
  344. status = "okay";
  345. };
  346. &wifi0 {
  347. status = "okay";
  348. qcom,ath10k-calibration-variant = "Aruba-AP-303";
  349. };
  350. &wifi1 {
  351. status = "okay";
  352. qcom,ath10k-calibration-variant = "Aruba-AP-303";
  353. };