diff options
author | Vinod Koul <vkoul@kernel.org> | 2018-09-10 15:18:47 +0530 |
---|---|---|
committer | Andy Gross <andy.gross@linaro.org> | 2018-09-13 13:42:59 -0500 |
commit | 2f74b3db92bef4f8f246d9301b6382890c5a24d8 (patch) | |
tree | 4456ef284c3946310725ceb0e50b253f5611cd84 /arch/arm64/boot/dts/qcom/pm8994.dtsi | |
parent | ad5fe7870537a5c57d9e3297dba79273b157bd84 (diff) | |
download | linux-stable-2f74b3db92bef4f8f246d9301b6382890c5a24d8.tar.gz linux-stable-2f74b3db92bef4f8f246d9301b6382890c5a24d8.tar.bz2 linux-stable-2f74b3db92bef4f8f246d9301b6382890c5a24d8.zip |
arm64: dts: qcom: pm8994: Add PON node
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>
Diffstat (limited to 'arch/arm64/boot/dts/qcom/pm8994.dtsi')
-rw-r--r-- | arch/arm64/boot/dts/qcom/pm8994.dtsi | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/pm8994.dtsi b/arch/arm64/boot/dts/qcom/pm8994.dtsi index 80024c0b1c7c..76b5a3e6a2b5 100644 --- a/arch/arm64/boot/dts/qcom/pm8994.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8994.dtsi @@ -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 { @@ -17,6 +18,23 @@ 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>; |