qcom-ipq4029-gl-b1300.dts 4.8 KB

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