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. usb3: usb3@8af8800 {
  63. status = "okay";
  64. };
  65. crypto@8e3a000 {
  66. status = "okay";
  67. };
  68. watchdog@b017000 {
  69. status = "okay";
  70. };
  71. ess-switch@c000000 {
  72. status = "okay";
  73. switch_lan_bmp = <0x10>; /* lan port bitmap */
  74. };
  75. edma@c080000 {
  76. status = "okay";
  77. };
  78. };
  79. };
  80. &tlmm {
  81. mdio_pins: mdio_pinmux {
  82. pinmux_1 {
  83. pins = "gpio53";
  84. function = "mdio";
  85. };
  86. pinmux_2 {
  87. pins = "gpio52";
  88. function = "mdc";
  89. };
  90. pinconf {
  91. pins = "gpio52", "gpio53";
  92. bias-pull-up;
  93. };
  94. };
  95. serial_pins: serial_pinmux {
  96. mux {
  97. pins = "gpio60", "gpio61";
  98. function = "blsp_uart0";
  99. bias-disable;
  100. };
  101. };
  102. spi_0_pins: spi_0_pinmux {
  103. pin {
  104. function = "blsp_spi0";
  105. pins = "gpio55", "gpio56", "gpio57";
  106. drive-strength = <2>;
  107. bias-disable;
  108. };
  109. pin_cs {
  110. function = "gpio";
  111. pins = "gpio54", "gpio59";
  112. drive-strength = <2>;
  113. bias-disable;
  114. output-high;
  115. };
  116. };
  117. };
  118. &blsp_dma {
  119. status = "okay";
  120. };
  121. &blsp1_spi1 {
  122. pinctrl-0 = <&spi_0_pins>;
  123. pinctrl-names = "default";
  124. cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 59 GPIO_ACTIVE_HIGH>;
  125. status = "okay";
  126. m25p80@0 {
  127. #address-cells = <1>;
  128. #size-cells = <0>;
  129. reg = <0>;
  130. compatible = "jedec,spi-nor";
  131. spi-max-frequency = <24000000>;
  132. partitions {
  133. compatible = "fixed-partitions";
  134. #address-cells = <1>;
  135. #size-cells = <1>;
  136. partition0@0 {
  137. label = "SBL1";
  138. reg = <0x00000000 0x00040000>;
  139. read-only;
  140. };
  141. partition1@40000 {
  142. label = "MIBIB";
  143. reg = <0x00040000 0x00020000>;
  144. read-only;
  145. };
  146. partition2@60000 {
  147. label = "QSEE";
  148. reg = <0x00060000 0x00060000>;
  149. read-only;
  150. };
  151. partition3@c0000 {
  152. label = "CDT";
  153. reg = <0x000c0000 0x00010000>;
  154. read-only;
  155. };
  156. partition4@d0000 {
  157. label = "DDRPARAMS";
  158. reg = <0x000d0000 0x00010000>;
  159. read-only;
  160. };
  161. partition5@e0000 {
  162. label = "APPSBLENV"; /* uboot env*/
  163. reg = <0x000e0000 0x00010000>;
  164. read-only;
  165. };
  166. partition5@f0000 {
  167. label = "APPSBL"; /* uboot */
  168. reg = <0x000f0000 0x00080000>;
  169. read-only;
  170. };
  171. partition5@170000 {
  172. label = "ART";
  173. reg = <0x00170000 0x00010000>;
  174. read-only;
  175. };
  176. };
  177. };
  178. mt29f@1 {
  179. status = "okay";
  180. #address-cells = <1>;
  181. #size-cells = <0>;
  182. compatible = "spinand,mt29f", "w25n01gv";
  183. reg = <1>;
  184. spi-max-frequency = <24000000>;
  185. partitions {
  186. compatible = "fixed-partitions";
  187. #address-cells = <1>;
  188. #size-cells = <1>;
  189. partition0@0 {
  190. label = "ubi";
  191. reg = <0x00000000 0x08000000>;
  192. };
  193. };
  194. };
  195. };
  196. &blsp1_uart1 {
  197. pinctrl-0 = <&serial_pins>;
  198. pinctrl-names = "default";
  199. status = "okay";
  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. };