1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH
6 #include <dt-bindings/pwm/pwm.h>
8 #include "rk3399-opp.dtsi"
17 compatible = "gpio-leds";
18 pinctrl-names = "default";
19 pinctrl-0 = <&module_led_pin>;
23 gpios = <&gpio2 RK_PD1 GPIO_ACTIVE_HIGH>;
24 linux,default-trigger = "heartbeat";
29 extcon_usb3: extcon-usb3 {
30 compatible = "linux,extcon-usb-gpio";
31 id-gpios = <&gpio1 RK_PC2 GPIO_ACTIVE_HIGH>;
32 pinctrl-names = "default";
33 pinctrl-0 = <&usb3_id>;
36 clkin_gmac: external-gmac-clock {
37 compatible = "fixed-clock";
38 clock-frequency = <125000000>;
39 clock-output-names = "clkin_gmac";
43 vcc1v2_phy: vcc1v2-phy {
44 compatible = "regulator-fixed";
45 regulator-name = "vcc1v2_phy";
48 regulator-min-microvolt = <1200000>;
49 regulator-max-microvolt = <1200000>;
50 vin-supply = <&vcc5v0_sys>;
53 vcc3v3_sys: vcc3v3-sys {
54 compatible = "regulator-fixed";
55 regulator-name = "vcc3v3_sys";
58 regulator-min-microvolt = <3300000>;
59 regulator-max-microvolt = <3300000>;
60 vin-supply = <&vcc5v0_sys>;
63 vcc5v0_host: vcc5v0-host-regulator {
64 compatible = "regulator-fixed";
65 gpio = <&gpio4 RK_PA3 GPIO_ACTIVE_LOW>;
66 pinctrl-names = "default";
67 pinctrl-0 = <&vcc5v0_host_en>;
68 regulator-name = "vcc5v0_host";
70 vin-supply = <&vcc5v0_sys>;
73 vcc5v0_sys: vcc5v0-sys {
74 compatible = "regulator-fixed";
75 regulator-name = "vcc5v0_sys";
78 regulator-min-microvolt = <5000000>;
79 regulator-max-microvolt = <5000000>;
83 compatible = "pwm-regulator";
84 pwms = <&pwm2 0 25000 1>;
85 pwm-supply = <&vcc5v0_sys>;
86 regulator-name = "vdd_log";
87 regulator-min-microvolt = <800000>;
88 regulator-max-microvolt = <1400000>;
95 cpu-supply = <&vdd_cpu_b>;
99 cpu-supply = <&vdd_cpu_b>;
103 cpu-supply = <&vdd_cpu_l>;
107 cpu-supply = <&vdd_cpu_l>;
111 cpu-supply = <&vdd_cpu_l>;
115 cpu-supply = <&vdd_cpu_l>;
120 drive-impedance-ohm = <33>;
125 * The BIOS_DISABLE hog is a feedback pin for the actual status of the
126 * signal. This usually represents the state of a switch on the baseboard.
127 * The pin has a 10k pull-up resistor connected, so no pull-up setting is needed.
130 gpios = <RK_PB0 GPIO_ACTIVE_HIGH>;
133 line-name = "bios_disable";
138 assigned-clocks = <&cru SCLK_RMII_SRC>;
139 assigned-clock-parents = <&clkin_gmac>;
140 clock_in_out = "input";
141 phy-supply = <&vcc1v2_phy>;
143 pinctrl-names = "default";
144 pinctrl-0 = <&rgmii_pins>;
145 snps,reset-gpio = <&gpio3 RK_PC0 GPIO_ACTIVE_LOW>;
146 snps,reset-active-low;
147 snps,reset-delays-us = <0 10000 50000>;
154 mali-supply = <&vdd_gpu>;
160 i2c-scl-rising-time-ns = <168>;
161 i2c-scl-falling-time-ns = <4>;
162 clock-frequency = <400000>;
165 compatible = "rockchip,rk808";
167 interrupt-parent = <&gpio1>;
168 interrupts = <22 IRQ_TYPE_LEVEL_LOW>;
170 clock-output-names = "xin32k", "rk808-clkout2";
171 pinctrl-names = "default";
172 pinctrl-0 = <&pmic_int_l>;
173 rockchip,system-power-controller;
176 vcc1-supply = <&vcc5v0_sys>;
177 vcc2-supply = <&vcc5v0_sys>;
178 vcc3-supply = <&vcc5v0_sys>;
179 vcc4-supply = <&vcc5v0_sys>;
180 vcc6-supply = <&vcc5v0_sys>;
181 vcc7-supply = <&vcc5v0_sys>;
182 vcc8-supply = <&vcc3v3_sys>;
183 vcc9-supply = <&vcc5v0_sys>;
184 vcc10-supply = <&vcc5v0_sys>;
185 vcc11-supply = <&vcc5v0_sys>;
186 vcc12-supply = <&vcc3v3_sys>;
187 vddio-supply = <&vcc1v8_pmu>;
190 vdd_center: DCDC_REG1 {
191 regulator-name = "vdd_center";
192 regulator-min-microvolt = <750000>;
193 regulator-max-microvolt = <1350000>;
194 regulator-ramp-delay = <6001>;
197 regulator-state-mem {
198 regulator-off-in-suspend;
202 vdd_cpu_l: DCDC_REG2 {
203 regulator-name = "vdd_cpu_l";
204 regulator-min-microvolt = <750000>;
205 regulator-max-microvolt = <1350000>;
206 regulator-ramp-delay = <6001>;
209 regulator-state-mem {
210 regulator-off-in-suspend;
215 regulator-name = "vcc_ddr";
218 regulator-state-mem {
219 regulator-on-in-suspend;
224 regulator-name = "vcc_1v8";
225 regulator-min-microvolt = <1800000>;
226 regulator-max-microvolt = <1800000>;
229 regulator-state-mem {
230 regulator-on-in-suspend;
231 regulator-suspend-microvolt = <1800000>;
236 regulator-name = "vcc_ldo1";
237 regulator-min-microvolt = <1800000>;
238 regulator-max-microvolt = <1800000>;
240 regulator-state-mem {
241 regulator-off-in-suspend;
245 vcc1v8_hdmi: LDO_REG2 {
246 regulator-name = "vcc1v8_hdmi";
247 regulator-min-microvolt = <1800000>;
248 regulator-max-microvolt = <1800000>;
251 regulator-state-mem {
252 regulator-off-in-suspend;
256 vcc1v8_pmu: LDO_REG3 {
257 regulator-name = "vcc1v8_pmu";
258 regulator-min-microvolt = <1800000>;
259 regulator-max-microvolt = <1800000>;
262 regulator-state-mem {
263 regulator-on-in-suspend;
264 regulator-suspend-microvolt = <1800000>;
269 regulator-name = "vcc_sd";
270 regulator-min-microvolt = <1800000>;
271 regulator-max-microvolt = <3000000>;
274 regulator-state-mem {
275 regulator-on-in-suspend;
276 regulator-suspend-microvolt = <3000000>;
281 regulator-name = "vcc_ldo5";
282 regulator-min-microvolt = <3000000>;
283 regulator-max-microvolt = <3000000>;
285 regulator-state-mem {
286 regulator-off-in-suspend;
291 regulator-name = "vcc_ldo6";
292 regulator-min-microvolt = <1500000>;
293 regulator-max-microvolt = <1500000>;
295 regulator-state-mem {
296 regulator-off-in-suspend;
300 vcc0v9_hdmi: LDO_REG7 {
301 regulator-name = "vcc0v9_hdmi";
302 regulator-min-microvolt = <900000>;
303 regulator-max-microvolt = <900000>;
306 regulator-state-mem {
307 regulator-off-in-suspend;
311 vcc_efuse: LDO_REG8 {
312 regulator-name = "vcc_efuse";
313 regulator-min-microvolt = <1800000>;
314 regulator-max-microvolt = <1800000>;
317 regulator-state-mem {
318 regulator-off-in-suspend;
322 vcc3v3_s3: SWITCH_REG1 {
323 regulator-name = "vcc3v3_s3";
326 regulator-state-mem {
327 regulator-off-in-suspend;
331 vcc3v3_s0: SWITCH_REG2 {
332 regulator-name = "vcc3v3_s0";
335 regulator-state-mem {
336 regulator-off-in-suspend;
342 vdd_gpu: regulator@60 {
343 compatible = "fcs,fan53555";
345 fcs,suspend-voltage-selector = <1>;
346 regulator-name = "vdd_gpu";
347 regulator-min-microvolt = <600000>;
348 regulator-max-microvolt = <1230000>;
349 regulator-ramp-delay = <1000>;
352 vin-supply = <&vcc5v0_sys>;
358 clock-frequency = <400000>;
361 compatible = "ti,amc6821";
363 #cooling-cells = <2>;
367 compatible = "isil,isl1208";
374 clock-frequency = <400000>;
376 vdd_cpu_b: regulator@60 {
377 compatible = "fcs,fan53555";
379 vin-supply = <&vcc5v0_sys>;
380 regulator-name = "vdd_cpu_b";
381 regulator-min-microvolt = <600000>;
382 regulator-max-microvolt = <1230000>;
383 regulator-ramp-delay = <1000>;
384 fcs,suspend-voltage-selector = <1>;
391 pinctrl-0 = <&i2s0_2ch_bus>;
392 rockchip,playback-channels = <2>;
393 rockchip,capture-channels = <2>;
398 * As Q7 does not specify neither a global nor a RX clock for I2S these
399 * signals are not used. Furthermore I2S0_LRCK_RX is used as GPIO.
400 * Therefore we have to redefine the i2s0_2ch_bus definition to prevent
405 <3 RK_PD0 1 &pcfg_pull_none>,
406 <3 RK_PD2 1 &pcfg_pull_none>,
407 <3 RK_PD3 1 &pcfg_pull_none>,
408 <3 RK_PD7 1 &pcfg_pull_none>;
413 bt656-supply = <&vcc_1v8>;
414 audio-supply = <&vcc_1v8>;
415 sdmmc-supply = <&vcc_sd>;
416 gpio1830-supply = <&vcc_1v8>;
421 pmu1830-supply = <&vcc_1v8>;
430 i2c8_xfer_a: i2c8-xfer {
432 <1 RK_PC4 1 &pcfg_pull_up>,
433 <1 RK_PC5 1 &pcfg_pull_up>;
438 module_led_pin: module-led-pin {
440 <2 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
445 pmic_int_l: pmic-int-l {
447 <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
452 vcc5v0_host_en: vcc5v0-host-en {
454 <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
461 <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
468 * Signal integrity isn't great at 200MHz but 100MHz has proven stable
471 max-frequency = <100000000>;
475 mmc-hs400-enhanced-strobe;
481 vqmmc-supply = <&vcc_sd>;
488 compatible = "jedec,spi-nor";
490 spi-max-frequency = <50000000>;
499 rockchip,hw-tshut-mode = <1>;
500 rockchip,hw-tshut-polarity = <1>;
507 u2phy1_otg: otg-port {
511 u2phy1_host: host-port {
512 phy-supply = <&vcc5v0_host>;