qcom-ipq4018-nbg6617.dts 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  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/input/linux-event-codes.h>
  6. #include <dt-bindings/soc/qcom,tcsr.h>
  7. / {
  8. model = "ZyXEL NBG6617";
  9. compatible = "zyxel,nbg6617", "qcom,ipq4019";
  10. chosen {
  11. /*
  12. * the vendor u-boot adds root and mtdparts cmdline parameters
  13. * which we don't want... but we have to overwrite them or else
  14. * the kernel will take them at face value.
  15. */
  16. bootargs-append = " mtdparts= root=31:13";
  17. };
  18. aliases {
  19. led-boot = &power;
  20. led-failsafe = &power;
  21. led-running = &power;
  22. led-upgrade = &power;
  23. };
  24. soc {
  25. mdio@90000 {
  26. status = "okay";
  27. };
  28. ess-psgmii@98000 {
  29. status = "okay";
  30. };
  31. tcsr@1949000 {
  32. compatible = "qcom,tcsr";
  33. reg = <0x1949000 0x100>;
  34. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  35. };
  36. tcsr@194b000 {
  37. compatible = "qcom,tcsr";
  38. reg = <0x194b000 0x100>;
  39. qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
  40. };
  41. ess_tcsr@1953000 {
  42. compatible = "qcom,tcsr";
  43. reg = <0x1953000 0x1000>;
  44. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  45. };
  46. tcsr@1957000 {
  47. compatible = "qcom,tcsr";
  48. reg = <0x1957000 0x100>;
  49. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  50. };
  51. usb2@60f8800 {
  52. status = "okay";
  53. dwc3@6000000 {
  54. #address-cells = <1>;
  55. #size-cells = <0>;
  56. usb2_port1: port@1 {
  57. reg = <1>;
  58. #trigger-source-cells = <0>;
  59. };
  60. };
  61. };
  62. usb3@8af8800 {
  63. status = "okay";
  64. dwc3@8a00000 {
  65. #address-cells = <1>;
  66. #size-cells = <0>;
  67. usb3_port1: port@1 {
  68. reg = <1>;
  69. #trigger-source-cells = <0>;
  70. };
  71. usb3_port2: port@2 {
  72. reg = <2>;
  73. #trigger-source-cells = <0>;
  74. };
  75. };
  76. };
  77. crypto@8e3a000 {
  78. status = "okay";
  79. };
  80. watchdog@b017000 {
  81. status = "okay";
  82. };
  83. ess-switch@c000000 {
  84. status = "okay";
  85. };
  86. edma@c080000 {
  87. status = "okay";
  88. };
  89. };
  90. keys {
  91. compatible = "gpio-keys";
  92. wlan {
  93. label = "wlan";
  94. gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
  95. linux,code = <KEY_RFKILL>;
  96. linux,input-type = <EV_SW>;
  97. };
  98. wps {
  99. label = "wps";
  100. gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
  101. linux,code = <KEY_WPS_BUTTON>;
  102. };
  103. reset {
  104. label = "reset";
  105. gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
  106. linux,code = <KEY_RESTART>;
  107. };
  108. };
  109. leds {
  110. compatible = "gpio-leds";
  111. pinctrl-0 = <&led_pins>;
  112. pinctrl-names = "default";
  113. power: power {
  114. label = "nbg6617:green:power";
  115. gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
  116. };
  117. usb {
  118. label = "nbg6617:green:usb";
  119. gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
  120. trigger-sources = <&usb2_port1>, <&usb3_port1>, <&usb3_port2>;
  121. linux,default-trigger = "usbport";
  122. };
  123. wlan2G {
  124. label = "nbg6617:green:wlan2G";
  125. gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
  126. };
  127. wlan5G {
  128. label = "nbg6617:green:wlan5G";
  129. gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
  130. };
  131. wps {
  132. label = "nbg6617:green:wps";
  133. gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
  134. };
  135. };
  136. };
  137. &tlmm {
  138. serial_pins: serial_pinmux {
  139. mux {
  140. pins = "gpio60", "gpio61";
  141. function = "blsp_uart0";
  142. bias-disable;
  143. };
  144. };
  145. spi_0_pins: spi_0_pinmux {
  146. mux {
  147. function = "blsp_spi0";
  148. pins = "gpio55", "gpio56", "gpio57";
  149. drive-strength = <12>;
  150. bias-disable;
  151. };
  152. mux_cs {
  153. function = "gpio";
  154. pins = "gpio54";
  155. drive-strength = <2>;
  156. bias-disable;
  157. output-low;
  158. };
  159. };
  160. led_pins: led_pinmux {
  161. mux {
  162. pins = "gpio0", "gpio1", "gpio3", "gpio5", "gpio58";
  163. drive-strength = <0x8>;
  164. bias-disable;
  165. output-low;
  166. };
  167. };
  168. };
  169. &blsp1_spi1 { /* BLSP1 QUP1 */
  170. pinctrl-0 = <&spi_0_pins>;
  171. pinctrl-names = "default";
  172. status = "okay";
  173. cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
  174. mx25l25635f@0 {
  175. compatible = "mx25l25635f", "jedec,spi-nor";
  176. #address-cells = <1>;
  177. #size-cells = <0>;
  178. reg = <0>;
  179. spi-max-frequency = <24000000>;
  180. status = "okay";
  181. m25p,fast-read;
  182. partitions {
  183. compatible = "fixed-partitions";
  184. #address-cells = <1>;
  185. #size-cells = <1>;
  186. partition0@0 {
  187. label = "SBL1";
  188. reg = <0x00000000 0x00040000>;
  189. read-only;
  190. };
  191. partition1@40000 {
  192. label = "MIBIB";
  193. reg = <0x00040000 0x00020000>;
  194. read-only;
  195. };
  196. partition2@60000 {
  197. label = "QSEE";
  198. reg = <0x00060000 0x00060000>;
  199. read-only;
  200. };
  201. partition3@c0000 {
  202. label = "CDT";
  203. reg = <0x000c0000 0x00010000>;
  204. read-only;
  205. };
  206. partition4@d0000 {
  207. label = "DDRPARAMS";
  208. reg = <0x000d0000 0x00010000>;
  209. read-only;
  210. };
  211. partition5@e0000 {
  212. label = "APPSBL"; /* u-boot */
  213. reg = <0x000e0000 0x00080000>;
  214. /* U-Boot Standalone App "zloader" is located at 0x64000 */
  215. read-only;
  216. };
  217. partition6@160000 {
  218. label = "APPSBLENV"; /* u-boot env */
  219. reg = <0x00160000 0x00010000>;
  220. };
  221. partition7@170000 {
  222. /* make a backup of this partition! */
  223. label = "ART";
  224. reg = <0x00170000 0x00010000>;
  225. read-only;
  226. };
  227. partition8@180000 {
  228. label = "kernel";
  229. reg = <0x00180000 0x00400000>;
  230. };
  231. partition9@580000 {
  232. label = "dualflag";
  233. reg = <0x00580000 0x00010000>;
  234. read-only;
  235. };
  236. partition10@590000 {
  237. label = "header";
  238. reg = <0x00590000 0x00010000>;
  239. };
  240. partition11@5a0000 {
  241. label = "romd";
  242. reg = <0x005a0000 0x00100000>;
  243. read-only;
  244. };
  245. partition12@6a0000 {
  246. label = "not_root_data";
  247. /*
  248. * for some strange reason, someone at ZyXEL
  249. * had the "great" idea to put the rootfs_data
  250. * in front of rootfs... Don't do that!
  251. * As a result this one, full MebiByte remains
  252. * unused.
  253. */
  254. reg = <0x006a0000 0x00100000>;
  255. };
  256. partition13@7a0000 {
  257. label = "rootfs";
  258. reg = <0x007a0000 0x01860000>;
  259. };
  260. };
  261. };
  262. };
  263. &blsp1_uart1 {
  264. pinctrl-0 = <&serial_pins>;
  265. pinctrl-names = "default";
  266. status = "okay";
  267. };
  268. &cryptobam {
  269. status = "okay";
  270. };
  271. &blsp_dma {
  272. status = "okay";
  273. };
  274. &wifi0 {
  275. status = "okay";
  276. qcom,ath10k-calibration-variant = "ZyXEL-NBG6617";
  277. };
  278. &wifi1 {
  279. status = "okay";
  280. qcom,ath10k-calibration-variant = "ZyXEL-NBG6617";
  281. };
  282. &usb3_ss_phy {
  283. status = "okay";
  284. };
  285. &usb3_hs_phy {
  286. status = "okay";
  287. };
  288. &usb2_hs_phy {
  289. status = "okay";
  290. };