Lines Matching +full:hall +full:- +full:enable

1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
4 * Copyright (c) 2020-2023, Linaro Limited
7 /dts-v1/;
9 #include <dt-bindings/firmware/qcom,scm.h>
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/gpio-keys.h>
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
15 #include "sc8180x-pmics.dtsi"
19 compatible = "lenovo,flex-5g", "qcom,sc8180x";
26 compatible = "pwm-backlight";
28 enable-gpios = <&pmc8180c_gpios 8 GPIO_ACTIVE_HIGH>;
30 pinctrl-0 = <&bl_pwm_default>;
31 pinctrl-names = "default";
34 gpio-keys {
35 compatible = "gpio-keys";
37 pinctrl-0 = <&hall_int_active_state>;
38 pinctrl-names = "default";
40 lid-switch {
42 linux,input-type = <EV_SW>;
44 wakeup-source;
45 wakeup-event-action = <EV_ACT_DEASSERTED>;
49 pmic-glink {
50 compatible = "qcom,sc8180x-pmic-glink", "qcom,pmic-glink";
52 #address-cells = <1>;
53 #size-cells = <0>;
56 compatible = "usb-c-connector";
58 power-role = "dual";
59 data-role = "dual";
62 #address-cells = <1>;
63 #size-cells = <0>;
69 remote-endpoint = <&usb_prim_role_switch>;
77 remote-endpoint = <&usb_prim_qmpphy_out>;
85 remote-endpoint = <&usbprim_sbu_mux>;
92 compatible = "usb-c-connector";
94 power-role = "dual";
95 data-role = "dual";
98 #address-cells = <1>;
99 #size-cells = <0>;
104 remote-endpoint = <&usb_sec_role_switch>;
112 remote-endpoint = <&usb_sec_qmpphy_out>;
120 remote-endpoint = <&usbsec_sbu_mux>;
127 reserved-memory {
128 rmtfs_mem: rmtfs-region@85500000 {
129 compatible = "qcom,rmtfs-mem";
131 no-map;
133 qcom,client-id = <1>;
137 wlan_mem: wlan-region@8bc00000 {
139 no-map;
142 mpss_mem: mpss-region@8d800000 {
144 no-map;
147 adsp_mem: adsp-region@90800000 {
149 no-map;
152 gpu_mem: gpu-region@98715000 {
154 no-map;
157 cdsp_mem: cdsp-region@98900000 {
159 no-map;
163 vph_pwr: vph-pwr-regulator {
164 compatible = "regulator-fixed";
165 regulator-name = "vph_pwr";
166 regulator-min-microvolt = <3700000>;
167 regulator-max-microvolt = <3700000>;
170 vreg_s4a_1p8: pm8150-s4-regulator {
171 compatible = "regulator-fixed";
172 regulator-name = "vreg_s4a_1p8";
174 regulator-min-microvolt = <1800000>;
175 regulator-max-microvolt = <1800000>;
177 regulator-always-on;
178 regulator-boot-on;
180 vin-supply = <&vph_pwr>;
183 usbprim-sbu-mux {
184 compatible = "pericom,pi3usb102", "gpio-sbu-mux";
186 enable-gpios = <&tlmm 152 GPIO_ACTIVE_LOW>;
187 select-gpios = <&tlmm 100 GPIO_ACTIVE_HIGH>;
189 pinctrl-names = "default";
190 pinctrl-0 = <&usbprim_sbu_default>;
192 mode-switch;
193 orientation-switch;
197 remote-endpoint = <&pmic_glink_con0_sbu>;
202 usbsec-sbu-mux {
203 compatible = "pericom,pi3usb102", "gpio-sbu-mux";
205 enable-gpios = <&tlmm 188 GPIO_ACTIVE_LOW>;
206 select-gpios = <&tlmm 187 GPIO_ACTIVE_HIGH>;
208 pinctrl-names = "default";
209 pinctrl-0 = <&usbsec_sbu_default>;
211 mode-switch;
212 orientation-switch;
216 remote-endpoint = <&pmic_glink_con1_sbu>;
223 regulators-0 {
224 compatible = "qcom,pmc8180-rpmh-regulators";
225 qcom,pmic-id = "a";
227 vdd-s5-supply = <&vph_pwr>;
228 vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p0>;
231 regulator-min-microvolt = <2040000>;
232 regulator-max-microvolt = <2100000>;
236 regulator-min-microvolt = <1800000>;
237 regulator-max-microvolt = <1800000>;
238 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
242 regulator-min-microvolt = <1296000>;
243 regulator-max-microvolt = <1304000>;
244 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
248 regulator-min-microvolt = <1800000>;
249 regulator-max-microvolt = <1800000>;
250 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
254 regulators-1 {
255 compatible = "qcom,pmc8180c-rpmh-regulators";
256 qcom,pmic-id = "c";
258 vdd-s6-supply = <&vph_pwr>;
259 vdd-l2-l3-supply = <&vreg_s6c_1p35>;
260 vdd-bob-supply = <&vph_pwr>;
263 regulator-min-microvolt = <1350000>;
264 regulator-max-microvolt = <1372000>;
265 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
269 regulator-min-microvolt = <1200000>;
270 regulator-max-microvolt = <1200000>;
271 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
275 regulator-min-microvolt = <3000000>;
276 regulator-max-microvolt = <3312000>;
277 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
281 regulator-min-microvolt = <3296000>;
282 regulator-max-microvolt = <3304000>;
283 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
287 regulator-min-microvolt = <3296000>;
288 regulator-max-microvolt = <3350000>;
289 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
293 regulators-2 {
294 compatible = "qcom,pmc8180-rpmh-regulators";
295 qcom,pmic-id = "e";
297 vdd-s4-supply = <&vph_pwr>;
298 vdd-s5-supply = <&vph_pwr>;
299 vdd-l2-l10-supply = <&vreg_bob>;
300 vdd-l3-l4-l5-l18-supply = <&vreg_s4e_0p98>;
301 vdd-l7-l12-l14-l15-supply = <&vreg_s5e_2p05>;
302 vdd-l13-l16-l17-supply = <&vreg_bob>;
305 regulator-min-microvolt = <992000>;
306 regulator-max-microvolt = <992000>;
307 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
311 regulator-min-microvolt = <2040000>;
312 regulator-max-microvolt = <2040000>;
313 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
317 regulator-min-microvolt = <752000>;
318 regulator-max-microvolt = <752000>;
319 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
323 regulator-min-microvolt = <880000>;
324 regulator-max-microvolt = <880000>;
325 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
329 regulator-min-microvolt = <1800000>;
330 regulator-max-microvolt = <1800000>;
331 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
335 regulator-min-microvolt = <2904000>;
336 regulator-max-microvolt = <2904000>;
337 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
341 regulator-min-microvolt = <3072000>;
342 regulator-max-microvolt = <3072000>;
343 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
351 zap-shader {
352 memory-region = <&gpu_mem>;
353 firmware-name = "qcom/sc8180x/qcdxkmsuc8180.mbn";
358 clock-frequency = <100000>;
360 pinctrl-0 = <&i2c1_active>, <&i2c1_hid_active>;
361 pinctrl-names = "default";
366 compatible = "hid-over-i2c";
368 hid-descr-addr = <0x1>;
370 interrupts-extended = <&tlmm 122 IRQ_TYPE_LEVEL_LOW>;
375 clock-frequency = <100000>;
377 pinctrl-0 = <&i2c7_active>, <&i2c7_hid_active>;
378 pinctrl-names = "default";
383 compatible = "hid-over-i2c";
385 hid-descr-addr = <0x20>;
387 interrupts-extended = <&tlmm 37 IRQ_TYPE_LEVEL_LOW>;
391 compatible = "hid-over-i2c";
393 hid-descr-addr = <0x20>;
395 interrupts-extended = <&tlmm 24 IRQ_TYPE_LEVEL_LOW>;
408 data-lanes = <0 1>;
409 remote-endpoint = <&usb_prim_qmpphy_dp_in>;
417 data-lanes = <0 1>;
418 remote-endpoint = <&usb_sec_qmpphy_dp_in>;
422 data-lanes = <0 1 2 3>;
424 pinctrl-0 = <&edp_hpd_active>;
425 pinctrl-names = "default";
429 aux-bus {
431 compatible = "edp-panel";
432 no-hpd;
438 remote-endpoint = <&mdss_edp_out>;
448 remote-endpoint = <&auo_b140han06_in>;
455 perst-gpios = <&tlmm 178 GPIO_ACTIVE_LOW>;
456 wake-gpios = <&tlmm 180 GPIO_ACTIVE_HIGH>;
457 pinctrl-0 = <&pcie3_default_state>;
458 pinctrl-names = "default";
464 vdda-phy-supply = <&vreg_l5e_0p88>;
465 vdda-pll-supply = <&vreg_l3c_1p2>;
487 memory-region = <&adsp_mem>;
488 firmware-name = "qcom/sc8180x/LENOVO/82AK/qcadsp8180.mbn";
494 memory-region = <&cdsp_mem>;
495 firmware-name = "qcom/sc8180x/LENOVO/82AK/qccdsp8180.mbn";
501 memory-region = <&mpss_mem>;
502 firmware-name = "qcom/sc8180x/LENOVO/82AK/qcmpss8180_nm.mbn";
508 pinctrl-0 = <&uart13_state>;
509 pinctrl-names = "default";
514 compatible = "qcom,wcn3998-bt";
516 vddio-supply = <&vreg_s4a_1p8>;
517 vddxo-supply = <&vreg_l7a_1p8>;
518 vddrf-supply = <&vreg_l9a_1p3>;
519 vddch0-supply = <&vreg_l11c_3p3>;
520 max-speed = <3200000>;
525 reset-gpios = <&tlmm 190 GPIO_ACTIVE_LOW>;
527 vcc-supply = <&vreg_l10e_2p9>;
528 vcc-max-microamp = <155000>;
530 vccq2-supply = <&vreg_l7e_1p8>;
531 vccq2-max-microamp = <425000>;
537 vdda-phy-supply = <&vreg_l5e_0p88>;
538 vdda-pll-supply = <&vreg_l3c_1p2>;
544 vdda-pll-supply = <&vreg_l5e_0p88>;
545 vdda18-supply = <&vreg_l12a_1p8>;
546 vdda33-supply = <&vreg_l16e_3p0>;
552 vdda-phy-supply = <&vreg_l3c_1p2>;
553 vdda-pll-supply = <&vreg_l5e_0p88>;
555 orientation-switch;
569 remote-endpoint = <&mdss_dp0_out>;
573 remote-endpoint = <&pmic_glink_con0_ss>;
577 remote-endpoint = <&pmic_glink_con0_hs>;
581 vdda-pll-supply = <&vreg_l5e_0p88>;
582 vdda18-supply = <&vreg_l12a_1p8>;
583 vdda33-supply = <&vreg_l16e_3p0>;
589 vdda-phy-supply = <&vreg_l3c_1p2>;
590 vdda-pll-supply = <&vreg_l5e_0p88>;
592 orientation-switch;
598 remote-endpoint = <&mdss_dp1_out>;
602 remote-endpoint = <&pmic_glink_con1_ss>;
606 remote-endpoint = <&pmic_glink_con1_hs>;
618 memory-region = <&wlan_mem>;
620 vdd-0.8-cx-mx-supply = <&vreg_l1e_0p75>;
621 vdd-1.8-xo-supply = <&vreg_l7a_1p8>;
622 vdd-1.3-rfa-supply = <&vreg_l9a_1p3>;
623 vdd-3.3-ch0-supply = <&vreg_l11c_3p3>;
624 vdd-3.3-ch1-supply = <&vreg_l10c_3p3>;
630 clock-frequency = <38400000>;
636 bl_pwm_default: bl-pwm-default-state {
637 en-pins {
642 pwm-pins {
650 gpio-reserved-ranges = <0 4>, <47 4>, <126 4>;
652 edp_hpd_active: epd-hpd-active-state {
657 hall_int_active_state: hall-int-active-state {
661 bias-disable;
664 i2c1_active: i2c1-active-state {
668 bias-pull-up = <1>;
669 drive-strength = <2>;
672 i2c1_hid_active: i2c1-hid-active-state {
676 bias-pull-up;
677 drive-strength = <2>;
680 i2c7_active: i2c7-active-state {
684 bias-pull-up;
685 drive-strength = <2>;
688 i2c7_hid_active: i2c7-hid-active-state {
692 bias-pull-up;
693 drive-strength = <2>;
696 pcie3_default_state: pcie3-default-state {
697 clkreq-pins {
700 bias-pull-up;
703 reset-n-pins {
707 drive-strength = <2>;
708 output-low;
709 bias-pull-down;
712 wake-n-pins {
716 drive-strength = <2>;
717 bias-pull-up;
721 usbprim_sbu_default: usbprim-sbu-state {
722 oe-n-pins {
725 bias-disable;
726 drive-strength = <16>;
727 output-high;
730 sel-pins {
733 bias-disable;
734 drive-strength = <16>;
738 usbsec_sbu_default: usbsec-sbu-state {
739 oe-n-pins {
742 bias-disable;
743 drive-strength = <16>;
744 output-high;
747 sel-pins {
750 bias-disable;
751 drive-strength = <16>;
755 uart13_state: uart13-state {
756 cts-pins {
759 bias-pull-down;
762 rts-tx-pins {
765 drive-strength = <2>;
766 bias-disable;
769 rx-pins {
772 bias-pull-up;