Lines Matching +full:sc8180x +full:- +full:tlmm

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>
14 #include "sc8180x.dtsi"
15 #include "sc8180x-pmics.dtsi"
18 model = "Qualcomm SC8180x Primus";
19 compatible = "qcom,sc8180x-primus", "qcom,sc8180x";
27 compatible = "pwm-backlight";
29 enable-gpios = <&pmc8180c_gpios 8 GPIO_ACTIVE_HIGH>;
31 pinctrl-names = "default";
32 pinctrl-0 = <&bl_pwm_default>;
36 stdout-path = "serial0:115200n8";
39 gpio-keys {
40 compatible = "gpio-keys";
42 pinctrl-names = "default";
43 pinctrl-0 = <&hall_int_active_state>;
45 lid-switch {
46 gpios = <&tlmm 121 GPIO_ACTIVE_LOW>;
47 linux,input-type = <EV_SW>;
49 wakeup-source;
50 wakeup-event-action = <EV_ACT_DEASSERTED>;
54 pmic-glink {
55 compatible = "qcom,sc8180x-pmic-glink", "qcom,pmic-glink";
57 #address-cells = <1>;
58 #size-cells = <0>;
61 compatible = "usb-c-connector";
63 power-role = "dual";
64 data-role = "dual";
67 #address-cells = <1>;
68 #size-cells = <0>;
74 remote-endpoint = <&usb_prim_role_switch>;
82 remote-endpoint = <&usb_prim_qmpphy_out>;
90 remote-endpoint = <&usbprim_sbu_mux>;
97 compatible = "usb-c-connector";
99 power-role = "dual";
100 data-role = "dual";
103 #address-cells = <1>;
104 #size-cells = <0>;
109 remote-endpoint = <&usb_sec_role_switch>;
117 remote-endpoint = <&usb_sec_qmpphy_out>;
125 remote-endpoint = <&usbsec_sbu_mux>;
132 reserved-memory {
133 rmtfs_mem: rmtfs-region@85500000 {
134 compatible = "qcom,rmtfs-mem";
136 no-map;
138 qcom,client-id = <1>;
142 wlan_mem: wlan-region@8bc00000 {
144 no-map;
147 adsp_mem: adsp-region@96e00000 {
149 no-map;
152 mpss_mem: mpss-region@8d800000 {
154 no-map;
157 gpu_mem: gpu-region@98a00000 {
159 no-map;
162 reserved-region@9a500000 {
164 no-map;
168 vreg_nvme_0p9: nvme-0p9-regulator {
169 compatible = "regulator-fixed";
170 regulator-name = "vreg_nvme_0p9";
172 regulator-min-microvolt = <900000>;
173 regulator-max-microvolt = <900000>;
175 regulator-always-on;
178 vreg_nvme_3p3: nvme-3p3-regulator {
179 compatible = "regulator-fixed";
180 regulator-name = "vreg_nvme_3p3";
182 regulator-min-microvolt = <3300000>;
183 regulator-max-microvolt = <3300000>;
186 enable-active-high;
188 regulator-always-on;
191 vdd_kb_tp_3v3: vdd-kb-tp-3v3-regulator {
192 compatible = "regulator-fixed";
193 regulator-name = "vdd_kb_tp_3v3";
194 regulator-min-microvolt = <3300000>;
195 regulator-max-microvolt = <3300000>;
197 gpio = <&tlmm 4 GPIO_ACTIVE_HIGH>;
198 enable-active-high;
200 regulator-always-on;
202 pinctrl-names = "default";
203 pinctrl-0 = <&kb_tp_3v3_en_active_state>;
206 vph_pwr: vph-pwr-regulator {
207 compatible = "regulator-fixed";
208 regulator-name = "vph_pwr";
209 regulator-min-microvolt = <3700000>;
210 regulator-max-microvolt = <3700000>;
213 vreg_s4a_1p8: pm8150-s4 {
214 compatible = "regulator-fixed";
215 regulator-name = "vreg_s4a_1p8";
217 regulator-min-microvolt = <1800000>;
218 regulator-max-microvolt = <1800000>;
220 regulator-always-on;
221 regulator-boot-on;
223 vin-supply = <&vph_pwr>;
226 usbprim-sbu-mux {
227 compatible = "pericom,pi3usb102", "gpio-sbu-mux";
229 enable-gpios = <&tlmm 152 GPIO_ACTIVE_LOW>;
230 select-gpios = <&tlmm 100 GPIO_ACTIVE_HIGH>;
232 pinctrl-names = "default";
233 pinctrl-0 = <&usbprim_sbu_default>;
235 mode-switch;
236 orientation-switch;
240 remote-endpoint = <&pmic_glink_con0_sbu>;
245 usbsec-sbu-mux {
246 compatible = "pericom,pi3usb102", "gpio-sbu-mux";
248 enable-gpios = <&tlmm 188 GPIO_ACTIVE_LOW>;
249 select-gpios = <&tlmm 187 GPIO_ACTIVE_HIGH>;
251 pinctrl-names = "default";
252 pinctrl-0 = <&usbsec_sbu_default>;
254 mode-switch;
255 orientation-switch;
259 remote-endpoint = <&pmic_glink_con1_sbu>;
266 regulators-0 {
267 compatible = "qcom,pmc8180-rpmh-regulators";
268 qcom,pmic-id = "a";
270 vdd-s5-supply = <&vph_pwr>;
271 vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p0>;
274 regulator-min-microvolt = <2040000>;
275 regulator-max-microvolt = <2100000>;
279 regulator-min-microvolt = <1800000>;
280 regulator-max-microvolt = <1800000>;
281 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
285 regulator-min-microvolt = <1296000>;
286 regulator-max-microvolt = <1304000>;
287 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
291 regulator-min-microvolt = <1800000>;
292 regulator-max-microvolt = <1800000>;
293 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
297 regulators-1 {
298 compatible = "qcom,pmc8180c-rpmh-regulators";
299 qcom,pmic-id = "c";
301 vdd-s6-supply = <&vph_pwr>;
302 vdd-s8-supply = <&vph_pwr>;
303 vdd-l2-l3-supply = <&vreg_s6c_1p35>;
304 vdd-bob-supply = <&vph_pwr>;
307 regulator-min-microvolt = <1350000>;
308 regulator-max-microvolt = <1372000>;
309 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
313 regulator-min-microvolt = <1800000>;
314 regulator-max-microvolt = <1800000>;
315 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
316 regulator-always-on;
320 regulator-min-microvolt = <1200000>;
321 regulator-max-microvolt = <1200000>;
322 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
326 regulator-min-microvolt = <3008000>;
327 regulator-max-microvolt = <3008000>;
328 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
332 regulator-min-microvolt = <3000000>;
333 regulator-max-microvolt = <3312000>;
334 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
338 regulator-min-microvolt = <3296000>;
339 regulator-max-microvolt = <3304000>;
340 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
344 regulator-min-microvolt = <3296000>;
345 regulator-max-microvolt = <3350000>;
346 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
350 regulators-2 {
351 compatible = "qcom,pmc8180-rpmh-regulators";
352 qcom,pmic-id = "e";
354 vdd-s4-supply = <&vph_pwr>;
355 vdd-s5-supply = <&vph_pwr>;
356 vdd-l2-l10-supply = <&vreg_bob>;
357 vdd-l3-l4-l5-l18-supply = <&vreg_s4e_0p98>;
358 vdd-l7-l12-l14-l15-supply = <&vreg_s5e_2p05>;
359 vdd-l13-l16-l17-supply = <&vreg_bob>;
362 regulator-min-microvolt = <992000>;
363 regulator-max-microvolt = <992000>;
364 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
368 regulator-min-microvolt = <2040000>;
369 regulator-max-microvolt = <2040000>;
370 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
374 regulator-min-microvolt = <752000>;
375 regulator-max-microvolt = <752000>;
376 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
380 regulator-min-microvolt = <880000>;
381 regulator-max-microvolt = <880000>;
382 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
386 regulator-min-microvolt = <1800000>;
387 regulator-max-microvolt = <1800000>;
388 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
389 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
391 regulator-allow-set-load;
395 regulator-min-microvolt = <2904000>;
396 regulator-max-microvolt = <2904000>;
397 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
398 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
400 regulator-allow-set-load;
404 regulator-min-microvolt = <1800000>;
405 regulator-max-microvolt = <1800000>;
406 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
410 regulator-min-microvolt = <3072000>;
411 regulator-max-microvolt = <3072000>;
412 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
420 zap-shader {
421 memory-region = <&gpu_mem>;
422 firmware-name = "qcom/sc8180x/qcdxkmsuc8180.mbn";
427 clock-frequency = <100000>;
429 pinctrl-names = "default";
430 pinctrl-0 = <&ts_i2c_active_state>;
435 compatible = "hid-over-i2c";
437 hid-descr-addr = <0x1>;
439 vdd-supply = <&vreg_l4c_3p3>;
440 vddl-supply = <&vreg_l12e>;
442 post-power-on-delay-ms = <20>;
444 interrupts-extended = <&tlmm 122 IRQ_TYPE_LEVEL_LOW>;
446 pinctrl-names = "default";
447 pinctrl-0 = <&ts_active_state>;
452 clock-frequency = <100000>;
454 pinctrl-names = "default";
455 pinctrl-0 = <&aux_i2c_active_state>;
460 compatible = "hid-over-i2c";
462 hid-descr-addr = <0x1>;
464 interrupts-extended = <&tlmm 24 IRQ_TYPE_LEVEL_LOW>;
466 pinctrl-names = "default";
467 pinctrl-0 = <&tp_int_active_state>;
469 vdd-supply = <&vdd_kb_tp_3v3>;
473 compatible = "hid-over-i2c";
475 hid-descr-addr = <0x1>;
476 interrupts-extended = <&tlmm 37 IRQ_TYPE_LEVEL_LOW>;
478 pinctrl-names = "default";
479 pinctrl-0 = <&kb_int_active_state>;
481 vdd-supply = <&vdd_kb_tp_3v3>;
494 data-lanes = <0 1>;
495 remote-endpoint = <&usb_prim_qmpphy_dp_in>;
503 data-lanes = <0 1>;
504 remote-endpoint = <&usb_sec_qmpphy_dp_in>;
508 data-lanes = <0 1 2 3>;
510 pinctrl-names = "default";
511 pinctrl-0 = <&edp_hpd_active>;
515 aux-bus {
517 compatible = "edp-panel";
523 remote-endpoint = <&mdss_edp_out>;
533 remote-endpoint = <&auo_b133han05_in>;
540 perst-gpios = <&tlmm 175 GPIO_ACTIVE_LOW>;
541 wake-gpios = <&tlmm 177 GPIO_ACTIVE_HIGH>;
542 pinctrl-names = "default";
543 pinctrl-0 = <&pcie2_default_state>;
549 vdda-phy-supply = <&vreg_l5e_0p88>;
550 vdda-pll-supply = <&vreg_l3c_1p2>;
572 memory-region = <&adsp_mem>;
573 firmware-name = "qcom/sc8180x/qcadsp8180.mbn";
579 memory-region = <&mpss_mem>;
580 firmware-name = "qcom/sc8180x/qcmpss8180.mbn";
586 compatible = "qcom,geni-debug-uart";
591 pinctrl-names = "default";
592 pinctrl-0 = <&uart13_state>;
597 compatible = "qcom,wcn3998-bt";
599 vddio-supply = <&vreg_s4a_1p8>;
600 vddxo-supply = <&vreg_l7a_1p8>;
601 vddrf-supply = <&vreg_l9a_1p3>;
602 vddch0-supply = <&vreg_l11c_3p3>;
603 max-speed = <3200000>;
608 reset-gpios = <&tlmm 190 GPIO_ACTIVE_LOW>;
610 vcc-supply = <&vreg_l10e_2p9>;
611 vcc-max-microamp = <155000>;
613 vccq2-supply = <&vreg_l7e_1p8>;
614 vccq2-max-microamp = <425000>;
620 vdda-phy-supply = <&vreg_l5e_0p88>;
621 vdda-pll-supply = <&vreg_l3c_1p2>;
627 vdda-pll-supply = <&vreg_l5e_0p88>;
628 vdda18-supply = <&vreg_l12a_1p8>;
629 vdda33-supply = <&vreg_l16e_3p0>;
635 vdda-phy-supply = <&vreg_l3c_1p2>;
636 vdda-pll-supply = <&vreg_l5e_0p88>;
638 orientation-switch;
652 remote-endpoint = <&mdss_dp0_out>;
656 remote-endpoint = <&pmic_glink_con0_ss>;
660 remote-endpoint = <&pmic_glink_con0_hs>;
664 vdda-pll-supply = <&vreg_l5e_0p88>;
665 vdda18-supply = <&vreg_l12a_1p8>;
666 vdda33-supply = <&vreg_l16e_3p0>;
672 vdda-phy-supply = <&vreg_l3c_1p2>;
673 vdda-pll-supply = <&vreg_l5e_0p88>;
675 orientation-switch;
681 remote-endpoint = <&mdss_dp1_out>;
685 remote-endpoint = <&pmic_glink_con1_ss>;
689 remote-endpoint = <&pmic_glink_con1_hs>;
701 memory-region = <&wlan_mem>;
703 vdd-0.8-cx-mx-supply = <&vreg_l1e_0p75>;
704 vdd-1.8-xo-supply = <&vreg_l7a_1p8>;
705 vdd-1.3-rfa-supply = <&vreg_l9a_1p3>;
706 vdd-3.3-ch0-supply = <&vreg_l11c_3p3>;
707 vdd-3.3-ch1-supply = <&vreg_l10c_3p3>;
713 clock-frequency = <38400000>;
719 bl_pwm_default: bl-pwm-default-state {
720 en-pins {
725 pwm-pins {
732 &tlmm {
733 gpio-reserved-ranges = <0 4>, <47 4>, <126 4>;
735 aux_i2c_active_state: aux-i2c-active-state {
739 bias-disable;
740 drive-strength = <16>;
743 edp_hpd_active: epd-hpd-active-state {
748 hall_int_active_state: hall-int-active-state {
752 bias-disable;
755 kb_int_active_state: kb-int-active-state {
756 int-n-pins {
760 bias-pull-up;
763 kp-disable-pins {
767 output-high;
771 kb_tp_3v3_en_active_state: kb-tp-3v3-en-active-state {
775 bias-disable;
778 pcie2_default_state: pcie2-default-state {
779 clkreq-pins {
782 bias-pull-up;
785 reset-n-pins {
789 drive-strength = <2>;
790 output-low;
791 bias-pull-down;
794 wake-n-pins {
798 drive-strength = <2>;
799 bias-pull-up;
803 usbprim_sbu_default: usbprim-sbu-state {
804 oe-n-pins {
807 bias-disable;
808 drive-strength = <16>;
809 output-high;
812 sel-pins {
815 bias-disable;
816 drive-strength = <16>;
820 usbsec_sbu_default: usbsec-sbu-state {
821 oe-n-pins {
824 bias-disable;
825 drive-strength = <16>;
826 output-high;
829 sel-pins {
832 bias-disable;
833 drive-strength = <16>;
837 tp_int_active_state: tp-int-active-state {
838 tp-int-pins {
842 bias-disable;
845 tp-close-n-pins {
849 bias-disable;
853 ts_active_state: ts-active-state {
854 int-n-pins {
858 bias-disable;
861 reset-n-pins {
865 output-high;
869 ts_i2c_active_state: ts-i2c-active-state {
874 bias-disable;
875 drive-strength = <2>;
878 uart13_state: uart13-state {
879 cts-pins {
882 bias-pull-down;
885 rts-tx-pins {
888 drive-strength = <2>;
889 bias-disable;
892 rx-pins {
895 bias-pull-up;