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
This commit is contained in:
David Collins 2019-12-09 11:08:23 -08:00
commit 26afa07d9e

View file

@ -1,4 +1,5 @@
#include <dt-bindings/input/input.h>
#include <dt-bindings/input/qcom,qpnp-power-on.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/spmi/spmi.h>
@ -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 = <PON_POWER_ON_TYPE_KPDPWR>;
linux,code = <KEY_POWER>;
};
qcom,pon_2 {
qcom,pon-type = <PON_POWER_ON_TYPE_RESIN>;
linux,code = <KEY_VOLUMEDOWN>;
};
};
pmk8350_sdam_2: sdam@7100 {
compatible = "qcom,spmi-sdam";
reg = <0x7100>;