linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 1/2] ARM: tegra: pmc: add specific compatible DT string for Tegra30 and Tegra114
@ 2013-02-27  2:27 Joseph Lo
  2013-02-27  2:27 ` [PATCH V2 2/2] ARM: dts: tegra: fix the PMC compatible string Joseph Lo
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Joseph Lo @ 2013-02-27  2:27 UTC (permalink / raw)
  To: linux-arm-kernel

The PMC HW is not 100% compatible across all Tegra series. We need to
specify each of them in the DT match table.

Signed-off-by: Joseph Lo <josephl@nvidia.com>
---
V2:
* fix the typo and the chip order in DT match table
---
 arch/arm/mach-tegra/pmc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/mach-tegra/pmc.c b/arch/arm/mach-tegra/pmc.c
index d4fdb5f..5d79d34 100644
--- a/arch/arm/mach-tegra/pmc.c
+++ b/arch/arm/mach-tegra/pmc.c
@@ -36,6 +36,8 @@ static inline void tegra_pmc_writel(u32 val, u32 reg)
 
 #ifdef CONFIG_OF
 static const struct of_device_id matches[] __initconst = {
+	{ .compatible = "nvidia,tegra114-pmc" },
+	{ .compatible = "nvidia,tegra30-pmc" },
 	{ .compatible = "nvidia,tegra20-pmc" },
 	{ }
 };
-- 
1.8.1.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH V2 2/2] ARM: dts: tegra: fix the PMC compatible string
  2013-02-27  2:27 [PATCH V2 1/2] ARM: tegra: pmc: add specific compatible DT string for Tegra30 and Tegra114 Joseph Lo
@ 2013-02-27  2:27 ` Joseph Lo
  2013-02-27 17:44 ` [PATCH V2 1/2] ARM: tegra: pmc: add specific compatible DT string for Tegra30 and Tegra114 Stephen Warren
  2013-03-06 21:45 ` Stephen Warren
  2 siblings, 0 replies; 4+ messages in thread
From: Joseph Lo @ 2013-02-27  2:27 UTC (permalink / raw)
  To: linux-arm-kernel

The PMC HW is not 100% compatible across all Tegra series. We need to
specify them in DT.

Signed-off-by: Joseph Lo <josephl@nvidia.com>
---
V2:
* fix typo
---
 arch/arm/boot/dts/tegra114.dtsi | 2 +-
 arch/arm/boot/dts/tegra30.dtsi  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/tegra114.dtsi b/arch/arm/boot/dts/tegra114.dtsi
index 1dfaf28..e4ddedd 100644
--- a/arch/arm/boot/dts/tegra114.dtsi
+++ b/arch/arm/boot/dts/tegra114.dtsi
@@ -99,7 +99,7 @@
 	};
 
 	pmc {
-		compatible = "nvidia,tegra114-pmc", "nvidia,tegra30-pmc";
+		compatible = "nvidia,tegra114-pmc";
 		reg = <0x7000e400 0x400>;
 	};
 
diff --git a/arch/arm/boot/dts/tegra30.dtsi b/arch/arm/boot/dts/tegra30.dtsi
index 767803e..6ae82e7 100644
--- a/arch/arm/boot/dts/tegra30.dtsi
+++ b/arch/arm/boot/dts/tegra30.dtsi
@@ -422,7 +422,7 @@
 	};
 
 	pmc {
-		compatible = "nvidia,tegra20-pmc", "nvidia,tegra30-pmc";
+		compatible = "nvidia,tegra30-pmc";
 		reg = <0x7000e400 0x400>;
 	};
 
-- 
1.8.1.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH V2 1/2] ARM: tegra: pmc: add specific compatible DT string for Tegra30 and Tegra114
  2013-02-27  2:27 [PATCH V2 1/2] ARM: tegra: pmc: add specific compatible DT string for Tegra30 and Tegra114 Joseph Lo
  2013-02-27  2:27 ` [PATCH V2 2/2] ARM: dts: tegra: fix the PMC compatible string Joseph Lo
@ 2013-02-27 17:44 ` Stephen Warren
  2013-03-06 21:45 ` Stephen Warren
  2 siblings, 0 replies; 4+ messages in thread
From: Stephen Warren @ 2013-02-27 17:44 UTC (permalink / raw)
  To: linux-arm-kernel

On 02/26/2013 07:27 PM, Joseph Lo wrote:
> The PMC HW is not 100% compatible across all Tegra series. We need to
> specify each of them in the DT match table.

Seems reasonable. I plan to apply for 3.10 when I can.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH V2 1/2] ARM: tegra: pmc: add specific compatible DT string for Tegra30 and Tegra114
  2013-02-27  2:27 [PATCH V2 1/2] ARM: tegra: pmc: add specific compatible DT string for Tegra30 and Tegra114 Joseph Lo
  2013-02-27  2:27 ` [PATCH V2 2/2] ARM: dts: tegra: fix the PMC compatible string Joseph Lo
  2013-02-27 17:44 ` [PATCH V2 1/2] ARM: tegra: pmc: add specific compatible DT string for Tegra30 and Tegra114 Stephen Warren
@ 2013-03-06 21:45 ` Stephen Warren
  2 siblings, 0 replies; 4+ messages in thread
From: Stephen Warren @ 2013-03-06 21:45 UTC (permalink / raw)
  To: linux-arm-kernel

On 02/26/2013 07:27 PM, Joseph Lo wrote:
> The PMC HW is not 100% compatible across all Tegra series. We need to
> specify each of them in the DT match table.

I have applied these two patches to Tegra's for-3.10/cleanup branch.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-03-06 21:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-27  2:27 [PATCH V2 1/2] ARM: tegra: pmc: add specific compatible DT string for Tegra30 and Tegra114 Joseph Lo
2013-02-27  2:27 ` [PATCH V2 2/2] ARM: dts: tegra: fix the PMC compatible string Joseph Lo
2013-02-27 17:44 ` [PATCH V2 1/2] ARM: tegra: pmc: add specific compatible DT string for Tegra30 and Tegra114 Stephen Warren
2013-03-06 21:45 ` Stephen Warren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).