diff options
author | Vinod Koul <vkoul@kernel.org> | 2018-09-10 12:59:10 +0530 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2018-09-27 23:06:29 -0700 |
commit | 5258dcac3ef4232324317b040d78f011555ffb8f (patch) | |
tree | 4359efec12065de838b5dcdedd5fa812cc40a469 | |
parent | 1835e81e2b2f9d9899b38a2b30196919962568ba (diff) |
arm64: dts: qcom: pms405: Add pon and pwrkey nodes
PMS405 also features PON block, so add PON and PWRKEY nodes to
this dtsi
Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r-- | arch/arm64/boot/dts/qcom/pms405.dtsi | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi b/arch/arm64/boot/dts/qcom/pms405.dtsi index 18410d9f0f8f..bd1d0e784bc0 100644 --- a/arch/arm64/boot/dts/qcom/pms405.dtsi +++ b/arch/arm64/boot/dts/qcom/pms405.dtsi @@ -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 { @@ -18,6 +19,21 @@ interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>; }; + pon@800 { + compatible = "qcom,pms405-pon"; + reg = <0x800>; + mode-bootloader = <0x2>; + mode-recovery = <0x1>; + + pwrkey { + compatible = "qcom,pms405-pwrkey"; + interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + linux,code = <KEY_POWER>; + }; + }; + pms405_gpios: gpios@c000 { compatible = "qcom,pms405-gpio"; reg = <0xc000>; |