qcom-ipq4018-ex61x0v2.dtsi 5.7 KB

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