qcom-ipq4018-wre6606.dts 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  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. serial@78af000 {
  56. pinctrl-0 = <&serial_pins>;
  57. pinctrl-names = "default";
  58. status = "okay";
  59. };
  60. crypto@8e3a000 {
  61. status = "okay";
  62. };
  63. watchdog@b017000 {
  64. status = "okay";
  65. };
  66. ess-switch@c000000 {
  67. status = "okay";
  68. };
  69. edma@c080000 {
  70. status = "okay";
  71. qcom,num_gmac = <1>;
  72. };
  73. };
  74. gpio-leds {
  75. compatible = "gpio-leds";
  76. wps {
  77. label = "wre6606:green:wps";
  78. gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
  79. };
  80. wlan5g_green {
  81. label = "wre6606:green:wlan5g";
  82. gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
  83. };
  84. power: power {
  85. label = "wre6606:green:power";
  86. gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
  87. };
  88. wlan5g_red {
  89. label = "wre6606:red:wlan5g";
  90. gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
  91. };
  92. wlan2g_red {
  93. label = "wre6606:red:wlan2g";
  94. gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
  95. };
  96. wlan2g_green {
  97. label = "wre6606:green:wlan2g";
  98. gpios = <&tlmm 59 GPIO_ACTIVE_HIGH>;
  99. };
  100. };
  101. gpio-keys {
  102. compatible = "gpio-keys";
  103. wps {
  104. label = "wps";
  105. gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
  106. linux,code = <KEY_WPS_BUTTON>;
  107. };
  108. };
  109. };
  110. &tlmm {
  111. serial_pins: serial_pinmux {
  112. mux {
  113. pins = "gpio60", "gpio61";
  114. function = "blsp_uart0";
  115. bias-disable;
  116. };
  117. };
  118. spi_0_pins: spi_0_pinmux {
  119. pin {
  120. function = "blsp_spi0";
  121. pins = "gpio55", "gpio56", "gpio57";
  122. drive-strength = <12>;
  123. bias-disable;
  124. };
  125. pin_cs {
  126. function = "gpio";
  127. pins = "gpio54";
  128. drive-strength = <2>;
  129. bias-disable;
  130. output-high;
  131. };
  132. };
  133. };
  134. &spi_0 {
  135. pinctrl-0 = <&spi_0_pins>;
  136. pinctrl-names = "default";
  137. status = "okay";
  138. cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
  139. mx25l12805d@0 {
  140. compatible = "jedec,spi-nor";
  141. reg = <0>;
  142. spi-max-frequency = <24000000>;
  143. partitions {
  144. compatible = "fixed-partitions";
  145. #address-cells = <1>;
  146. #size-cells = <1>;
  147. partition0@0 {
  148. label = "SBL1";
  149. reg = <0x00000000 0x00040000>;
  150. read-only;
  151. };
  152. partition1@40000 {
  153. label = "MIBIB";
  154. reg = <0x00040000 0x00020000>;
  155. read-only;
  156. };
  157. partition2@60000 {
  158. label = "QSEE";
  159. reg = <0x00060000 0x00060000>;
  160. read-only;
  161. };
  162. partition3@c0000 {
  163. label = "CDT";
  164. reg = <0x000c0000 0x00010000>;
  165. read-only;
  166. };
  167. partition4@d0000 {
  168. label = "DDRPARAMS";
  169. reg = <0x000d0000 0x00010000>;
  170. read-only;
  171. };
  172. partition5@E0000 {
  173. label = "APPSBLENV";
  174. reg = <0x000e0000 0x00010000>;
  175. read-only;
  176. };
  177. partition6@F0000 {
  178. label = "APPSBL";
  179. reg = <0x000f0000 0x00080000>;
  180. read-only;
  181. };
  182. partition7@170000 {
  183. label = "ART";
  184. reg = <0x00170000 0x00010000>;
  185. read-only;
  186. };
  187. partition8@180000 {
  188. label = "firmware";
  189. reg = <0x00180000 0x00ce0000>;
  190. };
  191. partition9@e60000 {
  192. label = "manufacture";
  193. reg = <0x00e60000 0x00050000>;
  194. read-only;
  195. };
  196. partition10@eb0000 {
  197. label = "storage";
  198. reg = <0x00eb0000 0x00150000>;
  199. read-only;
  200. };
  201. };
  202. };
  203. };
  204. &blsp_dma {
  205. status = "okay";
  206. };
  207. &cryptobam {
  208. status = "okay";
  209. };
  210. &wifi0 {
  211. status = "okay";
  212. qcom,ath10k-calibration-variant = "ZyXEL-WRE6606";
  213. };
  214. &wifi1 {
  215. status = "okay";
  216. qcom,ath10k-calibration-variant = "ZyXEL-WRE6606";
  217. };