qcom-ipq4028-wpj428.dts 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
  2. * Copyright (c) 2017, Christian Mehlis <[email protected]>
  3. * Copyright (c) 2017-2018, Sven Eckelmann <[email protected]>
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for any
  6. * purpose with or without fee is hereby granted, provided that the above
  7. * copyright notice and this permission notice appear in all copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  12. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  14. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  15. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16. *
  17. */
  18. #include "qcom-ipq4019.dtsi"
  19. #include "qcom-ipq4019-bus.dtsi"
  20. #include <dt-bindings/gpio/gpio.h>
  21. #include <dt-bindings/input/input.h>
  22. #include <dt-bindings/soc/qcom,tcsr.h>
  23. / {
  24. model = "Compex WPJ428";
  25. compatible = "compex,wpj428", "qcom,ipq4019";
  26. soc {
  27. mdio@90000 {
  28. status = "okay";
  29. };
  30. ess-psgmii@98000 {
  31. status = "okay";
  32. };
  33. tcsr@194b000 {
  34. /* select hostmode */
  35. compatible = "qcom,tcsr";
  36. reg = <0x194b000 0x100>;
  37. qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
  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. ess_tcsr@1953000 {
  46. compatible = "qcom,tcsr";
  47. reg = <0x1953000 0x1000>;
  48. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  49. };
  50. tcsr@1957000 {
  51. compatible = "qcom,tcsr";
  52. reg = <0x1957000 0x100>;
  53. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  54. };
  55. usb2: usb2@60f8800 {
  56. status = "okay";
  57. };
  58. serial@78af000 {
  59. pinctrl-0 = <&serial_pins>;
  60. pinctrl-names = "default";
  61. status = "okay";
  62. };
  63. usb3: usb3@8af8800 {
  64. status = "okay";
  65. };
  66. crypto@8e3a000 {
  67. status = "okay";
  68. };
  69. watchdog@b017000 {
  70. status = "okay";
  71. };
  72. ess-switch@c000000 {
  73. switch_lan_bmp = <0x10>;
  74. switch_wan_bmp = <0x20>;
  75. status = "okay";
  76. };
  77. edma@c080000 {
  78. status = "okay";
  79. };
  80. };
  81. gpio-keys {
  82. compatible = "gpio-keys";
  83. reset {
  84. label = "reset";
  85. gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
  86. linux,code = <KEY_RESTART>;
  87. };
  88. };
  89. aliases {
  90. led-boot = &status;
  91. led-failsafe = &status;
  92. led-upgrade = &status;
  93. };
  94. gpio-leds {
  95. compatible = "gpio-leds";
  96. status: rss4 {
  97. label = "wpj428:green:rss4";
  98. gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
  99. default-state = "off";
  100. };
  101. rss3 {
  102. label = "wpj428:green:rss3";
  103. gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
  104. default-state = "off";
  105. };
  106. };
  107. beeper: beeper {
  108. compatible = "gpio-beeper";
  109. gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
  110. };
  111. };
  112. &tlmm {
  113. serial_pins: serial_pinmux {
  114. mux {
  115. pins = "gpio60", "gpio61";
  116. function = "blsp_uart0";
  117. bias-disable;
  118. };
  119. };
  120. spi_0_pins: spi_0_pinmux {
  121. pin {
  122. function = "blsp_spi0";
  123. pins = "gpio55", "gpio56", "gpio57";
  124. drive-strength = <12>;
  125. bias-disable;
  126. };
  127. pin_cs {
  128. function = "gpio";
  129. pins = "gpio54";
  130. drive-strength = <2>;
  131. bias-disable;
  132. output-high;
  133. };
  134. };
  135. };
  136. &blsp_dma {
  137. status = "okay";
  138. };
  139. &spi_0 {
  140. pinctrl-0 = <&spi_0_pins>;
  141. pinctrl-names = "default";
  142. status = "okay";
  143. cs-gpios = <&tlmm 54 0>;
  144. m25p80@0 {
  145. #address-cells = <1>;
  146. #size-cells = <1>;
  147. compatible = "jedec,spi-nor";
  148. reg = <0>;
  149. spi-max-frequency = <24000000>;
  150. partitions {
  151. compatible = "fixed-partitions";
  152. #address-cells = <1>;
  153. #size-cells = <1>;
  154. partition0@0 {
  155. label = "0:SBL1";
  156. reg = <0x00000000 0x00040000>;
  157. read-only;
  158. };
  159. partition1@40000 {
  160. label = "0:MIBIB";
  161. reg = <0x00040000 0x00020000>;
  162. read-only;
  163. };
  164. partition2@60000 {
  165. label = "0:QSEE";
  166. reg = <0x00060000 0x00060000>;
  167. read-only;
  168. };
  169. partition3@c0000 {
  170. label = "0:CDT";
  171. reg = <0x000c0000 0x00010000>;
  172. read-only;
  173. };
  174. partition4@d0000 {
  175. label = "0:DDRPARAMS";
  176. reg = <0x000d0000 0x00010000>;
  177. read-only;
  178. };
  179. partition5@e0000 {
  180. label = "0:APPSBLENV"; /* uboot env*/
  181. reg = <0x000e0000 0x00010000>;
  182. read-only;
  183. };
  184. partition5@f0000 {
  185. label = "0:APPSBL"; /* uboot */
  186. reg = <0x000f0000 0x00080000>;
  187. read-only;
  188. };
  189. partition5@170000 {
  190. label = "0:ART";
  191. reg = <0x00170000 0x00010000>;
  192. read-only;
  193. };
  194. partition6@180000 {
  195. label = "firmware";
  196. reg = <0x00180000 0x01e80000>;
  197. };
  198. };
  199. };
  200. };
  201. &cryptobam {
  202. status = "okay";
  203. };
  204. &gmac0 {
  205. qcom,phy_mdio_addr = <4>;
  206. qcom,poll_required = <1>;
  207. qcom,forced_speed = <1000>;
  208. qcom,forced_duplex = <1>;
  209. vlan_tag = <2 0x20>;
  210. };
  211. &gmac1 {
  212. qcom,phy_mdio_addr = <3>;
  213. qcom,poll_required = <1>;
  214. qcom,forced_speed = <1000>;
  215. qcom,forced_duplex = <1>;
  216. vlan_tag = <1 0x10>;
  217. };
  218. &usb3_ss_phy {
  219. status = "okay";
  220. };
  221. &usb3_hs_phy {
  222. status = "okay";
  223. };
  224. &usb2_hs_phy {
  225. status = "okay";
  226. };
  227. &wifi0 {
  228. status = "okay";
  229. };
  230. &wifi1 {
  231. status = "okay";
  232. };