qcom-ipq4018-wre6606.dts 4.7 KB

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