From 26afa07d9e3f22c42c4e1322ff1eda1e67f85d00 Mon Sep 17 00:00:00 2001 From: David Collins Date: Mon, 9 Dec 2019 11:08:23 -0800 Subject: [PATCH] ARM: dts: msm: add PMK8350 PON_PBS and PON_HLOS devices Add devices for the PMK8350 PMIC PON_PBS and PON_HLOS peripherals. These can be used to detect keypresses and to configure the type of power off to perform (i.e. shutdown vs restart). Change-Id: I0ba322df9595e609a51da36d2606f8f5eb2b397e --- qcom/pmk8350.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/qcom/pmk8350.dtsi b/qcom/pmk8350.dtsi index 355dedbd2c30..127ff74d5b85 100644 --- a/qcom/pmk8350.dtsi +++ b/qcom/pmk8350.dtsi @@ -1,4 +1,5 @@ #include +#include #include #include @@ -14,6 +15,31 @@ #address-cells = <1>; #size-cells = <0>; + pon_pbs@800 { + compatible = "qcom,qpnp-power-on"; + reg = <0x800>; + qcom,system-reset; + qcom,store-hard-reset-reason; + }; + + 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_sdam_2: sdam@7100 { compatible = "qcom,spmi-sdam"; reg = <0x7100>;