qcom-ipq4029-gl-b1300.dts 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
  2. *
  3. * Permission to use, copy, modify, and/or distribute this software for any
  4. * purpose with or without fee is hereby granted, provided that the above
  5. * copyright notice and this permission notice appear in all copies.
  6. *
  7. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  8. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  9. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  10. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  11. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  12. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  13. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  14. *
  15. */
  16. #include "qcom-ipq4019.dtsi"
  17. #include <dt-bindings/gpio/gpio.h>
  18. #include <dt-bindings/input/input.h>
  19. #include <dt-bindings/soc/qcom,tcsr.h>
  20. / {
  21. model = "GL.iNet GL-B1300";
  22. compatible = "glinet,gl-b1300", "qcom,ipq4019";
  23. aliases {
  24. led-boot = &power;
  25. led-failsafe = &power;
  26. led-running = &power;
  27. led-upgrade = &power;
  28. };
  29. memory {
  30. device_type = "memory";
  31. reg = <0x80000000 0x10000000>;
  32. };
  33. reserved-memory {
  34. #address-cells = <0x1>;
  35. #size-cells = <0x1>;
  36. ranges;
  37. apps_bl@87000000 {
  38. reg = <0x87000000 0x400000>;
  39. no-map;
  40. };
  41. sbl@87400000 {
  42. reg = <0x87400000 0x100000>;
  43. no-map;
  44. };
  45. cnss_debug@87500000 {
  46. reg = <0x87500000 0x600000>;
  47. no-map;
  48. };
  49. cpu_context_dump@87b00000 {
  50. reg = <0x87b00000 0x080000>;
  51. no-map;
  52. };
  53. tz_apps@87b80000 {
  54. reg = <0x87b80000 0x280000>;
  55. no-map;
  56. };
  57. smem@87e00000 {
  58. reg = <0x87e00000 0x080000>;
  59. no-map;
  60. };
  61. tz@87e80000 {
  62. reg = <0x87e80000 0x180000>;
  63. no-map;
  64. };
  65. };
  66. soc {
  67. mdio@90000 {
  68. status = "okay";
  69. /delete-node/ ethernet-phy@2;
  70. /delete-node/ ethernet-phy@3;
  71. /delete-node/ ethernet-phy@4;
  72. };
  73. ess-psgmii@98000 {
  74. status = "okay";
  75. };
  76. tcsr@1949000 {
  77. compatible = "qcom,tcsr";
  78. reg = <0x1949000 0x100>;
  79. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  80. };
  81. tcsr@194b000 {
  82. /* select hostmode */
  83. compatible = "qcom,tcsr";
  84. reg = <0x194b000 0x100>;
  85. qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
  86. status = "okay";
  87. };
  88. ess_tcsr@1953000 {
  89. compatible = "qcom,tcsr";
  90. reg = <0x1953000 0x1000>;
  91. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  92. };
  93. tcsr@1957000 {
  94. compatible = "qcom,tcsr";
  95. reg = <0x1957000 0x100>;
  96. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  97. };
  98. usb2@60f8800 {
  99. status = "okay";
  100. };
  101. serial@78af000 {
  102. pinctrl-0 = <&serial_pins>;
  103. pinctrl-names = "default";
  104. status = "okay";
  105. };
  106. usb3@8af8800 {
  107. status = "okay";
  108. };
  109. crypto@8e3a000 {
  110. status = "okay";
  111. };
  112. watchdog@b017000 {
  113. status = "okay";
  114. };
  115. ess-switch@c000000 {
  116. status = "okay";
  117. switch_lan_bmp = <0x18>;
  118. switch_wan_bmp = <0x20>;
  119. };
  120. edma@c080000 {
  121. status = "okay";
  122. };
  123. };
  124. gpio-keys {
  125. compatible = "gpio-keys";
  126. wps {
  127. label = "wps";
  128. gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
  129. linux,code = <KEY_WPS_BUTTON>;
  130. };
  131. reset {
  132. label = "reset";
  133. gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
  134. linux,code = <KEY_RESTART>;
  135. };
  136. };
  137. gpio-leds {
  138. compatible = "gpio-leds";
  139. power: power {
  140. label = "gl-b1300:green:power";
  141. gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
  142. default-state = "on";
  143. };
  144. mesh {
  145. label = "gl-b1300:green:mesh";
  146. gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
  147. };
  148. wlan {
  149. label = "gl-b1300:green:wlan";
  150. gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
  151. };
  152. };
  153. };
  154. &blsp_dma {
  155. status = "okay";
  156. };
  157. &cryptobam {
  158. status = "okay";
  159. };
  160. &spi_0 {
  161. pinctrl-0 = <&spi_0_pins>;
  162. pinctrl-names = "default";
  163. status = "okay";
  164. cs-gpios = <&tlmm 54 0>;
  165. mx25l25635f@0 {
  166. compatible = "jedec,spi-nor";
  167. #address-cells = <1>;
  168. #size-cells = <1>;
  169. reg = <0>;
  170. spi-max-frequency = <24000000>;
  171. SBL1@0 {
  172. label = "SBL1";
  173. reg = <0x0 0x40000>;
  174. read-only;
  175. };
  176. MIBIB@40000 {
  177. label = "MIBIB";
  178. reg = <0x40000 0x20000>;
  179. read-only;
  180. };
  181. QSEE@60000 {
  182. label = "QSEE";
  183. reg = <0x60000 0x60000>;
  184. read-only;
  185. };
  186. CDT@c0000 {
  187. label = "CDT";
  188. reg = <0xc0000 0x10000>;
  189. read-only;
  190. };
  191. DDRPARAMS@d0000 {
  192. label = "DDRPARAMS";
  193. reg = <0xd0000 0x10000>;
  194. read-only;
  195. };
  196. APPSBLENV@e0000 {
  197. label = "APPSBLENV";
  198. reg = <0xe0000 0x10000>;
  199. read-only;
  200. };
  201. APPSBL@f0000 {
  202. label = "APPSBL";
  203. reg = <0xf0000 0x80000>;
  204. read-only;
  205. };
  206. ART@170000 {
  207. label = "ART";
  208. reg = <0x170000 0x10000>;
  209. read-only;
  210. };
  211. firmware@180000 {
  212. label = "firmware";
  213. reg = <0x180000 0x1e80000>;
  214. };
  215. };
  216. };
  217. &tlmm {
  218. serial_pins: serial_pinmux {
  219. mux {
  220. pins = "gpio60", "gpio61";
  221. function = "blsp_uart0";
  222. bias-disable;
  223. };
  224. };
  225. spi_0_pins: spi_0_pinmux {
  226. pinmux {
  227. function = "blsp_spi0";
  228. pins = "gpio55", "gpio56", "gpio57";
  229. };
  230. pinmux_cs {
  231. function = "gpio";
  232. pins = "gpio54";
  233. };
  234. pinconf {
  235. pins = "gpio55", "gpio56", "gpio57";
  236. drive-strength = <12>;
  237. bias-disable;
  238. };
  239. pinconf_cs {
  240. pins = "gpio54";
  241. drive-strength = <2>;
  242. bias-disable;
  243. output-high;
  244. };
  245. };
  246. };
  247. &usb2_hs_phy {
  248. status = "okay";
  249. };
  250. &usb3_hs_phy {
  251. status = "okay";
  252. };
  253. &usb3_ss_phy {
  254. status = "okay";
  255. };
  256. &wifi0 {
  257. status = "okay";
  258. };
  259. &wifi1 {
  260. status = "okay";
  261. };