Skip to contentSkip to conversation

ARM: dts: qcom: pm8226: Add PON node

PATCH In review Jack Matthews 2 participants 2 messages Nov 22, 2021 – Sep 24, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: qcom: pm8226: Add PON node

Add PON node with pwrkey and resin as child nodes. Also adds resin, and additional properties to pwrkey.

---
 arch/arm/boot/dts/qcom-pm8226.dtsi | 27 +++++++++++++++++++++------
 1 file changed, 21 insertions(+), 6 deletions(-)
arch/arm/boot/dts/qcom-pm8226.dtsi +21 -6
index 666bc6350c50..63f3026c25bf 100644
@@ -1,5 +1,6 @@
 // SPDX-License-Identifier: BSD-3-Clause
 #include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/input/input.h>
 #include <dt-bindings/spmi/spmi.h>
 
 &spmi_bus {
@@ -9,12 +10,26 @@ pm8226_0: pm8226@0 {
 		#address-cells = <1>;
 		#size-cells = <0>;
 
-		pwrkey@800 {
-			compatible = "qcom,pm8941-pwrkey";
-			reg = <0x800>;
-			interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
-			debounce = <15625>;
-			bias-pull-up;
+		pon: power-on@800 {
+			compatible = "qcom,pm8916-pon";
+			reg = <0x0800>;
+
+			pm8226_pwrkey: pwrkey {
+				compatible = "qcom,pm8941-pwrkey";
+				interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
+				debounce = <15625>;
+				bias-pull-up;
+				linux,code = <KEY_POWER>;
+			};
+
+			pm8226_resin: resin {
+				compatible = "qcom,pm8941-resin";
+				interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
+				debounce = <15625>;
+				bias-pull-up;
+
+				status = "disabled";
+			};
 		};
 
 		smbb: charger@1000 {
Signature · 1 line
2.25.1
#1 lore raw

Hi Jack,

Quoted 2 lines · On Dienstag, 23. November 2021 00:52:30 CEST Jack Matthews wrote:

Add PON node with pwrkey and resin as child nodes. Also adds resin, and additional properties to pwrkey.

I just saw that this patch hasn't been applied yet.
As it doesn't apply cleanly anymore can you please rebase it and send a v2? Hopefully Bjorn can apply it then :)

Regards
Luca

Quoted 24 lines
---
 arch/arm/boot/dts/qcom-pm8226.dtsi | 27 +++++++++++++++++++++------
 1 file changed, 21 insertions(+), 6 deletions(-)
(quoted diff) +0 -0

b/arch/arm/boot/dts/qcom-pm8226.dtsi index 666bc6350c50..63f3026c25bf 100644

arch/arm/boot/dts/qcom-pm8226.dtsi +1 -2
@@ -1,5 +1,6 @@
 // SPDX-License-Identifier: BSD-3-Clause
 #include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/input/input.h>
 #include <dt-bindings/spmi/spmi.h>
 
 &spmi_bus {
@@ -9,12 +10,26 @@ pm8226_0: pm8226@0 {
 		#address-cells = <1>;
 		#size-cells = <0>;
 
-		pwrkey@800 {
-			compatible = "qcom,pm8941-pwrkey";

arch/arm/boot/dts/qcom-pm8226.dtsi pm8226_0: pm8226@0 { · line 18

Quoted 10 lines
arch/arm/boot/dts/qcom-pm8226.dtsi +6 -4
-			reg = <0x800>;
-			interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
-			debounce = <15625>;
-			bias-pull-up;
+		pon: power-on@800 {
+			compatible = "qcom,pm8916-pon";
+			reg = <0x0800>;
+
+			pm8226_pwrkey: pwrkey {
+				compatible = "qcom,pm8941-

pwrkey";

arch/arm/boot/dts/qcom-pm8226.dtsi pm8226_0: pm8226@0 { · line 19

Quoted 1 line
arch/arm/boot/dts/qcom-pm8226.dtsi +1 -0
+				interrupts = <0x0 0x8 0 

IRQ_TYPE_EDGE_BOTH>;

arch/arm/boot/dts/qcom-pm8226.dtsi pm8226_0: pm8226@0 {

Quoted 8 lines
arch/arm/boot/dts/qcom-pm8226.dtsi +8 -0
+				debounce = <15625>;
+				bias-pull-up;
+				linux,code = <KEY_POWER>;
+			};
+
+			pm8226_resin: resin {
+				compatible = "qcom,pm8941-resin";
+				interrupts = <0x0 0x8 1 

IRQ_TYPE_EDGE_BOTH>;

Quoted 8 lines
arch/arm/boot/dts/qcom-pm8226.dtsi +5 -0
+				debounce = <15625>;
+				bias-pull-up;
+
+				status = "disabled";
+			};
 		};
 
 		smbb: charger@1000 {