Re: [PATCH v2 17/17] arm64: dts: qcom: pms405: Add pon and pwrkey nodes

2018-11-05 Thread Bjorn Andersson
On Mon 05 Nov 07:45 PST 2018, Vinod Koul wrote:

> PMS405 also features PON block, so add PON and PWRKEY nodes
> 
> Signed-off-by: Vinod Koul 

Reviewed-by: Bjorn Andersson 

Regards,
Bjorn

> ---
>  arch/arm64/boot/dts/qcom/pms405.dtsi | 16 
>  1 file changed, 16 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi 
> b/arch/arm64/boot/dts/qcom/pms405.dtsi
> index 18410d9f0f8f..2c7cc1e94ff4 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 
> +#include 
>  
>  _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,pm8941-pwrkey";
> + interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
> + debounce = <15625>;
> + bias-pull-up;
> + linux,code = ;
> + };
> + };
> +
>   pms405_gpios: gpios@c000 {
>   compatible = "qcom,pms405-gpio";
>   reg = <0xc000>;
> -- 
> 2.14.4
> 


Re: [PATCH v2 17/17] arm64: dts: qcom: pms405: Add pon and pwrkey nodes

2018-11-05 Thread Bjorn Andersson
On Mon 05 Nov 07:45 PST 2018, Vinod Koul wrote:

> PMS405 also features PON block, so add PON and PWRKEY nodes
> 
> Signed-off-by: Vinod Koul 

Reviewed-by: Bjorn Andersson 

Regards,
Bjorn

> ---
>  arch/arm64/boot/dts/qcom/pms405.dtsi | 16 
>  1 file changed, 16 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi 
> b/arch/arm64/boot/dts/qcom/pms405.dtsi
> index 18410d9f0f8f..2c7cc1e94ff4 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 
> +#include 
>  
>  _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,pm8941-pwrkey";
> + interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
> + debounce = <15625>;
> + bias-pull-up;
> + linux,code = ;
> + };
> + };
> +
>   pms405_gpios: gpios@c000 {
>   compatible = "qcom,pms405-gpio";
>   reg = <0xc000>;
> -- 
> 2.14.4
> 


[PATCH v2 17/17] arm64: dts: qcom: pms405: Add pon and pwrkey nodes

2018-11-05 Thread Vinod Koul
PMS405 also features PON block, so add PON and PWRKEY nodes

Signed-off-by: Vinod Koul 
---
 arch/arm64/boot/dts/qcom/pms405.dtsi | 16 
 1 file changed, 16 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi 
b/arch/arm64/boot/dts/qcom/pms405.dtsi
index 18410d9f0f8f..2c7cc1e94ff4 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 
+#include 
 
 _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,pm8941-pwrkey";
+   interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
+   debounce = <15625>;
+   bias-pull-up;
+   linux,code = ;
+   };
+   };
+
pms405_gpios: gpios@c000 {
compatible = "qcom,pms405-gpio";
reg = <0xc000>;
-- 
2.14.4



[PATCH v2 17/17] arm64: dts: qcom: pms405: Add pon and pwrkey nodes

2018-11-05 Thread Vinod Koul
PMS405 also features PON block, so add PON and PWRKEY nodes

Signed-off-by: Vinod Koul 
---
 arch/arm64/boot/dts/qcom/pms405.dtsi | 16 
 1 file changed, 16 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi 
b/arch/arm64/boot/dts/qcom/pms405.dtsi
index 18410d9f0f8f..2c7cc1e94ff4 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 
+#include 
 
 _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,pm8941-pwrkey";
+   interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
+   debounce = <15625>;
+   bias-pull-up;
+   linux,code = ;
+   };
+   };
+
pms405_gpios: gpios@c000 {
compatible = "qcom,pms405-gpio";
reg = <0xc000>;
-- 
2.14.4