qcom-ipq4018-wre6606.dts 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
  2. * Copyright (c) 2018, David Bauer <[email protected]>
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for any
  5. * purpose with or without fee is hereby granted, provided that the above
  6. * copyright notice and this permission notice appear in all copies.
  7. *
  8. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  9. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  10. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  11. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  12. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  13. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  14. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  15. *
  16. */
  17. #include "qcom-ipq4019.dtsi"
  18. #include <dt-bindings/gpio/gpio.h>
  19. #include <dt-bindings/input/input.h>
  20. #include <dt-bindings/soc/qcom,tcsr.h>
  21. / {
  22. model = "ZyXEL WRE6606";
  23. compatible = "zyxel,wre6606", "qcom,ipq4019";
  24. aliases {
  25. led-boot = &power;
  26. led-failsafe = &power;
  27. led-running = &power;
  28. led-upgrade = &power;
  29. };
  30. chosen {
  31. bootargs-append = " mtdparts=";
  32. };
  33. soc {
  34. mdio@90000 {
  35. status = "okay";
  36. };
  37. ess-psgmii@98000 {
  38. status = "okay";
  39. };
  40. tcsr@1949000 {
  41. compatible = "qcom,tcsr";
  42. reg = <0x1949000 0x100>;
  43. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  44. };
  45. ess_tcsr@1953000 {
  46. compatible = "qcom,tcsr";
  47. reg = <0x1953000 0x1000>;
  48. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  49. };
  50. tcsr@1957000 {
  51. compatible = "qcom,tcsr";
  52. reg = <0x1957000 0x100>;
  53. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  54. };
  55. crypto@8e3a000 {
  56. status = "okay";
  57. };
  58. watchdog@b017000 {
  59. status = "okay";
  60. };
  61. ess-switch@c000000 {
  62. status = "okay";
  63. };
  64. edma@c080000 {
  65. status = "okay";
  66. qcom,num_gmac = <1>;
  67. };
  68. };
  69. leds {
  70. compatible = "gpio-leds";
  71. wps {
  72. label = "wre6606:green:wps";
  73. gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
  74. };
  75. wlan5g_green {
  76. label = "wre6606:green:wlan5g";
  77. gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
  78. };
  79. power: power {
  80. label = "wre6606:green:power";
  81. gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
  82. };
  83. wlan5g_red {
  84. label = "wre6606:red:wlan5g";
  85. gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
  86. };
  87. wlan2g_red {
  88. label = "wre6606:red:wlan2g";
  89. gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
  90. };
  91. wlan2g_green {
  92. label = "wre6606:green:wlan2g";
  93. gpios = <&tlmm 59 GPIO_ACTIVE_HIGH>;
  94. };
  95. };
  96. keys {
  97. compatible = "gpio-keys";
  98. wps {
  99. label = "wps";
  100. gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
  101. linux,code = <KEY_WPS_BUTTON>;
  102. };
  103. };
  104. };
  105. &tlmm {
  106. serial_pins: serial_pinmux {
  107. mux {
  108. pins = "gpio60", "gpio61";
  109. function = "blsp_uart0";
  110. bias-disable;
  111. };
  112. };
  113. spi_0_pins: spi_0_pinmux {
  114. pin {
  115. function = "blsp_spi0";
  116. pins = "gpio55", "gpio56", "gpio57";
  117. drive-strength = <12>;
  118. bias-disable;
  119. };
  120. pin_cs {
  121. function = "gpio";
  122. pins = "gpio54";
  123. drive-strength = <2>;
  124. bias-disable;
  125. output-high;
  126. };
  127. };
  128. };
  129. &blsp_dma {
  130. status = "okay";
  131. };
  132. &blsp1_spi1 {
  133. pinctrl-0 = <&spi_0_pins>;
  134. pinctrl-names = "default";
  135. status = "okay";
  136. cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
  137. mx25l12805d@0 {
  138. compatible = "jedec,spi-nor";
  139. reg = <0>;
  140. spi-max-frequency = <24000000>;
  141. partitions {
  142. compatible = "fixed-partitions";
  143. #address-cells = <1>;
  144. #size-cells = <1>;
  145. partition0@0 {
  146. label = "SBL1";
  147. reg = <0x00000000 0x00040000>;
  148. read-only;
  149. };
  150. partition1@40000 {
  151. label = "MIBIB";
  152. reg = <0x00040000 0x00020000>;
  153. read-only;
  154. };
  155. partition2@60000 {
  156. label = "QSEE";
  157. reg = <0x00060000 0x00060000>;
  158. read-only;
  159. };
  160. partition3@c0000 {
  161. label = "CDT";
  162. reg = <0x000c0000 0x00010000>;
  163. read-only;
  164. };
  165. partition4@d0000 {
  166. label = "DDRPARAMS";
  167. reg = <0x000d0000 0x00010000>;
  168. read-only;
  169. };
  170. partition5@E0000 {
  171. label = "APPSBLENV";
  172. reg = <0x000e0000 0x00010000>;
  173. read-only;
  174. };
  175. partition6@F0000 {
  176. label = "APPSBL";
  177. reg = <0x000f0000 0x00080000>;
  178. read-only;
  179. };
  180. partition7@170000 {
  181. label = "ART";
  182. reg = <0x00170000 0x00010000>;
  183. read-only;
  184. };
  185. partition8@180000 {
  186. compatible = "denx,fit";
  187. label = "firmware";
  188. reg = <0x00180000 0x00ce0000>;
  189. };
  190. partition9@e60000 {
  191. label = "manufacture";
  192. reg = <0x00e60000 0x00050000>;
  193. read-only;
  194. };
  195. partition10@eb0000 {
  196. label = "storage";
  197. reg = <0x00eb0000 0x00150000>;
  198. read-only;
  199. };
  200. };
  201. };
  202. };
  203. &blsp1_uart1 {
  204. pinctrl-0 = <&serial_pins>;
  205. pinctrl-names = "default";
  206. status = "okay";
  207. };
  208. &cryptobam {
  209. status = "okay";
  210. };
  211. &wifi0 {
  212. status = "okay";
  213. qcom,ath10k-calibration-variant = "ZyXEL-WRE6606";
  214. };
  215. &wifi1 {
  216. status = "okay";
  217. qcom,ath10k-calibration-variant = "ZyXEL-WRE6606";
  218. };