OSDN Git Service

arm64: dts: qcom: pms405: Add pon and pwrkey nodes
authorVinod Koul <vkoul@kernel.org>
Fri, 9 Nov 2018 09:44:17 +0000 (15:14 +0530)
committerAndy Gross <andy.gross@linaro.org>
Sun, 18 Nov 2018 07:08:36 +0000 (01:08 -0600)
PMS405 also features PON block, so add PON and PWRKEY nodes

Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm64/boot/dts/qcom/pms405.dtsi

index 8e5a857..ad2b62d 100644 (file)
@@ -2,6 +2,7 @@
 // Copyright (c) 2018, Linaro Limited
 
 #include <dt-bindings/spmi/spmi.h>
+#include <dt-bindings/input/linux-event-codes.h>
 
 &spmi_bus {
        pms405_0: pms405@0 {
                                <0 0xcb 0 IRQ_TYPE_NONE>;
                };
 
+               pon@800 {
+                       compatible = "qcom,pms405-pon";
+                       reg = <0x0800>;
+                       mode-bootloader = <0x2>;
+                       mode-recovery = <0x1>;
+
+                       pwrkey {
+                               compatible = "qcom,pm8941-pwrkey";
+                               interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
+                               debounce = <15625>;
+                               bias-pull-up;
+                               linux,code = <KEY_POWER>;
+                       };
+               };
+
                rtc@6000 {
                        compatible = "qcom,pm8941-rtc";
                        reg = <0x6000>;