diff options
author | Vinod Koul <vkoul@kernel.org> | 2018-05-30 16:49:57 +0530 |
---|---|---|
committer | Amit Pundir <amit.pundir@linaro.org> | 2018-07-11 12:29:29 +0530 |
commit | 11afb9ea35f64c94449e56b0fb5f5161bdfede6b (patch) | |
tree | 9ae9b314b3d267845d94d659ed36e6e16741f5b9 | |
parent | e65af6db7f56c805128b59ce251c95aa5c15af52 (diff) |
arm64: dts: qcom: pm8916: Add PON and resin binding
Add PON binding and pwrkey and resin as child nodes for PON driver. Also
add additional properties for pwrkey i.e., linux,code and pon_child
Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r-- | arch/arm64/boot/dts/qcom/pm8916.dtsi | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/arch/arm64/boot/dts/qcom/pm8916.dtsi b/arch/arm64/boot/dts/qcom/pm8916.dtsi index 92d70def5705..934e19541c82 100644 --- a/arch/arm64/boot/dts/qcom/pm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8916.dtsi @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 #include <dt-bindings/iio/qcom,spmi-vadc.h> #include <dt-bindings/interrupt-controller/irq.h> +#include <dt-bindings/input/linux-event-codes.h> #include <dt-bindings/spmi/spmi.h> &spmi_bus { @@ -18,12 +19,33 @@ interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; }; - pwrkey@800 { - compatible = "qcom,pm8941-pwrkey"; + pon@800 { + compatible = "qcom,pm8916-pon"; + reg = <0x800>; - interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; - debounce = <15625>; - bias-pull-up; + mode-bootloader = <0x2>; + mode-recovery = <0x1>; + + pwrkey { + compatible = "qcom,pm8941-pwrkey"; + reg = <0x800>; + interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + pon_child = "true"; + linux,code = <KEY_POWER>; + }; + + resin { + compatible = "qcom,pm8941-resin"; + reg = <0x800>; + interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + pon_child = "true"; + linux,code = <KEY_VOLUMEDOWN>; + }; + }; pm8916_gpios: gpios@c000 { |