// SPDX-License-Identifier: BSD-3-Clause /* * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. */ #include #include #include #include #include #include #include #include #include &spmi_bus { #address-cells = <2>; #size-cells = <0>; interrupt-controller; #interrupt-cells = <4>; pmk8350: qcom,pmk8350@0 { compatible = "qcom,spmi-pmic"; reg = <0 SPMI_USID>; #address-cells = <1>; #size-cells = <0>; pon_pbs@800 { compatible = "qcom,qpnp-power-on"; reg = <0x800>; qcom,system-reset; qcom,store-hard-reset-reason; }; pmk8350_pon: pon_hlos@1300 { compatible = "qcom,qpnp-power-on"; reg = <0x1300>; interrupts = <0x0 0x13 0x7 IRQ_TYPE_EDGE_BOTH>, <0x0 0x13 0x6 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "kpdpwr", "resin"; qcom,pon_1 { qcom,pon-type = ; linux,code = ; }; qcom,pon_2 { qcom,pon-type = ; linux,code = ; }; }; pmk8350_vadc: vadc@3100 { compatible = "qcom,spmi-adc7"; reg = <0x3100>; #address-cells = <1>; #size-cells = <0>; interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; interrupt-names = "eoc-int-en-set"; #io-channel-cells = <1>; io-channel-ranges; /* PMK8350 Channel nodes */ pmk8350_ref_gnd { reg = ; label = "pmk8350_ref_gnd"; qcom,pre-scaling = <1 1>; }; pmk8350_vref_1p25 { reg = ; label = "pmk8350_vref_1p25"; qcom,pre-scaling = <1 1>; }; pmk8350_die_temp { reg = ; label = "pmk8350_die_temp"; qcom,pre-scaling = <1 1>; }; pmk8350_xo_therm { reg = ; label = "pmk8350_xo_therm"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; /* PM8350 Channel nodes */ pm8350_ref_gnd { reg = ; label = "pm8350_ref_gnd"; qcom,pre-scaling = <1 1>; }; pm8350_vref_1p25 { reg = ; label = "pm8350_vref_1p25"; qcom,pre-scaling = <1 1>; }; pm8350_die_temp { reg = ; label = "pm8350_die_temp"; qcom,pre-scaling = <1 1>; }; pm8350_vph_pwr { reg = ; label = "pm8350_vph_pwr"; qcom,pre-scaling = <1 3>; }; /* PM8350b Channel nodes */ pm8350b_ref_gnd { reg = ; label = "pm8350b_ref_gnd"; qcom,pre-scaling = <1 1>; }; pm8350b_vref_1p25 { reg = ; label = "pm8350b_vref_1p25"; qcom,pre-scaling = <1 1>; }; pm8350b_die_temp { reg = ; label = "pm8350b_die_temp"; qcom,pre-scaling = <1 1>; }; pm8350b_vph_pwr { reg = ; label = "pm8350b_vph_pwr"; qcom,pre-scaling = <1 3>; }; pm8350b_vbat_sns { reg = ; label = "pm8350b_vbat_sns"; qcom,pre-scaling = <1 3>; }; /* PMR735a Channel nodes */ pmr735a_ref_gnd { reg = ; label = "pmr735a_ref_gnd"; qcom,pre-scaling = <1 1>; }; pmr735a_vref_1p25 { reg = ; label = "pmr735a_vref_1p25"; qcom,pre-scaling = <1 1>; }; pmr735a_die_temp { reg = ; label = "pmr735a_die_temp"; qcom,pre-scaling = <1 1>; }; /* PMR735b Channel nodes */ pmr735b_ref_gnd { reg = ; label = "pmr735b_ref_gnd"; qcom,pre-scaling = <1 1>; }; pmr735b_vref_1p25 { reg = ; label = "pmr735b_vref_1p25"; qcom,pre-scaling = <1 1>; }; pmr735b_die_temp { reg = ; label = "pmr735b_die_temp"; qcom,pre-scaling = <1 1>; }; }; pmk8350_adc_tm: adc_tm@3400 { compatible = "qcom,spmi-adc-tm5-gen2"; reg = <0x3400>; interrupts = <0x0 0x34 0x0 IRQ_TYPE_EDGE_RISING>; #address-cells = <1>; #size-cells = <0>; #thermal-sensor-cells = <1>; }; pmk8350_sdam_1: sdam@7000 { compatible = "qcom,spmi-sdam"; reg = <0x7000>; #address-cells = <1>; #size-cells = <1>; }; pmk8350_sdam_2: sdam@7100 { compatible = "qcom,spmi-sdam"; reg = <0x7100>; #address-cells = <1>; #size-cells = <1>; restart_reason: restart@48 { reg = <0x48 0x1>; bits = <1 7>; }; }; pmk8350_sdam_5: sdam@7400 { compatible = "qcom,spmi-sdam"; reg = <0x7400>; }; pmk8350_sdam_13: sdam@7c00 { compatible = "qcom,spmi-sdam"; reg = <0x7c00>; }; pmk8350_sdam_14: sdam@7d00 { compatible = "qcom,spmi-sdam"; reg = <0x7d00>; }; pmk8350_sdam_21: sdam@8400 { compatible = "qcom,spmi-sdam"; reg = <0x8400>; }; pmk8350_sdam_22: sdam@8500 { compatible = "qcom,spmi-sdam"; reg = <0x8500>; }; pmk8350_sdam_23: sdam@8600 { compatible = "qcom,spmi-sdam"; reg = <0x8600>; #address-cells = <1>; #size-cells = <1>; }; pmk8350_sdam_41: sdam@9800 { compatible = "qcom,spmi-sdam"; reg = <0x9800>; }; pmk8350_sdam_46: sdam@9d00 { compatible = "qcom,spmi-sdam"; reg = <0x9d00>; }; pmk8350_gpios: pinctrl@b000 { compatible = "qcom,pmk8350-gpio"; reg = <0xb000>; gpio-controller; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; }; pmk8350_rtc: rtc@6100 { compatible = "qcom,pmk8350-rtc"; reg = <0x6100>, <0x6200>; reg-names = "rtc", "alarm"; interrupts = <0x0 0x62 0x1 IRQ_TYPE_EDGE_RISING>; }; }; };