blob: aa3e21bd6c8f44ff5f9b249dd43b56316dbc2a60 [file] [log] [blame]
Jagan Teki5cc21182020-04-28 15:30:17 +05301// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
Philipp Tomsich3093d202017-03-28 18:48:51 +02002/*
Jagan Teki5cc21182020-04-28 15:30:17 +05303 * Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH
Philipp Tomsich3093d202017-03-28 18:48:51 +02004 */
5
Philipp Tomsich3093d202017-03-28 18:48:51 +02006#include <dt-bindings/pwm/pwm.h>
7#include "rk3399.dtsi"
Jagan Teki5cc21182020-04-28 15:30:17 +05308#include "rk3399-opp.dtsi"
Philipp Tomsich3093d202017-03-28 18:48:51 +02009
10/ {
Peter Robinson7c79b872021-07-22 16:20:42 +010011 aliases {
12 mmc0 = &sdhci;
13 };
14
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020015 leds {
16 compatible = "gpio-leds";
17 pinctrl-names = "default";
Peter Robinson7c79b872021-07-22 16:20:42 +010018 pinctrl-0 = <&module_led_pin>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020019
Peter Robinson7c79b872021-07-22 16:20:42 +010020 module_led: led-0 {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020021 label = "module_led";
Klaus Gogerde02bc62017-11-06 23:02:54 +010022 gpios = <&gpio2 RK_PD1 GPIO_ACTIVE_HIGH>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020023 linux,default-trigger = "heartbeat";
Jagan Teki5cc21182020-04-28 15:30:17 +053024 panic-indicator;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020025 };
26 };
27
Quentin Schulz67ec9312022-11-15 15:46:23 +010028 extcon_usb3: extcon-usb3 {
29 compatible = "linux,extcon-usb-gpio";
30 id-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_HIGH>;
31 pinctrl-names = "default";
32 pinctrl-0 = <&usb3_id>;
33 };
34
Jagan Teki5cc21182020-04-28 15:30:17 +053035 clkin_gmac: external-gmac-clock {
36 compatible = "fixed-clock";
37 clock-frequency = <125000000>;
38 clock-output-names = "clkin_gmac";
39 #clock-cells = <0>;
Philipp Tomsich75fc2082017-09-29 19:28:01 +020040 };
41
Jagan Teki5cc21182020-04-28 15:30:17 +053042 vcc1v2_phy: vcc1v2-phy {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020043 compatible = "regulator-fixed";
Jagan Teki5cc21182020-04-28 15:30:17 +053044 regulator-name = "vcc1v2_phy";
Philipp Tomsich3093d202017-03-28 18:48:51 +020045 regulator-always-on;
46 regulator-boot-on;
Jagan Teki5cc21182020-04-28 15:30:17 +053047 regulator-min-microvolt = <1200000>;
48 regulator-max-microvolt = <1200000>;
49 vin-supply = <&vcc5v0_sys>;
Philipp Tomsich3093d202017-03-28 18:48:51 +020050 };
51
52 vcc3v3_sys: vcc3v3-sys {
53 compatible = "regulator-fixed";
54 regulator-name = "vcc3v3_sys";
55 regulator-always-on;
56 regulator-boot-on;
57 regulator-min-microvolt = <3300000>;
58 regulator-max-microvolt = <3300000>;
Jagan Teki5cc21182020-04-28 15:30:17 +053059 vin-supply = <&vcc5v0_sys>;
Philipp Tomsich3093d202017-03-28 18:48:51 +020060 };
61
Jagan Teki5cc21182020-04-28 15:30:17 +053062 vcc5v0_host: vcc5v0-host-regulator {
Philipp Tomsich3093d202017-03-28 18:48:51 +020063 compatible = "regulator-fixed";
Heiko Stuebneredfd0362020-06-05 12:06:37 +020064 gpio = <&gpio4 RK_PA3 GPIO_ACTIVE_LOW>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020065 pinctrl-names = "default";
Jagan Teki5cc21182020-04-28 15:30:17 +053066 pinctrl-0 = <&vcc5v0_host_en>;
67 regulator-name = "vcc5v0_host";
Philipp Tomsich3093d202017-03-28 18:48:51 +020068 regulator-always-on;
Jagan Teki5cc21182020-04-28 15:30:17 +053069 vin-supply = <&vcc5v0_sys>;
Philipp Tomsich3093d202017-03-28 18:48:51 +020070 };
71
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020072 vcc5v0_sys: vcc5v0-sys {
73 compatible = "regulator-fixed";
74 regulator-name = "vcc5v0_sys";
75 regulator-always-on;
76 regulator-boot-on;
77 regulator-min-microvolt = <5000000>;
78 regulator-max-microvolt = <5000000>;
Philipp Tomsich3093d202017-03-28 18:48:51 +020079 };
Quentin Schulz67ec9312022-11-15 15:46:23 +010080
81 vdd_log: vdd-log {
82 compatible = "pwm-regulator";
83 pwms = <&pwm2 0 25000 1>;
84 pwm-supply = <&vcc5v0_sys>;
85 regulator-name = "vdd_log";
86 regulator-min-microvolt = <800000>;
87 regulator-max-microvolt = <1400000>;
88 regulator-always-on;
89 regulator-boot-on;
90 };
Jagan Teki5cc21182020-04-28 15:30:17 +053091};
Philipp Tomsich3093d202017-03-28 18:48:51 +020092
Jagan Teki5cc21182020-04-28 15:30:17 +053093&cpu_b0 {
94 cpu-supply = <&vdd_cpu_b>;
95};
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020096
Jagan Teki5cc21182020-04-28 15:30:17 +053097&cpu_b1 {
98 cpu-supply = <&vdd_cpu_b>;
99};
100
101&cpu_l0 {
102 cpu-supply = <&vdd_cpu_l>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200103};
104
Jagan Teki5cc21182020-04-28 15:30:17 +0530105&cpu_l1 {
106 cpu-supply = <&vdd_cpu_l>;
107};
108
109&cpu_l2 {
110 cpu-supply = <&vdd_cpu_l>;
111};
112
113&cpu_l3 {
114 cpu-supply = <&vdd_cpu_l>;
115};
116
Philipp Tomsich3093d202017-03-28 18:48:51 +0200117&emmc_phy {
118 status = "okay";
Jagan Teki5cc21182020-04-28 15:30:17 +0530119 drive-impedance-ohm = <33>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200120};
121
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200122&gmac {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200123 assigned-clocks = <&cru SCLK_RMII_SRC>;
124 assigned-clock-parents = <&clkin_gmac>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530125 clock_in_out = "input";
126 phy-supply = <&vcc1v2_phy>;
127 phy-mode = "rgmii";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200128 pinctrl-names = "default";
129 pinctrl-0 = <&rgmii_pins>;
Heiko Stuebner3febd56e2020-06-05 12:06:36 +0200130 snps,reset-gpio = <&gpio3 RK_PC0 GPIO_ACTIVE_LOW>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530131 snps,reset-active-low;
132 snps,reset-delays-us = <0 10000 50000>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200133 tx_delay = <0x10>;
134 rx_delay = <0x10>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200135 status = "okay";
136};
137
Jagan Teki5cc21182020-04-28 15:30:17 +0530138&gpu {
139 mali-supply = <&vdd_gpu>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200140 status = "okay";
141};
142
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200143&i2c0 {
Philipp Tomsich3093d202017-03-28 18:48:51 +0200144 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200145 i2c-scl-rising-time-ns = <168>;
146 i2c-scl-falling-time-ns = <4>;
147 clock-frequency = <400000>;
148
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200149 rk808: pmic@1b {
150 compatible = "rockchip,rk808";
151 reg = <0x1b>;
152 interrupt-parent = <&gpio1>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530153 interrupts = <22 IRQ_TYPE_LEVEL_LOW>;
154 #clock-cells = <1>;
155 clock-output-names = "xin32k", "rk808-clkout2";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200156 pinctrl-names = "default";
157 pinctrl-0 = <&pmic_int_l>;
158 rockchip,system-power-controller;
159 wakeup-source;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200160
161 vcc1-supply = <&vcc5v0_sys>;
162 vcc2-supply = <&vcc5v0_sys>;
163 vcc3-supply = <&vcc5v0_sys>;
164 vcc4-supply = <&vcc5v0_sys>;
165 vcc6-supply = <&vcc5v0_sys>;
166 vcc7-supply = <&vcc5v0_sys>;
167 vcc8-supply = <&vcc3v3_sys>;
168 vcc9-supply = <&vcc5v0_sys>;
169 vcc10-supply = <&vcc5v0_sys>;
170 vcc11-supply = <&vcc5v0_sys>;
171 vcc12-supply = <&vcc3v3_sys>;
172 vddio-supply = <&vcc1v8_pmu>;
173
174 regulators {
175 vdd_center: DCDC_REG1 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530176 regulator-name = "vdd_center";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200177 regulator-min-microvolt = <750000>;
178 regulator-max-microvolt = <1350000>;
179 regulator-ramp-delay = <6001>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530180 regulator-always-on;
181 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200182 regulator-state-mem {
183 regulator-off-in-suspend;
184 };
185 };
186
187 vdd_cpu_l: DCDC_REG2 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530188 regulator-name = "vdd_cpu_l";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200189 regulator-min-microvolt = <750000>;
190 regulator-max-microvolt = <1350000>;
191 regulator-ramp-delay = <6001>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530192 regulator-always-on;
193 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200194 regulator-state-mem {
195 regulator-off-in-suspend;
196 };
197 };
198
199 vcc_ddr: DCDC_REG3 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530200 regulator-name = "vcc_ddr";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200201 regulator-always-on;
202 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200203 regulator-state-mem {
204 regulator-on-in-suspend;
205 };
206 };
207
208 vcc_1v8: DCDC_REG4 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530209 regulator-name = "vcc_1v8";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200210 regulator-min-microvolt = <1800000>;
211 regulator-max-microvolt = <1800000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530212 regulator-always-on;
213 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200214 regulator-state-mem {
215 regulator-on-in-suspend;
216 regulator-suspend-microvolt = <1800000>;
217 };
218 };
219
220 vcc_ldo1: LDO_REG1 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530221 regulator-name = "vcc_ldo1";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200222 regulator-min-microvolt = <1800000>;
223 regulator-max-microvolt = <1800000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530224 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200225 regulator-state-mem {
226 regulator-off-in-suspend;
227 };
228 };
229
230 vcc1v8_hdmi: LDO_REG2 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530231 regulator-name = "vcc1v8_hdmi";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200232 regulator-min-microvolt = <1800000>;
233 regulator-max-microvolt = <1800000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530234 regulator-always-on;
235 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200236 regulator-state-mem {
237 regulator-off-in-suspend;
238 };
239 };
240
241 vcc1v8_pmu: LDO_REG3 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530242 regulator-name = "vcc1v8_pmu";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200243 regulator-min-microvolt = <1800000>;
244 regulator-max-microvolt = <1800000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530245 regulator-always-on;
246 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200247 regulator-state-mem {
248 regulator-on-in-suspend;
249 regulator-suspend-microvolt = <1800000>;
250 };
251 };
252
253 vcc_sd: LDO_REG4 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530254 regulator-name = "vcc_sd";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200255 regulator-min-microvolt = <1800000>;
Klaus Gogere7b89402017-11-06 23:02:55 +0100256 regulator-max-microvolt = <3000000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530257 regulator-always-on;
258 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200259 regulator-state-mem {
260 regulator-on-in-suspend;
Klaus Gogere7b89402017-11-06 23:02:55 +0100261 regulator-suspend-microvolt = <3000000>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200262 };
263 };
264
265 vcc_ldo5: LDO_REG5 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530266 regulator-name = "vcc_ldo5";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200267 regulator-min-microvolt = <3000000>;
268 regulator-max-microvolt = <3000000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530269 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200270 regulator-state-mem {
271 regulator-off-in-suspend;
272 };
273 };
274
275 vcc_ldo6: LDO_REG6 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530276 regulator-name = "vcc_ldo6";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200277 regulator-min-microvolt = <1500000>;
278 regulator-max-microvolt = <1500000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530279 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200280 regulator-state-mem {
281 regulator-off-in-suspend;
282 };
283 };
284
285 vcc0v9_hdmi: LDO_REG7 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530286 regulator-name = "vcc0v9_hdmi";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200287 regulator-min-microvolt = <900000>;
288 regulator-max-microvolt = <900000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530289 regulator-always-on;
290 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200291 regulator-state-mem {
292 regulator-off-in-suspend;
293 };
294 };
295
296 vcc_efuse: LDO_REG8 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530297 regulator-name = "vcc_efuse";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200298 regulator-min-microvolt = <1800000>;
299 regulator-max-microvolt = <1800000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530300 regulator-always-on;
301 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200302 regulator-state-mem {
303 regulator-off-in-suspend;
304 };
305 };
306
307 vcc3v3_s3: SWITCH_REG1 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530308 regulator-name = "vcc3v3_s3";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200309 regulator-always-on;
310 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200311 regulator-state-mem {
312 regulator-off-in-suspend;
313 };
314 };
315
316 vcc3v3_s0: SWITCH_REG2 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530317 regulator-name = "vcc3v3_s0";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200318 regulator-always-on;
319 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200320 regulator-state-mem {
321 regulator-off-in-suspend;
322 };
323 };
324 };
325 };
Jagan Teki5cc21182020-04-28 15:30:17 +0530326
327 vdd_gpu: regulator@60 {
328 compatible = "fcs,fan53555";
329 reg = <0x60>;
330 fcs,suspend-voltage-selector = <1>;
331 regulator-name = "vdd_gpu";
332 regulator-min-microvolt = <600000>;
333 regulator-max-microvolt = <1230000>;
334 regulator-ramp-delay = <1000>;
335 regulator-always-on;
336 regulator-boot-on;
337 vin-supply = <&vcc5v0_sys>;
338 };
339};
340
341&i2c7 {
342 status = "okay";
343 clock-frequency = <400000>;
344
345 fan: fan@18 {
346 compatible = "ti,amc6821";
347 reg = <0x18>;
348 #cooling-cells = <2>;
349 };
350
351 rtc_twi: rtc@6f {
352 compatible = "isil,isl1208";
353 reg = <0x6f>;
354 };
Philipp Tomsich3093d202017-03-28 18:48:51 +0200355};
356
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200357&i2c8 {
358 status = "okay";
359 clock-frequency = <400000>;
360
Jagan Teki5cc21182020-04-28 15:30:17 +0530361 vdd_cpu_b: regulator@60 {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200362 compatible = "fcs,fan53555";
363 reg = <0x60>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200364 vin-supply = <&vcc5v0_sys>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200365 regulator-name = "vdd_cpu_b";
366 regulator-min-microvolt = <600000>;
367 regulator-max-microvolt = <1230000>;
368 regulator-ramp-delay = <1000>;
369 fcs,suspend-voltage-selector = <1>;
370 regulator-always-on;
371 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200372 };
373};
374
375&i2s0 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530376 pinctrl-0 = <&i2s0_2ch_bus>;
377 rockchip,playback-channels = <2>;
378 rockchip,capture-channels = <2>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200379 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200380};
381
Jagan Teki5cc21182020-04-28 15:30:17 +0530382/*
383 * As Q7 does not specify neither a global nor a RX clock for I2S these
384 * signals are not used. Furthermore I2S0_LRCK_RX is used as GPIO.
385 * Therefore we have to redefine the i2s0_2ch_bus definition to prevent
386 * conflicts.
387 */
388&i2s0_2ch_bus {
389 rockchip,pins =
390 <3 RK_PD0 1 &pcfg_pull_none>,
391 <3 RK_PD2 1 &pcfg_pull_none>,
392 <3 RK_PD3 1 &pcfg_pull_none>,
393 <3 RK_PD7 1 &pcfg_pull_none>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200394};
395
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200396&io_domains {
397 status = "okay";
Jagan Teki5cc21182020-04-28 15:30:17 +0530398 bt656-supply = <&vcc_1v8>;
399 audio-supply = <&vcc_1v8>;
400 sdmmc-supply = <&vcc_sd>;
401 gpio1830-supply = <&vcc_1v8>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200402};
403
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200404&pmu_io_domains {
405 status = "okay";
406 pmu1830-supply = <&vcc_1v8>;
407};
408
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200409&pwm2 {
410 status = "okay";
411};
412
Philipp Tomsich3093d202017-03-28 18:48:51 +0200413&pinctrl {
Jagan Teki5cc21182020-04-28 15:30:17 +0530414 i2c8 {
415 i2c8_xfer_a: i2c8-xfer {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200416 rockchip,pins =
Jagan Teki5cc21182020-04-28 15:30:17 +0530417 <1 RK_PC4 1 &pcfg_pull_up>,
418 <1 RK_PC5 1 &pcfg_pull_up>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200419 };
420 };
421
Jagan Teki5cc21182020-04-28 15:30:17 +0530422 leds {
Peter Robinson7c79b872021-07-22 16:20:42 +0100423 module_led_pin: module-led-pin {
Philipp Tomsich3093d202017-03-28 18:48:51 +0200424 rockchip,pins =
Jagan Teki5cc21182020-04-28 15:30:17 +0530425 <2 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200426 };
427 };
428
Jagan Teki5cc21182020-04-28 15:30:17 +0530429 pmic {
430 pmic_int_l: pmic-int-l {
Philipp Tomsich3093d202017-03-28 18:48:51 +0200431 rockchip,pins =
Jagan Teki5cc21182020-04-28 15:30:17 +0530432 <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200433 };
434 };
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200435
Jagan Teki5cc21182020-04-28 15:30:17 +0530436 usb2 {
437 vcc5v0_host_en: vcc5v0-host-en {
Klaus Gogerde02bc62017-11-06 23:02:54 +0100438 rockchip,pins =
Jagan Teki5cc21182020-04-28 15:30:17 +0530439 <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200440 };
441 };
Quentin Schulz67ec9312022-11-15 15:46:23 +0100442
443 usb3 {
444 usb3_id: usb3-id {
445 rockchip,pins =
446 <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
447 };
448 };
Philipp Tomsich3093d202017-03-28 18:48:51 +0200449};
450
Jagan Teki5cc21182020-04-28 15:30:17 +0530451&sdhci {
Quentin Schulz67ec9312022-11-15 15:46:23 +0100452 /*
453 * Signal integrity isn't great at 200MHz but 100MHz has proven stable
454 * enough.
455 */
456 max-frequency = <100000000>;
457
Jagan Teki5cc21182020-04-28 15:30:17 +0530458 bus-width = <8>;
459 mmc-hs400-1_8v;
460 mmc-hs400-enhanced-strobe;
461 non-removable;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200462 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200463};
Jagan Teki5cc21182020-04-28 15:30:17 +0530464
465&sdmmc {
466 vqmmc-supply = <&vcc_sd>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200467};
Jagan Teki5cc21182020-04-28 15:30:17 +0530468
469&spi1 {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200470 status = "okay";
Jagan Teki5cc21182020-04-28 15:30:17 +0530471
472 norflash: flash@0 {
473 compatible = "jedec,spi-nor";
474 reg = <0>;
475 spi-max-frequency = <50000000>;
476 };
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200477};
Jagan Teki5cc21182020-04-28 15:30:17 +0530478
479&tcphy1 {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200480 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200481};
482
Jagan Teki5cc21182020-04-28 15:30:17 +0530483&tsadc {
484 rockchip,hw-tshut-mode = <1>;
485 rockchip,hw-tshut-polarity = <1>;
486 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200487};
488
Jagan Teki5cc21182020-04-28 15:30:17 +0530489&u2phy1 {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200490 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200491
Jagan Teki5cc21182020-04-28 15:30:17 +0530492 u2phy1_otg: otg-port {
493 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200494 };
Jagan Teki5cc21182020-04-28 15:30:17 +0530495
496 u2phy1_host: host-port {
497 phy-supply = <&vcc5v0_host>;
498 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200499 };
500};
501
Jagan Teki5cc21182020-04-28 15:30:17 +0530502&usbdrd3_1 {
Philipp Tomsich3093d202017-03-28 18:48:51 +0200503 status = "okay";
504};
505
Jagan Teki5cc21182020-04-28 15:30:17 +0530506&usbdrd_dwc3_1 {
Philipp Tomsich3093d202017-03-28 18:48:51 +0200507 status = "okay";
Jagan Teki5cc21182020-04-28 15:30:17 +0530508 dr_mode = "host";
509};
Philipp Tomsich3093d202017-03-28 18:48:51 +0200510
Jagan Teki5cc21182020-04-28 15:30:17 +0530511&usb_host1_ehci {
512 status = "okay";
Philipp Tomsich3093d202017-03-28 18:48:51 +0200513};
514
Jagan Teki5cc21182020-04-28 15:30:17 +0530515&usb_host1_ohci {
Philipp Tomsich3093d202017-03-28 18:48:51 +0200516 status = "okay";
517};