xref: /freebsd/sys/contrib/device-tree/src/arm/rockchip/rv1108-evb.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*f126890aSEmmanuel Vadot
3*f126890aSEmmanuel Vadot/dts-v1/;
4*f126890aSEmmanuel Vadot
5*f126890aSEmmanuel Vadot#include "rv1108.dtsi"
6*f126890aSEmmanuel Vadot
7*f126890aSEmmanuel Vadot/ {
8*f126890aSEmmanuel Vadot	model = "Rockchip RV1108 Evaluation board";
9*f126890aSEmmanuel Vadot	compatible = "rockchip,rv1108-evb", "rockchip,rv1108";
10*f126890aSEmmanuel Vadot
11*f126890aSEmmanuel Vadot	aliases {
12*f126890aSEmmanuel Vadot		mmc0 = &sdmmc;
13*f126890aSEmmanuel Vadot	};
14*f126890aSEmmanuel Vadot
15*f126890aSEmmanuel Vadot	memory@60000000 {
16*f126890aSEmmanuel Vadot		device_type = "memory";
17*f126890aSEmmanuel Vadot		reg = <0x60000000 0x08000000>;
18*f126890aSEmmanuel Vadot	};
19*f126890aSEmmanuel Vadot
20*f126890aSEmmanuel Vadot	chosen {
21*f126890aSEmmanuel Vadot		stdout-path = "serial2:1500000n8";
22*f126890aSEmmanuel Vadot	};
23*f126890aSEmmanuel Vadot
24*f126890aSEmmanuel Vadot	backlight: backlight {
25*f126890aSEmmanuel Vadot		compatible = "pwm-backlight";
26*f126890aSEmmanuel Vadot		brightness-levels = <
27*f126890aSEmmanuel Vadot			  0   1   2   3   4   5   6   7
28*f126890aSEmmanuel Vadot			  8   9  10  11  12  13  14  15
29*f126890aSEmmanuel Vadot			 16  17  18  19  20  21  22  23
30*f126890aSEmmanuel Vadot			 24  25  26  27  28  29  30  31
31*f126890aSEmmanuel Vadot			 32  33  34  35  36  37  38  39
32*f126890aSEmmanuel Vadot			 40  41  42  43  44  45  46  47
33*f126890aSEmmanuel Vadot			 48  49  50  51  52  53  54  55
34*f126890aSEmmanuel Vadot			 56  57  58  59  60  61  62  63
35*f126890aSEmmanuel Vadot			 64  65  66  67  68  69  70  71
36*f126890aSEmmanuel Vadot			 72  73  74  75  76  77  78  79
37*f126890aSEmmanuel Vadot			 80  81  82  83  84  85  86  87
38*f126890aSEmmanuel Vadot			 88  89  90  91  92  93  94  95
39*f126890aSEmmanuel Vadot			 96  97  98  99 100 101 102 103
40*f126890aSEmmanuel Vadot			104 105 106 107 108 109 110 111
41*f126890aSEmmanuel Vadot			112 113 114 115 116 117 118 119
42*f126890aSEmmanuel Vadot			120 121 122 123 124 125 126 127
43*f126890aSEmmanuel Vadot			128 129 130 131 132 133 134 135
44*f126890aSEmmanuel Vadot			136 137 138 139 140 141 142 143
45*f126890aSEmmanuel Vadot			144 145 146 147 148 149 150 151
46*f126890aSEmmanuel Vadot			152 153 154 155 156 157 158 159
47*f126890aSEmmanuel Vadot			160 161 162 163 164 165 166 167
48*f126890aSEmmanuel Vadot			168 169 170 171 172 173 174 175
49*f126890aSEmmanuel Vadot			176 177 178 179 180 181 182 183
50*f126890aSEmmanuel Vadot			184 185 186 187 188 189 190 191
51*f126890aSEmmanuel Vadot			192 193 194 195 196 197 198 199
52*f126890aSEmmanuel Vadot			200 201 202 203 204 205 206 207
53*f126890aSEmmanuel Vadot			208 209 210 211 212 213 214 215
54*f126890aSEmmanuel Vadot			216 217 218 219 220 221 222 223
55*f126890aSEmmanuel Vadot			224 225 226 227 228 229 230 231
56*f126890aSEmmanuel Vadot			232 233 234 235 236 237 238 239
57*f126890aSEmmanuel Vadot			240 241 242 243 244 245 246 247
58*f126890aSEmmanuel Vadot			248 249 250 251 252 253 254 255>;
59*f126890aSEmmanuel Vadot		default-brightness-level = <200>;
60*f126890aSEmmanuel Vadot		pwms = <&pwm0 0 25000 0>;
61*f126890aSEmmanuel Vadot	};
62*f126890aSEmmanuel Vadot
63*f126890aSEmmanuel Vadot	vcc_sys: vsys-regulator {
64*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
65*f126890aSEmmanuel Vadot		regulator-name = "vsys";
66*f126890aSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
67*f126890aSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
68*f126890aSEmmanuel Vadot		regulator-boot-on;
69*f126890aSEmmanuel Vadot	};
70*f126890aSEmmanuel Vadot};
71*f126890aSEmmanuel Vadot
72*f126890aSEmmanuel Vadot&cpu0 {
73*f126890aSEmmanuel Vadot	cpu-supply = <&vdd_core>;
74*f126890aSEmmanuel Vadot};
75*f126890aSEmmanuel Vadot
76*f126890aSEmmanuel Vadot&i2c0 {
77*f126890aSEmmanuel Vadot	status = "okay";
78*f126890aSEmmanuel Vadot	i2c-scl-rising-time-ns = <275>;
79*f126890aSEmmanuel Vadot	i2c-scl-falling-time-ns = <16>;
80*f126890aSEmmanuel Vadot	clock-frequency = <400000>;
81*f126890aSEmmanuel Vadot
82*f126890aSEmmanuel Vadot	rk805: pmic@18 {
83*f126890aSEmmanuel Vadot		compatible = "rockchip,rk805";
84*f126890aSEmmanuel Vadot		reg = <0x18>;
85*f126890aSEmmanuel Vadot		interrupt-parent = <&gpio0>;
86*f126890aSEmmanuel Vadot		interrupts = <RK_PB4 IRQ_TYPE_LEVEL_LOW>;
87*f126890aSEmmanuel Vadot		rockchip,system-power-controller;
88*f126890aSEmmanuel Vadot		#clock-cells = <0>;
89*f126890aSEmmanuel Vadot
90*f126890aSEmmanuel Vadot		vcc1-supply = <&vcc_sys>;
91*f126890aSEmmanuel Vadot		vcc2-supply = <&vcc_sys>;
92*f126890aSEmmanuel Vadot		vcc3-supply = <&vcc_sys>;
93*f126890aSEmmanuel Vadot		vcc4-supply = <&vcc_sys>;
94*f126890aSEmmanuel Vadot		vcc5-supply = <&vcc_sys>;
95*f126890aSEmmanuel Vadot		vcc6-supply = <&vcc_sys>;
96*f126890aSEmmanuel Vadot
97*f126890aSEmmanuel Vadot		regulators {
98*f126890aSEmmanuel Vadot			vdd_core: DCDC_REG1 {
99*f126890aSEmmanuel Vadot				regulator-name = "vdd_core";
100*f126890aSEmmanuel Vadot				regulator-min-microvolt = <700000>;
101*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1500000>;
102*f126890aSEmmanuel Vadot				regulator-always-on;
103*f126890aSEmmanuel Vadot				regulator-boot-on;
104*f126890aSEmmanuel Vadot				regulator-state-mem {
105*f126890aSEmmanuel Vadot					regulator-on-in-suspend;
106*f126890aSEmmanuel Vadot					regulator-suspend-microvolt = <900000>;
107*f126890aSEmmanuel Vadot				};
108*f126890aSEmmanuel Vadot			};
109*f126890aSEmmanuel Vadot
110*f126890aSEmmanuel Vadot			vdd_cam: DCDC_REG2 {
111*f126890aSEmmanuel Vadot				regulator-name = "vdd_cam";
112*f126890aSEmmanuel Vadot				regulator-min-microvolt = <700000>;
113*f126890aSEmmanuel Vadot				regulator-max-microvolt = <2000000>;
114*f126890aSEmmanuel Vadot				regulator-state-mem {
115*f126890aSEmmanuel Vadot					regulator-off-in-suspend;
116*f126890aSEmmanuel Vadot				};
117*f126890aSEmmanuel Vadot			};
118*f126890aSEmmanuel Vadot
119*f126890aSEmmanuel Vadot			vcc_ddr: DCDC_REG3 {
120*f126890aSEmmanuel Vadot				regulator-name = "vcc_ddr";
121*f126890aSEmmanuel Vadot				regulator-always-on;
122*f126890aSEmmanuel Vadot				regulator-boot-on;
123*f126890aSEmmanuel Vadot				regulator-state-mem {
124*f126890aSEmmanuel Vadot					regulator-on-in-suspend;
125*f126890aSEmmanuel Vadot				};
126*f126890aSEmmanuel Vadot			};
127*f126890aSEmmanuel Vadot
128*f126890aSEmmanuel Vadot			vcc_io: DCDC_REG4 {
129*f126890aSEmmanuel Vadot				regulator-name = "vcc_io";
130*f126890aSEmmanuel Vadot				regulator-min-microvolt = <3300000>;
131*f126890aSEmmanuel Vadot				regulator-max-microvolt = <3300000>;
132*f126890aSEmmanuel Vadot				regulator-always-on;
133*f126890aSEmmanuel Vadot				regulator-boot-on;
134*f126890aSEmmanuel Vadot				regulator-state-mem {
135*f126890aSEmmanuel Vadot					regulator-on-in-suspend;
136*f126890aSEmmanuel Vadot					regulator-suspend-microvolt = <3300000>;
137*f126890aSEmmanuel Vadot				};
138*f126890aSEmmanuel Vadot			};
139*f126890aSEmmanuel Vadot
140*f126890aSEmmanuel Vadot			vdd_10: LDO_REG1 {
141*f126890aSEmmanuel Vadot				regulator-name = "vdd_10";
142*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1000000>;
143*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1000000>;
144*f126890aSEmmanuel Vadot				regulator-always-on;
145*f126890aSEmmanuel Vadot				regulator-boot-on;
146*f126890aSEmmanuel Vadot				regulator-state-mem {
147*f126890aSEmmanuel Vadot					regulator-off-in-suspend;
148*f126890aSEmmanuel Vadot				};
149*f126890aSEmmanuel Vadot			};
150*f126890aSEmmanuel Vadot
151*f126890aSEmmanuel Vadot			vcc_18: LDO_REG2 {
152*f126890aSEmmanuel Vadot				regulator-name = "vcc_18";
153*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
154*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
155*f126890aSEmmanuel Vadot				regulator-always-on;
156*f126890aSEmmanuel Vadot				regulator-boot-on;
157*f126890aSEmmanuel Vadot				regulator-state-mem {
158*f126890aSEmmanuel Vadot					regulator-off-in-suspend;
159*f126890aSEmmanuel Vadot				};
160*f126890aSEmmanuel Vadot			};
161*f126890aSEmmanuel Vadot
162*f126890aSEmmanuel Vadot			vdd10_pmu: LDO_REG3 {
163*f126890aSEmmanuel Vadot				regulator-name = "vdd10_pmu";
164*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1000000>;
165*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1000000>;
166*f126890aSEmmanuel Vadot				regulator-always-on;
167*f126890aSEmmanuel Vadot				regulator-boot-on;
168*f126890aSEmmanuel Vadot				regulator-state-mem {
169*f126890aSEmmanuel Vadot					regulator-on-in-suspend;
170*f126890aSEmmanuel Vadot					regulator-suspend-microvolt = <1000000>;
171*f126890aSEmmanuel Vadot				};
172*f126890aSEmmanuel Vadot			};
173*f126890aSEmmanuel Vadot		};
174*f126890aSEmmanuel Vadot	};
175*f126890aSEmmanuel Vadot
176*f126890aSEmmanuel Vadot	bma250: accelerometer@19 {
177*f126890aSEmmanuel Vadot		compatible = "bosch,bma250e";
178*f126890aSEmmanuel Vadot		reg = <0x19>;
179*f126890aSEmmanuel Vadot		interrupt-parent = <&gpio0>;
180*f126890aSEmmanuel Vadot		interrupts = <RK_PB3 IRQ_TYPE_LEVEL_LOW>;
181*f126890aSEmmanuel Vadot	};
182*f126890aSEmmanuel Vadot};
183*f126890aSEmmanuel Vadot
184*f126890aSEmmanuel Vadot&pwm0 {
185*f126890aSEmmanuel Vadot	status = "okay";
186*f126890aSEmmanuel Vadot};
187*f126890aSEmmanuel Vadot
188*f126890aSEmmanuel Vadot&sdmmc {
189*f126890aSEmmanuel Vadot	status = "okay";
190*f126890aSEmmanuel Vadot};
191*f126890aSEmmanuel Vadot
192*f126890aSEmmanuel Vadot&tsadc {
193*f126890aSEmmanuel Vadot	status = "okay";
194*f126890aSEmmanuel Vadot};
195*f126890aSEmmanuel Vadot
196*f126890aSEmmanuel Vadot&u2phy {
197*f126890aSEmmanuel Vadot	status = "okay";
198*f126890aSEmmanuel Vadot
199*f126890aSEmmanuel Vadot	u2phy_host: host-port {
200*f126890aSEmmanuel Vadot		status = "okay";
201*f126890aSEmmanuel Vadot	};
202*f126890aSEmmanuel Vadot
203*f126890aSEmmanuel Vadot	u2phy_otg: otg-port {
204*f126890aSEmmanuel Vadot		status = "okay";
205*f126890aSEmmanuel Vadot	};
206*f126890aSEmmanuel Vadot};
207*f126890aSEmmanuel Vadot
208*f126890aSEmmanuel Vadot&uart0 {
209*f126890aSEmmanuel Vadot	status = "okay";
210*f126890aSEmmanuel Vadot};
211*f126890aSEmmanuel Vadot
212*f126890aSEmmanuel Vadot&uart1 {
213*f126890aSEmmanuel Vadot	status = "okay";
214*f126890aSEmmanuel Vadot};
215*f126890aSEmmanuel Vadot
216*f126890aSEmmanuel Vadot&uart2 {
217*f126890aSEmmanuel Vadot	status = "okay";
218*f126890aSEmmanuel Vadot};
219*f126890aSEmmanuel Vadot
220*f126890aSEmmanuel Vadot&usb_host_ehci {
221*f126890aSEmmanuel Vadot	status = "okay";
222*f126890aSEmmanuel Vadot};
223*f126890aSEmmanuel Vadot
224*f126890aSEmmanuel Vadot&usb_host_ohci {
225*f126890aSEmmanuel Vadot	status = "okay";
226*f126890aSEmmanuel Vadot};
227*f126890aSEmmanuel Vadot
228*f126890aSEmmanuel Vadot&usb_otg {
229*f126890aSEmmanuel Vadot	status = "okay";
230*f126890aSEmmanuel Vadot};
231