rk3328-evb.dts 5.6 KB

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