xref: /linux/scripts/dtc/include-prefixes/arm/rockchip/rk3288-rock2-som.dtsi (revision 724ba6751532055db75992fc6ae21c3e322e94a7)
1*724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*724ba675SRob Herring
3*724ba675SRob Herring#include <dt-bindings/pwm/pwm.h>
4*724ba675SRob Herring#include "rk3288.dtsi"
5*724ba675SRob Herring
6*724ba675SRob Herring/ {
7*724ba675SRob Herring	memory@0 {
8*724ba675SRob Herring		reg = <0x0 0x0 0x0 0x80000000>;
9*724ba675SRob Herring		device_type = "memory";
10*724ba675SRob Herring	};
11*724ba675SRob Herring
12*724ba675SRob Herring	emmc_pwrseq: emmc-pwrseq {
13*724ba675SRob Herring		compatible = "mmc-pwrseq-emmc";
14*724ba675SRob Herring		pinctrl-0 = <&emmc_reset>;
15*724ba675SRob Herring		pinctrl-names = "default";
16*724ba675SRob Herring		reset-gpios = <&gpio3 RK_PB1 GPIO_ACTIVE_LOW>;
17*724ba675SRob Herring	};
18*724ba675SRob Herring
19*724ba675SRob Herring	ext_gmac: external-gmac-clock {
20*724ba675SRob Herring		compatible = "fixed-clock";
21*724ba675SRob Herring		#clock-cells = <0>;
22*724ba675SRob Herring		clock-frequency = <125000000>;
23*724ba675SRob Herring		clock-output-names = "ext_gmac";
24*724ba675SRob Herring	};
25*724ba675SRob Herring
26*724ba675SRob Herring	vcc_flash: flash-regulator {
27*724ba675SRob Herring		compatible = "regulator-fixed";
28*724ba675SRob Herring		regulator-name = "vcc_flash";
29*724ba675SRob Herring		regulator-min-microvolt = <1800000>;
30*724ba675SRob Herring		regulator-max-microvolt = <1800000>;
31*724ba675SRob Herring		startup-delay-us = <150>;
32*724ba675SRob Herring		vin-supply = <&vcc_io>;
33*724ba675SRob Herring	};
34*724ba675SRob Herring
35*724ba675SRob Herring	vcc_sys: vsys-regulator {
36*724ba675SRob Herring		compatible = "regulator-fixed";
37*724ba675SRob Herring		regulator-name = "vcc_sys";
38*724ba675SRob Herring		regulator-min-microvolt = <5000000>;
39*724ba675SRob Herring		regulator-max-microvolt = <5000000>;
40*724ba675SRob Herring		regulator-always-on;
41*724ba675SRob Herring		regulator-boot-on;
42*724ba675SRob Herring	};
43*724ba675SRob Herring};
44*724ba675SRob Herring
45*724ba675SRob Herring&cpu0 {
46*724ba675SRob Herring	cpu0-supply = <&vdd_cpu>;
47*724ba675SRob Herring};
48*724ba675SRob Herring
49*724ba675SRob Herring&emmc {
50*724ba675SRob Herring	bus-width = <8>;
51*724ba675SRob Herring	cap-mmc-highspeed;
52*724ba675SRob Herring	disable-wp;
53*724ba675SRob Herring	non-removable;
54*724ba675SRob Herring	mmc-pwrseq = <&emmc_pwrseq>;
55*724ba675SRob Herring	pinctrl-names = "default";
56*724ba675SRob Herring	pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
57*724ba675SRob Herring	vmmc-supply = <&vcc_io>;
58*724ba675SRob Herring	vqmmc-supply = <&vcc_flash>;
59*724ba675SRob Herring	status = "okay";
60*724ba675SRob Herring};
61*724ba675SRob Herring
62*724ba675SRob Herring&gmac {
63*724ba675SRob Herring	assigned-clocks = <&cru SCLK_MAC>;
64*724ba675SRob Herring	assigned-clock-parents = <&ext_gmac>;
65*724ba675SRob Herring	clock_in_out = "input";
66*724ba675SRob Herring	phy-mode = "rgmii";
67*724ba675SRob Herring	phy-supply = <&vccio_pmu>;
68*724ba675SRob Herring	pinctrl-names = "default";
69*724ba675SRob Herring	pinctrl-0 = <&rgmii_pins &phy_rst>;
70*724ba675SRob Herring	snps,reset-gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_LOW>;
71*724ba675SRob Herring	snps,reset-active-low;
72*724ba675SRob Herring	snps,reset-delays-us = <0 10000 30000>;
73*724ba675SRob Herring	rx_delay = <0x10>;
74*724ba675SRob Herring	tx_delay = <0x30>;
75*724ba675SRob Herring};
76*724ba675SRob Herring
77*724ba675SRob Herring&gpu {
78*724ba675SRob Herring	mali-supply = <&vdd_gpu>;
79*724ba675SRob Herring	status = "okay";
80*724ba675SRob Herring};
81*724ba675SRob Herring
82*724ba675SRob Herring&i2c0 {
83*724ba675SRob Herring	status = "okay";
84*724ba675SRob Herring
85*724ba675SRob Herring	act8846: act8846@5a {
86*724ba675SRob Herring		compatible = "active-semi,act8846";
87*724ba675SRob Herring		reg = <0x5a>;
88*724ba675SRob Herring		system-power-controller;
89*724ba675SRob Herring		inl1-supply = <&vcc_io>;
90*724ba675SRob Herring		inl2-supply = <&vcc_sys>;
91*724ba675SRob Herring		inl3-supply = <&vcc_20>;
92*724ba675SRob Herring		vp1-supply = <&vcc_sys>;
93*724ba675SRob Herring		vp2-supply = <&vcc_sys>;
94*724ba675SRob Herring		vp3-supply = <&vcc_sys>;
95*724ba675SRob Herring		vp4-supply = <&vcc_sys>;
96*724ba675SRob Herring
97*724ba675SRob Herring		regulators {
98*724ba675SRob Herring			vcc_ddr: REG1 {
99*724ba675SRob Herring				regulator-name = "VCC_DDR";
100*724ba675SRob Herring				regulator-min-microvolt = <1200000>;
101*724ba675SRob Herring				regulator-max-microvolt = <1200000>;
102*724ba675SRob Herring				regulator-always-on;
103*724ba675SRob Herring			};
104*724ba675SRob Herring
105*724ba675SRob Herring			vcc_io: vccio_codec: REG2 {
106*724ba675SRob Herring				regulator-name = "VCC_IO";
107*724ba675SRob Herring				regulator-min-microvolt = <3300000>;
108*724ba675SRob Herring				regulator-max-microvolt = <3300000>;
109*724ba675SRob Herring				regulator-always-on;
110*724ba675SRob Herring			};
111*724ba675SRob Herring
112*724ba675SRob Herring			vdd_log: REG3 {
113*724ba675SRob Herring				regulator-name = "VDD_LOG";
114*724ba675SRob Herring				regulator-min-microvolt = <1000000>;
115*724ba675SRob Herring				regulator-max-microvolt = <1000000>;
116*724ba675SRob Herring				regulator-always-on;
117*724ba675SRob Herring			};
118*724ba675SRob Herring
119*724ba675SRob Herring			vcc_20: REG4 {
120*724ba675SRob Herring				regulator-name = "VCC_20";
121*724ba675SRob Herring				regulator-min-microvolt = <2000000>;
122*724ba675SRob Herring				regulator-max-microvolt = <2000000>;
123*724ba675SRob Herring				regulator-always-on;
124*724ba675SRob Herring			};
125*724ba675SRob Herring
126*724ba675SRob Herring			vccio_sd: REG5 {
127*724ba675SRob Herring				regulator-name = "VCCIO_SD";
128*724ba675SRob Herring				regulator-min-microvolt = <3300000>;
129*724ba675SRob Herring				regulator-max-microvolt = <3300000>;
130*724ba675SRob Herring				regulator-always-on;
131*724ba675SRob Herring			};
132*724ba675SRob Herring
133*724ba675SRob Herring			vdd10_lcd: REG6 {
134*724ba675SRob Herring				regulator-name = "VDD10_LCD";
135*724ba675SRob Herring				regulator-min-microvolt = <1000000>;
136*724ba675SRob Herring				regulator-max-microvolt = <1000000>;
137*724ba675SRob Herring				regulator-always-on;
138*724ba675SRob Herring			};
139*724ba675SRob Herring
140*724ba675SRob Herring			vcca_codec: REG7 {
141*724ba675SRob Herring				regulator-name = "VCCA_CODEC";
142*724ba675SRob Herring				regulator-min-microvolt = <3300000>;
143*724ba675SRob Herring				regulator-max-microvolt = <3300000>;
144*724ba675SRob Herring				regulator-always-on;
145*724ba675SRob Herring			};
146*724ba675SRob Herring
147*724ba675SRob Herring			vcca_tp: REG8 {
148*724ba675SRob Herring				regulator-name = "VCCA_TP";
149*724ba675SRob Herring				regulator-min-microvolt = <3300000>;
150*724ba675SRob Herring				regulator-max-microvolt = <3300000>;
151*724ba675SRob Herring				regulator-always-on;
152*724ba675SRob Herring			};
153*724ba675SRob Herring
154*724ba675SRob Herring			vccio_pmu: REG9 {
155*724ba675SRob Herring				regulator-name = "VCCIO_PMU";
156*724ba675SRob Herring				regulator-min-microvolt = <3300000>;
157*724ba675SRob Herring				regulator-max-microvolt = <3300000>;
158*724ba675SRob Herring				regulator-always-on;
159*724ba675SRob Herring			};
160*724ba675SRob Herring
161*724ba675SRob Herring			vdd_10: REG10 {
162*724ba675SRob Herring				regulator-name = "VDD_10";
163*724ba675SRob Herring				regulator-min-microvolt = <1000000>;
164*724ba675SRob Herring				regulator-max-microvolt = <1000000>;
165*724ba675SRob Herring				regulator-always-on;
166*724ba675SRob Herring			};
167*724ba675SRob Herring
168*724ba675SRob Herring			vcc_18: REG11 {
169*724ba675SRob Herring				regulator-name = "VCC_18";
170*724ba675SRob Herring				regulator-min-microvolt = <1800000>;
171*724ba675SRob Herring				regulator-max-microvolt = <1800000>;
172*724ba675SRob Herring				regulator-always-on;
173*724ba675SRob Herring			};
174*724ba675SRob Herring
175*724ba675SRob Herring			vcc18_lcd: REG12 {
176*724ba675SRob Herring				regulator-name = "VCC18_LCD";
177*724ba675SRob Herring				regulator-min-microvolt = <1800000>;
178*724ba675SRob Herring				regulator-max-microvolt = <1800000>;
179*724ba675SRob Herring				regulator-always-on;
180*724ba675SRob Herring			};
181*724ba675SRob Herring		};
182*724ba675SRob Herring	};
183*724ba675SRob Herring
184*724ba675SRob Herring	vdd_cpu: syr827@40 {
185*724ba675SRob Herring		compatible = "silergy,syr827";
186*724ba675SRob Herring		reg = <0x40>;
187*724ba675SRob Herring		fcs,suspend-voltage-selector = <1>;
188*724ba675SRob Herring		regulator-always-on;
189*724ba675SRob Herring		regulator-boot-on;
190*724ba675SRob Herring		regulator-enable-ramp-delay = <300>;
191*724ba675SRob Herring		regulator-name = "vdd_cpu";
192*724ba675SRob Herring		regulator-min-microvolt = <850000>;
193*724ba675SRob Herring		regulator-max-microvolt = <1350000>;
194*724ba675SRob Herring		regulator-ramp-delay = <8000>;
195*724ba675SRob Herring		vin-supply = <&vcc_sys>;
196*724ba675SRob Herring	};
197*724ba675SRob Herring
198*724ba675SRob Herring	vdd_gpu: syr828@41 {
199*724ba675SRob Herring		compatible = "silergy,syr828";
200*724ba675SRob Herring		reg = <0x41>;
201*724ba675SRob Herring		fcs,suspend-voltage-selector = <1>;
202*724ba675SRob Herring		regulator-always-on;
203*724ba675SRob Herring		regulator-enable-ramp-delay = <300>;
204*724ba675SRob Herring		regulator-min-microvolt = <850000>;
205*724ba675SRob Herring		regulator-max-microvolt = <1350000>;
206*724ba675SRob Herring		regulator-name = "vdd_gpu";
207*724ba675SRob Herring		regulator-ramp-delay = <8000>;
208*724ba675SRob Herring		vin-supply = <&vcc_sys>;
209*724ba675SRob Herring	};
210*724ba675SRob Herring};
211*724ba675SRob Herring
212*724ba675SRob Herring&io_domains {
213*724ba675SRob Herring	status = "okay";
214*724ba675SRob Herring
215*724ba675SRob Herring	audio-supply = <&vcc_io>;
216*724ba675SRob Herring	bb-supply = <&vcc_io>;
217*724ba675SRob Herring	dvp-supply = <&vcc_18>;
218*724ba675SRob Herring	flash0-supply = <&vcc_flash>;
219*724ba675SRob Herring	flash1-supply = <&vccio_pmu>;
220*724ba675SRob Herring	gpio30-supply = <&vccio_pmu>;
221*724ba675SRob Herring	gpio1830-supply = <&vcc_io>;
222*724ba675SRob Herring	lcdc-supply = <&vcc_io>;
223*724ba675SRob Herring	sdcard-supply = <&vccio_sd>;
224*724ba675SRob Herring	wifi-supply = <&vcc_18>;
225*724ba675SRob Herring};
226*724ba675SRob Herring
227*724ba675SRob Herring&pinctrl {
228*724ba675SRob Herring	pcfg_output_high: pcfg-output-high {
229*724ba675SRob Herring		output-high;
230*724ba675SRob Herring	};
231*724ba675SRob Herring
232*724ba675SRob Herring	emmc {
233*724ba675SRob Herring		emmc_reset: emmc-reset {
234*724ba675SRob Herring			rockchip,pins = <3 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
235*724ba675SRob Herring		};
236*724ba675SRob Herring	};
237*724ba675SRob Herring
238*724ba675SRob Herring	gmac {
239*724ba675SRob Herring		phy_rst: phy-rst {
240*724ba675SRob Herring			rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_output_high>;
241*724ba675SRob Herring		};
242*724ba675SRob Herring	};
243*724ba675SRob Herring};
244*724ba675SRob Herring
245*724ba675SRob Herring&saradc {
246*724ba675SRob Herring	vref-supply = <&vcc_18>;
247*724ba675SRob Herring};
248*724ba675SRob Herring
249*724ba675SRob Herring&tsadc {
250*724ba675SRob Herring	rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
251*724ba675SRob Herring	rockchip,hw-tshut-polarity = <0>; /* tshut polarity 0:LOW 1:HIGH */
252*724ba675SRob Herring	status = "okay";
253*724ba675SRob Herring};
254*724ba675SRob Herring
255*724ba675SRob Herring&vopb {
256*724ba675SRob Herring	status = "okay";
257*724ba675SRob Herring};
258*724ba675SRob Herring
259*724ba675SRob Herring&vopb_mmu {
260*724ba675SRob Herring	status = "okay";
261*724ba675SRob Herring};
262*724ba675SRob Herring
263*724ba675SRob Herring&vopl {
264*724ba675SRob Herring	status = "okay";
265*724ba675SRob Herring};
266*724ba675SRob Herring
267*724ba675SRob Herring&vopl_mmu {
268*724ba675SRob Herring	status = "okay";
269*724ba675SRob Herring};
270*724ba675SRob Herring
271*724ba675SRob Herring&wdt {
272*724ba675SRob Herring	status = "okay";
273*724ba675SRob Herring};
274