arm64: dts: qcom: pm8994: Add PON node
authorVinod Koul <vkoul@kernel.org>
Mon, 10 Sep 2018 09:48:47 +0000 (15:18 +0530)
committerAndy Gross <andy.gross@linaro.org>
Thu, 13 Sep 2018 18:42:59 +0000 (13:42 -0500)
Add PON and pwrkey as child nodes for PON driver.

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

index 80024c0b1c7c26f7109cf0cd3750847ef961a08d..76b5a3e6a2b5090f7b0f5f78b5dcb33fd4320aae 100644 (file)
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/spmi/spmi.h>
+#include <dt-bindings/input/linux-event-codes.h>
 
 &spmi_bus {
 
                        interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
                };
 
+               pon@800 {
+                       compatible = "qcom,pm8916-pon";
+
+                       reg = <0x800>;
+                       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>;
+                       };
+
+               };
+
                pm8994_gpios: gpios@c000 {
                        compatible = "qcom,pm8994-gpio";
                        reg = <0xc000>;