1 // SPDX-License-Identifier: BSD-3-Clause
5 * Copyright (c) 2022, Xilin Wu <strongtz@yeah.net>
10 #include <dt-bindings/pinctrl/qcom,pmic-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 <dt-bindings/sound/qcom,q6afe.h>
15 #include <dt-bindings/sound/qcom,q6asm.h>
16 #include "sdm850.dtsi"
17 #include "pm8998.dtsi"
20 * Update following upstream (sdm845.dtsi) reserved
21 * memory mappings for firmware loading to succeed
23 /delete-node/ &qseecom_mem;
24 /delete-node/ &wlan_msa_mem;
25 /delete-node/ &slpi_mem;
26 /delete-node/ &ipa_fw_mem;
27 /delete-node/ &ipa_gsi_mem;
28 /delete-node/ &gpu_mem;
29 /delete-node/ &mpss_region;
30 /delete-node/ &adsp_mem;
31 /delete-node/ &cdsp_mem;
32 /delete-node/ &venus_mem;
33 /delete-node/ &mba_region;
34 /delete-node/ &spss_mem;
37 model = "Samsung Galaxy Book2";
38 compatible = "samsung,w737", "qcom,sdm845";
39 chassis-type = "convertible";
46 // Firmware initialized the display at 1280p instead of 1440p
47 framebuffer0: framebuffer@80400000 {
48 compatible = "simple-framebuffer";
49 reg = <0 0x80400000 0 (1920 * 1280 * 4)>;
52 stride = <(1920 * 4)>;
61 /* Reserved memory changes */
63 /* Bootloader display framebuffer region */
64 cont_splash_mem: memory@80400000 {
65 reg = <0x0 0x80400000 0x0 0x960000>;
69 qseecom_mem: memory@8b500000 {
70 reg = <0 0x8b500000 0 0xa00000>;
74 wlan_msa_mem: memory@8c400000 {
75 reg = <0 0x8c400000 0 0x100000>;
79 slpi_mem: memory@8c500000 {
80 reg = <0 0x8c500000 0 0x1200000>;
84 ipa_fw_mem: memory@8d700000 {
85 reg = <0 0x8d700000 0 0x100000>;
89 gpu_mem: memory@8d800000 {
90 reg = <0 0x8d800000 0 0x5000>;
94 mpss_region: memory@8e000000 {
95 reg = <0 0x8e000000 0 0x8000000>;
99 adsp_mem: memory@96000000 {
100 reg = <0 0x96000000 0 0x2000000>;
104 cdsp_mem: memory@98000000 {
105 reg = <0 0x98000000 0 0x800000>;
109 venus_mem: memory@98800000 {
110 reg = <0 0x98800000 0 0x500000>;
114 mba_region: memory@98d00000 {
115 reg = <0 0x98d00000 0 0x200000>;
119 spss_mem: memory@98f00000 {
120 reg = <0 0x98f00000 0 0x100000>;
127 firmware-name = "/*(DEBLOBBED)*/";
133 compatible = "qcom,pm8998-rpmh-regulators";
136 vdd-l2-l8-l17-supply = <&vreg_s3a_1p35>;
137 vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p04>;
139 vreg_s2a_1p125: smps2 {
142 vreg_s3a_1p35: smps3 {
143 regulator-min-microvolt = <1352000>;
144 regulator-max-microvolt = <1352000>;
145 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
148 vreg_s4a_1p8: smps4 {
149 regulator-min-microvolt = <1800000>;
150 regulator-max-microvolt = <1800000>;
151 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
154 vreg_s5a_2p04: smps5 {
155 regulator-min-microvolt = <2040000>;
156 regulator-max-microvolt = <2040000>;
157 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
160 vreg_s7a_1p025: smps7 {
181 vreg_l1a_0p875: ldo1 {
182 regulator-min-microvolt = <880000>;
183 regulator-max-microvolt = <880000>;
184 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
189 regulator-min-microvolt = <1200000>;
190 regulator-max-microvolt = <1200000>;
191 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
202 regulator-min-microvolt = <800000>;
203 regulator-max-microvolt = <800000>;
204 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
209 regulator-min-microvolt = <1800000>;
210 regulator-max-microvolt = <1800000>;
211 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
215 regulator-min-microvolt = <1800000>;
216 regulator-max-microvolt = <1800000>;
217 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
226 vreg_l10a_1p8: ldo10 {
229 vreg_l11a_1p0: ldo11 {
239 vreg_l12a_1p8: ldo12 {
240 regulator-min-microvolt = <1800000>;
241 regulator-max-microvolt = <1800000>;
242 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
246 vreg_l13a_2p95: ldo13 {
249 vreg_l14a_1p88: ldo14 {
250 regulator-min-microvolt = <1880000>;
251 regulator-max-microvolt = <1880000>;
252 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
256 vreg_l15a_1p8: ldo15 {
259 vreg_l16a_2p7: ldo16 {
262 vreg_l17a_1p3: ldo17 {
263 regulator-min-microvolt = <1304000>;
264 regulator-max-microvolt = <1304000>;
265 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
268 vreg_l18a_1p8: ldo18 {
271 vreg_l19a_3p0: ldo19 {
272 regulator-min-microvolt = <3100000>;
273 regulator-max-microvolt = <3108000>;
274 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
277 vreg_l20a_2p95: ldo20 {
278 regulator-min-microvolt = <2960000>;
279 regulator-max-microvolt = <2960000>;
280 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
283 vreg_l21a_2p95: ldo21 {
286 vreg_l22a_2p85: ldo22 {
289 vreg_l23a_3p3: ldo23 {
290 regulator-min-microvolt = <3300000>;
291 regulator-max-microvolt = <3312000>;
292 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
296 vreg_l24a_3p075: ldo24 {
297 regulator-min-microvolt = <3075000>;
298 regulator-max-microvolt = <3083000>;
299 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
302 vreg_l25a_3p3: ldo25 {
303 regulator-min-microvolt = <3104000>;
304 regulator-max-microvolt = <3112000>;
305 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
321 vreg_l26a_1p2: ldo26 {
322 regulator-min-microvolt = <1200000>;
323 regulator-max-microvolt = <1208000>;
324 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
327 vreg_l28a_3p0: ldo28 {
330 vreg_lvs1a_1p8: lvs1 {
333 vreg_lvs2a_1p8: lvs2 {
339 firmware-name = "/*(DEBLOBBED)*/";
344 protected-clocks = <GCC_QSPI_CORE_CLK>,
345 <GCC_QSPI_CORE_CLK_SRC>,
346 <GCC_QSPI_CNOC_PERIPH_AHB_CLK>,
347 <GCC_LPASS_Q6_AXI_CLK>,
348 <GCC_LPASS_SWAY_CLK>;
353 clock-frequency = <400000>;
355 /* SN65DSI86 @ 0x2c */
356 /* The panel requires dual DSI, which is not supported by the bridge driver */
361 clock-frequency = <400000>;
363 /* HID-I2C Touchscreen @ 0x20 */
368 clock-frequency = <400000>;
371 compatible = "wacom,w9013", "hid-over-i2c";
373 pinctrl-names = "default";
374 pinctrl-0 = <&pen_irq_l>, <&pen_pdct_l>, <&pen_rst_l>;
376 post-power-on-delay-ms = <120>;
378 interrupt-parent = <&tlmm>;
379 interrupts = <119 IRQ_TYPE_LEVEL_LOW>;
381 hid-descr-addr = <0x1>;
387 memory-region = <&ipa_fw_mem>;
388 firmware-name = "/*(DEBLOBBED)*/";
391 /* No idea why it causes an SError when enabled */
398 firmware-name = "/*(DEBLOBBED)*/", "/*(DEBLOBBED)*/";
403 pins = "gpio55", "gpio56";
404 drive-strength = <2>;
411 pins = "gpio31", "gpio32";
412 drive-strength = <2>;
419 drive-strength = <2>;
426 pins = "gpio45", "gpio46", "gpio47", "gpio48";
436 pins = "gpio46", "gpio47";
437 drive-strength = <2>;
470 compatible = "qcom,sdm845-sndcard";
471 model = "Samsung-W737";
475 "AMIC2", "MIC BIAS2",
476 "SpkrLeft IN", "SPK1 OUT",
477 "SpkrRight IN", "SPK2 OUT",
478 "MM_DL1", "MultiMedia1 Playback",
479 "MM_DL3", "MultiMedia3 Playback",
480 "MultiMedia2 Capture", "MM_UL2";
483 link-name = "MultiMedia1";
485 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>;
490 link-name = "MultiMedia2";
492 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>;
497 link-name = "MultiMedia3";
499 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>;
504 link-name = "SLIM Playback";
506 sound-dai = <&q6afedai SLIMBUS_0_RX>;
510 sound-dai = <&q6routing>;
514 sound-dai = <&left_spkr>, <&right_spkr>, <&swm 0>, <&wcd9340 0>;
519 link-name = "SLIM Capture";
521 sound-dai = <&q6afedai SLIMBUS_0_TX>;
525 sound-dai = <&q6routing>;
529 sound-dai = <&wcd9340 1>;
534 link-name = "SLIM WCD Playback";
536 sound-dai = <&q6afedai SLIMBUS_1_RX>;
540 sound-dai = <&q6routing>;
544 sound-dai = <&wcd9340 2>;
550 gpio-reserved-ranges = <0 6>, <85 4>;
552 pen_irq_l: pen-irq-l {
564 pen_pdct_l: pen-pdct-l {
573 drive-strength = <2>;
578 pen_rst_l: pen-rst-l {
587 drive-strength = <2>;
590 * The pen driver doesn't currently support
591 * driving this reset line. By specifying
592 * output-high here we're relying on the fact
593 * that this pin has a default pulldown at boot
594 * (which makes sure the pen was in reset if it
595 * was powered) and then we set it high here to
596 * take it out of reset. Better would be if the
597 * pen driver could control this and we could
598 * remove "output-high" here.
604 wcd_intr_default: wcd_intr_default {
610 drive-strength = <2>;
618 compatible = "qcom,wcn3990-bt";
620 vddio-supply = <&vreg_s4a_1p8>;
621 vddxo-supply = <&vreg_l7a_1p8>;
622 vddrf-supply = <&vreg_l17a_1p3>;
623 vddch0-supply = <&vreg_l25a_3p3>;
624 vddch1-supply = <&vreg_l23a_3p3>;
625 max-speed = <3200000>;
632 reset-gpios = <&tlmm 150 GPIO_ACTIVE_LOW>;
634 vcc-supply = <&vreg_l20a_2p95>;
635 vcc-max-microamp = <600000>;
641 vdda-phy-supply = <&vdda_ufs1_core>;
642 vdda-pll-supply = <&vdda_ufs1_1p2>;
656 vdd-supply = <&vdda_usb1_ss_core>;
657 vdda-pll-supply = <&vdda_qusb_hs0_1p8>;
658 vdda-phy-dpdm-supply = <&vdda_qusb_hs0_3p1>;
660 qcom,imp-res-offset-value = <8>;
661 qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_21_6_MA>;
662 qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_5_PERCENT>;
663 qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>;
669 vdda-phy-supply = <&vdda_usb1_ss_1p2>;
670 vdda-pll-supply = <&vdda_usb1_ss_core>;
684 vdd-supply = <&vdda_usb2_ss_core>;
685 vdda-pll-supply = <&vdda_qusb_hs0_1p8>;
686 vdda-phy-dpdm-supply = <&vdda_qusb_hs0_3p1>;
688 qcom,imp-res-offset-value = <8>;
689 qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_22_8_MA>;
695 vdda-phy-supply = <&vdda_usb2_ss_1p2>;
696 vdda-pll-supply = <&vdda_usb2_ss_core>;
701 firmware-name = "/*(DEBLOBBED)*/";
705 pinctrl-0 = <&wcd_intr_default>;
706 pinctrl-names = "default";
707 clock-names = "extclk";
708 clocks = <&rpmhcc RPMH_LN_BB_CLK2>;
709 reset-gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>;
710 vdd-buck-supply = <&vreg_s4a_1p8>;
711 vdd-buck-sido-supply = <&vreg_s4a_1p8>;
712 vdd-tx-supply = <&vreg_s4a_1p8>;
713 vdd-rx-supply = <&vreg_s4a_1p8>;
714 vdd-io-supply = <&vreg_s4a_1p8>;
715 qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>;
716 qcom,mbhc-headset-vthreshold-microvolt = <1700000>;
717 qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
720 left_spkr: wsa8810-left{
721 compatible = "sdw10217211000";
723 powerdown-gpios = <&wcdgpio 1 GPIO_ACTIVE_HIGH>;
724 #thermal-sensor-cells = <0>;
725 sound-name-prefix = "SpkrLeft";
726 #sound-dai-cells = <0>;
729 right_spkr: wsa8810-right{
730 compatible = "sdw10217211000";
731 powerdown-gpios = <&wcdgpio 2 GPIO_ACTIVE_HIGH>;
733 #thermal-sensor-cells = <0>;
734 sound-name-prefix = "SpkrRight";
735 #sound-dai-cells = <0>;
743 vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>;
744 vdd-1.8-xo-supply = <&vreg_l7a_1p8>;
745 vdd-1.3-rfa-supply = <&vreg_l17a_1p3>;
746 vdd-3.3-ch0-supply = <&vreg_l25a_3p3>;
747 vdd-3.3-ch1-supply = <&vreg_l23a_3p3>;
749 qcom,snoc-host-cap-8bit-quirk;