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 clock-frequency = <400000>;
255 clock-frequency = <400000>;
258 compatible = "hid-over-i2c";
260 hid-descr-addr = <0x1>;
262 interrupts-extended = <&tlmm 37 IRQ_TYPE_EDGE_RISING>;
266 compatible = "hid-over-i2c";
268 hid-descr-addr = <0x20>;
270 interrupts-extended = <&tlmm 37 IRQ_TYPE_EDGE_RISING>;
272 pinctrl-names = "default";
273 pinctrl-0 = <&i2c2_hid_active>;
279 clock-frequency = <400000>;
282 compatible = "hid-over-i2c";
284 hid-descr-addr = <0x1>;
286 interrupts-extended = <&tlmm 125 IRQ_TYPE_EDGE_FALLING>;
288 pinctrl-names = "default";
289 pinctrl-0 = <&i2c6_hid_active>;
295 clock-frequency = <400000>;
298 compatible = "hid-over-i2c";
300 hid-descr-addr = <0x1>;
302 interrupts-extended = <&tlmm 92 IRQ_TYPE_LEVEL_LOW>;
304 pinctrl-names = "default";
305 pinctrl-0 = <&i2c12_hid_active>;
310 firmware-name = "qcom/LENOVO/81JL/qcdsp1v2850.mbn", "qcom/LENOVO/81JL/qcdsp2850.mbn";
314 drive-strength = <2>;
320 pins = "gpio45", "gpio46", "gpio47", "gpio48";
330 pins = "gpio46", "gpio47";
331 drive-strength = <2>;
350 gpio-reserved-ranges = <0 4>, <81 4>;
352 i2c2_hid_active: i2c2-hid-active {
358 drive-strength = <2>;
361 i2c6_hid_active: i2c6-hid-active {
367 drive-strength = <2>;
370 i2c12_hid_active: i2c12-hid-active {
376 drive-strength = <2>;
384 compatible = "qcom,wcn3990-bt";
386 vddio-supply = <&vreg_s4a_1p8>;
387 vddxo-supply = <&vreg_l7a_1p8>;
388 vddrf-supply = <&vreg_l17a_1p3>;
389 vddch0-supply = <&vreg_l25a_3p3>;
390 max-speed = <3200000>;
397 vcc-supply = <&vreg_l20a_2p95>;
398 vcc-max-microamp = <600000>;
404 vdda-phy-supply = <&vdda_ufs1_core>;
405 vdda-pll-supply = <&vdda_ufs1_1p2>;
419 vdd-supply = <&vdda_usb1_ss_core>;
420 vdda-pll-supply = <&vdda_qusb_hs0_1p8>;
421 vdda-phy-dpdm-supply = <&vdda_qusb_hs0_3p1>;
423 qcom,imp-res-offset-value = <8>;
424 qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_21_6_MA>;
425 qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_5_PERCENT>;
426 qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>;
432 vdda-phy-supply = <&vdda_usb1_ss_1p2>;
433 vdda-pll-supply = <&vdda_usb1_ss_core>;
447 vdd-supply = <&vdda_usb2_ss_core>;
448 vdda-pll-supply = <&vdda_qusb_hs0_1p8>;
449 vdda-phy-dpdm-supply = <&vdda_qusb_hs0_3p1>;
451 qcom,imp-res-offset-value = <8>;
452 qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_22_8_MA>;
458 vdda-phy-supply = <&vdda_usb2_ss_1p2>;
459 vdda-pll-supply = <&vdda_usb2_ss_core>;