Skip to contentSkip to conversation

powerpc/pm: Fix suspend=n in menuconfig for e500mc platforms.

PATCH Superseded Ran Wang 3 participants 7 messages Mar 29, 2018 – Apr 10, 2018

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Ran Wang

author
#0 lore raw

PATCH 1/5 powerpc/pm: Fix suspend=n in menuconfig for e500mc platforms.

Also, unselect FSL_PMC which is for older platfroms instead.

---
 arch/powerpc/Kconfig |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
arch/powerpc/Kconfig +1 -3
index 73ce5dd..ed60c83 100644
@@ -316,7 +316,7 @@ config ARCH_HIBERNATION_POSSIBLE
 config ARCH_SUSPEND_POSSIBLE
 	def_bool y
 	depends on ADB_PMU || PPC_EFIKA || PPC_LITE5200 || PPC_83xx || \
-		   (PPC_85xx && !PPC_E500MC) || PPC_86xx || PPC_PSERIES \
+		   FSL_SOC_BOOKE || PPC_86xx || PPC_PSERIES \
 		   || 44x || 40x
 
 config PPC_DCR_NATIVE
@@ -940,8 +940,6 @@ config FSL_PCI
 
 config FSL_PMC
 	bool
-	default y
-	depends on SUSPEND && (PPC_85xx || PPC_86xx)
 	help
 	  Freescale MPC85xx/MPC86xx power management controller support
 	  (suspend/resume). For MPC83xx see platforms/83xx/suspend.c
Signature · 1 line
1.7.1
author
#1 lore raw

PATCH 2/5 drivers/soc/fsl: add EPU FSM configuration for deep sleep

In the last stage of deep sleep, software will trigger a Finite State Machine (FSM) to control the hardware procedure, such a board isolation, killing PLLs, removing power, and so on.

When the system is waked up by an interrupt, the FSM controls the hardware to complete the early resume procedure.

This patch configure the EPU FSM preparing for deep sleep.

---
 drivers/soc/fsl/Kconfig     |    7 +
 drivers/soc/fsl/Makefile    |    1 +
 drivers/soc/fsl/sleep_fsm.c |  279 +++++++++++++++++++++++++++++++++++++++++++
 drivers/soc/fsl/sleep_fsm.h |  130 ++++++++++++++++++++
 4 files changed, 417 insertions(+), 0 deletions(-)
 create mode 100644 drivers/soc/fsl/sleep_fsm.c
 create mode 100644 drivers/soc/fsl/sleep_fsm.h
drivers/soc/fsl/Kconfig +7 -0
index 7a9fb9b..4222bd5 100644
@@ -16,3 +16,10 @@ config FSL_GUTS
 	  Initially only reading SVR and registering soc device are supported.
 	  Other guts accesses, such as reading RCW, should eventually be moved
 	  into this driver as well.
+
+config FSL_SLEEP_FSM
+	bool
+	help
+	  This driver configures a hardware FSM (Finite State Machine) for deep sleep.
+	  The FSM is used to finish clean-ups at the last stage of system entering deep
+	  sleep, and also wakes up system when a wake up event happens.
drivers/soc/fsl/Makefile +1 -0
index 44b3beb..28c38c3 100644
@@ -6,3 +6,4 @@ obj-$(CONFIG_FSL_DPAA)                 += qbman/
 obj-$(CONFIG_QUICC_ENGINE)		+= qe/
 obj-$(CONFIG_CPM)			+= qe/
 obj-$(CONFIG_FSL_GUTS)			+= guts.o
+obj-$(CONFIG_FSL_SLEEP_FSM)	+= sleep_fsm.o
drivers/soc/fsl/sleep_fsm.c new file +279 -0

279 lines not on this page · raw message

drivers/soc/fsl/sleep_fsm.h new file +130 -0

130 lines not on this page · raw message

Signature · 1 line
1.7.1
author
#2 lore raw

PATCH 3/5 powerpc/cache: add cache flush operation for various e500

In reply to Ran Wang

Various e500 core have different cache architecture, so they need different cache flush operations. Therefore, add a callback function cpu_flush_caches to the struct cpu_spec. The cache flush operation for the specific kind of e500 is selected at init time. The callback function will flush all caches in the current cpu.

---
 arch/powerpc/include/asm/cputable.h       |   12 ++++
 arch/powerpc/kernel/asm-offsets.c         |    3 +
 arch/powerpc/kernel/cpu_setup_fsl_booke.S |   81 +++++++++++++++++++++++++++++
 arch/powerpc/kernel/cputable.c            |    4 ++
 4 files changed, 100 insertions(+), 0 deletions(-)
arch/powerpc/include/asm/cputable.h +12 -0
index a2c5c95..364e6cf 100644
@@ -44,6 +44,14 @@ enum powerpc_pmc_type {
 extern int machine_check_e500(struct pt_regs *regs);
 extern int machine_check_e200(struct pt_regs *regs);
 extern int machine_check_47x(struct pt_regs *regs);
+
+#if defined(CONFIG_E500) || defined(CONFIG_PPC_E500MC)
+extern void __flush_caches_e500v2(void);
+extern void __flush_caches_e500mc(void);
+extern void __flush_caches_e5500(void);
+extern void __flush_caches_e6500(void);
+#endif
+
 int machine_check_8xx(struct pt_regs *regs);
 
 extern void cpu_down_flush_e500v2(void);
@@ -70,6 +78,10 @@ struct cpu_spec {
 	/* flush caches inside the current cpu */
 	void (*cpu_down_flush)(void);
 
+#if defined(CONFIG_E500) || defined(CONFIG_PPC_E500MC)
+	/* flush caches of the cpu which is running the function */
+	void (*cpu_flush_caches)(void);
+#endif
 	/* number of performance monitor counters */
 	unsigned int	num_pmcs;
 	enum powerpc_pmc_type pmc_type;
arch/powerpc/kernel/asm-offsets.c +3 -0
index ea5eb91..cb4b869 100644
@@ -351,6 +351,9 @@ int main(void)
 	OFFSET(CPU_SPEC_FEATURES, cpu_spec, cpu_features);
 	OFFSET(CPU_SPEC_SETUP, cpu_spec, cpu_setup);
 	OFFSET(CPU_SPEC_RESTORE, cpu_spec, cpu_restore);
+#if defined(CONFIG_E500) || defined(CONFIG_PPC_E500MC)
+	OFFSET(CPU_FLUSH_CACHES, cpu_spec, cpu_flush_caches);
+#endif
 
 	OFFSET(pbe_address, pbe, address);
 	OFFSET(pbe_orig_address, pbe, orig_address);
arch/powerpc/kernel/cpu_setup_fsl_booke.S +81 -0

84 lines not on this page · raw message

arch/powerpc/kernel/cputable.c +4 -0
index c40a9fc..eec3ca7 100644
@@ -2100,6 +2100,7 @@
 		.machine_check		= machine_check_e500,
 		.platform		= "ppc8548",
 		.cpu_down_flush		= cpu_down_flush_e500v2,
+		.cpu_flush_caches	= __flush_caches_e500v2,
 	},
 #else
 	{	/* e500mc */
@@ -2120,6 +2121,7 @@
 		.machine_check		= machine_check_e500mc,
 		.platform		= "ppce500mc",
 		.cpu_down_flush		= cpu_down_flush_e500mc,
+		.cpu_flush_caches	= __flush_caches_e500mc,
 	},
 #endif /* CONFIG_PPC_E500MC */
 #endif /* CONFIG_PPC32 */
@@ -2145,6 +2147,7 @@
 		.machine_check		= machine_check_e500mc,
 		.platform		= "ppce5500",
 		.cpu_down_flush		= cpu_down_flush_e5500,
+		.cpu_flush_caches	= __flush_caches_e5500,
 	},
 	{	/* e6500 */
 		.pvr_mask		= 0xffff0000,
@@ -2168,6 +2171,7 @@
 		.machine_check		= machine_check_e500mc,
 		.platform		= "ppce6500",
 		.cpu_down_flush		= cpu_down_flush_e6500,
+		.cpu_flush_caches	= __flush_caches_e6500,
 	},
 #endif /* CONFIG_PPC_E500MC */
 #ifdef CONFIG_PPC32
Signature · 1 line
1.7.1
author
#3 lore raw

PATCH 4/5 powerpc/pm: add sleep and deep sleep on QorIQ SoCs

In reply to Ran Wang

In sleep mode, the clocks of CPU core and unused IP blocks are turned off (IP blocks allowed to wake up system will running).

Some QorIQ SoCs like MPC8536, P1022 and T104x, have deep sleep PM mode in addtion to the sleep PM mode. While in deep sleep mode, additionally, the power supply is removed from CPU core and most IP blocks. Only the blocks needed to wake up the chip out of deep sleep are ON.

This feature supports 32-bit and 36-bit address space.

The sleep mode is equal to the Standby state in Linux. The deep sleep mode is equal to the Suspend-to-RAM state of Linux Power Management.
Command to enter sleep mode.
echo standby > /sys/power/state
Command to enter deep sleep mode.
echo mem > /sys/power/state

---
 arch/powerpc/include/asm/cacheflush.h         |    7 +
 arch/powerpc/include/asm/fsl_pm.h             |   31 +
 arch/powerpc/kernel/Makefile                  |    1 +
 arch/powerpc/kernel/fsl_booke_entry_mapping.S |   10 +
 arch/powerpc/kernel/fsl_pm.c                  |   49 +
 arch/powerpc/kernel/head_64.S                 |    2 +-
 arch/powerpc/platforms/85xx/Kconfig           |    6 +
 arch/powerpc/platforms/85xx/Makefile          |    2 +
 arch/powerpc/platforms/85xx/deepsleep.c       |  349 ++++++++
 arch/powerpc/platforms/85xx/qoriq_pm.c        |  223 +++++
 arch/powerpc/platforms/85xx/sleep.S           | 1192 +++++++++++++++++++++++++
 arch/powerpc/platforms/86xx/Kconfig           |    1 +
 arch/powerpc/sysdev/fsl_pmc.c                 |  176 ++++-
 arch/powerpc/sysdev/fsl_soc.c                 |   31 +
 arch/powerpc/sysdev/fsl_soc.h                 |   18 +
 15 files changed, 2078 insertions(+), 20 deletions(-)
 create mode 100644 arch/powerpc/kernel/fsl_pm.c
 create mode 100644 arch/powerpc/platforms/85xx/deepsleep.c
 create mode 100644 arch/powerpc/platforms/85xx/qoriq_pm.c
 create mode 100644 arch/powerpc/platforms/85xx/sleep.S
arch/powerpc/include/asm/cacheflush.h +7 -0
index b77f036..a5411af 100644
@@ -31,6 +31,13 @@
 #define flush_dcache_mmap_lock(mapping)		do { } while (0)
 #define flush_dcache_mmap_unlock(mapping)	do { } while (0)
 
+extern void __flush_disable_L1(void);
+#ifdef CONFIG_FSL_SOC_BOOKE
+extern void flush_dcache_L1(void);
+#else
+#define flush_dcache_L1()			do { } while (0)
+#endif
+
 extern void flush_icache_range(unsigned long, unsigned long);
 extern void flush_icache_user_range(struct vm_area_struct *vma,
 				    struct page *page, unsigned long addr,
arch/powerpc/include/asm/fsl_pm.h +31 -0
index 47df55e..510e5d2 100644
@@ -11,6 +11,9 @@
 #ifndef __PPC_FSL_PM_H
 #define __PPC_FSL_PM_H
 
+#ifndef __ASSEMBLY__
+#include <linux/suspend.h>
+
 #define E500_PM_PH10	1
 #define E500_PM_PH15	2
 #define E500_PM_PH20	3
@@ -46,6 +49,34 @@ struct fsl_pm_ops {
 
 extern const struct fsl_pm_ops *qoriq_pm_ops;
 
+struct fsm_reg_vals {
+	u32 offset;
+	u32 value;
+};
+
+void fsl_fsm_setup(void __iomem *base, struct fsm_reg_vals *val);
+void fsl_epu_setup_default(void __iomem *epu_base);
+void fsl_npc_setup_default(void __iomem *npc_base);
+void fsl_fsm_clean(void __iomem *base, struct fsm_reg_vals *val);
+void fsl_epu_clean_default(void __iomem *epu_base);
+
+extern int fsl_dp_iomap(void);
+extern void fsl_dp_iounmap(void);
+
+extern int fsl_enter_epu_deepsleep(void);
+extern void fsl_dp_enter_low(void __iomem *ccsr_base, void __iomem *dcsr_base,
+			     void __iomem *pld_base, int pld_flag);
+extern void fsl_booke_deep_sleep_resume(void);
+
 int __init fsl_rcpm_init(void);
 
+void set_pm_suspend_state(suspend_state_t state);
+suspend_state_t pm_suspend_state(void);
+
+void fsl_set_power_except(struct device *dev, int on);
+#endif	/* __ASSEMBLY__ */
+
+#define T1040QDS_TETRA_FLAG	1
+#define T104xRDB_CPLD_FLAG	2
+
 #endif /* __PPC_FSL_PM_H */
arch/powerpc/kernel/Makefile +1 -0
index 1b6bc7f..f191269 100644
@@ -62,6 +62,7 @@ obj-$(CONFIG_EEH)              += eeh.o eeh_pe.o eeh_dev.o eeh_cache.o \
 obj-$(CONFIG_GENERIC_TBSYNC)	+= smp-tbsync.o
 obj-$(CONFIG_CRASH_DUMP)	+= crash_dump.o
 obj-$(CONFIG_FA_DUMP)		+= fadump.o
+obj-$(CONFIG_FSL_SOC)		+= fsl_pm.o
 ifeq ($(CONFIG_PPC32),y)
 obj-$(CONFIG_E500)		+= idle_e500.o
 endif
arch/powerpc/kernel/fsl_booke_entry_mapping.S +10 -0
index ea06528..0e3484d 100644
@@ -174,6 +174,10 @@ skpinv:	addi	r6,r6,1				/* Increment */
 	lis	r6,MAS2_VAL(PAGE_OFFSET, BOOK3E_PAGESZ_64M, M_IF_NEEDED)@h
 	ori	r6,r6,MAS2_VAL(PAGE_OFFSET, BOOK3E_PAGESZ_64M, M_IF_NEEDED)@l
 	mtspr	SPRN_MAS2,r6
+#ifdef ENTRY_DEEPSLEEP_SETUP
+	LOAD_REG_IMMEDIATE(r8, MEMORY_START)
+	ori	r8,r8,(MAS3_SX|MAS3_SW|MAS3_SR)
+#endif
 	mtspr	SPRN_MAS3,r8
 	tlbwe
 
@@ -216,12 +220,18 @@ next_tlb_setup:
 	#error You need to specify the mapping or not use this at all.
 #endif
 
+#ifdef ENTRY_DEEPSLEEP_SETUP
+	LOAD_REG_ADDR(r6, 2f)
+	mfmsr	r7
+	rlwinm	r7,r7,0,~(MSR_IS|MSR_DS)
+#else
 	lis	r7,MSR_KERNEL at h
 	ori	r7,r7,MSR_KERNEL at l
 	bl	1f			/* Find our address */
 1:	mflr	r9
 	rlwimi	r6,r9,0,20,31
 	addi	r6,r6,(2f - 1b)
+#endif
 	mtspr	SPRN_SRR0,r6
 	mtspr	SPRN_SRR1,r7
 	rfi				/* start execution out of TLB1[0] entry */
arch/powerpc/kernel/fsl_pm.c new file +49 -0

49 lines not on this page · raw message

arch/powerpc/kernel/head_64.S +1 -1
index a61151a..3f0b397 100644
@@ -863,7 +863,7 @@ _GLOBAL(start_secondary_resume)
 /*
  * This subroutine clobbers r11 and r12
  */
-enable_64b_mode:
+_GLOBAL(enable_64b_mode)
 	mfmsr	r11			/* grab the current MSR */
 #ifdef CONFIG_PPC_BOOK3E
 	oris	r11,r11,0x8000		/* CM bit set, we'll set ICM later */
arch/powerpc/platforms/85xx/Kconfig +6 -0
index 68920d4..b2fbefe 100644
@@ -10,6 +10,8 @@ menuconfig FSL_SOC_BOOKE
 	select SERIAL_8250_EXTENDED if SERIAL_8250
 	select SERIAL_8250_SHARE_IRQ if SERIAL_8250
 	select FSL_CORENET_RCPM if PPC_E500MC
+	select FSL_QORIQ_PM if SUSPEND && PPC_E500MC
+	select FSL_PMC if SUSPEND && !PPC_E500MC
 	default y
 
 if FSL_SOC_BOOKE
@@ -292,3 +294,7 @@ endif # FSL_SOC_BOOKE
 
 config TQM85xx
 	bool
+
+config FSL_QORIQ_PM
+	bool
+	select FSL_SLEEP_FSM
arch/powerpc/platforms/85xx/Makefile +2 -0
index d1dd0dc..8e9f369 100644
@@ -3,7 +3,9 @@
 # Makefile for the PowerPC 85xx linux kernel.
 #
 obj-$(CONFIG_SMP) += smp.o
+obj-$(CONFIG_SUSPEND)		  += sleep.o
 obj-$(CONFIG_FSL_PMC)		  += mpc85xx_pm_ops.o
+obj-$(CONFIG_FSL_QORIQ_PM)	  += qoriq_pm.o deepsleep.o
 
 obj-y += common.o
 
arch/powerpc/platforms/85xx/deepsleep.c new file +349 -0

349 lines not on this page · raw message

arch/powerpc/platforms/85xx/qoriq_pm.c new file +223 -0

223 lines not on this page · raw message

arch/powerpc/platforms/85xx/sleep.S new file +1192 -0

1,192 lines not on this page · raw message

arch/powerpc/platforms/86xx/Kconfig +1 -0
index bcd179d..0ce5370 100644
@@ -5,6 +5,7 @@ menuconfig PPC_86xx
 	depends on 6xx
 	select FSL_SOC
 	select ALTIVEC
+	select FSL_PMC if SUSPEND
 	help
 	  The Freescale E600 SoCs have 74xx cores.
 
arch/powerpc/sysdev/fsl_pmc.c +157 -19

211 lines not on this page · raw message

arch/powerpc/sysdev/fsl_soc.c +31 -0
index 1f614fb..b082584 100644
@@ -46,6 +46,37 @@
 extern void init_fec_ioports(struct fs_platform_info*);
 extern void init_smc_ioports(struct fs_uart_platform_info*);
 static phys_addr_t immrbase = -1;
+static phys_addr_t dcsrbase = -1;
+
+phys_addr_t get_dcsrbase(void)
+{
+	struct device_node *np;
+	const __be32 *prop;
+	int size;
+	u32 naddr;
+
+	if (dcsrbase != -1)
+		return dcsrbase;
+
+	np = of_find_compatible_node(NULL, NULL, "fsl,dcsr");
+	if (!np)
+		return -1;
+
+	prop = of_get_property(np, "#address-cells", &size);
+	if (prop && size == 4)
+		naddr = be32_to_cpup(prop);
+	else
+		naddr = 2;
+
+	prop = of_get_property(np, "ranges", NULL);
+	if (prop)
+		dcsrbase = of_translate_address(np, prop + naddr);
+
+	of_node_put(np);
+
+	return dcsrbase;
+}
+EXPORT_SYMBOL(get_dcsrbase);
 
 phys_addr_t get_immrbase(void)
 {
arch/powerpc/sysdev/fsl_soc.h +18 -0
index db11b06..674ed67 100644
@@ -7,6 +7,7 @@
 
 struct spi_device;
 
+extern phys_addr_t get_dcsrbase(void);
 extern phys_addr_t get_immrbase(void);
 #if defined(CONFIG_CPM) || defined(CONFIG_QUICC_ENGINE)
 extern u32 get_brgfreq(void);
@@ -44,5 +45,22 @@ struct platform_diu_data_ops {
 void __noreturn fsl_hv_restart(char *cmd);
 void __noreturn fsl_hv_halt(void);
 
+/*
+ * Cast the ccsrbar to 64-bit parameter so that the assembly
+ * code can be compatible with both 32-bit & 36-bit.
+ */
+extern void mpc85xx_enter_deep_sleep(u64 ccsrbar, u32 powmgtreq);
+
+#ifdef CONFIG_FSL_PMC
+int mpc85xx_pmc_set_wake(struct device *dev, bool enable);
+void mpc85xx_pmc_set_lossless_ethernet(int enable);
+#else
+static inline int mpc85xx_pmc_set_wake(struct device *dev, bool enable)
+{
+	return -ENODEV;
+}
+#define mpc85xx_pmc_set_lossless_ethernet(enable)	do { } while (0)
+#endif
+
 #endif
 #endif
Signature · 1 line
1.7.1
author
#5 lore raw

PATCH 5/5 powerpc:dts:pm: add power management node

In reply to Ran Wang

Enable Power Management feature on device tree, including MPC8536, MPC8544, MPC8548, MPC8572, P1010, P1020, P1021, P1022, P2020, P2041, P3041, T104X, T1024.

---
 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
arch/powerpc/boot/dts/fsl/mpc8536si-post.dtsi +12 -2
index 4193570..fba40a1 100644
@@ -199,6 +199,10 @@
 
 /include/ "pq3-dma-0.dtsi"
 /include/ "pq3-etsec1-0.dtsi"
+	enet0: ethernet at 24000 {
+		fsl,wake-on-filer;
+		fsl,pmc-handle = <&etsec1_clk>;
+	};
 /include/ "pq3-etsec1-timer-0.dtsi"
 
 	usb at 22000 {
@@ -222,9 +226,10 @@
 	};
 
 /include/ "pq3-etsec1-2.dtsi"
-
-	ethernet at 26000 {
+	enet2: ethernet at 26000 {
 		cell-index = <1>;
+		fsl,wake-on-filer;
+		fsl,pmc-handle = <&etsec3_clk>;
 	};
 
 	usb at 2b000 {
@@ -249,4 +254,9 @@
 		reg = <0xe0000 0x1000>;
 		fsl,has-rstcr;
 	};
+
+/include/ "pq3-power.dtsi"
+	power at e0070 {
+		compatible = "fsl,mpc8536-pmc", "fsl,mpc8548-pmc";
+	};
 };
arch/powerpc/boot/dts/fsl/mpc8544si-post.dtsi +2 -0
index b68eb11..ea7416a 100644
@@ -188,4 +188,6 @@
 		reg = <0xe0000 0x1000>;
 		fsl,has-rstcr;
 	};
+
+/include/ "pq3-power.dtsi"
 };
arch/powerpc/boot/dts/fsl/mpc8548si-post.dtsi +2 -0
index 579d76c..dddb737 100644
@@ -156,4 +156,6 @@
 		reg = <0xe0000 0x1000>;
 		fsl,has-rstcr;
 	};
+
+/include/ "pq3-power.dtsi"
 };
arch/powerpc/boot/dts/fsl/mpc8572si-post.dtsi +2 -0
index 49294cf..40a6cff 100644
@@ -193,4 +193,6 @@
 		reg = <0xe0000 0x1000>;
 		fsl,has-rstcr;
 	};
+
+/include/ "pq3-power.dtsi"
 };
arch/powerpc/boot/dts/fsl/p1010si-post.dtsi +8 -0
index 1b4aafc..47b62a8 100644
@@ -173,6 +173,8 @@
 
 /include/ "pq3-etsec2-0.dtsi"
 	enet0: ethernet at b0000 {
+		fsl,pmc-handle = <&etsec1_clk>;
+
 		queue-group at b0000 {
 			fsl,rx-bit-map = <0xff>;
 			fsl,tx-bit-map = <0xff>;
@@ -181,6 +183,8 @@
 
 /include/ "pq3-etsec2-1.dtsi"
 	enet1: ethernet at b1000 {
+		fsl,pmc-handle = <&etsec2_clk>;
+
 		queue-group at b1000 {
 			fsl,rx-bit-map = <0xff>;
 			fsl,tx-bit-map = <0xff>;
@@ -189,6 +193,8 @@
 
 /include/ "pq3-etsec2-2.dtsi"
 	enet2: ethernet at b2000 {
+		fsl,pmc-handle = <&etsec3_clk>;
+
 		queue-group at b2000 {
 			fsl,rx-bit-map = <0xff>;
 			fsl,tx-bit-map = <0xff>;
@@ -201,4 +207,6 @@
 		reg = <0xe0000 0x1000>;
 		fsl,has-rstcr;
 	};
+
+/include/ "pq3-power.dtsi"
 };
arch/powerpc/boot/dts/fsl/p1020si-post.dtsi +5 -0
index 642dc3a..cc4c746 100644
@@ -163,14 +163,17 @@
 
 /include/ "pq3-etsec2-0.dtsi"
 	enet0: enet0_grp2: ethernet at b0000 {
+		fsl,pmc-handle = <&etsec1_clk>;
 	};
 
 /include/ "pq3-etsec2-1.dtsi"
 	enet1: enet1_grp2: ethernet at b1000 {
+		fsl,pmc-handle = <&etsec2_clk>;
 	};
 
 /include/ "pq3-etsec2-2.dtsi"
 	enet2: enet2_grp2: ethernet at b2000 {
+		fsl,pmc-handle = <&etsec3_clk>;
 	};
 
 	global-utilities at e0000 {
@@ -178,6 +181,8 @@
 		reg = <0xe0000 0x1000>;
 		fsl,has-rstcr;
 	};
+
+/include/ "pq3-power.dtsi"
 };
 
 /include/ "pq3-etsec2-grp2-0.dtsi"
arch/powerpc/boot/dts/fsl/p1021si-post.dtsi +5 -0
index 407cb5f..378195d 100644
@@ -159,14 +159,17 @@
 
 /include/ "pq3-etsec2-0.dtsi"
 	enet0: enet0_grp2: ethernet at b0000 {
+		fsl,pmc-handle = <&etsec1_clk>;
 	};
 
 /include/ "pq3-etsec2-1.dtsi"
 	enet1: enet1_grp2: ethernet at b1000 {
+		fsl,pmc-handle = <&etsec2_clk>;
 	};
 
 /include/ "pq3-etsec2-2.dtsi"
 	enet2: enet2_grp2: ethernet at b2000 {
+		fsl,pmc-handle = <&etsec3_clk>;
 	};
 
 	global-utilities at e0000 {
@@ -174,6 +177,8 @@
 		reg = <0xe0000 0x1000>;
 		fsl,has-rstcr;
 	};
+
+/include/ "pq3-power.dtsi"
 };
 
 &qe {
arch/powerpc/boot/dts/fsl/p1022si-post.dtsi +6 -3
index 5f51b7b..6ac21e8 100644
@@ -225,11 +225,13 @@
 /include/ "pq3-etsec2-0.dtsi"
 	enet0: enet0_grp2: ethernet at b0000 {
 		fsl,wake-on-filer;
+		fsl,pmc-handle = <&etsec1_clk>;
 	};
 
 /include/ "pq3-etsec2-1.dtsi"
 	enet1: enet1_grp2: ethernet at b1000 {
 		fsl,wake-on-filer;
+		fsl,pmc-handle = <&etsec2_clk>;
 	};
 
 	global-utilities at e0000 {
@@ -238,9 +240,10 @@
 		fsl,has-rstcr;
 	};
 
-	power at e0070{
-		compatible = "fsl,mpc8536-pmc", "fsl,mpc8548-pmc";
-		reg = <0xe0070 0x20>;
+/include/ "pq3-power.dtsi"
+	power at e0070 {
+		compatible = "fsl,p1022-pmc", "fsl,mpc8536-pmc",
+				"fsl,mpc8548-pmc";
 	};
 
 };
arch/powerpc/boot/dts/fsl/p2020si-post.dtsi +14 -0
index 884e01b..2c4787c 100644
@@ -175,6 +175,10 @@
 		compatible = "fsl-usb2-dr-v1.6", "fsl-usb2-dr";
 	};
 /include/ "pq3-etsec1-0.dtsi"
+	enet0: ethernet at 24000 {
+		fsl,pmc-handle = <&etsec1_clk>;
+
+	};
 /include/ "pq3-etsec1-timer-0.dtsi"
 
 	ptp_clock at 24e00 {
@@ -183,7 +187,15 @@
 
 
 /include/ "pq3-etsec1-1.dtsi"
+	enet1: ethernet at 25000 {
+		fsl,pmc-handle = <&etsec2_clk>;
+	};
+
 /include/ "pq3-etsec1-2.dtsi"
+	enet2: ethernet at 26000 {
+		fsl,pmc-handle = <&etsec3_clk>;
+	};
+
 /include/ "pq3-esdhc-0.dtsi"
 	sdhc at 2e000 {
 		compatible = "fsl,p2020-esdhc", "fsl,esdhc";
@@ -198,4 +210,6 @@
 		reg = <0xe0000 0x1000>;
 		fsl,has-rstcr;
 	};
+
+/include/ "pq3-power.dtsi"
 };
arch/powerpc/boot/dts/fsl/pq3-power.dtsi new file +48 -0

48 lines not on this page · raw message

arch/powerpc/boot/dts/fsl/t1024rdb.dts +1 -1
index 73a6453..95fc694 100644
@@ -91,7 +91,7 @@
 		board-control at 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>;
arch/powerpc/boot/dts/fsl/t1040rdb.dts +1 -1
index 65ff34c..825665c 100644
@@ -70,7 +70,7 @@
 
 	ifc: localbus at ffe124000 {
 		cpld at 3,0 {
-			compatible = "fsl,t1040rdb-cpld";
+			compatible = "fsl,t104xrdb-cpld", "fsl,deepsleep-cpld";
 		};
 	};
 };
arch/powerpc/boot/dts/fsl/t1042rdb.dts +1 -1
index 3ebb712..0997643 100644
@@ -68,7 +68,7 @@
 
 	ifc: localbus at ffe124000 {
 		cpld at 3,0 {
-			compatible = "fsl,t1042rdb-cpld";
+			compatible = "fsl,t104xrdb-cpld", "fsl,deepsleep-cpld";
 		};
 	};
 };
arch/powerpc/boot/dts/fsl/t1042rdb_pi.dts +1 -1
index 8ec3ff4..b10cab1 100644
@@ -41,7 +41,7 @@
 
 	ifc: localbus at ffe124000 {
 		cpld at 3,0 {
-			compatible = "fsl,t1042rdb_pi-cpld";
+			compatible = "fsl,t104xrdb-cpld", "fsl,deepsleep-cpld";
 		};
 	};
 
Signature · 1 line
1.7.1
#4 lore raw

Re: [PATCH 4/5] powerpc/pm: add sleep and deep sleep on QorIQ SoCs

In reply to Ran Wang
Thank you for the patch! Perhaps something to improve:

Hi Ran,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on powerpc/next]
[also build test WARNING on v4.16 next-20180329]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Ran-Wang/powerpc-pm-Fix-suspend-n-in-menuconfig-for-e500mc-platforms/20180330-072848
base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc-ppc64e_defconfig (attached as .config)
compiler: powerpc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0

reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=powerpc

All warnings (new ones prefixed by >>):

arch/powerpc/platforms/85xx/sleep.S: Assembler messages:

>> arch/powerpc/platforms/85xx/sleep.S:1174: Warning: invalid register expression

vim +1174 arch/powerpc/platforms/85xx/sleep.S

1137
1138 _GLOBAL(fsl_booke_deep_sleep_resume)
1139 /* disable interrupts */
1140 FSL_DIS_ALL_IRQ
1141
1142 /* switch to 64-bit mode */
1143 bl .enable_64b_mode
1144
1145 /* set TOC pointer */
1146 bl .relative_toc
1147
1148 /* setup initial TLBs, switch to kernel space ... */
1149 bl .start_initialization_book3e
1150
1151 /* address space changed, set TOC pointer again */
1152 bl .relative_toc
1153
1154 /* call a cpu state restore handler */
1155 LOAD_REG_ADDR(r23, cur_cpu_spec)
1156 ld r23,0(r23)
1157 ld r23,CPU_SPEC_RESTORE(r23)
1158 cmpdi 0,r23,0
1159 beq 1f
1160 ld r23,0(r23)
1161 mtctr r23
1162 bctrl
1163 1:
1164 LOAD_REG_ADDR(r3, regs_buffer)
1165 bl e5500_cpu_state_restore
1166
1167 /* Load each CAM entry */
1168 LOAD_REG_ADDR(r3, tlbcam_index)
1169 lwz r3, 0(r3)
1170 mtctr r3
1171 li r0, 0
1172 3: mr r3, r0
1173 bl loadcam_entry

> 1174		addi	r0, r0, 1

1175 bdnz 3b
1176
1177 /* restore return address */
1178 LOAD_REG_ADDR(r3, buf_tmp)
1179 ld r4, 16(r3)
1180 mtspr SPRN_TCR, r4
1181 ld r4, 0(r3)
1182 mtlr r4
1183 ld r4, 8(r3)
1184 mtmsr r4
1185 ld r4, 24(r3)
1186 mtcr r4
1187
1188 blr
1189

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 21649 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180403/ea7e7515/attachment-0001.gz>

#6 lore raw

Re: [PATCH 5/5] powerpc:dts:pm: add power management node

In reply to Ran Wang
Quoted 3 lines · Ran Wang

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.

Quoted 375 lines
---
 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
arch/powerpc/boot/dts/fsl/mpc8536si-post.dtsi +12 -2
index 4193570..fba40a1 100644
@@ -199,6 +199,10 @@
 
 /include/ "pq3-dma-0.dtsi"
 /include/ "pq3-etsec1-0.dtsi"
+       enet0: ethernet at 24000 {
+               fsl,wake-on-filer;
+               fsl,pmc-handle = <&etsec1_clk>;
+       };
 /include/ "pq3-etsec1-timer-0.dtsi"
 
        usb at 22000 {
@@ -222,9 +226,10 @@
        };
 
 /include/ "pq3-etsec1-2.dtsi"
-
-       ethernet at 26000 {
+       enet2: ethernet at 26000 {
                cell-index = <1>;
+               fsl,wake-on-filer;
+               fsl,pmc-handle = <&etsec3_clk>;
        };
 
        usb at 2b000 {
@@ -249,4 +254,9 @@
                reg = <0xe0000 0x1000>;
                fsl,has-rstcr;
        };
+
+/include/ "pq3-power.dtsi"
+       power at e0070 {
+               compatible = "fsl,mpc8536-pmc", "fsl,mpc8548-pmc";
+       };
 };
arch/powerpc/boot/dts/fsl/mpc8544si-post.dtsi +2 -0
index b68eb11..ea7416a 100644
@@ -188,4 +188,6 @@
                reg = <0xe0000 0x1000>;
                fsl,has-rstcr;
        };
+
+/include/ "pq3-power.dtsi"
 };
arch/powerpc/boot/dts/fsl/mpc8548si-post.dtsi +2 -0
index 579d76c..dddb737 100644
@@ -156,4 +156,6 @@
                reg = <0xe0000 0x1000>;
                fsl,has-rstcr;
        };
+
+/include/ "pq3-power.dtsi"
 };
arch/powerpc/boot/dts/fsl/mpc8572si-post.dtsi +2 -0
index 49294cf..40a6cff 100644
@@ -193,4 +193,6 @@
                reg = <0xe0000 0x1000>;
                fsl,has-rstcr;
        };
+
+/include/ "pq3-power.dtsi"
 };
arch/powerpc/boot/dts/fsl/p1010si-post.dtsi +8 -0
index 1b4aafc..47b62a8 100644
@@ -173,6 +173,8 @@
 
 /include/ "pq3-etsec2-0.dtsi"
        enet0: ethernet at b0000 {
+               fsl,pmc-handle = <&etsec1_clk>;
+
                queue-group at b0000 {
                        fsl,rx-bit-map = <0xff>;
                        fsl,tx-bit-map = <0xff>;
@@ -181,6 +183,8 @@
 
 /include/ "pq3-etsec2-1.dtsi"
        enet1: ethernet at b1000 {
+               fsl,pmc-handle = <&etsec2_clk>;
+
                queue-group at b1000 {
                        fsl,rx-bit-map = <0xff>;
                        fsl,tx-bit-map = <0xff>;
@@ -189,6 +193,8 @@
 
 /include/ "pq3-etsec2-2.dtsi"
        enet2: ethernet at b2000 {
+               fsl,pmc-handle = <&etsec3_clk>;
+
                queue-group at b2000 {
                        fsl,rx-bit-map = <0xff>;
                        fsl,tx-bit-map = <0xff>;
@@ -201,4 +207,6 @@
                reg = <0xe0000 0x1000>;
                fsl,has-rstcr;
        };
+
+/include/ "pq3-power.dtsi"
 };
arch/powerpc/boot/dts/fsl/p1020si-post.dtsi +5 -0
index 642dc3a..cc4c746 100644
@@ -163,14 +163,17 @@
 
 /include/ "pq3-etsec2-0.dtsi"
        enet0: enet0_grp2: ethernet at b0000 {
+               fsl,pmc-handle = <&etsec1_clk>;
        };
 
 /include/ "pq3-etsec2-1.dtsi"
        enet1: enet1_grp2: ethernet at b1000 {
+               fsl,pmc-handle = <&etsec2_clk>;
        };
 
 /include/ "pq3-etsec2-2.dtsi"
        enet2: enet2_grp2: ethernet at b2000 {
+               fsl,pmc-handle = <&etsec3_clk>;
        };
 
        global-utilities at e0000 {
@@ -178,6 +181,8 @@
                reg = <0xe0000 0x1000>;
                fsl,has-rstcr;
        };
+
+/include/ "pq3-power.dtsi"
 };
 
 /include/ "pq3-etsec2-grp2-0.dtsi"
arch/powerpc/boot/dts/fsl/p1021si-post.dtsi +5 -0
index 407cb5f..378195d 100644
@@ -159,14 +159,17 @@
 
 /include/ "pq3-etsec2-0.dtsi"
        enet0: enet0_grp2: ethernet at b0000 {
+               fsl,pmc-handle = <&etsec1_clk>;
        };
 
 /include/ "pq3-etsec2-1.dtsi"
        enet1: enet1_grp2: ethernet at b1000 {
+               fsl,pmc-handle = <&etsec2_clk>;
        };
 
 /include/ "pq3-etsec2-2.dtsi"
        enet2: enet2_grp2: ethernet at b2000 {
+               fsl,pmc-handle = <&etsec3_clk>;
        };
 
        global-utilities at e0000 {
@@ -174,6 +177,8 @@
                reg = <0xe0000 0x1000>;
                fsl,has-rstcr;
        };
+
+/include/ "pq3-power.dtsi"
 };
 
 &qe {
arch/powerpc/boot/dts/fsl/p1022si-post.dtsi +6 -3
index 5f51b7b..6ac21e8 100644
@@ -225,11 +225,13 @@
 /include/ "pq3-etsec2-0.dtsi"
        enet0: enet0_grp2: ethernet at b0000 {
                fsl,wake-on-filer;
+               fsl,pmc-handle = <&etsec1_clk>;
        };
 
 /include/ "pq3-etsec2-1.dtsi"
        enet1: enet1_grp2: ethernet at b1000 {
                fsl,wake-on-filer;
+               fsl,pmc-handle = <&etsec2_clk>;
        };
 
        global-utilities at e0000 {
@@ -238,9 +240,10 @@
                fsl,has-rstcr;
        };
 
-       power at e0070{
-               compatible = "fsl,mpc8536-pmc", "fsl,mpc8548-pmc";
-               reg = <0xe0070 0x20>;
+/include/ "pq3-power.dtsi"
+       power at e0070 {
+               compatible = "fsl,p1022-pmc", "fsl,mpc8536-pmc",
+                               "fsl,mpc8548-pmc";
        };
 
 };
arch/powerpc/boot/dts/fsl/p2020si-post.dtsi +14 -0
index 884e01b..2c4787c 100644
@@ -175,6 +175,10 @@
                compatible = "fsl-usb2-dr-v1.6", "fsl-usb2-dr";
        };
 /include/ "pq3-etsec1-0.dtsi"
+       enet0: ethernet at 24000 {
+               fsl,pmc-handle = <&etsec1_clk>;
+
+       };
 /include/ "pq3-etsec1-timer-0.dtsi"
 
        ptp_clock at 24e00 {
@@ -183,7 +187,15 @@
 
 
 /include/ "pq3-etsec1-1.dtsi"
+       enet1: ethernet at 25000 {
+               fsl,pmc-handle = <&etsec2_clk>;
+       };
+
 /include/ "pq3-etsec1-2.dtsi"
+       enet2: ethernet at 26000 {
+               fsl,pmc-handle = <&etsec3_clk>;
+       };
+
 /include/ "pq3-esdhc-0.dtsi"
        sdhc at 2e000 {
                compatible = "fsl,p2020-esdhc", "fsl,esdhc";
@@ -198,4 +210,6 @@
                reg = <0xe0000 0x1000>;
                fsl,has-rstcr;
        };
+
+/include/ "pq3-power.dtsi"
 };
arch/powerpc/boot/dts/fsl/pq3-power.dtsi new file +48 -0
new file mode 100644
index 0000000..5a760b3
@@ -0,0 +1,48 @@
+/*
+ * PQ3 Power Management device tree stub
+ *
+ * Copyright 2012-2013 Freescale Semiconductor Inc.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *     * Redistributions of source code must retain the above copyright
+ *       notice, this list of conditions and the following disclaimer.
+ *     * Redistributions in binary form must reproduce the above copyright
+ *       notice, this list of conditions and the following disclaimer in the
+ *       documentation and/or other materials provided with the distribution.
+ *     * Neither the name of Freescale Semiconductor nor the
+ *       names of its contributors may be used to endorse or promote products
+ *       derived from this software without specific prior written permission.
+ *
+ *
+ * ALTERNATIVELY, this software may be distributed under the terms of the
+ * GNU General Public License ("GPL") as published by the Free Software
+ * Foundation, either version 2 of that License or (at your option) any
+ * later version.
+ *
+ * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+power at e0070 {
+       compatible = "fsl,mpc8548-pmc";
+       reg = <0xe0070 0x20>;
+
+       etsec1_clk: soc-clk at 24 {
+               fsl,pmcdr-mask = <0x00000080>;
+       };
+       etsec2_clk: soc-clk at 25 {
+               fsl,pmcdr-mask = <0x00000040>;
+       };
+       etsec3_clk: soc-clk at 26 {
+               fsl,pmcdr-mask = <0x00000020>;
+       };
+};
arch/powerpc/boot/dts/fsl/t1024rdb.dts +1 -1
index 73a6453..95fc694 100644
@@ -91,7 +91,7 @@
                board-control at 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>;
arch/powerpc/boot/dts/fsl/t1040rdb.dts +1 -1
index 65ff34c..825665c 100644
@@ -70,7 +70,7 @@
 
        ifc: localbus at ffe124000 {
                cpld at 3,0 {
-                       compatible = "fsl,t1040rdb-cpld";
+                       compatible = "fsl,t104xrdb-cpld", "fsl,deepsleep-cpld";
                };
        };
 };
arch/powerpc/boot/dts/fsl/t1042rdb.dts +1 -1
index 3ebb712..0997643 100644
@@ -68,7 +68,7 @@
 
        ifc: localbus at ffe124000 {
                cpld at 3,0 {
-                       compatible = "fsl,t1042rdb-cpld";
+                       compatible = "fsl,t104xrdb-cpld", "fsl,deepsleep-cpld";
                };
        };
 };
arch/powerpc/boot/dts/fsl/t1042rdb_pi.dts +1 -2
index 8ec3ff4..b10cab1 100644
@@ -41,7 +41,7 @@
 
        ifc: localbus at ffe124000 {
                cpld at 3,0 {
-                       compatible = "fsl,t1042rdb_pi-cpld";
+                       compatible = "fsl,t104xrdb-cpld", "fsl,deepsleep-cpld";
                };
        };
 
--

1.7.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html