2
0

qcom-ipq4018-jalapeno.dts 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
  2. * Copyright (c) 2018, Robert Marko <[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 = "8devices Jalapeno";
  23. compatible = "8dev,jalapeno", "qcom,ipq4019";
  24. soc {
  25. mdio@90000 {
  26. status = "okay";
  27. pinctrl-0 = <&mdio_pins>;
  28. pinctrl-names = "default";
  29. };
  30. ess-psgmii@98000 {
  31. status = "okay";
  32. };
  33. counter@4a1000 {
  34. compatible = "qcom,qca-gcnt";
  35. reg = <0x4a1000 0x4>;
  36. };
  37. tcsr@1949000 {
  38. compatible = "qcom,tcsr";
  39. reg = <0x1949000 0x100>;
  40. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  41. };
  42. tcsr@194b000 {
  43. /* select hostmode */
  44. compatible = "qcom,tcsr";
  45. reg = <0x194b000 0x100>;
  46. qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
  47. status = "okay";
  48. };
  49. ess_tcsr@1953000 {
  50. compatible = "qcom,tcsr";
  51. reg = <0x1953000 0x1000>;
  52. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  53. };
  54. tcsr@1957000 {
  55. compatible = "qcom,tcsr";
  56. reg = <0x1957000 0x100>;
  57. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  58. };
  59. usb2: usb2@60f8800 {
  60. status = "okay";
  61. };
  62. serial@78af000 {
  63. pinctrl-0 = <&serial_pins>;
  64. pinctrl-names = "default";
  65. status = "okay";
  66. };
  67. usb3: usb3@8af8800 {
  68. status = "okay";
  69. };
  70. crypto@8e3a000 {
  71. status = "okay";
  72. };
  73. watchdog@b017000 {
  74. status = "okay";
  75. };
  76. ess-switch@c000000 {
  77. status = "okay";
  78. switch_lan_bmp = <0x10>; /* lan port bitmap */
  79. };
  80. edma@c080000 {
  81. status = "okay";
  82. };
  83. };
  84. };
  85. &tlmm {
  86. mdio_pins: mdio_pinmux {
  87. pinmux_1 {
  88. pins = "gpio53";
  89. function = "mdio";
  90. };
  91. pinmux_2 {
  92. pins = "gpio52";
  93. function = "mdc";
  94. };
  95. pinconf {
  96. pins = "gpio52", "gpio53";
  97. bias-pull-up;
  98. };
  99. };
  100. serial_pins: serial_pinmux {
  101. mux {
  102. pins = "gpio60", "gpio61";
  103. function = "blsp_uart0";
  104. bias-disable;
  105. };
  106. };
  107. spi_0_pins: spi_0_pinmux {
  108. pin {
  109. function = "blsp_spi0";
  110. pins = "gpio55", "gpio56", "gpio57";
  111. drive-strength = <2>;
  112. bias-disable;
  113. };
  114. pin_cs {
  115. function = "gpio";
  116. pins = "gpio54", "gpio59";
  117. drive-strength = <2>;
  118. bias-disable;
  119. output-high;
  120. };
  121. };
  122. };
  123. &blsp_dma {
  124. status = "okay";
  125. };
  126. &blsp1_spi1 {
  127. pinctrl-0 = <&spi_0_pins>;
  128. pinctrl-names = "default";
  129. cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 59 GPIO_ACTIVE_HIGH>;
  130. status = "okay";
  131. m25p80@0 {
  132. #address-cells = <1>;
  133. #size-cells = <0>;
  134. reg = <0>;
  135. compatible = "jedec,spi-nor";
  136. spi-max-frequency = <24000000>;
  137. partitions {
  138. compatible = "fixed-partitions";
  139. #address-cells = <1>;
  140. #size-cells = <1>;
  141. partition0@0 {
  142. label = "SBL1";
  143. reg = <0x00000000 0x00040000>;
  144. read-only;
  145. };
  146. partition1@40000 {
  147. label = "MIBIB";
  148. reg = <0x00040000 0x00020000>;
  149. read-only;
  150. };
  151. partition2@60000 {
  152. label = "QSEE";
  153. reg = <0x00060000 0x00060000>;
  154. read-only;
  155. };
  156. partition3@c0000 {
  157. label = "CDT";
  158. reg = <0x000c0000 0x00010000>;
  159. read-only;
  160. };
  161. partition4@d0000 {
  162. label = "DDRPARAMS";
  163. reg = <0x000d0000 0x00010000>;
  164. read-only;
  165. };
  166. partition5@e0000 {
  167. label = "APPSBLENV"; /* uboot env*/
  168. reg = <0x000e0000 0x00010000>;
  169. read-only;
  170. };
  171. partition5@f0000 {
  172. label = "APPSBL"; /* uboot */
  173. reg = <0x000f0000 0x00080000>;
  174. read-only;
  175. };
  176. partition5@170000 {
  177. label = "ART";
  178. reg = <0x00170000 0x00010000>;
  179. read-only;
  180. };
  181. };
  182. };
  183. mt29f@1 {
  184. status = "okay";
  185. #address-cells = <1>;
  186. #size-cells = <0>;
  187. compatible = "spinand,mt29f", "w25n01gv";
  188. reg = <1>;
  189. spi-max-frequency = <24000000>;
  190. partitions {
  191. compatible = "fixed-partitions";
  192. #address-cells = <1>;
  193. #size-cells = <1>;
  194. partition0@0 {
  195. label = "ubi";
  196. reg = <0x00000000 0x08000000>;
  197. };
  198. };
  199. };
  200. };
  201. &cryptobam {
  202. status = "okay";
  203. };
  204. &gmac0 {
  205. qcom,poll_required = <1>;
  206. qcom,poll_required_dynamic = <1>;
  207. qcom,phy_mdio_addr = <3>;
  208. vlan_tag = <1 0x10>;
  209. };
  210. &gmac1 {
  211. qcom,poll_required = <1>;
  212. qcom,poll_required_dynamic = <1>;
  213. qcom,phy_mdio_addr = <4>;
  214. vlan_tag = <2 0x20>;
  215. };
  216. &wifi0 {
  217. status = "okay";
  218. qcom,ath10k-calibration-variant = "8devices-Jalapeno";
  219. };
  220. &wifi1 {
  221. status = "okay";
  222. qcom,ath10k-calibration-variant = "8devices-Jalapeno";
  223. };
  224. &usb3_ss_phy {
  225. status = "okay";
  226. };
  227. &usb3_hs_phy {
  228. status = "okay";
  229. };
  230. &usb2_hs_phy {
  231. status = "okay";
  232. };