qcom-ipq4029-gl-b1300.dts 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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. soc {
  34. mdio@90000 {
  35. status = "okay";
  36. };
  37. ess-psgmii@98000 {
  38. status = "okay";
  39. };
  40. tcsr@1949000 {
  41. compatible = "qcom,tcsr";
  42. reg = <0x1949000 0x100>;
  43. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  44. };
  45. tcsr@194b000 {
  46. /* select hostmode */
  47. compatible = "qcom,tcsr";
  48. reg = <0x194b000 0x100>;
  49. qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
  50. status = "okay";
  51. };
  52. ess_tcsr@1953000 {
  53. compatible = "qcom,tcsr";
  54. reg = <0x1953000 0x1000>;
  55. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  56. };
  57. tcsr@1957000 {
  58. compatible = "qcom,tcsr";
  59. reg = <0x1957000 0x100>;
  60. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  61. };
  62. usb2@60f8800 {
  63. status = "okay";
  64. };
  65. serial@78af000 {
  66. pinctrl-0 = <&serial_pins>;
  67. pinctrl-names = "default";
  68. status = "okay";
  69. };
  70. usb3@8af8800 {
  71. status = "okay";
  72. };
  73. crypto@8e3a000 {
  74. status = "okay";
  75. };
  76. watchdog@b017000 {
  77. status = "okay";
  78. };
  79. ess-switch@c000000 {
  80. status = "okay";
  81. switch_lan_bmp = <0x18>;
  82. switch_wan_bmp = <0x20>;
  83. };
  84. edma@c080000 {
  85. status = "okay";
  86. };
  87. };
  88. gpio-keys {
  89. compatible = "gpio-keys";
  90. wps {
  91. label = "wps";
  92. gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
  93. linux,code = <KEY_WPS_BUTTON>;
  94. };
  95. reset {
  96. label = "reset";
  97. gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
  98. linux,code = <KEY_RESTART>;
  99. };
  100. };
  101. gpio-leds {
  102. compatible = "gpio-leds";
  103. power: power {
  104. label = "gl-b1300:green:power";
  105. gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
  106. default-state = "on";
  107. };
  108. mesh {
  109. label = "gl-b1300:green:mesh";
  110. gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
  111. };
  112. wlan {
  113. label = "gl-b1300:green:wlan";
  114. gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
  115. };
  116. };
  117. };
  118. &blsp_dma {
  119. status = "okay";
  120. };
  121. &cryptobam {
  122. status = "okay";
  123. };
  124. &blsp1_spi1 {
  125. pinctrl-0 = <&spi_0_pins>;
  126. pinctrl-names = "default";
  127. status = "okay";
  128. cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
  129. mx25l25635f@0 {
  130. compatible = "jedec,spi-nor";
  131. #address-cells = <1>;
  132. #size-cells = <1>;
  133. reg = <0>;
  134. spi-max-frequency = <24000000>;
  135. SBL1@0 {
  136. label = "SBL1";
  137. reg = <0x0 0x40000>;
  138. read-only;
  139. };
  140. MIBIB@40000 {
  141. label = "MIBIB";
  142. reg = <0x40000 0x20000>;
  143. read-only;
  144. };
  145. QSEE@60000 {
  146. label = "QSEE";
  147. reg = <0x60000 0x60000>;
  148. read-only;
  149. };
  150. CDT@c0000 {
  151. label = "CDT";
  152. reg = <0xc0000 0x10000>;
  153. read-only;
  154. };
  155. DDRPARAMS@d0000 {
  156. label = "DDRPARAMS";
  157. reg = <0xd0000 0x10000>;
  158. read-only;
  159. };
  160. APPSBLENV@e0000 {
  161. label = "APPSBLENV";
  162. reg = <0xe0000 0x10000>;
  163. read-only;
  164. };
  165. APPSBL@f0000 {
  166. label = "APPSBL";
  167. reg = <0xf0000 0x80000>;
  168. read-only;
  169. };
  170. ART@170000 {
  171. label = "ART";
  172. reg = <0x170000 0x10000>;
  173. read-only;
  174. };
  175. firmware@180000 {
  176. label = "firmware";
  177. reg = <0x180000 0x1e80000>;
  178. };
  179. };
  180. };
  181. &tlmm {
  182. serial_pins: serial_pinmux {
  183. mux {
  184. pins = "gpio60", "gpio61";
  185. function = "blsp_uart0";
  186. bias-disable;
  187. };
  188. };
  189. spi_0_pins: spi_0_pinmux {
  190. pinmux {
  191. function = "blsp_spi0";
  192. pins = "gpio55", "gpio56", "gpio57";
  193. };
  194. pinmux_cs {
  195. function = "gpio";
  196. pins = "gpio54";
  197. };
  198. pinconf {
  199. pins = "gpio55", "gpio56", "gpio57";
  200. drive-strength = <12>;
  201. bias-disable;
  202. };
  203. pinconf_cs {
  204. pins = "gpio54";
  205. drive-strength = <2>;
  206. bias-disable;
  207. output-high;
  208. };
  209. };
  210. };
  211. &usb2_hs_phy {
  212. status = "okay";
  213. };
  214. &usb3_hs_phy {
  215. status = "okay";
  216. };
  217. &usb3_ss_phy {
  218. status = "okay";
  219. };
  220. &wifi0 {
  221. status = "okay";
  222. qcom,ath10k-calibration-variant = "GL-B1300";
  223. };
  224. &wifi1 {
  225. status = "okay";
  226. qcom,ath10k-calibration-variant = "GL-B1300";
  227. };