Re: [PATCH 5/5] powerpc:dts:pm: add power management node
On Wed, Mar 28, 2018 at 8:31 PM, Ran Wangwrote: > Enable Power Management feature on device tree, including MPC8536, > MPC8544, MPC8548, MPC8572, P1010, P1020, P1021, P1022, P2020, P2041, > P3041, T104X, T1024. There are no device tree bindings documented for the properties and compatible strings used in the patch. Please update the binding documents first before adding them into device tree. > > Signed-off-by: Zhao Chenhui > Signed-off-by: Ran Wang > --- > arch/powerpc/boot/dts/fsl/mpc8536si-post.dtsi | 14 ++- > arch/powerpc/boot/dts/fsl/mpc8544si-post.dtsi |2 + > arch/powerpc/boot/dts/fsl/mpc8548si-post.dtsi |2 + > arch/powerpc/boot/dts/fsl/mpc8572si-post.dtsi |2 + > arch/powerpc/boot/dts/fsl/p1010si-post.dtsi |8 > arch/powerpc/boot/dts/fsl/p1020si-post.dtsi |5 +++ > arch/powerpc/boot/dts/fsl/p1021si-post.dtsi |5 +++ > arch/powerpc/boot/dts/fsl/p1022si-post.dtsi |9 +++-- > arch/powerpc/boot/dts/fsl/p2020si-post.dtsi | 14 +++ > arch/powerpc/boot/dts/fsl/pq3-power.dtsi | 48 > + > arch/powerpc/boot/dts/fsl/t1024rdb.dts|2 +- > arch/powerpc/boot/dts/fsl/t1040rdb.dts|2 +- > arch/powerpc/boot/dts/fsl/t1042rdb.dts|2 +- > arch/powerpc/boot/dts/fsl/t1042rdb_pi.dts |2 +- > 14 files changed, 108 insertions(+), 9 deletions(-) > create mode 100644 arch/powerpc/boot/dts/fsl/pq3-power.dtsi > > diff --git a/arch/powerpc/boot/dts/fsl/mpc8536si-post.dtsi > b/arch/powerpc/boot/dts/fsl/mpc8536si-post.dtsi > index 4193570..fba40a1 100644 > --- a/arch/powerpc/boot/dts/fsl/mpc8536si-post.dtsi > +++ b/arch/powerpc/boot/dts/fsl/mpc8536si-post.dtsi > @@ -199,6 +199,10 @@ > > /include/ "pq3-dma-0.dtsi" > /include/ "pq3-etsec1-0.dtsi" > + enet0: ethernet@24000 { > + fsl,wake-on-filer; > + fsl,pmc-handle = <_clk>; > + }; > /include/ "pq3-etsec1-timer-0.dtsi" > > usb@22000 { > @@ -222,9 +226,10 @@ > }; > > /include/ "pq3-etsec1-2.dtsi" > - > - ethernet@26000 { > + enet2: ethernet@26000 { > cell-index = <1>; > + fsl,wake-on-filer; > + fsl,pmc-handle = <_clk>; > }; > > usb@2b000 { > @@ -249,4 +254,9 @@ > reg = <0xe 0x1000>; > fsl,has-rstcr; > }; > + > +/include/ "pq3-power.dtsi" > + power@e0070 { > + compatible = "fsl,mpc8536-pmc", "fsl,mpc8548-pmc"; > + }; > }; > diff --git a/arch/powerpc/boot/dts/fsl/mpc8544si-post.dtsi > b/arch/powerpc/boot/dts/fsl/mpc8544si-post.dtsi > index b68eb11..ea7416a 100644 > --- a/arch/powerpc/boot/dts/fsl/mpc8544si-post.dtsi > +++ b/arch/powerpc/boot/dts/fsl/mpc8544si-post.dtsi > @@ -188,4 +188,6 @@ > reg = <0xe 0x1000>; > fsl,has-rstcr; > }; > + > +/include/ "pq3-power.dtsi" > }; > diff --git a/arch/powerpc/boot/dts/fsl/mpc8548si-post.dtsi > b/arch/powerpc/boot/dts/fsl/mpc8548si-post.dtsi > index 579d76c..dddb737 100644 > --- a/arch/powerpc/boot/dts/fsl/mpc8548si-post.dtsi > +++ b/arch/powerpc/boot/dts/fsl/mpc8548si-post.dtsi > @@ -156,4 +156,6 @@ > reg = <0xe 0x1000>; > fsl,has-rstcr; > }; > + > +/include/ "pq3-power.dtsi" > }; > diff --git a/arch/powerpc/boot/dts/fsl/mpc8572si-post.dtsi > b/arch/powerpc/boot/dts/fsl/mpc8572si-post.dtsi > index 49294cf..40a6cff 100644 > --- a/arch/powerpc/boot/dts/fsl/mpc8572si-post.dtsi > +++ b/arch/powerpc/boot/dts/fsl/mpc8572si-post.dtsi > @@ -193,4 +193,6 @@ > reg = <0xe 0x1000>; > fsl,has-rstcr; > }; > + > +/include/ "pq3-power.dtsi" > }; > diff --git a/arch/powerpc/boot/dts/fsl/p1010si-post.dtsi > b/arch/powerpc/boot/dts/fsl/p1010si-post.dtsi > index 1b4aafc..47b62a8 100644 > --- a/arch/powerpc/boot/dts/fsl/p1010si-post.dtsi > +++ b/arch/powerpc/boot/dts/fsl/p1010si-post.dtsi > @@ -173,6 +173,8 @@ > > /include/ "pq3-etsec2-0.dtsi" > enet0: ethernet@b { > + fsl,pmc-handle = <_clk>; > + > queue-group@b { > fsl,rx-bit-map = <0xff>; > fsl,tx-bit-map = <0xff>; > @@ -181,6 +183,8 @@ > > /include/ "pq3-etsec2-1.dtsi" > enet1: ethernet@b1000 { > + fsl,pmc-handle = <_clk>; > + > queue-group@b1000 { > fsl,rx-bit-map = <0xff>; > fsl,tx-bit-map = <0xff>; > @@ -189,6 +193,8 @@ > > /include/ "pq3-etsec2-2.dtsi" > enet2: ethernet@b2000 { > + fsl,pmc-handle = <_clk>; > + > queue-group@b2000 { > fsl,rx-bit-map = <0xff>; > fsl,tx-bit-map = <0xff>; > @@ -201,4 +207,6 @@ > reg = <0xe 0x1000>; > fsl,has-rstcr; > }; > + >
[PATCH 5/5] powerpc:dts:pm: add power management node
Enable Power Management feature on device tree, including MPC8536, MPC8544, MPC8548, MPC8572, P1010, P1020, P1021, P1022, P2020, P2041, P3041, T104X, T1024. Signed-off-by: Zhao ChenhuiSigned-off-by: Ran Wang --- arch/powerpc/boot/dts/fsl/mpc8536si-post.dtsi | 14 ++- arch/powerpc/boot/dts/fsl/mpc8544si-post.dtsi |2 + arch/powerpc/boot/dts/fsl/mpc8548si-post.dtsi |2 + arch/powerpc/boot/dts/fsl/mpc8572si-post.dtsi |2 + arch/powerpc/boot/dts/fsl/p1010si-post.dtsi |8 arch/powerpc/boot/dts/fsl/p1020si-post.dtsi |5 +++ arch/powerpc/boot/dts/fsl/p1021si-post.dtsi |5 +++ arch/powerpc/boot/dts/fsl/p1022si-post.dtsi |9 +++-- arch/powerpc/boot/dts/fsl/p2020si-post.dtsi | 14 +++ arch/powerpc/boot/dts/fsl/pq3-power.dtsi | 48 + arch/powerpc/boot/dts/fsl/t1024rdb.dts|2 +- arch/powerpc/boot/dts/fsl/t1040rdb.dts|2 +- arch/powerpc/boot/dts/fsl/t1042rdb.dts|2 +- arch/powerpc/boot/dts/fsl/t1042rdb_pi.dts |2 +- 14 files changed, 108 insertions(+), 9 deletions(-) create mode 100644 arch/powerpc/boot/dts/fsl/pq3-power.dtsi diff --git a/arch/powerpc/boot/dts/fsl/mpc8536si-post.dtsi b/arch/powerpc/boot/dts/fsl/mpc8536si-post.dtsi index 4193570..fba40a1 100644 --- a/arch/powerpc/boot/dts/fsl/mpc8536si-post.dtsi +++ b/arch/powerpc/boot/dts/fsl/mpc8536si-post.dtsi @@ -199,6 +199,10 @@ /include/ "pq3-dma-0.dtsi" /include/ "pq3-etsec1-0.dtsi" + enet0: ethernet@24000 { + fsl,wake-on-filer; + fsl,pmc-handle = <_clk>; + }; /include/ "pq3-etsec1-timer-0.dtsi" usb@22000 { @@ -222,9 +226,10 @@ }; /include/ "pq3-etsec1-2.dtsi" - - ethernet@26000 { + enet2: ethernet@26000 { cell-index = <1>; + fsl,wake-on-filer; + fsl,pmc-handle = <_clk>; }; usb@2b000 { @@ -249,4 +254,9 @@ reg = <0xe 0x1000>; fsl,has-rstcr; }; + +/include/ "pq3-power.dtsi" + power@e0070 { + compatible = "fsl,mpc8536-pmc", "fsl,mpc8548-pmc"; + }; }; diff --git a/arch/powerpc/boot/dts/fsl/mpc8544si-post.dtsi b/arch/powerpc/boot/dts/fsl/mpc8544si-post.dtsi index b68eb11..ea7416a 100644 --- a/arch/powerpc/boot/dts/fsl/mpc8544si-post.dtsi +++ b/arch/powerpc/boot/dts/fsl/mpc8544si-post.dtsi @@ -188,4 +188,6 @@ reg = <0xe 0x1000>; fsl,has-rstcr; }; + +/include/ "pq3-power.dtsi" }; diff --git a/arch/powerpc/boot/dts/fsl/mpc8548si-post.dtsi b/arch/powerpc/boot/dts/fsl/mpc8548si-post.dtsi index 579d76c..dddb737 100644 --- a/arch/powerpc/boot/dts/fsl/mpc8548si-post.dtsi +++ b/arch/powerpc/boot/dts/fsl/mpc8548si-post.dtsi @@ -156,4 +156,6 @@ reg = <0xe 0x1000>; fsl,has-rstcr; }; + +/include/ "pq3-power.dtsi" }; diff --git a/arch/powerpc/boot/dts/fsl/mpc8572si-post.dtsi b/arch/powerpc/boot/dts/fsl/mpc8572si-post.dtsi index 49294cf..40a6cff 100644 --- a/arch/powerpc/boot/dts/fsl/mpc8572si-post.dtsi +++ b/arch/powerpc/boot/dts/fsl/mpc8572si-post.dtsi @@ -193,4 +193,6 @@ reg = <0xe 0x1000>; fsl,has-rstcr; }; + +/include/ "pq3-power.dtsi" }; diff --git a/arch/powerpc/boot/dts/fsl/p1010si-post.dtsi b/arch/powerpc/boot/dts/fsl/p1010si-post.dtsi index 1b4aafc..47b62a8 100644 --- a/arch/powerpc/boot/dts/fsl/p1010si-post.dtsi +++ b/arch/powerpc/boot/dts/fsl/p1010si-post.dtsi @@ -173,6 +173,8 @@ /include/ "pq3-etsec2-0.dtsi" enet0: ethernet@b { + fsl,pmc-handle = <_clk>; + queue-group@b { fsl,rx-bit-map = <0xff>; fsl,tx-bit-map = <0xff>; @@ -181,6 +183,8 @@ /include/ "pq3-etsec2-1.dtsi" enet1: ethernet@b1000 { + fsl,pmc-handle = <_clk>; + queue-group@b1000 { fsl,rx-bit-map = <0xff>; fsl,tx-bit-map = <0xff>; @@ -189,6 +193,8 @@ /include/ "pq3-etsec2-2.dtsi" enet2: ethernet@b2000 { + fsl,pmc-handle = <_clk>; + queue-group@b2000 { fsl,rx-bit-map = <0xff>; fsl,tx-bit-map = <0xff>; @@ -201,4 +207,6 @@ reg = <0xe 0x1000>; fsl,has-rstcr; }; + +/include/ "pq3-power.dtsi" }; diff --git a/arch/powerpc/boot/dts/fsl/p1020si-post.dtsi b/arch/powerpc/boot/dts/fsl/p1020si-post.dtsi index 642dc3a..cc4c746 100644 --- a/arch/powerpc/boot/dts/fsl/p1020si-post.dtsi +++ b/arch/powerpc/boot/dts/fsl/p1020si-post.dtsi @@ -163,14 +163,17 @@ /include/ "pq3-etsec2-0.dtsi" enet0: enet0_grp2: ethernet@b { + fsl,pmc-handle = <_clk>; }; /include/ "pq3-etsec2-1.dtsi" enet1: enet1_grp2: ethernet@b1000 { +