From 4f48e10b380ffc4404680400afbec6171810268e Mon Sep 17 00:00:00 2001 From: Ashish Chavan Date: Mon, 27 Sep 2021 14:19:28 +0530 Subject: [PATCH 1/2] dt-bindings: input: qpnp-power-on: Add qcom,log-kpd-event description Add support 'qcom,log-kpd-event' property which when enabled causes KPDPWR status to be logged during driver INIT and runtime when key is pressed. Change-Id: Ie8a8068cc8faefdbe678b4e7d11cac179faf01dd --- bindings/input/qpnp-power-on.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bindings/input/qpnp-power-on.txt b/bindings/input/qpnp-power-on.txt index b9bb2bfea1ae..2db6719b2c54 100644 --- a/bindings/input/qpnp-power-on.txt +++ b/bindings/input/qpnp-power-on.txt @@ -129,6 +129,8 @@ Optional properties: - qcom,use-legacy-hard-reset-offset Boolean property to support legacy hard-reset offset of the PON_RB_SPARE register for some (PON gen2) platforms. +- qcom,log-kpd-event: Boolean property to enable logging of KPDPWR status + during driver INIT and runtime when key is pressed. Optional Sub-nodes: - qcom,pon_1 ... qcom,pon_n: These PON child nodes correspond to features From 570a6d1c71f10a1e0074e0dd88dbb1a32654eeaf Mon Sep 17 00:00:00 2001 From: Ashish Chavan Date: Mon, 27 Sep 2021 13:57:20 +0530 Subject: [PATCH 2/2] ARM: dts: msm: Enable KPDPWR status logging Enable KPDPWR status logging for holi-pm6125 and blair platforms. Change-Id: I68f0db9943f879a0347ec5a1aa57dd0cf5a7b05a --- qcom/holi-pmic-overlay-pm6125.dtsi | 3 +++ qcom/pm6125.dtsi | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/qcom/holi-pmic-overlay-pm6125.dtsi b/qcom/holi-pmic-overlay-pm6125.dtsi index cf4d9588b4c1..1e7a198c34a1 100644 --- a/qcom/holi-pmic-overlay-pm6125.dtsi +++ b/qcom/holi-pmic-overlay-pm6125.dtsi @@ -494,3 +494,6 @@ }; }; +&pm6125_pon { + qcom,log-kpd-event; +}; diff --git a/qcom/pm6125.dtsi b/qcom/pm6125.dtsi index 28ac8c196c2e..fb71fa0fd284 100644 --- a/qcom/pm6125.dtsi +++ b/qcom/pm6125.dtsi @@ -17,7 +17,7 @@ #address-cells = <1>; #size-cells = <0>; - qcom,power-on@800 { + pm6125_pon: qcom,power-on@800 { compatible = "qcom,qpnp-power-on"; reg = <0x800>; interrupts = <0x0 0x8 0x0 IRQ_TYPE_EDGE_BOTH>,