// SPDX-License-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 following upstream (sm8250.dtsi) reserved * memory mappings which are different on this device. */ /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 0x80600000 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; }; }; };