qcom-ipq4018-wre6606.dts 4.8 KB

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