2020-04-07 06:48:00

by Biwen Li (OSS)

[permalink] [raw]
Subject: [RESEND 1/4] arm64: dts: lx2160a: add ftm_alarm0 DT node

From: Biwen Li <[email protected]>

The patch adds ftm_alarm0 DT node for Soc LX2160A
FlexTimer1 module is used to wakeup the system in deep sleep

Signed-off-by: Biwen Li <[email protected]>
---
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
index e5ee5591e52b..e0d8d68ce070 100644
--- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
@@ -16,6 +16,10 @@
#address-cells = <2>;
#size-cells = <2>;

+ aliases {
+ rtc1 = &ftm_alarm0;
+ };
+
cpus {
#address-cells = <1>;
#size-cells = <0>;
@@ -768,6 +772,20 @@
timeout-sec = <30>;
};

+ rcpm: rcpm@1e34040 {
+ compatible = "fsl,lx2160a-rcpm", "fsl,qoriq-rcpm-2.1+";
+ reg = <0x0 0x1e34040 0x0 0x1c>;
+ #fsl,rcpm-wakeup-cells = <7>;
+ little-endian;
+ };
+
+ ftm_alarm0: timer@2800000 {
+ compatible = "fsl,lx2160a-ftm-alarm";
+ reg = <0x0 0x2800000 0x0 0x10000>;
+ fsl,rcpm-wakeup = <&rcpm 0x0 0x0 0x0 0x0 0x4000 0x0 0x0>;
+ interrupts = <0 44 4>;
+ };
+
usb0: usb@3100000 {
compatible = "snps,dwc3";
reg = <0x0 0x3100000 0x0 0x10000>;
--
2.17.1


2020-04-26 13:19:52

by Shawn Guo

[permalink] [raw]
Subject: Re: [RESEND 1/4] arm64: dts: lx2160a: add ftm_alarm0 DT node

On Tue, Apr 07, 2020 at 02:42:48PM +0800, Biwen Li wrote:
> From: Biwen Li <[email protected]>
>
> The patch adds ftm_alarm0 DT node for Soc LX2160A
> FlexTimer1 module is used to wakeup the system in deep sleep
>
> Signed-off-by: Biwen Li <[email protected]>
> ---
> arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
> index e5ee5591e52b..e0d8d68ce070 100644
> --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
> +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
> @@ -16,6 +16,10 @@
> #address-cells = <2>;
> #size-cells = <2>;
>
> + aliases {
> + rtc1 = &ftm_alarm0;
> + };
> +
> cpus {
> #address-cells = <1>;
> #size-cells = <0>;
> @@ -768,6 +772,20 @@
> timeout-sec = <30>;
> };
>
> + rcpm: rcpm@1e34040 {

Keep the node sort in unit-address. Also, try to use a generic node
name.

Shawn

> + compatible = "fsl,lx2160a-rcpm", "fsl,qoriq-rcpm-2.1+";
> + reg = <0x0 0x1e34040 0x0 0x1c>;
> + #fsl,rcpm-wakeup-cells = <7>;
> + little-endian;
> + };
> +
> + ftm_alarm0: timer@2800000 {
> + compatible = "fsl,lx2160a-ftm-alarm";
> + reg = <0x0 0x2800000 0x0 0x10000>;
> + fsl,rcpm-wakeup = <&rcpm 0x0 0x0 0x0 0x0 0x4000 0x0 0x0>;
> + interrupts = <0 44 4>;

IRQ_TYPE_LEVEL_HIGH

Shawn

> + };
> +
> usb0: usb@3100000 {
> compatible = "snps,dwc3";
> reg = <0x0 0x3100000 0x0 0x10000>;
> --
> 2.17.1
>

2020-05-08 09:38:05

by Biwen Li (OSS)

[permalink] [raw]
Subject: RE: [RESEND 1/4] arm64: dts: lx2160a: add ftm_alarm0 DT node

>
> On Tue, Apr 07, 2020 at 02:42:48PM +0800, Biwen Li wrote:
> > From: Biwen Li <[email protected]>
> >
> > The patch adds ftm_alarm0 DT node for Soc LX2160A
> > FlexTimer1 module is used to wakeup the system in deep sleep
> >
> > Signed-off-by: Biwen Li <[email protected]>
> > ---
> > arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 18
> > ++++++++++++++++++
> > 1 file changed, 18 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
> > b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
> > index e5ee5591e52b..e0d8d68ce070 100644
> > --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
> > +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
> > @@ -16,6 +16,10 @@
> > #address-cells = <2>;
> > #size-cells = <2>;
> >
> > + aliases {
> > + rtc1 = &ftm_alarm0;
> > + };
> > +
> > cpus {
> > #address-cells = <1>;
> > #size-cells = <0>;
> > @@ -768,6 +772,20 @@
> > timeout-sec = <30>;
> > };
> >
> > + rcpm: rcpm@1e34040 {
>
> Keep the node sort in unit-address. Also, try to use a generic node name.
Hi Shawn,
Sorry for late reply.
The node sort will be updated in v2.
rcpm is called as Run Control and Power Management. Don't
Have a generic node name, any suggestions?

>
> Shawn
>
> > + compatible = "fsl,lx2160a-rcpm", "fsl,qoriq-rcpm-2.1+";
> > + reg = <0x0 0x1e34040 0x0 0x1c>;
> > + #fsl,rcpm-wakeup-cells = <7>;
> > + little-endian;
> > + };
> > +
> > + ftm_alarm0: timer@2800000 {
> > + compatible = "fsl,lx2160a-ftm-alarm";
> > + reg = <0x0 0x2800000 0x0 0x10000>;
> > + fsl,rcpm-wakeup = <&rcpm 0x0 0x0 0x0 0x0 0x4000 0x0 0x0>;
> > + interrupts = <0 44 4>;
>
> IRQ_TYPE_LEVEL_HIGH
Got it, thanks. Will replace it in v2.
>
> Shawn
>
> > + };
> > +
> > usb0: usb@3100000 {
> > compatible = "snps,dwc3";
> > reg = <0x0 0x3100000 0x0 0x10000>;
> > --
> > 2.17.1
> >

2020-05-11 14:19:27

by Shawn Guo

[permalink] [raw]
Subject: Re: [RESEND 1/4] arm64: dts: lx2160a: add ftm_alarm0 DT node

On Fri, May 08, 2020 at 09:35:47AM +0000, Biwen Li (OSS) wrote:
> >
> > On Tue, Apr 07, 2020 at 02:42:48PM +0800, Biwen Li wrote:
> > > From: Biwen Li <[email protected]>
> > >
> > > The patch adds ftm_alarm0 DT node for Soc LX2160A
> > > FlexTimer1 module is used to wakeup the system in deep sleep
> > >
> > > Signed-off-by: Biwen Li <[email protected]>
> > > ---
> > > arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 18
> > > ++++++++++++++++++
> > > 1 file changed, 18 insertions(+)
> > >
> > > diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
> > > b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
> > > index e5ee5591e52b..e0d8d68ce070 100644
> > > --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
> > > +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
> > > @@ -16,6 +16,10 @@
> > > #address-cells = <2>;
> > > #size-cells = <2>;
> > >
> > > + aliases {
> > > + rtc1 = &ftm_alarm0;
> > > + };
> > > +
> > > cpus {
> > > #address-cells = <1>;
> > > #size-cells = <0>;
> > > @@ -768,6 +772,20 @@
> > > timeout-sec = <30>;
> > > };
> > >
> > > + rcpm: rcpm@1e34040 {
> >
> > Keep the node sort in unit-address. Also, try to use a generic node name.
> Hi Shawn,
> Sorry for late reply.
> The node sort will be updated in v2.
> rcpm is called as Run Control and Power Management. Don't
> Have a generic node name, any suggestions?

It sounds like some sort of power controller, so maybe 'power-controller'?

Shawn

2020-05-20 08:31:22

by Biwen Li (OSS)

[permalink] [raw]
Subject: RE: [RESEND 1/4] arm64: dts: lx2160a: add ftm_alarm0 DT node



> > > > diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
> > > > b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
> > > > index e5ee5591e52b..e0d8d68ce070 100644
> > > > --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
> > > > +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
> > > > @@ -16,6 +16,10 @@
> > > > #address-cells = <2>;
> > > > #size-cells = <2>;
> > > >
> > > > + aliases {
> > > > + rtc1 = &ftm_alarm0;
> > > > + };
> > > > +
> > > > cpus {
> > > > #address-cells = <1>;
> > > > #size-cells = <0>;
> > > > @@ -768,6 +772,20 @@
> > > > timeout-sec = <30>;
> > > > };
> > > >
> > > > + rcpm: rcpm@1e34040 {
> > >
> > > Keep the node sort in unit-address. Also, try to use a generic node name.
> > Hi Shawn,
> > Sorry for late reply.
> > The node sort will be updated in v2.
> > rcpm is called as Run Control and Power Management. Don't Have a
> > generic node name, any suggestions?
>
> It sounds like some sort of power controller, so maybe 'power-controller'?
Okay, How about replace it with "rcpm: power-controller@1e34040 {"?
>
> Shawn