1 // SPDX-License-Identifier: BSD-3-Clause
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
10 #include "pm6150.dtsi"
11 #include "pm6150l.dtsi"
13 /delete-node/ &tz_mem;
14 /delete-node/ &ipa_fw_mem;
17 model = "Acer Aspire 1";
18 compatible = "acer,aspire1", "qcom,sc7180";
19 chassis-type = "laptop";
22 bluetooth0 = &bluetooth;
29 stdout-path = "serial0:115200n8";
33 zap_mem: zap-shader@80840000 {
34 reg = <0x0 0x80840000 0 0x2000>;
38 venus_mem: venus@85b00000 {
39 reg = <0x0 0x85b00000 0 0x500000>;
43 mpss_mem: mpss@86000000 {
44 reg = <0x0 0x86000000 0x0 0x2000000>;
48 adsp_mem: adsp@8e400000 {
49 reg = <0x0 0x8e400000 0x0 0x2800000>;
53 wlan_mem: wlan@93900000 {
54 reg = <0x0 0x93900000 0x0 0x200000>;
59 max98357a: audio-codec {
60 compatible = "maxim,max98357a";
61 sdmode-gpios = <&tlmm 23 GPIO_ACTIVE_HIGH>;
63 pinctrl-0 = <&_sd_mode_default>;
64 pinctrl-names = "default";
66 #sound-dai-cells = <0>;
69 backlight: backlight {
70 compatible = "pwm-backlight";
71 pwms = <&sn65dsi86_bridge 1000000>;
72 enable-gpios = <&tlmm 10 GPIO_ACTIVE_HIGH>;
74 pinctrl-0 = <&soc_bkoff_default>;
75 pinctrl-names = "default";
78 reg_brij_1p2: bridge-1p2-regulator {
79 compatible = "regulator-fixed";
80 regulator-name = "brij_1p2";
81 regulator-min-microvolt = <1200000>;
82 regulator-max-microvolt = <1200000>;
84 gpio = <&tlmm 19 GPIO_ACTIVE_HIGH>;
87 pinctrl-0 = <®_edp_1p2_en_default>;
88 pinctrl-names = "default";
91 reg_brij_1p8: bridge-regulator {
92 compatible = "regulator-fixed";
93 regulator-name = "brij_1p8";
94 regulator-min-microvolt = <1800000>;
95 regulator-max-microvolt = <1800000>;
97 vin-supply = <&vreg_l8c_1p8>;
99 gpio = <&tlmm 20 GPIO_ACTIVE_HIGH>;
102 pinctrl-0 = <®_edp_1p8_en_default>;
103 pinctrl-names = "default";
106 reg_codec_3p3: codec-regulator {
107 compatible = "regulator-fixed";
108 regulator-name = "codec_3p3";
109 regulator-min-microvolt = <3300000>;
110 regulator-max-microvolt = <3300000>;
112 gpio = <&tlmm 83 GPIO_ACTIVE_HIGH>;
115 pinctrl-0 = <®_audio_en_default>;
116 pinctrl-names = "default";
119 reg_lcm_3p3: panel-regulator {
120 compatible = "regulator-fixed";
121 regulator-name = "lcm_3p3";
122 regulator-min-microvolt = <3300000>;
123 regulator-max-microvolt = <3300000>;
125 gpio = <&tlmm 26 GPIO_ACTIVE_HIGH>;
128 pinctrl-0 = <®_lcm_en_default>;
129 pinctrl-names = "default";
132 reg_tp_3p3: touchpad-regulator {
133 compatible = "regulator-fixed";
134 regulator-name = "tp_3p3";
135 regulator-min-microvolt = <3300000>;
136 regulator-max-microvolt = <3300000>;
138 gpio = <&tlmm 25 GPIO_ACTIVE_HIGH>;
141 pinctrl-0 = <®_tp_en_default>;
142 pinctrl-names = "default";
147 clock-frequency = <400000>;
150 /* embedded-controller@76 */
154 clock-frequency = <400000>;
158 * NOTE: DSDT defines two possible touchpads, other one is
161 * hid-descr-addr = <0x1>;
165 compatible = "hid-over-i2c";
167 hid-descr-addr = <0x20>;
169 vdd-supply = <®_tp_3p3>;
171 interrupts-extended = <&tlmm 94 IRQ_TYPE_LEVEL_LOW>;
173 pinctrl-0 = <&hid_touchpad_default>;
174 pinctrl-names = "default";
180 compatible = "hid-over-i2c";
182 hid-descr-addr = <0x1>;
184 interrupts-extended = <&tlmm 33 IRQ_TYPE_LEVEL_LOW>;
186 pinctrl-0 = <&hid_keyboard_default>;
187 pinctrl-names = "default";
194 clock-frequency = <400000>;
198 compatible = "realtek,rt5682i";
201 #sound-dai-cells = <1>;
203 interrupt-parent = <&tlmm>;
204 interrupts = <28 IRQ_TYPE_EDGE_BOTH>;
206 pinctrl-0 = <&codec_irq_default>;
207 pinctrl-names = "default";
209 AVDD-supply = <&vreg_l15a_1p8>;
210 MICVDD-supply = <®_codec_3p3>;
211 VBAT-supply = <®_codec_3p3>;
213 realtek,dmic1-data-pin = <1>;
214 realtek,dmic1-clk-pin = <1>;
215 realtek,jd-src = <1>;
220 clock-frequency = <400000>;
223 sn65dsi86_bridge: bridge@2c {
224 compatible = "ti,sn65dsi86";
230 interrupt-parent = <&tlmm>;
231 interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;
233 enable-gpios = <&tlmm 51 GPIO_ACTIVE_HIGH>;
234 suspend-gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
236 pinctrl-0 = <&bridge_en_default>,
237 <&edp_bridge_irq_default>,
238 <&bridge_suspend_default>;
239 pinctrl-names = "default";
241 vpll-supply = <®_brij_1p8>;
242 vccio-supply = <®_brij_1p8>;
243 vcca-supply = <®_brij_1p2>;
244 vcc-supply = <®_brij_1p2>;
246 clocks = <&rpmhcc RPMH_LN_BB_CLK3>;
247 clock-names = "refclk";
250 #address-cells = <1>;
256 sn65dsi86_in: endpoint {
257 remote-endpoint = <&mdss_dsi0_out>;
264 sn65dsi86_out: endpoint {
266 remote-endpoint = <&panel_in_edp>;
273 compatible = "edp-panel";
274 power-supply = <®_lcm_3p3>;
275 backlight = <&backlight>;
276 hpd-absent-delay-ms = <200>;
279 panel_in_edp: endpoint {
280 remote-endpoint = <&sn65dsi86_out>;
292 memory-region = <&zap_mem>;
293 firmware-name = "/*(DEBLOBBED)*/";
302 vdda-supply = <&vreg_l3c_1p2>;
307 remote-endpoint = <&sn65dsi86_in>;
308 data-lanes = <0 1 2 3>;
312 vdds-supply = <&vreg_l4a_0p8>;
318 reg = <ADC5_AMUX_THM2_100K_PU>;
320 qcom,hw-settle-time = <200>;
321 label = "thermistor";
325 reg = <ADC5_AMUX_THM3_100K_PU>;
327 qcom,hw-settle-time = <200>;
328 label = "charger_thermistor";
335 charger-thermistor@0 {
337 io-channels = <&pm6150_adc ADC5_AMUX_THM3_100K_PU>;
339 qcom,hw-settle-time-us = <200>;
344 io-channels = <&pm6150_adc ADC5_AMUX_THM2_100K_PU>;
346 qcom,hw-settle-time-us = <200>;
363 firmware-name = "/*(DEBLOBBED)*/";
368 pinctrl-0 = <&sdc1_default>;
369 pinctrl-1 = <&sdc1_sleep>;
370 pinctrl-names = "default", "sleep";
371 vmmc-supply = <&vreg_l19a_2p9>;
372 vqmmc-supply = <&vreg_l12a_1p8>;
378 /delete-property/interrupts;
379 interrupts-extended = <&intc GIC_SPI 604 IRQ_TYPE_LEVEL_HIGH>,
380 <&tlmm 41 IRQ_TYPE_EDGE_FALLING>;
382 pinctrl-1 = <&qup_uart3_sleep>;
383 pinctrl-names = "default", "sleep";
387 bluetooth: bluetooth {
388 compatible = "qcom,wcn3991-bt";
389 vddio-supply = <&vreg_l10a_1p8>;
390 vddxo-supply = <&vreg_l1c_1p8>;
391 vddrf-supply = <&vreg_l2c_1p3>;
392 vddch0-supply = <&vreg_l10c_3p3>;
393 max-speed = <3200000>;
407 #address-cells = <1>;
411 compatible = "usbbda,5411";
413 peer-hub = <&usb_hub_3_x>;
417 compatible = "usbbda,411";
419 peer-hub = <&usb_hub_2_x>;
424 vdd-supply = <&vreg_l4a_0p8>;
425 vdda-pll-supply = <&vreg_l11a_1p8>;
426 vdda-phy-dpdm-supply = <&vreg_l17a_3p0>;
427 qcom,imp-res-offset-value = <8>;
428 qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_15_PERCENT>;
429 qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>;
430 qcom,bias-ctrl-value = <0x22>;
431 qcom,charge-ctrl-value = <3>;
432 qcom,hsdisc-trim-value = <0>;
438 vdda-phy-supply = <&vreg_l3c_1p2>;
439 vdda-pll-supply = <&vreg_l4a_0p8>;
445 firmware-name = "/*(DEBLOBBED)*/";
449 vdd-0.8-cx-mx-supply = <&vreg_l9a_0p6>;
450 vdd-1.8-xo-supply = <&vreg_l1c_1p8>;
451 vdd-1.3-rfa-supply = <&vreg_l2c_1p3>;
452 vdd-3.3-ch0-supply = <&vreg_l10c_3p3>;
453 vdd-3.3-ch1-supply = <&vreg_l11c_3p3>;
460 compatible = "qcom,pm6150-rpmh-regulators";
463 vreg_s1a_1p1: smps1 {
464 regulator-min-microvolt = <1128000>;
465 regulator-max-microvolt = <1128000>;
469 regulator-min-microvolt = <824000>;
470 regulator-max-microvolt = <928000>;
471 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
475 regulator-min-microvolt = <488000>;
476 regulator-max-microvolt = <800000>;
477 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
480 vreg_l10a_1p8: ldo10 {
481 regulator-min-microvolt = <1800000>;
482 regulator-max-microvolt = <1800000>;
483 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
488 vreg_l11a_1p8: ldo11 {
489 regulator-min-microvolt = <1800000>;
490 regulator-max-microvolt = <1800000>;
491 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
494 vreg_l12a_1p8: ldo12 {
495 regulator-min-microvolt = <1800000>;
496 regulator-max-microvolt = <1800000>;
497 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
500 vreg_l13a_1p8: ldo13 {
501 regulator-min-microvolt = <1800000>;
502 regulator-max-microvolt = <1800000>;
503 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
506 vreg_l14a_1p8: ldo14 {
507 regulator-min-microvolt = <1800000>;
508 regulator-max-microvolt = <1800000>;
509 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
512 vreg_l15a_1p8: ldo15 {
513 regulator-min-microvolt = <1800000>;
514 regulator-max-microvolt = <1800000>;
515 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
518 vreg_l16a_2p7: ldo16 {
519 regulator-min-microvolt = <2496000>;
520 regulator-max-microvolt = <3304000>;
521 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
524 vreg_l17a_3p0: ldo17 {
525 regulator-min-microvolt = <2920000>;
526 regulator-max-microvolt = <3232000>;
527 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
530 vreg_l18a_2p8: ldo18 {
531 regulator-min-microvolt = <2496000>;
532 regulator-max-microvolt = <3304000>;
533 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
536 vreg_l19a_2p9: ldo19 {
537 regulator-min-microvolt = <2960000>;
538 regulator-max-microvolt = <2960000>;
539 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
544 compatible = "qcom,pm6150l-rpmh-regulators";
547 vreg_s8c_1p3: smps8 {
548 regulator-min-microvolt = <1120000>;
549 regulator-max-microvolt = <1408000>;
553 regulator-min-microvolt = <1616000>;
554 regulator-max-microvolt = <1984000>;
555 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
559 regulator-min-microvolt = <1168000>;
560 regulator-max-microvolt = <1304000>;
561 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
565 regulator-min-microvolt = <1144000>;
566 regulator-max-microvolt = <1304000>;
567 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
571 regulator-min-microvolt = <1648000>;
572 regulator-max-microvolt = <3304000>;
573 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
577 regulator-min-microvolt = <1648000>;
578 regulator-max-microvolt = <3304000>;
579 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
583 regulator-min-microvolt = <1800000>;
584 regulator-max-microvolt = <2950000>;
585 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
589 regulator-min-microvolt = <3000000>;
590 regulator-max-microvolt = <3312000>;
591 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
595 regulator-min-microvolt = <1800000>;
596 regulator-max-microvolt = <1800000>;
597 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
601 regulator-min-microvolt = <2952000>;
602 regulator-max-microvolt = <2952000>;
603 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
606 vreg_l10c_3p3: ldo10 {
607 regulator-min-microvolt = <3000000>;
608 regulator-max-microvolt = <3400000>;
609 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
612 vreg_l11c_3p3: ldo11 {
613 regulator-min-microvolt = <3000000>;
614 regulator-max-microvolt = <3400000>;
615 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
619 regulator-min-microvolt = <3008000>;
620 regulator-max-microvolt = <3960000>;
621 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
627 drive-strength = <2>;
629 /* Has external pullup */
634 drive-strength = <2>;
636 /* Has external pullup */
641 drive-strength = <2>;
643 /* Has external pullup */
648 drive-strength = <2>;
650 /* Has external pullup */
656 * The TZ seem to protect those because some boards can have
657 * fingerprint sensor connected to this range. Not connected
660 gpio-reserved-ranges = <58 5>;
662 amp_sd_mode_default: amp-sd-mode-deault-state {
665 drive-strength = <16>;
669 bridge_en_default: bridge-en-default-state {
672 drive-strength = <16>;
676 bridge_suspend_default: bridge-suspend-default-state {
679 drive-strength = <16>;
683 codec_irq_default: codec-irq-deault-state {
686 drive-strength = <2>;
690 edp_bridge_irq_default: edp-bridge-irq-default-state {
693 drive-strength = <2>;
697 hid_keyboard_default: hid-keyboard-default-state {
700 drive-strength = <2>;
704 hid_touchpad_default: hid-touchpad-default-state {
707 drive-strength = <2>;
711 qup_uart3_sleep: qup-uart3-sleep-state {
714 * Configure a pull-down on CTS to match the pull of
715 * the Bluetooth module.
724 * Configure pull-down on RTS. As RTS is active low
725 * signal, pull it low to indicate the BT SoC that it
726 * can wakeup the system anytime from suspend state by
727 * pulling RX low (by sending wakeup bytes).
736 * Configure pull-up on TX when it isn't actively driven
737 * to prevent BT SoC from receiving garbage during sleep.
746 * Configure a pull-up on RX. This is needed to avoid
747 * garbage data when the TX pin of the Bluetooth module
748 * is floating which may cause spurious wakeups.
756 reg_edp_1p2_en_default: reg-edp-1p2-en-deault-state {
759 drive-strength = <16>;
763 reg_edp_1p8_en_default: reg-edp-1p8-en-deault-state {
766 drive-strength = <16>;
770 reg_lcm_en_default: reg-lcm-en-deault-state {
773 drive-strength = <16>;
777 reg_audio_en_default: reg-audio-en-deault-state {
780 drive-strength = <2>;
784 reg_tp_en_default: reg-tp-en-deault-state {
787 drive-strength = <2>;
791 soc_bkoff_default: soc-bkoff-deault-state {
794 drive-strength = <16>;
798 sdc1_default: sdc1-default-state {
801 drive-strength = <16>;
807 drive-strength = <16>;
813 drive-strength = <16>;
823 sdc1_sleep: sdc1-sleep-state {
826 drive-strength = <2>;
832 drive-strength = <2>;
838 drive-strength = <2>;