Skip to content

Commit

Permalink
powerpc: dts: add power management nodes to FSL chips
Browse files Browse the repository at this point in the history
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 Chenhui <[email protected]>
Signed-off-by: Ran Wang <[email protected]>
Signed-off-by: Frank Li <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/[email protected]
  • Loading branch information
RanWang1 authored and mpe committed May 7, 2024
1 parent 554da5e commit b12ba09
Show file tree
Hide file tree
Showing 14 changed files with 83 additions and 12 deletions.
14 changes: 12 additions & 2 deletions arch/powerpc/boot/dts/fsl/mpc8536si-post.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,10 @@

/include/ "pq3-dma-0.dtsi"
/include/ "pq3-etsec1-0.dtsi"
enet0: ethernet@24000 {
fsl,wake-on-filer;
fsl,pmc-handle = <&etsec1_clk>;
};
/include/ "pq3-etsec1-timer-0.dtsi"

usb@22000 {
Expand All @@ -222,9 +226,10 @@
};

/include/ "pq3-etsec1-2.dtsi"

ethernet@26000 {
enet2: ethernet@26000 {
cell-index = <1>;
fsl,wake-on-filer;
fsl,pmc-handle = <&etsec3_clk>;
};

usb@2b000 {
Expand All @@ -249,4 +254,9 @@
reg = <0xe0000 0x1000>;
fsl,has-rstcr;
};

/include/ "pq3-power.dtsi"
power@e0070 {
compatible = "fsl,mpc8536-pmc", "fsl,mpc8548-pmc";
};
};
2 changes: 2 additions & 0 deletions arch/powerpc/boot/dts/fsl/mpc8544si-post.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,6 @@
reg = <0xe0000 0x1000>;
fsl,has-rstcr;
};

/include/ "pq3-power.dtsi"
};
2 changes: 2 additions & 0 deletions arch/powerpc/boot/dts/fsl/mpc8548si-post.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,6 @@
reg = <0xe0000 0x1000>;
fsl,has-rstcr;
};

/include/ "pq3-power.dtsi"
};
2 changes: 2 additions & 0 deletions arch/powerpc/boot/dts/fsl/mpc8572si-post.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -193,4 +193,6 @@
reg = <0xe0000 0x1000>;
fsl,has-rstcr;
};

/include/ "pq3-power.dtsi"
};
14 changes: 14 additions & 0 deletions arch/powerpc/boot/dts/fsl/p1010si-post.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,23 @@
/include/ "pq3-etsec2-1.dtsi"
/include/ "pq3-etsec2-2.dtsi"

enet0: ethernet@b0000 {
fsl,pmc-handle = <&etsec1_clk>;
};

enet1: ethernet@b1000 {
fsl,pmc-handle = <&etsec2_clk>;
};

enet2: ethernet@b2000 {
fsl,pmc-handle = <&etsec3_clk>;
};

global-utilities@e0000 {
compatible = "fsl,p1010-guts";
reg = <0xe0000 0x1000>;
fsl,has-rstcr;
};

/include/ "pq3-power.dtsi"
};
5 changes: 5 additions & 0 deletions arch/powerpc/boot/dts/fsl/p1020si-post.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -163,21 +163,26 @@

/include/ "pq3-etsec2-0.dtsi"
enet0: enet0_grp2: ethernet@b0000 {
fsl,pmc-handle = <&etsec1_clk>;
};

/include/ "pq3-etsec2-1.dtsi"
enet1: enet1_grp2: ethernet@b1000 {
fsl,pmc-handle = <&etsec2_clk>;
};

/include/ "pq3-etsec2-2.dtsi"
enet2: enet2_grp2: ethernet@b2000 {
fsl,pmc-handle = <&etsec3_clk>;
};

global-utilities@e0000 {
compatible = "fsl,p1020-guts";
reg = <0xe0000 0x1000>;
fsl,has-rstcr;
};

/include/ "pq3-power.dtsi"
};

/include/ "pq3-etsec2-grp2-0.dtsi"
Expand Down
5 changes: 5 additions & 0 deletions arch/powerpc/boot/dts/fsl/p1021si-post.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -159,21 +159,26 @@

/include/ "pq3-etsec2-0.dtsi"
enet0: enet0_grp2: ethernet@b0000 {
fsl,pmc-handle = <&etsec1_clk>;
};

/include/ "pq3-etsec2-1.dtsi"
enet1: enet1_grp2: ethernet@b1000 {
fsl,pmc-handle = <&etsec2_clk>;
};

/include/ "pq3-etsec2-2.dtsi"
enet2: enet2_grp2: ethernet@b2000 {
fsl,pmc-handle = <&etsec3_clk>;
};

global-utilities@e0000 {
compatible = "fsl,p1021-guts";
reg = <0xe0000 0x1000>;
fsl,has-rstcr;
};

/include/ "pq3-power.dtsi"
};

&qe {
Expand Down
7 changes: 5 additions & 2 deletions arch/powerpc/boot/dts/fsl/p1022si-post.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,13 @@
/include/ "pq3-etsec2-0.dtsi"
enet0: enet0_grp2: ethernet@b0000 {
fsl,wake-on-filer;
fsl,pmc-handle = <&etsec1_clk>;
};

/include/ "pq3-etsec2-1.dtsi"
enet1: enet1_grp2: ethernet@b1000 {
fsl,wake-on-filer;
fsl,pmc-handle = <&etsec2_clk>;
};

global-utilities@e0000 {
Expand All @@ -238,9 +240,10 @@
fsl,has-rstcr;
};

/include/ "pq3-power.dtsi"
power@e0070 {
compatible = "fsl,mpc8536-pmc", "fsl,mpc8548-pmc";
reg = <0xe0070 0x20>;
compatible = "fsl,p1022-pmc", "fsl,mpc8536-pmc",
"fsl,mpc8548-pmc";
};

};
Expand Down
17 changes: 13 additions & 4 deletions arch/powerpc/boot/dts/fsl/p2020si-post.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@
compatible = "fsl-usb2-dr-v1.6", "fsl-usb2-dr";
};
/include/ "pq3-etsec1-0.dtsi"
enet0: ethernet@24000 {
fsl,pmc-handle = <&etsec1_clk>;

};
/include/ "pq3-etsec1-timer-0.dtsi"

ptp_clock@24e00 {
Expand All @@ -186,7 +190,15 @@


/include/ "pq3-etsec1-1.dtsi"
enet1: ethernet@25000 {
fsl,pmc-handle = <&etsec2_clk>;
};

/include/ "pq3-etsec1-2.dtsi"
enet2: ethernet@26000 {
fsl,pmc-handle = <&etsec3_clk>;
};

/include/ "pq3-esdhc-0.dtsi"
sdhc@2e000 {
compatible = "fsl,p2020-esdhc", "fsl,esdhc";
Expand All @@ -202,8 +214,5 @@
fsl,has-rstcr;
};

pmc: power@e0070 {
compatible = "fsl,mpc8548-pmc";
reg = <0xe0070 0x20>;
};
/include/ "pq3-power.dtsi"
};
19 changes: 19 additions & 0 deletions arch/powerpc/boot/dts/fsl/pq3-power.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// SPDX-License-Identifier: (GPL-2.0+)
/*
* Copyright 2024 NXP
*/

power@e0070 {
compatible = "fsl,mpc8548-pmc";
reg = <0xe0070 0x20>;

etsec1_clk: soc-clk@24 {
fsl,pmcdr-mask = <0x00000080>;
};
etsec2_clk: soc-clk@25 {
fsl,pmcdr-mask = <0x00000040>;
};
etsec3_clk: soc-clk@26 {
fsl,pmcdr-mask = <0x00000020>;
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/fsl/t1024rdb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
board-control@2,0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "fsl,t1024-cpld";
compatible = "fsl,t1024-cpld", "fsl,deepsleep-cpld";
reg = <3 0 0x300>;
ranges = <0 3 0 0x300>;
bank-width = <1>;
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/fsl/t1040rdb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@

ifc: localbus@ffe124000 {
cpld@3,0 {
compatible = "fsl,t1040rdb-cpld";
compatible = "fsl,t104xrdb-cpld", "fsl,deepsleep-cpld";
};
};
};
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/fsl/t1042rdb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@

ifc: localbus@ffe124000 {
cpld@3,0 {
compatible = "fsl,t1042rdb-cpld";
compatible = "fsl,t104xrdb-cpld", "fsl,deepsleep-cpld";
};
};
};
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/fsl/t1042rdb_pi.dts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

ifc: localbus@ffe124000 {
cpld@3,0 {
compatible = "fsl,t1042rdb_pi-cpld";
compatible = "fsl,t104xrdb-cpld", "fsl,deepsleep-cpld";
};
};

Expand Down

0 comments on commit b12ba09

Please sign in to comment.