rk3328-evb.dts 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd
  4. */
  5. /dts-v1/;
  6. #include "rk3328.dtsi"
  7. / {
  8. model = "Rockchip RK3328 EVB";
  9. compatible = "rockchip,rk3328-evb", "rockchip,rk3328";
  10. chosen {
  11. stdout-path = "serial2:1500000n8";
  12. };
  13. dc_12v: dc-12v {
  14. compatible = "regulator-fixed";
  15. regulator-name = "dc_12v";
  16. regulator-always-on;
  17. regulator-boot-on;
  18. regulator-min-microvolt = <12000000>;
  19. regulator-max-microvolt = <12000000>;
  20. };
  21. sdio_pwrseq: sdio-pwrseq {
  22. compatible = "mmc-pwrseq-simple";
  23. pinctrl-names = "default";
  24. pinctrl-0 = <&wifi_enable_h>;
  25. /*
  26. * On the module itself this is one of these (depending
  27. * on the actual card populated):
  28. * - SDIO_RESET_L_WL_REG_ON
  29. * - PDN (power down when low)
  30. */
  31. reset-gpios = <&gpio1 18 GPIO_ACTIVE_LOW>;
  32. };
  33. vcc_sd: sdmmc-regulator {
  34. compatible = "regulator-fixed";
  35. gpio = <&gpio0 30 GPIO_ACTIVE_LOW>;
  36. pinctrl-names = "default";
  37. pinctrl-0 = <&sdmmc0m1_gpio>;
  38. regulator-name = "vcc_sd";
  39. regulator-min-microvolt = <3300000>;
  40. regulator-max-microvolt = <3300000>;
  41. vin-supply = <&vcc_io>;
  42. };
  43. vcc_sys: vcc-sys {
  44. compatible = "regulator-fixed";
  45. regulator-name = "vcc_sys";
  46. regulator-always-on;
  47. regulator-boot-on;
  48. regulator-min-microvolt = <5000000>;
  49. regulator-max-microvolt = <5000000>;
  50. vin-supply = <&dc_12v>;
  51. };
  52. vcc_phy: vcc-phy-regulator {
  53. compatible = "regulator-fixed";
  54. regulator-name = "vcc_phy";
  55. regulator-always-on;
  56. regulator-boot-on;
  57. };
  58. };
  59. &cpu0 {
  60. cpu-supply = <&vdd_arm>;
  61. };
  62. &emmc {
  63. bus-width = <8>;
  64. cap-mmc-highspeed;
  65. non-removable;
  66. pinctrl-names = "default";
  67. pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
  68. status = "okay";
  69. };
  70. &gmac2phy {
  71. phy-supply = <&vcc_phy>;
  72. clock_in_out = "output";
  73. assigned-clocks = <&cru SCLK_MAC2PHY_SRC>;
  74. assigned-clock-rate = <50000000>;
  75. assigned-clocks = <&cru SCLK_MAC2PHY>;
  76. assigned-clock-parents = <&cru SCLK_MAC2PHY_SRC>;
  77. };
  78. &i2c1 {
  79. status = "okay";
  80. rk805: rk805@18 {
  81. compatible = "rockchip,rk805";
  82. reg = <0x18>;
  83. interrupt-parent = <&gpio2>;
  84. interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
  85. #clock-cells = <1>;
  86. clock-output-names = "xin32k", "rk805-clkout2";
  87. gpio-controller;
  88. #gpio-cells = <2>;
  89. pinctrl-names = "default";
  90. pinctrl-0 = <&pmic_int_l>;
  91. rockchip,system-power-controller;
  92. wakeup-source;
  93. vcc1-supply = <&vcc_sys>;
  94. vcc2-supply = <&vcc_sys>;
  95. vcc3-supply = <&vcc_sys>;
  96. vcc4-supply = <&vcc_sys>;
  97. vcc5-supply = <&vcc_io>;
  98. vcc6-supply = <&vcc_io>;
  99. regulators {
  100. vdd_logic: DCDC_REG1 {
  101. regulator-name = "vdd_logic";
  102. regulator-min-microvolt = <712500>;
  103. regulator-max-microvolt = <1450000>;
  104. regulator-always-on;
  105. regulator-boot-on;
  106. regulator-state-mem {
  107. regulator-on-in-suspend;
  108. regulator-suspend-microvolt = <1000000>;
  109. };
  110. };
  111. vdd_arm: DCDC_REG2 {
  112. regulator-name = "vdd_arm";
  113. regulator-min-microvolt = <712500>;
  114. regulator-max-microvolt = <1450000>;
  115. regulator-always-on;
  116. regulator-boot-on;
  117. regulator-state-mem {
  118. regulator-on-in-suspend;
  119. regulator-suspend-microvolt = <950000>;
  120. };
  121. };
  122. vcc_ddr: DCDC_REG3 {
  123. regulator-name = "vcc_ddr";
  124. regulator-always-on;
  125. regulator-boot-on;
  126. regulator-state-mem {
  127. regulator-on-in-suspend;
  128. };
  129. };
  130. vcc_io: DCDC_REG4 {
  131. regulator-name = "vcc_io";
  132. regulator-min-microvolt = <3300000>;
  133. regulator-max-microvolt = <3300000>;
  134. regulator-always-on;
  135. regulator-boot-on;
  136. regulator-state-mem {
  137. regulator-on-in-suspend;
  138. regulator-suspend-microvolt = <3300000>;
  139. };
  140. };
  141. vcc_18: LDO_REG1 {
  142. regulator-name = "vcc_18";
  143. regulator-min-microvolt = <1800000>;
  144. regulator-max-microvolt = <1800000>;
  145. regulator-always-on;
  146. regulator-boot-on;
  147. regulator-state-mem {
  148. regulator-on-in-suspend;
  149. regulator-suspend-microvolt = <1800000>;
  150. };
  151. };
  152. vcc18_emmc: LDO_REG2 {
  153. regulator-name = "vcc18_emmc";
  154. regulator-min-microvolt = <1800000>;
  155. regulator-max-microvolt = <1800000>;
  156. regulator-always-on;
  157. regulator-boot-on;
  158. regulator-state-mem {
  159. regulator-on-in-suspend;
  160. regulator-suspend-microvolt = <1800000>;
  161. };
  162. };
  163. vdd_10: LDO_REG3 {
  164. regulator-name = "vdd_10";
  165. regulator-min-microvolt = <1000000>;
  166. regulator-max-microvolt = <1000000>;
  167. regulator-always-on;
  168. regulator-boot-on;
  169. regulator-state-mem {
  170. regulator-on-in-suspend;
  171. regulator-suspend-microvolt = <1000000>;
  172. };
  173. };
  174. };
  175. };
  176. };
  177. &pinctrl {
  178. pmic {
  179. pmic_int_l: pmic-int-l {
  180. rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
  181. };
  182. };
  183. sdio-pwrseq {
  184. wifi_enable_h: wifi-enable-h {
  185. rockchip,pins =
  186. <1 18 RK_FUNC_GPIO &pcfg_pull_none>;
  187. };
  188. };
  189. };
  190. &sdio {
  191. bus-width = <4>;
  192. cap-sd-highspeed;
  193. cap-sdio-irq;
  194. keep-power-in-suspend;
  195. max-frequency = <150000000>;
  196. mmc-pwrseq = <&sdio_pwrseq>;
  197. non-removable;
  198. pinctrl-names = "default";
  199. pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
  200. status = "okay";
  201. };
  202. &sdmmc {
  203. bus-width = <4>;
  204. cap-mmc-highspeed;
  205. cap-sd-highspeed;
  206. disable-wp;
  207. max-frequency = <150000000>;
  208. pinctrl-names = "default";
  209. pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_dectn &sdmmc0_bus4>;
  210. vmmc-supply = <&vcc_sd>;
  211. status = "okay";
  212. };
  213. &tsadc {
  214. status = "okay";
  215. };
  216. &uart2 {
  217. status = "okay";
  218. };
  219. &u2phy {
  220. status = "okay";
  221. };
  222. &u2phy_host {
  223. status = "okay";
  224. };
  225. &u2phy_otg {
  226. status = "okay";
  227. };
  228. &usb20_otg {
  229. status = "okay";
  230. };
  231. &usb_host0_ehci {
  232. status = "okay";
  233. };
  234. &usb_host0_ohci {
  235. status = "okay";
  236. };