xref: /OK3568_Linux_fs/kernel/arch/arm/boot/dts/rk3288-evb-act8846.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2
3/dts-v1/;
4#include "rk3288-evb.dtsi"
5
6/ {
7	model = "Rockchip RK3288 EVB ACT8846";
8	compatible = "rockchip,rk3288-evb-act8846", "rockchip,rk3288";
9
10	sdio_pwrseq: sdio-pwrseq {
11		compatible = "mmc-pwrseq-simple";
12		clocks = <&hym8563>;
13		clock-names = "ext_clock";
14		pinctrl-names = "default";
15		pinctrl-0 = <&wifi_enable_h>;
16
17		/*
18		 * On the module itself this is one of these (depending
19		 * on the actual card populated):
20		 * - SDIO_RESET_L_WL_REG_ON
21		 * - PDN (power down when low)
22		 */
23		reset-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>;
24	};
25
26	vcc_lcd: vcc-lcd {
27		compatible = "regulator-fixed";
28		enable-active-high;
29		gpio = <&gpio7 RK_PA3 GPIO_ACTIVE_HIGH>;
30		pinctrl-names = "default";
31		pinctrl-0 = <&lcd_en>;
32		regulator-name = "vcc_lcd";
33		vin-supply = <&vcc_io>;
34	};
35
36	vcc_wl: vcc-wl {
37		compatible = "regulator-fixed";
38		enable-active-high;
39		gpio = <&gpio7 RK_PB1 GPIO_ACTIVE_HIGH>;
40		pinctrl-names = "default";
41		pinctrl-0 = <&wifi_pwr>;
42		regulator-name = "vcc_wl";
43		vin-supply = <&vcc_18>;
44	};
45};
46
47&i2c0 {
48	clock-frequency = <400000>;
49
50	vdd_cpu: syr827@40 {
51		compatible = "silergy,syr827";
52		fcs,suspend-voltage-selector = <1>;
53		reg = <0x40>;
54		regulator-name = "vdd_cpu";
55		regulator-min-microvolt = <850000>;
56		regulator-max-microvolt = <1350000>;
57		regulator-always-on;
58		regulator-boot-on;
59		vin-supply = <&vcc_sys>;
60	};
61
62	vdd_gpu: syr828@41 {
63		compatible = "silergy,syr828";
64		fcs,suspend-voltage-selector = <1>;
65		reg = <0x41>;
66		regulator-name = "vdd_gpu";
67		regulator-min-microvolt = <850000>;
68		regulator-max-microvolt = <1350000>;
69		regulator-always-on;
70		vin-supply = <&vcc_sys>;
71	};
72
73	hym8563: rtc@51 {
74		compatible = "haoyu,hym8563";
75		reg = <0x51>;
76
77		interrupt-parent = <&gpio0>;
78		interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
79
80		pinctrl-names = "default";
81		pinctrl-0 = <&pmic_int>;
82
83		#clock-cells = <0>;
84		clock-output-names = "xin32k";
85	};
86
87	act8846: act8846@5a {
88		compatible = "active-semi,act8846";
89		reg = <0x5a>;
90		status = "okay";
91
92		vp1-supply = <&vcc_sys>;
93		vp2-supply = <&vcc_sys>;
94		vp3-supply = <&vcc_sys>;
95		vp4-supply = <&vcc_sys>;
96		inl1-supply = <&vcc_io>;
97		inl2-supply = <&vcc_sys>;
98		inl3-supply = <&vcc_20>;
99
100		regulators {
101			vcc_ddr: REG1 {
102				regulator-name = "VCC_DDR";
103				regulator-min-microvolt = <1200000>;
104				regulator-max-microvolt = <1200000>;
105				regulator-always-on;
106			};
107
108			vcc_io: REG2 {
109				regulator-name = "VCC_IO";
110				regulator-min-microvolt = <3300000>;
111				regulator-max-microvolt = <3300000>;
112				regulator-always-on;
113			};
114
115			vdd_log: REG3 {
116				regulator-name = "VDD_LOG";
117				regulator-min-microvolt = <700000>;
118				regulator-max-microvolt = <1500000>;
119				regulator-always-on;
120			};
121
122			vcc_20: REG4 {
123				regulator-name = "VCC_20";
124				regulator-min-microvolt = <2000000>;
125				regulator-max-microvolt = <2000000>;
126				regulator-always-on;
127			};
128
129			vccio_sd: REG5 {
130				regulator-name = "VCCIO_SD";
131				regulator-min-microvolt = <1800000>;
132				regulator-max-microvolt = <3300000>;
133				regulator-always-on;
134			};
135
136			vdd10_lcd: REG6 {
137				regulator-name = "VDD10_LCD";
138				regulator-min-microvolt = <1000000>;
139				regulator-max-microvolt = <1000000>;
140				regulator-always-on;
141			};
142
143			vcca_codec: REG7 {
144				regulator-name = "VCCA_CODEC";
145				regulator-min-microvolt = <3300000>;
146				regulator-max-microvolt = <3300000>;
147				regulator-always-on;
148			};
149
150			vcc_tp: REG8 {
151				regulator-name = "VCCA_TP";
152				regulator-min-microvolt = <3300000>;
153				regulator-max-microvolt = <3300000>;
154				regulator-always-on;
155			};
156
157			vccio_pmu: REG9 {
158				regulator-name = "VCCIO_PMU";
159				regulator-min-microvolt = <3300000>;
160				regulator-max-microvolt = <3300000>;
161				regulator-always-on;
162			};
163
164			vdd_10: REG10 {
165				regulator-name = "VDD_10";
166				regulator-min-microvolt = <1000000>;
167				regulator-max-microvolt = <1000000>;
168				regulator-always-on;
169			};
170
171			vcc_18: REG11 {
172				regulator-name = "VCC_18";
173				regulator-min-microvolt = <1800000>;
174				regulator-max-microvolt = <1800000>;
175				regulator-always-on;
176			};
177
178			vcc18_lcd: REG12 {
179				regulator-name = "VCC18_LCD";
180				regulator-min-microvolt = <1800000>;
181				regulator-max-microvolt = <1800000>;
182				regulator-always-on;
183			};
184		};
185	};
186};
187
188&panel {
189	power-supply = <&vcc_lcd>;
190};
191
192&pinctrl {
193	lcd {
194		lcd_en: lcd-en  {
195			rockchip,pins = <7 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
196		};
197	};
198
199	wifi {
200		wifi_pwr: wifi-pwr {
201			rockchip,pins = <7 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
202		};
203	};
204};
205