qcom-ipq4029-gl-s1300.dts 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  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/leds/common.h>
  6. #include <dt-bindings/soc/qcom,tcsr.h>
  7. / {
  8. model = "GL.iNet GL-S1300";
  9. compatible = "glinet,gl-s1300";
  10. aliases {
  11. led-boot = &led_power;
  12. led-failsafe = &led_power;
  13. led-running = &led_power;
  14. led-upgrade = &led_power;
  15. };
  16. memory {
  17. device_type = "memory";
  18. reg = <0x80000000 0x10000000>;
  19. };
  20. soc {
  21. rng@22000 {
  22. status = "okay";
  23. };
  24. mdio@90000 {
  25. status = "okay";
  26. };
  27. tcsr@1949000 {
  28. compatible = "qcom,tcsr";
  29. reg = <0x1949000 0x100>;
  30. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  31. };
  32. tcsr@194b000 {
  33. /* select hostmode */
  34. compatible = "qcom,tcsr";
  35. reg = <0x194b000 0x100>;
  36. qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
  37. status = "okay";
  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. usb2@60f8800 {
  50. status = "okay";
  51. };
  52. usb3@8af8800 {
  53. status = "okay";
  54. };
  55. crypto@8e3a000 {
  56. status = "okay";
  57. };
  58. watchdog@b017000 {
  59. status = "okay";
  60. };
  61. };
  62. keys {
  63. compatible = "gpio-keys";
  64. wps {
  65. label = "wps";
  66. gpios = <&tlmm 53 GPIO_ACTIVE_LOW>;
  67. linux,code = <KEY_WPS_BUTTON>;
  68. };
  69. reset {
  70. label = "reset";
  71. gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
  72. linux,code = <KEY_RESTART>;
  73. };
  74. };
  75. leds {
  76. compatible = "gpio-leds";
  77. led_power: power {
  78. function = LED_FUNCTION_POWER;
  79. color = <LED_COLOR_ID_GREEN>;
  80. gpios = <&tlmm 57 GPIO_ACTIVE_HIGH>;
  81. default-state = "on";
  82. };
  83. mesh {
  84. label = "green:mesh";
  85. gpios = <&tlmm 59 GPIO_ACTIVE_HIGH>;
  86. };
  87. wlan {
  88. function = LED_FUNCTION_WLAN;
  89. color = <LED_COLOR_ID_GREEN>;
  90. gpios = <&tlmm 60 GPIO_ACTIVE_HIGH>;
  91. linux,default-trigger = "phy0tpt";
  92. };
  93. };
  94. };
  95. &vqmmc {
  96. status = "okay";
  97. };
  98. &sdhci {
  99. status = "okay";
  100. pinctrl-0 = <&sd_pins>;
  101. pinctrl-names = "default";
  102. cd-gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
  103. vqmmc-supply = <&vqmmc>;
  104. };
  105. &blsp_dma {
  106. status = "okay";
  107. };
  108. &cryptobam {
  109. status = "okay";
  110. };
  111. &blsp1_spi1 {
  112. pinctrl-0 = <&spi_0_pins>;
  113. pinctrl-names = "default";
  114. status = "okay";
  115. cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
  116. flash@0 {
  117. compatible = "jedec,spi-nor";
  118. reg = <0>;
  119. spi-max-frequency = <24000000>;
  120. partitions {
  121. compatible = "fixed-partitions";
  122. #address-cells = <1>;
  123. #size-cells = <1>;
  124. SBL1@0 {
  125. label = "SBL1";
  126. reg = <0x0 0x40000>;
  127. read-only;
  128. };
  129. MIBIB@40000 {
  130. label = "MIBIB";
  131. reg = <0x40000 0x20000>;
  132. read-only;
  133. };
  134. QSEE@60000 {
  135. label = "QSEE";
  136. reg = <0x60000 0x60000>;
  137. read-only;
  138. };
  139. CDT@c0000 {
  140. label = "CDT";
  141. reg = <0xc0000 0x10000>;
  142. read-only;
  143. };
  144. DDRPARAMS@d0000 {
  145. label = "DDRPARAMS";
  146. reg = <0xd0000 0x10000>;
  147. read-only;
  148. };
  149. APPSBLENV@e0000 {
  150. label = "APPSBLENV";
  151. reg = <0xe0000 0x10000>;
  152. read-only;
  153. };
  154. APPSBL@f0000 {
  155. label = "APPSBL";
  156. reg = <0xf0000 0x80000>;
  157. read-only;
  158. };
  159. ART@170000 {
  160. label = "ART";
  161. reg = <0x170000 0x10000>;
  162. read-only;
  163. nvmem-layout {
  164. compatible = "fixed-layout";
  165. #address-cells = <1>;
  166. #size-cells = <1>;
  167. precal_art_1000: precal@1000 {
  168. reg = <0x1000 0x2f20>;
  169. };
  170. precal_art_5000: precal@5000 {
  171. reg = <0x5000 0x2f20>;
  172. };
  173. };
  174. };
  175. firmware@180000 {
  176. compatible = "denx,fit";
  177. label = "firmware";
  178. reg = <0x180000 0xe80000>;
  179. };
  180. };
  181. };
  182. };
  183. &blsp1_spi2 {
  184. pinctrl-0 = <&spi_1_pins>;
  185. pinctrl-names = "default";
  186. status = "okay";
  187. spidev1: spi@0 {
  188. compatible = "silabs,si3210";
  189. reg = <0>;
  190. spi-max-frequency = <24000000>;
  191. };
  192. };
  193. &blsp1_uart1 {
  194. pinctrl-0 = <&serial_pins>;
  195. pinctrl-names = "default";
  196. status = "okay";
  197. };
  198. &blsp1_uart2 {
  199. pinctrl-0 = <&serial_1_pins>;
  200. pinctrl-names = "default";
  201. status = "okay";
  202. };
  203. &tlmm {
  204. serial_pins: serial_pinmux {
  205. mux {
  206. pins = "gpio16", "gpio17";
  207. function = "blsp_uart0";
  208. bias-disable;
  209. };
  210. };
  211. serial_1_pins: serial1_pinmux {
  212. mux {
  213. pins = "gpio8", "gpio9",
  214. "gpio10", "gpio11";
  215. function = "blsp_uart1";
  216. bias-disable;
  217. };
  218. };
  219. spi_0_pins: spi_0_pinmux {
  220. pinmux {
  221. function = "blsp_spi0";
  222. pins = "gpio13", "gpio14", "gpio15";
  223. };
  224. pinmux_cs {
  225. function = "gpio";
  226. pins = "gpio12";
  227. };
  228. pinconf {
  229. pins = "gpio13", "gpio14", "gpio15";
  230. drive-strength = <12>;
  231. bias-disable;
  232. };
  233. pinconf_cs {
  234. pins = "gpio12";
  235. drive-strength = <2>;
  236. bias-disable;
  237. output-high;
  238. };
  239. };
  240. spi_1_pins: spi_1_pinmux {
  241. mux {
  242. pins = "gpio44", "gpio46", "gpio47";
  243. function = "blsp_spi1";
  244. bias-disable;
  245. };
  246. host_int {
  247. pins = "gpio42";
  248. function = "gpio";
  249. input;
  250. };
  251. cs {
  252. pins = "gpio45";
  253. function = "gpio";
  254. bias-pull-up;
  255. };
  256. wake {
  257. pins = "gpio40";
  258. function = "gpio";
  259. output-high;
  260. };
  261. reset {
  262. pins = "gpio49";
  263. function = "gpio";
  264. output-high;
  265. };
  266. };
  267. sd_pins: sd_pins {
  268. pinmux {
  269. function = "sdio";
  270. pins = "gpio23", "gpio24", "gpio25", "gpio26",
  271. "gpio28", "gpio29", "gpio30", "gpio31";
  272. drive-strength = <10>;
  273. };
  274. pinmux_sd_clk {
  275. function = "sdio";
  276. pins = "gpio27";
  277. drive-strength = <16>;
  278. };
  279. pinmux_sd7 {
  280. function = "sdio";
  281. pins = "gpio32";
  282. drive-strength = <10>;
  283. bias-disable;
  284. };
  285. };
  286. };
  287. &usb2_hs_phy {
  288. status = "okay";
  289. };
  290. &usb3_hs_phy {
  291. status = "okay";
  292. };
  293. &usb3_ss_phy {
  294. status = "okay";
  295. };
  296. &wifi0 {
  297. status = "okay";
  298. nvmem-cell-names = "pre-calibration";
  299. nvmem-cells = <&precal_art_1000>;
  300. qcom,ath10k-calibration-variant = "GL-S1300";
  301. };
  302. &wifi1 {
  303. status = "okay";
  304. nvmem-cell-names = "pre-calibration";
  305. nvmem-cells = <&precal_art_5000>;
  306. qcom,ath10k-calibration-variant = "GL-S1300";
  307. };