xref: /openbmc/u-boot/arch/arm/dts/rk3399-evb.dts (revision c04b9b34)
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#include "rk3399-sdram-lpddr3-4GB-1600.dtsi"
11
12/ {
13	model = "Rockchip RK3399 Evaluation Board";
14	compatible = "rockchip,rk3399-evb", "rockchip,rk3399",
15		     "google,rk3399evb-rev2";
16
17	chosen {
18		stdout-path = &uart2;
19	};
20
21	vdd_center: vdd-center {
22		compatible = "pwm-regulator";
23		pwms = <&pwm3 0 25000 0>;
24		regulator-name = "vdd_center";
25		regulator-min-microvolt = <800000>;
26		regulator-max-microvolt = <1400000>;
27		regulator-init-microvolt = <950000>;
28		regulator-always-on;
29		regulator-boot-on;
30		status = "okay";
31	};
32
33	vccsys: vccsys {
34		compatible = "regulator-fixed";
35		regulator-name = "vccsys";
36		regulator-boot-on;
37		regulator-always-on;
38	};
39
40	vcc3v3_sys: vcc3v3-sys {
41		compatible = "regulator-fixed";
42		regulator-name = "vcc3v3_sys";
43		regulator-always-on;
44		regulator-boot-on;
45		regulator-min-microvolt = <3300000>;
46		regulator-max-microvolt = <3300000>;
47	};
48
49	vcc_phy: vcc-phy-regulator {
50		compatible = "regulator-fixed";
51		regulator-name = "vcc_phy";
52		regulator-always-on;
53		regulator-boot-on;
54	};
55
56	vcc5v0_host: vcc5v0-host-en {
57		compatible = "regulator-fixed";
58		regulator-name = "vcc5v0_host";
59		gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>;
60	};
61
62};
63
64&emmc_phy {
65	status = "okay";
66};
67
68&pwm0 {
69	status = "okay";
70};
71
72&pwm2 {
73	status = "okay";
74};
75
76&pwm3 {
77	status = "okay";
78};
79
80&sdmmc {
81	bus-width = <4>;
82	status = "okay";
83};
84
85&sdhci {
86	bus-width = <8>;
87	mmc-hs400-1_8v;
88	mmc-hs400-enhanced-strobe;
89	non-removable;
90	status = "okay";
91};
92
93&uart2 {
94	status = "okay";
95};
96
97&usb_host0_ehci {
98	status = "okay";
99};
100
101&usb_host0_ohci {
102	status = "okay";
103};
104
105&dwc3_typec0 {
106	rockchip,vbus-gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>;
107	status = "okay";
108};
109
110&usb_host1_ehci {
111	status = "okay";
112};
113
114&usb_host1_ohci {
115	status = "okay";
116};
117
118&dwc3_typec1 {
119	rockchip,vbus-gpio = <&gpio1 4 GPIO_ACTIVE_HIGH>;
120	status = "okay";
121};
122
123&i2c0 {
124	status = "okay";
125	clock-frequency = <400000>;
126	i2c-scl-falling-time-ns = <50>;
127	i2c-scl-rising-time-ns = <100>;
128	u-boot,dm-pre-reloc;
129
130	rk808: pmic@1b {
131		compatible = "rockchip,rk808";
132		clock-output-names = "xin32k", "wifibt_32kin";
133		interrupt-parent = <&gpio0>;
134		interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
135		pinctrl-names = "default";
136		pinctrl-0 = <&pmic_int_l>;
137		reg = <0x1b>;
138		rockchip,system-power-controller;
139		#clock-cells = <1>;
140		u-boot,dm-pre-reloc;
141		status = "okay";
142
143		vcc12-supply = <&vcc3v3_sys>;
144		regulators {
145			vcc33_lcd: SWITCH_REG2 {
146				regulator-always-on;
147				regulator-boot-on;
148				regulator-name = "vcc33_lcd";
149			};
150		};
151	};
152};
153
154&pinctrl {
155	pmic {
156		pmic_int_l: pmic-int-l {
157			rockchip,pins =
158				<1 21 RK_FUNC_GPIO &pcfg_pull_up>;
159		};
160
161		pmic_dvs2: pmic-dvs2 {
162			rockchip,pins =
163				<1 18 RK_FUNC_GPIO &pcfg_pull_down>;
164		};
165	};
166};
167