Loading...
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2
3/dts-v1/;
4#include "rk3288-evb.dtsi"
5
6/ {
7 compatible = "rockchip,rk3288-evb-rk808", "rockchip,rk3288";
8};
9
10&i2c0 {
11 clock-frequency = <400000>;
12
13 rk808: pmic@1b {
14 compatible = "rockchip,rk808";
15 reg = <0x1b>;
16 interrupt-parent = <&gpio0>;
17 interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
18 pinctrl-names = "default";
19 pinctrl-0 = <&pmic_int &global_pwroff>;
20 rockchip,system-power-controller;
21 wakeup-source;
22 #clock-cells = <1>;
23 clock-output-names = "xin32k", "rk808-clkout2";
24
25 vcc1-supply = <&vcc_sys>;
26 vcc2-supply = <&vcc_sys>;
27 vcc3-supply = <&vcc_sys>;
28 vcc4-supply = <&vcc_sys>;
29 vcc6-supply = <&vcc_sys>;
30 vcc7-supply = <&vcc_sys>;
31 vcc8-supply = <&vcc_18>;
32 vcc9-supply = <&vcc_io>;
33 vcc10-supply = <&vcc_io>;
34 vcc11-supply = <&vcc_sys>;
35 vcc12-supply = <&vcc_io>;
36 vddio-supply = <&vccio_pmu>;
37
38 regulators {
39 vdd_cpu: DCDC_REG1 {
40 regulator-always-on;
41 regulator-boot-on;
42 regulator-min-microvolt = <750000>;
43 regulator-max-microvolt = <1350000>;
44 regulator-name = "vdd_arm";
45 regulator-state-mem {
46 regulator-off-in-suspend;
47 };
48 };
49
50 vdd_gpu: DCDC_REG2 {
51 regulator-always-on;
52 regulator-boot-on;
53 regulator-min-microvolt = <850000>;
54 regulator-max-microvolt = <1250000>;
55 regulator-name = "vdd_gpu";
56 regulator-state-mem {
57 regulator-on-in-suspend;
58 regulator-suspend-microvolt = <1000000>;
59 };
60 };
61
62 vcc_ddr: DCDC_REG3 {
63 regulator-always-on;
64 regulator-boot-on;
65 regulator-name = "vcc_ddr";
66 regulator-state-mem {
67 regulator-on-in-suspend;
68 };
69 };
70
71 vcc_io: DCDC_REG4 {
72 regulator-always-on;
73 regulator-boot-on;
74 regulator-min-microvolt = <3300000>;
75 regulator-max-microvolt = <3300000>;
76 regulator-name = "vcc_io";
77 regulator-state-mem {
78 regulator-on-in-suspend;
79 regulator-suspend-microvolt = <3300000>;
80 };
81 };
82
83 vccio_pmu: LDO_REG1 {
84 regulator-always-on;
85 regulator-boot-on;
86 regulator-min-microvolt = <3300000>;
87 regulator-max-microvolt = <3300000>;
88 regulator-name = "vccio_pmu";
89 regulator-state-mem {
90 regulator-on-in-suspend;
91 regulator-suspend-microvolt = <3300000>;
92 };
93 };
94
95 vcc_tp: LDO_REG2 {
96 regulator-always-on;
97 regulator-boot-on;
98 regulator-min-microvolt = <3300000>;
99 regulator-max-microvolt = <3300000>;
100 regulator-name = "vcc_tp";
101 regulator-state-mem {
102 regulator-off-in-suspend;
103 };
104 };
105
106 vdd_10: LDO_REG3 {
107 regulator-always-on;
108 regulator-boot-on;
109 regulator-min-microvolt = <1000000>;
110 regulator-max-microvolt = <1000000>;
111 regulator-name = "vdd_10";
112 regulator-state-mem {
113 regulator-on-in-suspend;
114 regulator-suspend-microvolt = <1000000>;
115 };
116 };
117
118 vcc18_lcd: LDO_REG4 {
119 regulator-always-on;
120 regulator-boot-on;
121 regulator-min-microvolt = <1800000>;
122 regulator-max-microvolt = <1800000>;
123 regulator-name = "vcc18_lcd";
124 regulator-state-mem {
125 regulator-on-in-suspend;
126 regulator-suspend-microvolt = <1800000>;
127 };
128 };
129
130 vccio_sd: LDO_REG5 {
131 regulator-always-on;
132 regulator-boot-on;
133 regulator-min-microvolt = <1800000>;
134 regulator-max-microvolt = <3300000>;
135 regulator-name = "vccio_sd";
136 regulator-state-mem {
137 regulator-on-in-suspend;
138 regulator-suspend-microvolt = <3300000>;
139 };
140 };
141
142 vdd10_lcd: LDO_REG6 {
143 regulator-always-on;
144 regulator-boot-on;
145 regulator-min-microvolt = <1000000>;
146 regulator-max-microvolt = <1000000>;
147 regulator-name = "vdd10_lcd";
148 regulator-state-mem {
149 regulator-on-in-suspend;
150 regulator-suspend-microvolt = <1000000>;
151 };
152 };
153
154 vcc_18: LDO_REG7 {
155 regulator-always-on;
156 regulator-boot-on;
157 regulator-min-microvolt = <1800000>;
158 regulator-max-microvolt = <1800000>;
159 regulator-name = "vcc_18";
160 regulator-state-mem {
161 regulator-on-in-suspend;
162 regulator-suspend-microvolt = <1800000>;
163 };
164 };
165
166 vcca_codec: LDO_REG8 {
167 regulator-always-on;
168 regulator-boot-on;
169 regulator-min-microvolt = <3300000>;
170 regulator-max-microvolt = <3300000>;
171 regulator-name = "vcca_codec";
172 regulator-state-mem {
173 regulator-on-in-suspend;
174 regulator-suspend-microvolt = <3300000>;
175 };
176 };
177
178 vcc_wl: SWITCH_REG1 {
179 regulator-always-on;
180 regulator-boot-on;
181 regulator-name = "vcc_wl";
182 regulator-state-mem {
183 regulator-on-in-suspend;
184 };
185 };
186
187 vcc_lcd: SWITCH_REG2 {
188 regulator-always-on;
189 regulator-boot-on;
190 regulator-name = "vcc_lcd";
191 regulator-state-mem {
192 regulator-on-in-suspend;
193 };
194 };
195 };
196 };
197};
198
199&panel {
200 power-supply = <&vcc_lcd>;
201};
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 RK808";
8 compatible = "rockchip,rk3288-evb-rk808", "rockchip,rk3288";
9};
10
11&i2c0 {
12 clock-frequency = <400000>;
13
14 rk808: pmic@1b {
15 compatible = "rockchip,rk808";
16 reg = <0x1b>;
17 interrupt-parent = <&gpio0>;
18 interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
19 pinctrl-names = "default";
20 pinctrl-0 = <&pmic_int &global_pwroff>;
21 rockchip,system-power-controller;
22 wakeup-source;
23 #clock-cells = <1>;
24 clock-output-names = "xin32k", "rk808-clkout2";
25
26 vcc1-supply = <&vcc_sys>;
27 vcc2-supply = <&vcc_sys>;
28 vcc3-supply = <&vcc_sys>;
29 vcc4-supply = <&vcc_sys>;
30 vcc6-supply = <&vcc_sys>;
31 vcc7-supply = <&vcc_sys>;
32 vcc8-supply = <&vcc_18>;
33 vcc9-supply = <&vcc_io>;
34 vcc10-supply = <&vcc_io>;
35 vcc11-supply = <&vcc_sys>;
36 vcc12-supply = <&vcc_io>;
37 vddio-supply = <&vccio_pmu>;
38
39 regulators {
40 vdd_cpu: DCDC_REG1 {
41 regulator-always-on;
42 regulator-boot-on;
43 regulator-min-microvolt = <750000>;
44 regulator-max-microvolt = <1350000>;
45 regulator-name = "vdd_arm";
46 regulator-state-mem {
47 regulator-off-in-suspend;
48 };
49 };
50
51 vdd_gpu: DCDC_REG2 {
52 regulator-always-on;
53 regulator-boot-on;
54 regulator-min-microvolt = <850000>;
55 regulator-max-microvolt = <1250000>;
56 regulator-name = "vdd_gpu";
57 regulator-state-mem {
58 regulator-on-in-suspend;
59 regulator-suspend-microvolt = <1000000>;
60 };
61 };
62
63 vcc_ddr: DCDC_REG3 {
64 regulator-always-on;
65 regulator-boot-on;
66 regulator-name = "vcc_ddr";
67 regulator-state-mem {
68 regulator-on-in-suspend;
69 };
70 };
71
72 vcc_io: DCDC_REG4 {
73 regulator-always-on;
74 regulator-boot-on;
75 regulator-min-microvolt = <3300000>;
76 regulator-max-microvolt = <3300000>;
77 regulator-name = "vcc_io";
78 regulator-state-mem {
79 regulator-on-in-suspend;
80 regulator-suspend-microvolt = <3300000>;
81 };
82 };
83
84 vccio_pmu: LDO_REG1 {
85 regulator-always-on;
86 regulator-boot-on;
87 regulator-min-microvolt = <3300000>;
88 regulator-max-microvolt = <3300000>;
89 regulator-name = "vccio_pmu";
90 regulator-state-mem {
91 regulator-on-in-suspend;
92 regulator-suspend-microvolt = <3300000>;
93 };
94 };
95
96 vcc_tp: LDO_REG2 {
97 regulator-always-on;
98 regulator-boot-on;
99 regulator-min-microvolt = <3300000>;
100 regulator-max-microvolt = <3300000>;
101 regulator-name = "vcc_tp";
102 regulator-state-mem {
103 regulator-off-in-suspend;
104 };
105 };
106
107 vdd_10: LDO_REG3 {
108 regulator-always-on;
109 regulator-boot-on;
110 regulator-min-microvolt = <1000000>;
111 regulator-max-microvolt = <1000000>;
112 regulator-name = "vdd_10";
113 regulator-state-mem {
114 regulator-on-in-suspend;
115 regulator-suspend-microvolt = <1000000>;
116 };
117 };
118
119 vcc18_lcd: LDO_REG4 {
120 regulator-always-on;
121 regulator-boot-on;
122 regulator-min-microvolt = <1800000>;
123 regulator-max-microvolt = <1800000>;
124 regulator-name = "vcc18_lcd";
125 regulator-state-mem {
126 regulator-on-in-suspend;
127 regulator-suspend-microvolt = <1800000>;
128 };
129 };
130
131 vccio_sd: LDO_REG5 {
132 regulator-always-on;
133 regulator-boot-on;
134 regulator-min-microvolt = <1800000>;
135 regulator-max-microvolt = <3300000>;
136 regulator-name = "vccio_sd";
137 regulator-state-mem {
138 regulator-on-in-suspend;
139 regulator-suspend-microvolt = <3300000>;
140 };
141 };
142
143 vdd10_lcd: LDO_REG6 {
144 regulator-always-on;
145 regulator-boot-on;
146 regulator-min-microvolt = <1000000>;
147 regulator-max-microvolt = <1000000>;
148 regulator-name = "vdd10_lcd";
149 regulator-state-mem {
150 regulator-on-in-suspend;
151 regulator-suspend-microvolt = <1000000>;
152 };
153 };
154
155 vcc_18: LDO_REG7 {
156 regulator-always-on;
157 regulator-boot-on;
158 regulator-min-microvolt = <1800000>;
159 regulator-max-microvolt = <1800000>;
160 regulator-name = "vcc_18";
161 regulator-state-mem {
162 regulator-on-in-suspend;
163 regulator-suspend-microvolt = <1800000>;
164 };
165 };
166
167 vcca_codec: LDO_REG8 {
168 regulator-always-on;
169 regulator-boot-on;
170 regulator-min-microvolt = <3300000>;
171 regulator-max-microvolt = <3300000>;
172 regulator-name = "vcca_codec";
173 regulator-state-mem {
174 regulator-on-in-suspend;
175 regulator-suspend-microvolt = <3300000>;
176 };
177 };
178
179 vcc_wl: SWITCH_REG1 {
180 regulator-always-on;
181 regulator-boot-on;
182 regulator-name = "vcc_wl";
183 regulator-state-mem {
184 regulator-on-in-suspend;
185 };
186 };
187
188 vcc_lcd: SWITCH_REG2 {
189 regulator-always-on;
190 regulator-boot-on;
191 regulator-name = "vcc_lcd";
192 regulator-state-mem {
193 regulator-on-in-suspend;
194 };
195 };
196 };
197 };
198};
199
200&panel {
201 power-supply = <&vcc_lcd>;
202};