1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2019, Jeffrey Hugo. All rights reserved. */
5 * Common include for MSM8998 clamshell devices, ie the Lenovo Miix 630,
6 * Asus NovaGo TP370QL, and HP Envy x2. All three devices are basically the
7 * same, with differences in peripherals.
10 #include "msm8998.dtsi"
11 #include "pm8998.dtsi"
12 #include "pm8005.dtsi"
18 vph_pwr: vph-pwr-regulator {
19 compatible = "regulator-fixed";
20 regulator-name = "vph_pwr";
30 compatible = "qcom,wcn3990-bt";
32 vddio-supply = <&vreg_s4a_1p8>;
33 vddxo-supply = <&vreg_l7a_1p8>;
34 vddrf-supply = <&vreg_l17a_1p3>;
35 vddch0-supply = <&vreg_l25a_3p3>;
36 max-speed = <3200000>;
41 * The laptop FW does not appear to support the retention state as it is
42 * not advertised as enabled in ACPI, and enabling it in DT can cause boot
46 cpu-idle-states = <&LITTLE_CPU_SLEEP_1>;
50 cpu-idle-states = <&LITTLE_CPU_SLEEP_1>;
54 cpu-idle-states = <&LITTLE_CPU_SLEEP_1>;
58 cpu-idle-states = <&LITTLE_CPU_SLEEP_1>;
62 cpu-idle-states = <&BIG_CPU_SLEEP_1>;
66 cpu-idle-states = <&BIG_CPU_SLEEP_1>;
70 cpu-idle-states = <&BIG_CPU_SLEEP_1>;
74 cpu-idle-states = <&BIG_CPU_SLEEP_1>;
80 vdda-pll-supply = <&vreg_l12a_1p8>;
81 vdda-phy-dpdm-supply = <&vreg_l24a_3p075>;
86 compatible = "qcom,rpm-pm8998-regulators";
88 vdd_s1-supply = <&vph_pwr>;
89 vdd_s2-supply = <&vph_pwr>;
90 vdd_s3-supply = <&vph_pwr>;
91 vdd_s4-supply = <&vph_pwr>;
92 vdd_s5-supply = <&vph_pwr>;
93 vdd_s6-supply = <&vph_pwr>;
94 vdd_s7-supply = <&vph_pwr>;
95 vdd_s8-supply = <&vph_pwr>;
96 vdd_s9-supply = <&vph_pwr>;
97 vdd_s10-supply = <&vph_pwr>;
98 vdd_s11-supply = <&vph_pwr>;
99 vdd_s12-supply = <&vph_pwr>;
100 vdd_s13-supply = <&vph_pwr>;
101 vdd_l1_l27-supply = <&vreg_s7a_1p025>;
102 vdd_l2_l8_l17-supply = <&vreg_s3a_1p35>;
103 vdd_l3_l11-supply = <&vreg_s7a_1p025>;
104 vdd_l4_l5-supply = <&vreg_s7a_1p025>;
105 vdd_l6-supply = <&vreg_s5a_2p04>;
106 vdd_l7_l12_l14_l15-supply = <&vreg_s5a_2p04>;
107 vdd_l9-supply = <&vph_pwr>;
108 vdd_l10_l23_l25-supply = <&vph_pwr>;
109 vdd_l13_l19_l21-supply = <&vph_pwr>;
110 vdd_l16_l28-supply = <&vph_pwr>;
111 vdd_l18_l22-supply = <&vph_pwr>;
112 vdd_l20_l24-supply = <&vph_pwr>;
113 vdd_l26-supply = <&vreg_s3a_1p35>;
114 vdd_lvs1_lvs2-supply = <&vreg_s4a_1p8>;
117 regulator-min-microvolt = <1352000>;
118 regulator-max-microvolt = <1352000>;
121 regulator-min-microvolt = <1800000>;
122 regulator-max-microvolt = <1800000>;
123 regulator-allow-set-load;
126 regulator-min-microvolt = <1904000>;
127 regulator-max-microvolt = <2040000>;
130 regulator-min-microvolt = <900000>;
131 regulator-max-microvolt = <1028000>;
134 regulator-min-microvolt = <880000>;
135 regulator-max-microvolt = <880000>;
136 regulator-allow-set-load;
139 regulator-min-microvolt = <1200000>;
140 regulator-max-microvolt = <1200000>;
141 regulator-allow-set-load;
144 regulator-min-microvolt = <1000000>;
145 regulator-max-microvolt = <1000000>;
148 regulator-min-microvolt = <800000>;
149 regulator-max-microvolt = <800000>;
152 regulator-min-microvolt = <1808000>;
153 regulator-max-microvolt = <1808000>;
156 regulator-min-microvolt = <1800000>;
157 regulator-max-microvolt = <1800000>;
158 regulator-allow-set-load;
161 regulator-min-microvolt = <1200000>;
162 regulator-max-microvolt = <1200000>;
165 regulator-min-microvolt = <1808000>;
166 regulator-max-microvolt = <2960000>;
169 regulator-min-microvolt = <1808000>;
170 regulator-max-microvolt = <2960000>;
173 regulator-min-microvolt = <1000000>;
174 regulator-max-microvolt = <1000000>;
177 regulator-min-microvolt = <1800000>;
178 regulator-max-microvolt = <1800000>;
180 vreg_l13a_2p95: l13 {
181 regulator-min-microvolt = <1808000>;
182 regulator-max-microvolt = <2960000>;
184 vreg_l14a_1p88: l14 {
185 regulator-min-microvolt = <1880000>;
186 regulator-max-microvolt = <1880000>;
189 regulator-min-microvolt = <1800000>;
190 regulator-max-microvolt = <1800000>;
193 regulator-min-microvolt = <2704000>;
194 regulator-max-microvolt = <2704000>;
197 regulator-min-microvolt = <1304000>;
198 regulator-max-microvolt = <1304000>;
199 regulator-allow-set-load;
202 regulator-min-microvolt = <2704000>;
203 regulator-max-microvolt = <2704000>;
206 regulator-min-microvolt = <3008000>;
207 regulator-max-microvolt = <3008000>;
209 vreg_l20a_2p95: l20 {
210 regulator-min-microvolt = <2960000>;
211 regulator-max-microvolt = <2960000>;
212 regulator-allow-set-load;
214 vreg_l21a_2p95: l21 {
215 regulator-min-microvolt = <2960000>;
216 regulator-max-microvolt = <2960000>;
217 regulator-allow-set-load;
218 regulator-system-load = <800000>;
220 vreg_l22a_2p85: l22 {
221 regulator-min-microvolt = <2864000>;
222 regulator-max-microvolt = <2864000>;
225 regulator-min-microvolt = <3312000>;
226 regulator-max-microvolt = <3312000>;
228 vreg_l24a_3p075: l24 {
229 regulator-min-microvolt = <3088000>;
230 regulator-max-microvolt = <3088000>;
233 regulator-min-microvolt = <3104000>;
234 regulator-max-microvolt = <3312000>;
235 regulator-allow-set-load;
238 regulator-min-microvolt = <1200000>;
239 regulator-max-microvolt = <1200000>;
242 regulator-min-microvolt = <3008000>;
243 regulator-max-microvolt = <3008000>;
246 vreg_lvs1a_1p8: lvs1 {
247 regulator-min-microvolt = <1800000>;
248 regulator-max-microvolt = <1800000>;
251 vreg_lvs2a_1p8: lvs2 {
252 regulator-min-microvolt = <1800000>;
253 regulator-max-microvolt = <1800000>;
260 gpio-reserved-ranges = <0 4>, <81 4>;
265 bias-pull-up; /* pull up */
273 vmmc-supply = <&vreg_l21a_2p95>;
274 vqmmc-supply = <&vreg_l13a_2p95>;
276 pinctrl-names = "default", "sleep";
277 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
278 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
286 dr_mode = "host"; /* Force to host until we have Type-C hooked up */
292 vdda-phy-supply = <&vreg_l1a_0p875>;
293 vdda-pll-supply = <&vreg_l2a_1p2>;