Merge branch 'master' of git://git.denx.de/u-boot-usb
[oweals/u-boot.git] / arch / arm / dts / rk3399-evb.dts
1 /*
2  * (C) Copyright 2016 Rockchip Electronics Co., Ltd
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6
7 /dts-v1/;
8 #include <dt-bindings/pwm/pwm.h>
9 #include "rk3399.dtsi"
10
11 / {
12         model = "Rockchip RK3399 Evaluation Board";
13         compatible = "rockchip,rk3399-evb", "rockchip,rk3399",
14                      "google,rk3399evb-rev2";
15
16         chosen {
17                 stdout-path = &uart2;
18         };
19
20         vdd_center: vdd-center {
21                 compatible = "pwm-regulator";
22                 pwms = <&pwm3 0 25000 0>;
23                 regulator-name = "vdd_center";
24                 regulator-min-microvolt = <800000>;
25                 regulator-max-microvolt = <1400000>;
26                 regulator-init-microvolt = <950000>;
27                 regulator-always-on;
28                 regulator-boot-on;
29                 status = "okay";
30         };
31
32         vcc3v3_sys: vcc3v3-sys {
33                 compatible = "regulator-fixed";
34                 regulator-name = "vcc3v3_sys";
35                 regulator-always-on;
36                 regulator-boot-on;
37                 regulator-min-microvolt = <3300000>;
38                 regulator-max-microvolt = <3300000>;
39         };
40
41         vcc_phy: vcc-phy-regulator {
42                 compatible = "regulator-fixed";
43                 regulator-name = "vcc_phy";
44                 regulator-always-on;
45                 regulator-boot-on;
46         };
47
48         vcc5v0_host: vcc5v0-host-en {
49                 compatible = "regulator-fixed";
50                 regulator-name = "vcc5v0_host";
51                 gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>;
52         };
53 };
54
55 &emmc_phy {
56         status = "okay";
57 };
58
59 &pwm0 {
60         status = "okay";
61 };
62
63 &pwm2 {
64         status = "okay";
65 };
66
67 &pwm3 {
68         status = "okay";
69 };
70
71 &sdmmc {
72         status = "okay";
73 };
74
75 &sdhci {
76         bus-width = <8>;
77         mmc-hs400-1_8v;
78         mmc-hs400-enhanced-strobe;
79         non-removable;
80         status = "okay";
81 };
82
83 &uart2 {
84         status = "okay";
85 };
86
87 &usb_host0_ehci {
88         status = "okay";
89 };
90
91 &usb_host0_ohci {
92         status = "okay";
93 };
94
95 &dwc3_typec0 {
96         status = "okay";
97 };
98
99 &usb_host1_ehci {
100         status = "okay";
101 };
102
103 &usb_host1_ohci {
104         status = "okay";
105 };
106
107 &dwc3_typec1 {
108         status = "okay";
109 };
110
111 &pinctrl {
112         pmic {
113                 pmic_int_l: pmic-int-l {
114                         rockchip,pins =
115                                 <1 21 RK_FUNC_GPIO &pcfg_pull_up>;
116                 };
117
118                 pmic_dvs2: pmic-dvs2 {
119                         rockchip,pins =
120                                 <1 18 RK_FUNC_GPIO &pcfg_pull_down>;
121                 };
122         };
123 };