Skip to contentSkip to conversation

powerpc/85xx: Add power management support for MPC85xxMDS boards

PATCH Applied Anton Vorontsov 1 participant 1 message Aug 27, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 5/5 powerpc/85xx: Add power management support for MPC85xxMDS boards

- Add power management controller nodes;
- Add interrupts for RTC nodes, the RTC interrupt may be used as a wakeup source;

---
 arch/powerpc/boot/dts/mpc8568mds.dts      |   15 +++++++++++++--
 arch/powerpc/boot/dts/mpc8569mds.dts      |   13 ++++++++++++-
 arch/powerpc/platforms/85xx/mpc85xx_mds.c |    1 +
 3 files changed, 26 insertions(+), 3 deletions(-)
arch/powerpc/boot/dts/mpc8568mds.dts +13 -2
index 00c2bbd..4d18ca3 100644
@@ -107,6 +107,8 @@
 			rtc@68 {
 				compatible = "dallas,ds1374";
 				reg = <0x68>;
+				interrupts = <3 1>;
+				interrupt-parent = <&mpic>;
 			};
 		};
 
@@ -252,10 +254,19 @@
 			interrupt-parent = <&mpic>;
 		};
 
-		global-utilities@e0000 {	//global utilities block
-			compatible = "fsl,mpc8548-guts";
+		global-utilities@e0000 {
+			#address-cells = <1>;
+			#size-cells = <1>;
+			compatible = "fsl,mpc8568-guts", "fsl,mpc8548-guts";
 			reg = <0xe0000 0x1000>;
+			ranges = <0 0xe0000 0x1000>;
 			fsl,has-rstcr;
+
+			pmc: power@80 {
+				compatible = "fsl,mpc8568-pmc",
+					     "fsl,mpc8548-pmc";
+				reg = <0x80 0x10>;
+			};
 		};
 
 		serial1: serial@4600 {
arch/powerpc/boot/dts/mpc8569mds.dts +12 -1
index 880f896..88d96b8 100644
@@ -171,6 +171,8 @@
 			rtc@68 {
 				compatible = "dallas,ds1374";
 				reg = <0x68>;
+				interrupts = <3 1>;
+				interrupt-parent = <&mpic>;
 			};
 		};
 
@@ -304,9 +306,18 @@
 		};
 
 		global-utilities@e0000 {
-			compatible = "fsl,mpc8569-guts";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			compatible = "fsl,mpc8569-guts", "fsl,mpc8548-guts";
 			reg = <0xe0000 0x1000>;
+			ranges = <0 0xe0000 0x1000>;
 			fsl,has-rstcr;
+
+			pmc: power@80 {
+				compatible = "fsl,mpc8569-pmc",
+					     "fsl,mpc8548-pmc";
+				reg = <0x80 0x10>;
+			};
 		};
 
 		par_io@e0100 {
arch/powerpc/platforms/85xx/mpc85xx_mds.c +1 -0
index 20a61d0..995ddad 100644
@@ -300,6 +300,7 @@ static struct of_device_id mpc85xx_ids[] = {
 	{ .compatible = "fsl,qe", },
 	{ .compatible = "gianfar", },
 	{ .compatible = "fsl,rapidio-delta", },
+	{ .compatible = "fsl,mpc8548-guts", },
 	{},
 };
 
Signature · 1 line
1.6.3.3