qcom-ipq4018-ex61x0v2.dtsi 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  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 "qcom-ipq4019-bus.dtsi"
  19. #include <dt-bindings/gpio/gpio.h>
  20. #include <dt-bindings/input/input.h>
  21. #include <dt-bindings/soc/qcom,tcsr.h>
  22. / {
  23. model = "Netgear EX61X0v2";
  24. compatible = "netgear,ex61x0v2", "qcom,ipq4019";
  25. soc {
  26. mdio@90000 {
  27. status = "okay";
  28. };
  29. ess-psgmii@98000 {
  30. status = "okay";
  31. };
  32. tcsr@1949000 {
  33. compatible = "qcom,tcsr";
  34. reg = <0x1949000 0x100>;
  35. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  36. };
  37. ess_tcsr@1953000 {
  38. compatible = "qcom,tcsr";
  39. reg = <0x1953000 0x1000>;
  40. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  41. };
  42. tcsr@1957000 {
  43. compatible = "qcom,tcsr";
  44. reg = <0x1957000 0x100>;
  45. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  46. };
  47. serial@78af000 {
  48. pinctrl-0 = <&serial_pins>;
  49. pinctrl-names = "default";
  50. status = "okay";
  51. };
  52. crypto@8e3a000 {
  53. status = "okay";
  54. };
  55. watchdog@b017000 {
  56. status = "okay";
  57. };
  58. ess-switch@c000000 {
  59. status = "okay";
  60. };
  61. edma@c080000 {
  62. status = "okay";
  63. qcom,num_gmac = <1>;
  64. };
  65. };
  66. aliases {
  67. led-boot = &power_amber;
  68. led-failsafe = &power_amber;
  69. led-running = &power_green;
  70. led-upgrade = &power_amber;
  71. };
  72. gpio-keys {
  73. compatible = "gpio-keys";
  74. wps {
  75. label = "wps";
  76. gpios = <&tlmm 0 GPIO_ACTIVE_LOW>;
  77. linux,code = <KEY_WPS_BUTTON>;
  78. };
  79. reset {
  80. label = "reset";
  81. gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
  82. linux,code = <KEY_RESTART>;
  83. };
  84. };
  85. led_spi {
  86. compatible = "spi-gpio";
  87. #address-cells = <1>;
  88. ranges;
  89. gpio-sck = <&tlmm 5 GPIO_ACTIVE_HIGH>;
  90. gpio-mosi = <&tlmm 4 GPIO_ACTIVE_HIGH>;
  91. num-chipselects = <0>;
  92. led_gpio: led_gpio@0 {
  93. compatible = "fairchild,74hc595";
  94. reg = <0>;
  95. gpio-controller;
  96. #gpio-cells = <2>;
  97. registers-number = <1>;
  98. spi-max-frequency = <1000000>;
  99. };
  100. };
  101. gpio-leds {
  102. compatible = "gpio-leds";
  103. power_amber: power_amber {
  104. label = "ex61x0v2:amber:power";
  105. gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
  106. };
  107. power_green: power_green {
  108. label = "ex61x0v2:green:power";
  109. gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
  110. };
  111. right {
  112. label = "ex61x0v2:blue:right";
  113. gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
  114. };
  115. left {
  116. label = "ex61x0v2:blue:left";
  117. gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
  118. };
  119. client_green {
  120. label = "ex61x0v2:green:client";
  121. gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
  122. };
  123. client_red {
  124. label = "ex61x0v2:red:client";
  125. gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
  126. };
  127. router_green {
  128. label = "ex61x0v2:green:router";
  129. gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
  130. };
  131. router_red {
  132. label = "ex61x0v2:red:router";
  133. gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
  134. };
  135. wps {
  136. label = "ex61x0v2:green:wps";
  137. gpios = <&tlmm 1 GPIO_ACTIVE_LOW>;
  138. };
  139. };
  140. };
  141. &tlmm {
  142. serial_pins: serial_pinmux {
  143. mux {
  144. pins = "gpio60", "gpio61";
  145. function = "blsp_uart0";
  146. bias-disable;
  147. };
  148. };
  149. spi_0_pins: spi_0_pinmux {
  150. pin {
  151. function = "blsp_spi0";
  152. pins = "gpio55", "gpio56", "gpio57";
  153. drive-strength = <12>;
  154. bias-disable;
  155. };
  156. pin_cs {
  157. function = "gpio";
  158. pins = "gpio54";
  159. drive-strength = <2>;
  160. bias-disable;
  161. output-high;
  162. };
  163. };
  164. };
  165. &spi_0 {
  166. pinctrl-0 = <&spi_0_pins>;
  167. pinctrl-names = "default";
  168. status = "okay";
  169. cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
  170. mx25l12805d@0 {
  171. compatible = "jedec,spi-nor";
  172. reg = <0>;
  173. spi-max-frequency = <24000000>;
  174. partitions {
  175. compatible = "fixed-partitions";
  176. #address-cells = <1>;
  177. #size-cells = <1>;
  178. partition0@0 {
  179. label = "SBL1";
  180. reg = <0x00000000 0x00040000>;
  181. read-only;
  182. };
  183. partition1@40000 {
  184. label = "MIBIB";
  185. reg = <0x00040000 0x00020000>;
  186. read-only;
  187. };
  188. partition2@60000 {
  189. label = "QSEE";
  190. reg = <0x00060000 0x00060000>;
  191. read-only;
  192. };
  193. partition3@c0000 {
  194. label = "CDT";
  195. reg = <0x000c0000 0x00010000>;
  196. read-only;
  197. };
  198. partition4@d0000 {
  199. label = "DDRPARAMS";
  200. reg = <0x000d0000 0x00010000>;
  201. read-only;
  202. };
  203. partition5@E0000 {
  204. label = "APPSBLENV";
  205. reg = <0x000e0000 0x00010000>;
  206. read-only;
  207. };
  208. partition6@F0000 {
  209. label = "APPSBL";
  210. reg = <0x000f0000 0x00080000>;
  211. read-only;
  212. };
  213. partition7@170000 {
  214. label = "ART";
  215. reg = <0x00170000 0x00010000>;
  216. read-only;
  217. };
  218. partition8@180000 {
  219. label = "config";
  220. reg = <0x00180000 0x00010000>;
  221. read-only;
  222. };
  223. partition9@190000 {
  224. label = "pot";
  225. reg = <0x00190000 0x00010000>;
  226. read-only;
  227. };
  228. partition10@1a0000 {
  229. label = "dnidata";
  230. reg = <0x001a0000 0x00010000>;
  231. read-only;
  232. };
  233. partition11@1b0000 {
  234. label = "firmware";
  235. reg = <0x001b0000 0x00e10000>;
  236. };
  237. partition12@fc0000 {
  238. label = "language";
  239. reg = <0x00fc0000 0x00040000>;
  240. read-only;
  241. };
  242. };
  243. };
  244. };
  245. &blsp_dma {
  246. status = "okay";
  247. };
  248. &cryptobam {
  249. status = "okay";
  250. };
  251. &wifi0 {
  252. status = "okay";
  253. };
  254. &wifi1 {
  255. status = "okay";
  256. };