2
0

qcom-ipq4029-gl-b1300.dts 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  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";
  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. rng@22000 {
  35. status = "okay";
  36. };
  37. mdio@90000 {
  38. status = "okay";
  39. };
  40. ess-psgmii@98000 {
  41. status = "okay";
  42. };
  43. tcsr@1949000 {
  44. compatible = "qcom,tcsr";
  45. reg = <0x1949000 0x100>;
  46. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  47. };
  48. tcsr@194b000 {
  49. /* select hostmode */
  50. compatible = "qcom,tcsr";
  51. reg = <0x194b000 0x100>;
  52. qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
  53. status = "okay";
  54. };
  55. ess_tcsr@1953000 {
  56. compatible = "qcom,tcsr";
  57. reg = <0x1953000 0x1000>;
  58. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  59. };
  60. tcsr@1957000 {
  61. compatible = "qcom,tcsr";
  62. reg = <0x1957000 0x100>;
  63. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  64. };
  65. usb2@60f8800 {
  66. status = "okay";
  67. };
  68. usb3@8af8800 {
  69. status = "okay";
  70. };
  71. crypto@8e3a000 {
  72. status = "okay";
  73. };
  74. watchdog@b017000 {
  75. status = "okay";
  76. };
  77. ess-switch@c000000 {
  78. status = "okay";
  79. switch_lan_bmp = <0x18>;
  80. switch_wan_bmp = <0x20>;
  81. };
  82. edma@c080000 {
  83. status = "okay";
  84. };
  85. };
  86. keys {
  87. compatible = "gpio-keys";
  88. wps {
  89. label = "wps";
  90. gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
  91. linux,code = <KEY_WPS_BUTTON>;
  92. };
  93. reset {
  94. label = "reset";
  95. gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
  96. linux,code = <KEY_RESTART>;
  97. };
  98. };
  99. leds {
  100. compatible = "gpio-leds";
  101. power: power {
  102. label = "green:power";
  103. gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
  104. default-state = "on";
  105. };
  106. mesh {
  107. label = "green:mesh";
  108. gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
  109. };
  110. wlan {
  111. label = "green:wlan";
  112. gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
  113. };
  114. };
  115. };
  116. &blsp_dma {
  117. status = "okay";
  118. };
  119. &cryptobam {
  120. status = "okay";
  121. };
  122. &blsp1_spi1 {
  123. pinctrl-0 = <&spi_0_pins>;
  124. pinctrl-names = "default";
  125. status = "okay";
  126. cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
  127. mx25l25635f@0 {
  128. compatible = "jedec,spi-nor";
  129. reg = <0>;
  130. spi-max-frequency = <24000000>;
  131. partitions {
  132. compatible = "fixed-partitions";
  133. #address-cells = <1>;
  134. #size-cells = <1>;
  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. compatible = "denx,fit";
  177. label = "firmware";
  178. reg = <0x180000 0x1e80000>;
  179. };
  180. };
  181. };
  182. };
  183. &blsp1_uart1 {
  184. pinctrl-0 = <&serial_pins>;
  185. pinctrl-names = "default";
  186. status = "okay";
  187. };
  188. &tlmm {
  189. serial_pins: serial_pinmux {
  190. mux {
  191. pins = "gpio60", "gpio61";
  192. function = "blsp_uart0";
  193. bias-disable;
  194. };
  195. };
  196. spi_0_pins: spi_0_pinmux {
  197. pinmux {
  198. function = "blsp_spi0";
  199. pins = "gpio55", "gpio56", "gpio57";
  200. };
  201. pinmux_cs {
  202. function = "gpio";
  203. pins = "gpio54";
  204. };
  205. pinconf {
  206. pins = "gpio55", "gpio56", "gpio57";
  207. drive-strength = <12>;
  208. bias-disable;
  209. };
  210. pinconf_cs {
  211. pins = "gpio54";
  212. drive-strength = <2>;
  213. bias-disable;
  214. output-high;
  215. };
  216. };
  217. };
  218. &usb2_hs_phy {
  219. status = "okay";
  220. };
  221. &usb3_hs_phy {
  222. status = "okay";
  223. };
  224. &usb3_ss_phy {
  225. status = "okay";
  226. };
  227. &wifi0 {
  228. status = "okay";
  229. qcom,ath10k-calibration-variant = "GL-B1300";
  230. };
  231. &wifi1 {
  232. status = "okay";
  233. qcom,ath10k-calibration-variant = "GL-B1300";
  234. };