// SPDX-Identifier: GPL-2.0-only OR BSD-2-Clause /* * Copyright (c) 2023 Luka Panio */ /dts-v1/; #include #include #include #include "sm8250.dtsi" #include "pm8150.dtsi" #include "pm8150b.dtsi" #include "pm8150l.dtsi" #include "pm8009.dtsi" /delete-node/ &adsp_mem; /delete-node/ &cdsp_secure_heap; /delete-node/ &slpi_mem; /delete-node/ &spss_mem; /delete-node/ &xbl_aop_mem; / { model = "Poco F4"; compatible = "xiaomi,munch", "qcom,sm8250"; /* required for bootloader to select correct board */ qcom,msm-id = ; /* SM8250 v2.1 */ qcom,board-id = <0x34 0>; chosen { #address-cells = <2>; #size-cells = <2>; ranges; framebuffer: framebuffer@9c000000 { compatible = "simple-framebuffer"; reg = <0x0 0x9c000000 0x0 0x2300000>; width = <1800>; height = <2880>; stride = <(1800 * 4)>; format = "a8r8g8b8"; }; }; battery_l: battery-l { compatible = "simple-battery"; voltage-min-design-microvolt = <3700000>; energy-full-design-microwatt-hours = <16700000>; charge-full-design-microamp-hours = <4420000>; }; battery_r: battery-r { compatible = "simple-battery"; voltage-min-design-microvolt = <3700000>; energy-full-design-microwatt-hours = <16700000>; charge-full-design-microamp-hours = <4420000>; }; bl_vddpos_5p5: bl-vddpos-regulator { compatible = "regulator-fixed"; regulator-name = "bl_vddpos_5p5"; regulator-min-microvolt = <5500000>; regulator-max-microvolt = <5500000>; regulator-enable-ramp-delay = <233>; gpio = <&tlmm 130 GPIO_ACTIVE_HIGH>; enable-active-high; regulator-boot-on; }; bl_vddneg_5p5: bl-vddneg-regulator { compatible = "regulator-fixed"; regulator-name = "bl_vddneg_5p5"; regulator-min-microvolt = <5500000>; regulator-max-microvolt = <5500000>; regulator-enable-ramp-delay = <233>; gpio = <&tlmm 131 GPIO_ACTIVE_HIGH>; enable-active-high; regulator-boot-on; }; gpio_keys: gpio-keys { compatible = "gpio-keys"; pinctrl-0 = <&vol_up_n>; pinctrl-names = "default"; key-vol-up { label = "Volume Up"; gpios = <&pm8150_gpios 6 GPIO_ACTIVE_LOW>; linux,code = ; debounce-interval = <15>; linux,can-disable; wakeup-source; }; }; vph_pwr: vph-pwr-regulator { compatible = "regulator-fixed"; regulator-name = "vph_pwr"; regulator-min-microvolt = <3700000>; regulator-max-microvolt = <3700000>; }; /* S6c is really ebi.lvl but it's there for supply map completeness sake. */ vreg_s6c_0p88: smpc6-regulator { compatible = "regulator-fixed"; regulator-name = "vreg_s6c_0p88"; regulator-min-microvolt = <880000>; regulator-max-microvolt = <880000>; regulator-always-on; vin-supply = <&vph_pwr>; }; reserved-memory { xbl_aop_mem: xbl-aop@80700000 { reg = <0x0 0x80700000 0x0 0x260000>; no-map; }; slpi_mem: slpi@88c00000 { reg = <0x0 0x88c00000 0x0 0x2f00000>; no-map; }; adsp_mem: adsp@8bb00000 { reg = <0x0 0x8bb00000 0x0 0x2500000>; no-map; }; spss_mem: spss@8e000000 { reg = <0x0 0x8e000000 0x0 0x100000>; no-map; }; cdsp_secure_heap: cdsp-secure-heap@8e100000 { reg = <0x0 0x8e100000 0x0 0x4600000>; no-map; }; cont_splash_mem: cont-splash@9c000000 { reg = <0x0 0x9c000000 0x0 0x2300000>; no-map; }; ramoops@b0000000 { compatible = "ramoops"; reg = <0x0 0xb0000000 0x0 0x400000>; record-size = <0x1000>; console-size = <0x200000>; ecc-size = <16>; no-map; }; }; pinctrl { vol_up_n: vol-up-n-state { function = "gpio"; pins = "gpio6"; bias-pull-up; }; }; vreg_l17a_3p0: l17a-3p0 { compatible = "regulator-fixed"; regulator-name = "vreg_l17a_3p0"; regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3000000>; gpio = <&pm8150_gpios 3 GPIO_ACTIVE_HIGH>; enable-active-high; regulator-boot-on; }; vreg_l6a_1p2: l6a-1p2 { compatible = "regulator-fixed"; regulator-name = "vreg_l6a_1p2"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; gpio = <&pm8150b_gpios 0 GPIO_ACTIVE_HIGH>; enable-active-high; regulator-boot-on; }; vreg_s4a_1p8: s4a-1p8 { compatible = "regulator-fixed"; regulator-name = "vreg_s4a_1p8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; gpio = <&pm8150l_gpios 4 GPIO_ACTIVE_HIGH>; enable-active-high; regulator-boot-on; }; vreg_l5a_0p88: l5a-0p88 { compatible = "regulator-fixed"; regulator-name = "vreg_l5a_0p88"; regulator-min-microvolt = <880000>; regulator-max-microvolt = <880000>; gpio = <&pm8150b_gpios 1 GPIO_ACTIVE_HIGH>; enable-active-high; regulator-boot-on; }; vreg_l9a_1p2: l9a-1p2 { compatible = "regulator-fixed"; regulator-name = "vreg_l9a_1p2"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; gpio = <&pm8009_gpios 2 GPIO_ACTIVE_HIGH>; enable-active-high; regulator-boot-on; }; ufs_mem_hc { vcc-supply = <&vreg_l17a_3p0>; vcc-max-microamp = <800000>; vccq-supply = <&vreg_l6a_1p2>; vccq-max-microamp = <800000>; vccq2-supply = <&vreg_s4a_1p8>; vccq2-max-microamp = <800000>; status = "okay"; }; ufs_mem_phy { vdda-phy-supply = <&vreg_l5a_0p88>; vdda-pll-supply = <&vreg_l9a_1p2>; status = "okay"; }; }; &rpmhpd { UFS0: ufs0 { power-domain-cells = <1>; }; };