rk3328-evb.dts 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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. status = "okay";
  78. };
  79. &i2c1 {
  80. status = "okay";
  81. rk805: pmic@18 {
  82. compatible = "rockchip,rk805";
  83. reg = <0x18>;
  84. interrupt-parent = <&gpio2>;
  85. interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
  86. #clock-cells = <1>;
  87. clock-output-names = "xin32k", "rk805-clkout2";
  88. gpio-controller;
  89. #gpio-cells = <2>;
  90. pinctrl-names = "default";
  91. pinctrl-0 = <&pmic_int_l>;
  92. rockchip,system-power-controller;
  93. wakeup-source;
  94. vcc1-supply = <&vcc_sys>;
  95. vcc2-supply = <&vcc_sys>;
  96. vcc3-supply = <&vcc_sys>;
  97. vcc4-supply = <&vcc_sys>;
  98. vcc5-supply = <&vcc_io>;
  99. vcc6-supply = <&vcc_io>;
  100. regulators {
  101. vdd_logic: DCDC_REG1 {
  102. regulator-name = "vdd_logic";
  103. regulator-min-microvolt = <712500>;
  104. regulator-max-microvolt = <1450000>;
  105. regulator-always-on;
  106. regulator-boot-on;
  107. regulator-state-mem {
  108. regulator-on-in-suspend;
  109. regulator-suspend-microvolt = <1000000>;
  110. };
  111. };
  112. vdd_arm: DCDC_REG2 {
  113. regulator-name = "vdd_arm";
  114. regulator-min-microvolt = <712500>;
  115. regulator-max-microvolt = <1450000>;
  116. regulator-always-on;
  117. regulator-boot-on;
  118. regulator-state-mem {
  119. regulator-on-in-suspend;
  120. regulator-suspend-microvolt = <950000>;
  121. };
  122. };
  123. vcc_ddr: DCDC_REG3 {
  124. regulator-name = "vcc_ddr";
  125. regulator-always-on;
  126. regulator-boot-on;
  127. regulator-state-mem {
  128. regulator-on-in-suspend;
  129. };
  130. };
  131. vcc_io: DCDC_REG4 {
  132. regulator-name = "vcc_io";
  133. regulator-min-microvolt = <3300000>;
  134. regulator-max-microvolt = <3300000>;
  135. regulator-always-on;
  136. regulator-boot-on;
  137. regulator-state-mem {
  138. regulator-on-in-suspend;
  139. regulator-suspend-microvolt = <3300000>;
  140. };
  141. };
  142. vcc_18: LDO_REG1 {
  143. regulator-name = "vcc_18";
  144. regulator-min-microvolt = <1800000>;
  145. regulator-max-microvolt = <1800000>;
  146. regulator-always-on;
  147. regulator-boot-on;
  148. regulator-state-mem {
  149. regulator-on-in-suspend;
  150. regulator-suspend-microvolt = <1800000>;
  151. };
  152. };
  153. vcc18_emmc: LDO_REG2 {
  154. regulator-name = "vcc18_emmc";
  155. regulator-min-microvolt = <1800000>;
  156. regulator-max-microvolt = <1800000>;
  157. regulator-always-on;
  158. regulator-boot-on;
  159. regulator-state-mem {
  160. regulator-on-in-suspend;
  161. regulator-suspend-microvolt = <1800000>;
  162. };
  163. };
  164. vdd_10: LDO_REG3 {
  165. regulator-name = "vdd_10";
  166. regulator-min-microvolt = <1000000>;
  167. regulator-max-microvolt = <1000000>;
  168. regulator-always-on;
  169. regulator-boot-on;
  170. regulator-state-mem {
  171. regulator-on-in-suspend;
  172. regulator-suspend-microvolt = <1000000>;
  173. };
  174. };
  175. };
  176. };
  177. };
  178. &pinctrl {
  179. pmic {
  180. pmic_int_l: pmic-int-l {
  181. rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
  182. };
  183. };
  184. sdio-pwrseq {
  185. wifi_enable_h: wifi-enable-h {
  186. rockchip,pins =
  187. <1 18 RK_FUNC_GPIO &pcfg_pull_none>;
  188. };
  189. };
  190. };
  191. &sdio {
  192. bus-width = <4>;
  193. cap-sd-highspeed;
  194. cap-sdio-irq;
  195. keep-power-in-suspend;
  196. max-frequency = <150000000>;
  197. mmc-pwrseq = <&sdio_pwrseq>;
  198. non-removable;
  199. pinctrl-names = "default";
  200. pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
  201. status = "okay";
  202. };
  203. &sdmmc {
  204. bus-width = <4>;
  205. cap-mmc-highspeed;
  206. cap-sd-highspeed;
  207. disable-wp;
  208. max-frequency = <150000000>;
  209. pinctrl-names = "default";
  210. pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_dectn &sdmmc0_bus4>;
  211. vmmc-supply = <&vcc_sd>;
  212. status = "okay";
  213. };
  214. &tsadc {
  215. status = "okay";
  216. };
  217. &uart2 {
  218. status = "okay";
  219. };
  220. &u2phy {
  221. status = "okay";
  222. };
  223. &u2phy_host {
  224. status = "okay";
  225. };
  226. &u2phy_otg {
  227. status = "okay";
  228. };
  229. &usb20_otg {
  230. status = "okay";
  231. };
  232. &usb_host0_ehci {
  233. status = "okay";
  234. };
  235. &usb_host0_ohci {
  236. status = "okay";
  237. };