diff mbox series

[07/22] arm64: dts: qcom: pm8150: Add pon and rtc nodes

Message ID 20190814125012.8700-8-vkoul@kernel.org (mailing list archive)
State Superseded
Headers show
Series arm64: dts: qcom: sm8150: Add SM8150 DTS | expand

Commit Message

Vinod Koul Aug. 14, 2019, 12:49 p.m. UTC
PM8150 PMIC contains pon and rtc devices so add nodes for these.

Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
 arch/arm64/boot/dts/qcom/pm8150.dtsi | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

Comments

Stephen Boyd Aug. 14, 2019, 5:03 p.m. UTC | #1
Quoting Vinod Koul (2019-08-14 05:49:57)
> PM8150 PMIC contains pon and rtc devices so add nodes for these.
> 
> Signed-off-by: Vinod Koul <vkoul@kernel.org>
> ---

Squash this with the other patch?

> @@ -12,6 +13,25 @@
>                 #address-cells = <1>;
>                 #size-cells = <0>;
>  
> +               pon: pon@800 {
> +                       compatible = "qcom,pm8916-pon";
> +                       reg = <0x0800>;
> +                       pwrkey {
> +                               compatible = "qcom,pm8941-pwrkey";
> +                               interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
> +                               debounce = <15625>;
> +                               bias-pull-up;
> +                               linux,code = <KEY_POWER>;

status = "disabled"?

> +                       };
> +               };
> +
> +               rtc@6000 {
> +                       compatible = "qcom,pm8941-rtc";
> +                       reg = <0x6000>;
> +                       reg-names = "rtc", "alarm";
> +                       interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;

status = "disabled"?

> +               };
> +
>                 pm8150_gpios: gpio@c000 {
>                         compatible = "qcom,pm8150-gpio";
>                         reg = <0xc000>;
> -- 
> 2.20.1
>
Vinod Koul Aug. 19, 2019, 5:32 p.m. UTC | #2
On 14-08-19, 10:03, Stephen Boyd wrote:
> Quoting Vinod Koul (2019-08-14 05:49:57)
> > PM8150 PMIC contains pon and rtc devices so add nodes for these.
> > 
> > Signed-off-by: Vinod Koul <vkoul@kernel.org>
> > ---
> 
> Squash this with the other patch?

OK

> 
> > @@ -12,6 +13,25 @@
> >                 #address-cells = <1>;
> >                 #size-cells = <0>;
> >  
> > +               pon: pon@800 {
> > +                       compatible = "qcom,pm8916-pon";
> > +                       reg = <0x0800>;
> > +                       pwrkey {
> > +                               compatible = "qcom,pm8941-pwrkey";
> > +                               interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
> > +                               debounce = <15625>;
> > +                               bias-pull-up;
> > +                               linux,code = <KEY_POWER>;
> 
> status = "disabled"?

will do

> 
> > +                       };
> > +               };
> > +
> > +               rtc@6000 {
> > +                       compatible = "qcom,pm8941-rtc";
> > +                       reg = <0x6000>;
> > +                       reg-names = "rtc", "alarm";
> > +                       interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
> 
> status = "disabled"?

will do
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/qcom/pm8150.dtsi b/arch/arm64/boot/dts/qcom/pm8150.dtsi
index b533e254a203..2cb727ce30eb 100644
--- a/arch/arm64/boot/dts/qcom/pm8150.dtsi
+++ b/arch/arm64/boot/dts/qcom/pm8150.dtsi
@@ -2,6 +2,7 @@ 
 // Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 // Copyright (c) 2019, Linaro Limited
 
+#include <dt-bindings/input/input.h>
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/spmi/spmi.h>
 
@@ -12,6 +13,25 @@ 
 		#address-cells = <1>;
 		#size-cells = <0>;
 
+		pon: pon@800 {
+			compatible = "qcom,pm8916-pon";
+			reg = <0x0800>;
+			pwrkey {
+				compatible = "qcom,pm8941-pwrkey";
+				interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
+				debounce = <15625>;
+				bias-pull-up;
+				linux,code = <KEY_POWER>;
+			};
+		};
+
+		rtc@6000 {
+			compatible = "qcom,pm8941-rtc";
+			reg = <0x6000>;
+			reg-names = "rtc", "alarm";
+			interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
+		};
+
 		pm8150_gpios: gpio@c000 {
 			compatible = "qcom,pm8150-gpio";
 			reg = <0xc000>;