1 // SPDX-License-Identifier: BSD-3-Clause
5 * Copyright (c) 2019, Linaro Ltd.
10 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
11 #include "sdm845.dtsi"
12 #include "pm8998.dtsi"
15 model = "Lenovo Yoga C630";
16 compatible = "lenovo,yoga-c630", "qcom,sdm845";
24 firmware-name = "qcom/LENOVO/81JL/qcadsp850.mbn";
29 pm8998-rpmh-regulators {
30 compatible = "qcom,pm8998-rpmh-regulators";
33 vdd-l2-l8-l17-supply = <&vreg_s3a_1p35>;
34 vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p04>;
36 vreg_s2a_1p125: smps2 {
39 vreg_s3a_1p35: smps3 {
40 regulator-min-microvolt = <1352000>;
41 regulator-max-microvolt = <1352000>;
42 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
46 regulator-min-microvolt = <1800000>;
47 regulator-max-microvolt = <1800000>;
48 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
51 vreg_s5a_2p04: smps5 {
52 regulator-min-microvolt = <2040000>;
53 regulator-max-microvolt = <2040000>;
54 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
57 vreg_s7a_1p025: smps7 {
78 vreg_l1a_0p875: ldo1 {
79 regulator-min-microvolt = <880000>;
80 regulator-max-microvolt = <880000>;
81 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
86 regulator-min-microvolt = <1200000>;
87 regulator-max-microvolt = <1200000>;
88 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
99 regulator-min-microvolt = <800000>;
100 regulator-max-microvolt = <800000>;
101 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
106 regulator-min-microvolt = <1800000>;
107 regulator-max-microvolt = <1800000>;
108 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
112 regulator-min-microvolt = <1800000>;
113 regulator-max-microvolt = <1800000>;
114 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
123 vreg_l10a_1p8: ldo10 {
126 vreg_l11a_1p0: ldo11 {
136 vreg_l12a_1p8: ldo12 {
137 regulator-min-microvolt = <1800000>;
138 regulator-max-microvolt = <1800000>;
139 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
143 vreg_l13a_2p95: ldo13 {
146 vreg_l14a_1p88: ldo14 {
147 regulator-min-microvolt = <1880000>;
148 regulator-max-microvolt = <1880000>;
149 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
153 vreg_l15a_1p8: ldo15 {
156 vreg_l16a_2p7: ldo16 {
159 vreg_l17a_1p3: ldo17 {
160 regulator-min-microvolt = <1304000>;
161 regulator-max-microvolt = <1304000>;
162 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
165 vreg_l18a_2p7: ldo18 {
168 vreg_l19a_3p0: ldo19 {
169 regulator-min-microvolt = <3100000>;
170 regulator-max-microvolt = <3108000>;
171 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
174 vreg_l20a_2p95: ldo20 {
175 regulator-min-microvolt = <2960000>;
176 regulator-max-microvolt = <2960000>;
177 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
180 vreg_l21a_2p95: ldo21 {
183 vreg_l22a_2p85: ldo22 {
186 vreg_l23a_3p3: ldo23 {
190 vreg_l24a_3p075: ldo24 {
191 regulator-min-microvolt = <3075000>;
192 regulator-max-microvolt = <3083000>;
193 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
196 vreg_l25a_3p3: ldo25 {
197 regulator-min-microvolt = <3104000>;
198 regulator-max-microvolt = <3112000>;
199 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
215 vreg_l26a_1p2: ldo26 {
216 regulator-min-microvolt = <1200000>;
217 regulator-max-microvolt = <1208000>;
218 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
221 vreg_l28a_3p0: ldo28 {
224 vreg_lvs1a_1p8: lvs1 {
227 vreg_lvs2a_1p8: lvs2 {
233 /* TODO: Figure out how to survive booting with this enabled */
238 firmware-name = "qcom/LENOVO/81JL/qccdsp850.mbn";
243 protected-clocks = <GCC_QSPI_CORE_CLK>,
244 <GCC_QSPI_CORE_CLK_SRC>,
245 <GCC_QSPI_CNOC_PERIPH_AHB_CLK>;
250 memory-region = <&gpu_mem>;
251 firmware-name = "qcom/LENOVO/81JL/qcdxkmsuc850.mbn";
257 clock-frequency = <400000>;
262 clock-frequency = <400000>;
265 compatible = "hid-over-i2c";
267 hid-descr-addr = <0x1>;
269 interrupts-extended = <&tlmm 37 IRQ_TYPE_EDGE_RISING>;
273 compatible = "hid-over-i2c";
275 hid-descr-addr = <0x20>;
277 interrupts-extended = <&tlmm 37 IRQ_TYPE_EDGE_RISING>;
279 pinctrl-names = "default";
280 pinctrl-0 = <&i2c2_hid_active>;
286 clock-frequency = <400000>;
289 compatible = "hid-over-i2c";
291 hid-descr-addr = <0x1>;
293 interrupts-extended = <&tlmm 125 IRQ_TYPE_EDGE_FALLING>;
295 pinctrl-names = "default";
296 pinctrl-0 = <&i2c6_hid_active>;
302 clock-frequency = <400000>;
305 compatible = "hid-over-i2c";
307 hid-descr-addr = <0x1>;
309 interrupts-extended = <&tlmm 92 IRQ_TYPE_LEVEL_LOW>;
311 pinctrl-names = "default";
312 pinctrl-0 = <&i2c12_hid_active>;
317 firmware-name = "qcom/LENOVO/81JL/qcdsp1v2850.mbn", "qcom/LENOVO/81JL/qcdsp2850.mbn";
321 drive-strength = <2>;
327 pins = "gpio45", "gpio46", "gpio47", "gpio48";
337 pins = "gpio46", "gpio47";
338 drive-strength = <2>;
357 gpio-reserved-ranges = <0 4>, <81 4>;
359 i2c2_hid_active: i2c2-hid-active {
365 drive-strength = <2>;
368 i2c6_hid_active: i2c6-hid-active {
374 drive-strength = <2>;
377 i2c12_hid_active: i2c12-hid-active {
383 drive-strength = <2>;
391 compatible = "qcom,wcn3990-bt";
393 vddio-supply = <&vreg_s4a_1p8>;
394 vddxo-supply = <&vreg_l7a_1p8>;
395 vddrf-supply = <&vreg_l17a_1p3>;
396 vddch0-supply = <&vreg_l25a_3p3>;
397 max-speed = <3200000>;
404 vcc-supply = <&vreg_l20a_2p95>;
405 vcc-max-microamp = <600000>;
411 vdda-phy-supply = <&vdda_ufs1_core>;
412 vdda-pll-supply = <&vdda_ufs1_1p2>;
426 vdd-supply = <&vdda_usb1_ss_core>;
427 vdda-pll-supply = <&vdda_qusb_hs0_1p8>;
428 vdda-phy-dpdm-supply = <&vdda_qusb_hs0_3p1>;
430 qcom,imp-res-offset-value = <8>;
431 qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_21_6_MA>;
432 qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_5_PERCENT>;
433 qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>;
439 vdda-phy-supply = <&vdda_usb1_ss_1p2>;
440 vdda-pll-supply = <&vdda_usb1_ss_core>;
454 vdd-supply = <&vdda_usb2_ss_core>;
455 vdda-pll-supply = <&vdda_qusb_hs0_1p8>;
456 vdda-phy-dpdm-supply = <&vdda_qusb_hs0_3p1>;
458 qcom,imp-res-offset-value = <8>;
459 qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_22_8_MA>;
465 vdda-phy-supply = <&vdda_usb2_ss_1p2>;
466 vdda-pll-supply = <&vdda_usb2_ss_core>;