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"
16 compatible = "gpio-leds";
17 pinctrl-names = "default";
18 pinctrl-0 = <&module_led_pin>;
22 gpios = <&gpio2 RK_PD1 GPIO_ACTIVE_HIGH>;
23 linux,default-trigger = "heartbeat";
28 extcon_usb3: extcon-usb3 {
29 compatible = "linux,extcon-usb-gpio";
30 id-gpios = <&gpio1 RK_PC2 GPIO_ACTIVE_HIGH>;
31 pinctrl-names = "default";
32 pinctrl-0 = <&usb3_id>;
35 clkin_gmac: external-gmac-clock {
36 compatible = "fixed-clock";
37 clock-frequency = <125000000>;
38 clock-output-names = "clkin_gmac";
42 vcc1v2_phy: vcc1v2-phy {
43 compatible = "regulator-fixed";
44 regulator-name = "vcc1v2_phy";
47 regulator-min-microvolt = <1200000>;
48 regulator-max-microvolt = <1200000>;
49 vin-supply = <&vcc5v0_sys>;
52 vcc3v3_sys: vcc3v3-sys {
53 compatible = "regulator-fixed";
54 regulator-name = "vcc3v3_sys";
57 regulator-min-microvolt = <3300000>;
58 regulator-max-microvolt = <3300000>;
59 vin-supply = <&vcc5v0_sys>;
62 vcc5v0_host: vcc5v0-host-regulator {
63 compatible = "regulator-fixed";
64 gpio = <&gpio4 RK_PA3 GPIO_ACTIVE_LOW>;
65 pinctrl-names = "default";
66 pinctrl-0 = <&vcc5v0_host_en>;
67 regulator-name = "vcc5v0_host";
69 vin-supply = <&vcc5v0_sys>;
72 vcc5v0_sys: vcc5v0-sys {
73 compatible = "regulator-fixed";
74 regulator-name = "vcc5v0_sys";
77 regulator-min-microvolt = <5000000>;
78 regulator-max-microvolt = <5000000>;
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>;
94 cpu-supply = <&vdd_cpu_b>;
98 cpu-supply = <&vdd_cpu_b>;
102 cpu-supply = <&vdd_cpu_l>;
106 cpu-supply = <&vdd_cpu_l>;
110 cpu-supply = <&vdd_cpu_l>;
114 cpu-supply = <&vdd_cpu_l>;
119 drive-impedance-ohm = <33>;
123 assigned-clocks = <&cru SCLK_RMII_SRC>;
124 assigned-clock-parents = <&clkin_gmac>;
125 clock_in_out = "input";
126 phy-supply = <&vcc1v2_phy>;
128 pinctrl-names = "default";
129 pinctrl-0 = <&rgmii_pins>;
130 snps,reset-gpio = <&gpio3 RK_PC0 GPIO_ACTIVE_LOW>;
131 snps,reset-active-low;
132 snps,reset-delays-us = <0 10000 50000>;
139 mali-supply = <&vdd_gpu>;
145 i2c-scl-rising-time-ns = <168>;
146 i2c-scl-falling-time-ns = <4>;
147 clock-frequency = <400000>;
150 compatible = "rockchip,rk808";
152 interrupt-parent = <&gpio1>;
153 interrupts = <22 IRQ_TYPE_LEVEL_LOW>;
155 clock-output-names = "xin32k", "rk808-clkout2";
156 pinctrl-names = "default";
157 pinctrl-0 = <&pmic_int_l>;
158 rockchip,system-power-controller;
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>;
175 vdd_center: DCDC_REG1 {
176 regulator-name = "vdd_center";
177 regulator-min-microvolt = <750000>;
178 regulator-max-microvolt = <1350000>;
179 regulator-ramp-delay = <6001>;
182 regulator-state-mem {
183 regulator-off-in-suspend;
187 vdd_cpu_l: DCDC_REG2 {
188 regulator-name = "vdd_cpu_l";
189 regulator-min-microvolt = <750000>;
190 regulator-max-microvolt = <1350000>;
191 regulator-ramp-delay = <6001>;
194 regulator-state-mem {
195 regulator-off-in-suspend;
200 regulator-name = "vcc_ddr";
203 regulator-state-mem {
204 regulator-on-in-suspend;
209 regulator-name = "vcc_1v8";
210 regulator-min-microvolt = <1800000>;
211 regulator-max-microvolt = <1800000>;
214 regulator-state-mem {
215 regulator-on-in-suspend;
216 regulator-suspend-microvolt = <1800000>;
221 regulator-name = "vcc_ldo1";
222 regulator-min-microvolt = <1800000>;
223 regulator-max-microvolt = <1800000>;
225 regulator-state-mem {
226 regulator-off-in-suspend;
230 vcc1v8_hdmi: LDO_REG2 {
231 regulator-name = "vcc1v8_hdmi";
232 regulator-min-microvolt = <1800000>;
233 regulator-max-microvolt = <1800000>;
236 regulator-state-mem {
237 regulator-off-in-suspend;
241 vcc1v8_pmu: LDO_REG3 {
242 regulator-name = "vcc1v8_pmu";
243 regulator-min-microvolt = <1800000>;
244 regulator-max-microvolt = <1800000>;
247 regulator-state-mem {
248 regulator-on-in-suspend;
249 regulator-suspend-microvolt = <1800000>;
254 regulator-name = "vcc_sd";
255 regulator-min-microvolt = <1800000>;
256 regulator-max-microvolt = <3000000>;
259 regulator-state-mem {
260 regulator-on-in-suspend;
261 regulator-suspend-microvolt = <3000000>;
266 regulator-name = "vcc_ldo5";
267 regulator-min-microvolt = <3000000>;
268 regulator-max-microvolt = <3000000>;
270 regulator-state-mem {
271 regulator-off-in-suspend;
276 regulator-name = "vcc_ldo6";
277 regulator-min-microvolt = <1500000>;
278 regulator-max-microvolt = <1500000>;
280 regulator-state-mem {
281 regulator-off-in-suspend;
285 vcc0v9_hdmi: LDO_REG7 {
286 regulator-name = "vcc0v9_hdmi";
287 regulator-min-microvolt = <900000>;
288 regulator-max-microvolt = <900000>;
291 regulator-state-mem {
292 regulator-off-in-suspend;
296 vcc_efuse: LDO_REG8 {
297 regulator-name = "vcc_efuse";
298 regulator-min-microvolt = <1800000>;
299 regulator-max-microvolt = <1800000>;
302 regulator-state-mem {
303 regulator-off-in-suspend;
307 vcc3v3_s3: SWITCH_REG1 {
308 regulator-name = "vcc3v3_s3";
311 regulator-state-mem {
312 regulator-off-in-suspend;
316 vcc3v3_s0: SWITCH_REG2 {
317 regulator-name = "vcc3v3_s0";
320 regulator-state-mem {
321 regulator-off-in-suspend;
327 vdd_gpu: regulator@60 {
328 compatible = "fcs,fan53555";
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>;
337 vin-supply = <&vcc5v0_sys>;
343 clock-frequency = <400000>;
346 compatible = "ti,amc6821";
348 #cooling-cells = <2>;
352 compatible = "isil,isl1208";
359 clock-frequency = <400000>;
361 vdd_cpu_b: regulator@60 {
362 compatible = "fcs,fan53555";
364 vin-supply = <&vcc5v0_sys>;
365 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>;
376 pinctrl-0 = <&i2s0_2ch_bus>;
377 rockchip,playback-channels = <2>;
378 rockchip,capture-channels = <2>;
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
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>;
398 bt656-supply = <&vcc_1v8>;
399 audio-supply = <&vcc_1v8>;
400 sdmmc-supply = <&vcc_sd>;
401 gpio1830-supply = <&vcc_1v8>;
406 pmu1830-supply = <&vcc_1v8>;
415 i2c8_xfer_a: i2c8-xfer {
417 <1 RK_PC4 1 &pcfg_pull_up>,
418 <1 RK_PC5 1 &pcfg_pull_up>;
423 module_led_pin: module-led-pin {
425 <2 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
430 pmic_int_l: pmic-int-l {
432 <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
437 vcc5v0_host_en: vcc5v0-host-en {
439 <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
446 <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
453 * Signal integrity isn't great at 200MHz but 100MHz has proven stable
456 max-frequency = <100000000>;
460 mmc-hs400-enhanced-strobe;
466 vqmmc-supply = <&vcc_sd>;
473 compatible = "jedec,spi-nor";
475 spi-max-frequency = <50000000>;
484 rockchip,hw-tshut-mode = <1>;
485 rockchip,hw-tshut-polarity = <1>;
492 u2phy1_otg: otg-port {
496 u2phy1_host: host-port {
497 phy-supply = <&vcc5v0_host>;