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"
12 compatible = "gpio-leds";
13 pinctrl-names = "default";
14 pinctrl-0 = <&led_pin_module>;
18 gpios = <&gpio2 RK_PD1 GPIO_ACTIVE_HIGH>;
19 linux,default-trigger = "heartbeat";
25 * Overwrite the opp-table for CPUB as this board uses a different
26 * regulator (FAN53555) that only allows 10mV steps and therefore
27 * can't reach the operation point target voltages from rk3399-opp.dtsi
29 /delete-node/ opp-table1;
30 cluster1_opp: opp-table1 {
31 compatible = "operating-points-v2";
35 opp-hz = /bits/ 64 <408000000>;
36 opp-microvolt = <800000>;
37 clock-latency-ns = <40000>;
40 opp-hz = /bits/ 64 <600000000>;
41 opp-microvolt = <800000>;
44 opp-hz = /bits/ 64 <816000000>;
45 opp-microvolt = <830000>;
49 opp-hz = /bits/ 64 <1008000000>;
50 opp-microvolt = <880000>;
53 opp-hz = /bits/ 64 <1200000000>;
54 opp-microvolt = <950000>;
57 opp-hz = /bits/ 64 <1416000000>;
58 opp-microvolt = <1030000>;
61 opp-hz = /bits/ 64 <1608000000>;
62 opp-microvolt = <1100000>;
65 opp-hz = /bits/ 64 <1800000000>;
66 opp-microvolt = <1200000>;
69 opp-hz = /bits/ 64 <1992000000>;
70 opp-microvolt = <1230000>;
75 clkin_gmac: external-gmac-clock {
76 compatible = "fixed-clock";
77 clock-frequency = <125000000>;
78 clock-output-names = "clkin_gmac";
82 vcc1v2_phy: vcc1v2-phy {
83 compatible = "regulator-fixed";
84 regulator-name = "vcc1v2_phy";
87 regulator-min-microvolt = <1200000>;
88 regulator-max-microvolt = <1200000>;
89 vin-supply = <&vcc5v0_sys>;
92 vcc3v3_sys: vcc3v3-sys {
93 compatible = "regulator-fixed";
94 regulator-name = "vcc3v3_sys";
97 regulator-min-microvolt = <3300000>;
98 regulator-max-microvolt = <3300000>;
99 vin-supply = <&vcc5v0_sys>;
102 vcc5v0_host: vcc5v0-host-regulator {
103 compatible = "regulator-fixed";
104 gpio = <&gpio4 RK_PA3 GPIO_ACTIVE_HIGH>;
106 pinctrl-names = "default";
107 pinctrl-0 = <&vcc5v0_host_en>;
108 regulator-name = "vcc5v0_host";
110 vin-supply = <&vcc5v0_sys>;
113 vcc5v0_sys: vcc5v0-sys {
114 compatible = "regulator-fixed";
115 regulator-name = "vcc5v0_sys";
118 regulator-min-microvolt = <5000000>;
119 regulator-max-microvolt = <5000000>;
124 cpu-supply = <&vdd_cpu_b>;
128 cpu-supply = <&vdd_cpu_b>;
132 cpu-supply = <&vdd_cpu_l>;
136 cpu-supply = <&vdd_cpu_l>;
140 cpu-supply = <&vdd_cpu_l>;
144 cpu-supply = <&vdd_cpu_l>;
149 drive-impedance-ohm = <33>;
153 assigned-clocks = <&cru SCLK_RMII_SRC>;
154 assigned-clock-parents = <&clkin_gmac>;
155 clock_in_out = "input";
156 phy-supply = <&vcc1v2_phy>;
158 pinctrl-names = "default";
159 pinctrl-0 = <&rgmii_pins>;
160 snps,reset-gpio = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>;
161 snps,reset-active-low;
162 snps,reset-delays-us = <0 10000 50000>;
169 mali-supply = <&vdd_gpu>;
175 i2c-scl-rising-time-ns = <168>;
176 i2c-scl-falling-time-ns = <4>;
177 clock-frequency = <400000>;
180 compatible = "rockchip,rk808";
182 interrupt-parent = <&gpio1>;
183 interrupts = <22 IRQ_TYPE_LEVEL_LOW>;
185 clock-output-names = "xin32k", "rk808-clkout2";
186 pinctrl-names = "default";
187 pinctrl-0 = <&pmic_int_l>;
188 rockchip,system-power-controller;
191 vcc1-supply = <&vcc5v0_sys>;
192 vcc2-supply = <&vcc5v0_sys>;
193 vcc3-supply = <&vcc5v0_sys>;
194 vcc4-supply = <&vcc5v0_sys>;
195 vcc6-supply = <&vcc5v0_sys>;
196 vcc7-supply = <&vcc5v0_sys>;
197 vcc8-supply = <&vcc3v3_sys>;
198 vcc9-supply = <&vcc5v0_sys>;
199 vcc10-supply = <&vcc5v0_sys>;
200 vcc11-supply = <&vcc5v0_sys>;
201 vcc12-supply = <&vcc3v3_sys>;
202 vddio-supply = <&vcc1v8_pmu>;
205 vdd_center: DCDC_REG1 {
206 regulator-name = "vdd_center";
207 regulator-min-microvolt = <750000>;
208 regulator-max-microvolt = <1350000>;
209 regulator-ramp-delay = <6001>;
212 regulator-state-mem {
213 regulator-off-in-suspend;
217 vdd_cpu_l: DCDC_REG2 {
218 regulator-name = "vdd_cpu_l";
219 regulator-min-microvolt = <750000>;
220 regulator-max-microvolt = <1350000>;
221 regulator-ramp-delay = <6001>;
224 regulator-state-mem {
225 regulator-off-in-suspend;
230 regulator-name = "vcc_ddr";
233 regulator-state-mem {
234 regulator-on-in-suspend;
239 regulator-name = "vcc_1v8";
240 regulator-min-microvolt = <1800000>;
241 regulator-max-microvolt = <1800000>;
244 regulator-state-mem {
245 regulator-on-in-suspend;
246 regulator-suspend-microvolt = <1800000>;
251 regulator-name = "vcc_ldo1";
252 regulator-min-microvolt = <1800000>;
253 regulator-max-microvolt = <1800000>;
255 regulator-state-mem {
256 regulator-off-in-suspend;
260 vcc1v8_hdmi: LDO_REG2 {
261 regulator-name = "vcc1v8_hdmi";
262 regulator-min-microvolt = <1800000>;
263 regulator-max-microvolt = <1800000>;
266 regulator-state-mem {
267 regulator-off-in-suspend;
271 vcc1v8_pmu: LDO_REG3 {
272 regulator-name = "vcc1v8_pmu";
273 regulator-min-microvolt = <1800000>;
274 regulator-max-microvolt = <1800000>;
277 regulator-state-mem {
278 regulator-on-in-suspend;
279 regulator-suspend-microvolt = <1800000>;
284 regulator-name = "vcc_sd";
285 regulator-min-microvolt = <1800000>;
286 regulator-max-microvolt = <3000000>;
289 regulator-state-mem {
290 regulator-on-in-suspend;
291 regulator-suspend-microvolt = <3000000>;
296 regulator-name = "vcc_ldo5";
297 regulator-min-microvolt = <3000000>;
298 regulator-max-microvolt = <3000000>;
300 regulator-state-mem {
301 regulator-off-in-suspend;
306 regulator-name = "vcc_ldo6";
307 regulator-min-microvolt = <1500000>;
308 regulator-max-microvolt = <1500000>;
310 regulator-state-mem {
311 regulator-off-in-suspend;
315 vcc0v9_hdmi: LDO_REG7 {
316 regulator-name = "vcc0v9_hdmi";
317 regulator-min-microvolt = <900000>;
318 regulator-max-microvolt = <900000>;
321 regulator-state-mem {
322 regulator-off-in-suspend;
326 vcc_efuse: LDO_REG8 {
327 regulator-name = "vcc_efuse";
328 regulator-min-microvolt = <1800000>;
329 regulator-max-microvolt = <1800000>;
332 regulator-state-mem {
333 regulator-off-in-suspend;
337 vcc3v3_s3: SWITCH_REG1 {
338 regulator-name = "vcc3v3_s3";
341 regulator-state-mem {
342 regulator-off-in-suspend;
346 vcc3v3_s0: SWITCH_REG2 {
347 regulator-name = "vcc3v3_s0";
350 regulator-state-mem {
351 regulator-off-in-suspend;
357 vdd_gpu: regulator@60 {
358 compatible = "fcs,fan53555";
360 fcs,suspend-voltage-selector = <1>;
361 regulator-name = "vdd_gpu";
362 regulator-min-microvolt = <600000>;
363 regulator-max-microvolt = <1230000>;
364 regulator-ramp-delay = <1000>;
367 vin-supply = <&vcc5v0_sys>;
373 clock-frequency = <400000>;
376 compatible = "ti,amc6821";
378 #cooling-cells = <2>;
382 compatible = "isil,isl1208";
389 clock-frequency = <400000>;
391 vdd_cpu_b: regulator@60 {
392 compatible = "fcs,fan53555";
394 vin-supply = <&vcc5v0_sys>;
395 regulator-name = "vdd_cpu_b";
396 regulator-min-microvolt = <600000>;
397 regulator-max-microvolt = <1230000>;
398 regulator-ramp-delay = <1000>;
399 fcs,suspend-voltage-selector = <1>;
406 pinctrl-0 = <&i2s0_2ch_bus>;
407 rockchip,playback-channels = <2>;
408 rockchip,capture-channels = <2>;
413 * As Q7 does not specify neither a global nor a RX clock for I2S these
414 * signals are not used. Furthermore I2S0_LRCK_RX is used as GPIO.
415 * Therefore we have to redefine the i2s0_2ch_bus definition to prevent
420 <3 RK_PD0 1 &pcfg_pull_none>,
421 <3 RK_PD2 1 &pcfg_pull_none>,
422 <3 RK_PD3 1 &pcfg_pull_none>,
423 <3 RK_PD7 1 &pcfg_pull_none>;
428 bt656-supply = <&vcc_1v8>;
429 audio-supply = <&vcc_1v8>;
430 sdmmc-supply = <&vcc_sd>;
431 gpio1830-supply = <&vcc_1v8>;
436 pmu1830-supply = <&vcc_1v8>;
445 i2c8_xfer_a: i2c8-xfer {
447 <1 RK_PC4 1 &pcfg_pull_up>,
448 <1 RK_PC5 1 &pcfg_pull_up>;
453 led_pin_module: led-module-gpio {
455 <2 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
460 pmic_int_l: pmic-int-l {
462 <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
467 vcc5v0_host_en: vcc5v0-host-en {
469 <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
477 mmc-hs400-enhanced-strobe;
483 vqmmc-supply = <&vcc_sd>;
490 compatible = "jedec,spi-nor";
492 spi-max-frequency = <50000000>;
501 rockchip,hw-tshut-mode = <1>;
502 rockchip,hw-tshut-polarity = <1>;
509 u2phy1_otg: otg-port {
513 u2phy1_host: host-port {
514 phy-supply = <&vcc5v0_host>;