Skip to contentSkip to conversation

tegra: Use engineering names in DT compatible properties

PATCH In review Stephen Warren 2 participants 5 messages Jul 5, 2011 – Jul 6, 2011

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

cover tegra: Use engineering names in DT compatible properties

Grant, these 3 patches are for the devicetree/test branch. I kept them separated in the hope they'll squash into existing patches already there.

Stephen Warren (3):
mmc/tegra: Use engineering names in DT compatible property
ARM: tegra: Use engineering names in DT compatible property
dt: docs: tegra: Use engineering names in DT compatible property

 Documentation/devicetree/usage-model |   12 ++--
 arch/arm/boot/dts/tegra-harmony.dts  |    4 +-
 arch/arm/boot/dts/tegra-seaboard.dts |    4 +-
 arch/arm/boot/dts/tegra20.dtsi       |  162 ++++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/tegra250.dtsi      |  162 ----------------------------------
 arch/arm/mach-tegra/board-dt.c       |   32 ++++----
 drivers/mmc/host/sdhci-pltfm.c       |    2 +-
 7 files changed, 189 insertions(+), 189 deletions(-)
 create mode 100644 arch/arm/boot/dts/tegra20.dtsi
 delete mode 100644 arch/arm/boot/dts/tegra250.dtsi
#1 lore raw

PATCH 1/3 mmc/tegra: Use engineering names in DT compatible property

Engineering names are more stable than marketing names. Hence, use them for Device Tree compatible properties instead.

---
 drivers/mmc/host/sdhci-pltfm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mmc/host/sdhci-pltfm.c +1 -1
index 9cc92b0..0cf16bb 100644
@@ -52,7 +52,7 @@ static struct sdhci_ops sdhci_pltfm_ops = {
 #if defined(CONFIG_OF)
 #include <linux/of_device.h>
 static const struct of_device_id sdhci_dt_ids[] = {
-	{ .compatible = "nvidia,tegra250-sdhci", .data = &sdhci_tegra_dt_pdata },
+	{ .compatible = "nvidia,tegra20-sdhci", .data = &sdhci_tegra_dt_pdata },
 	{ }
 };
 MODULE_DEVICE_TABLE(platform, sdhci_dt_ids);
Signature · 1 line
1.7.0.4
#2 lore raw

PATCH 2/3 ARM: tegra: Use engineering names in DT compatible property

In reply to Stephen Warren

Engineering names are more stable than marketing names. Hence, use them for Device Tree compatible properties instead.

---
 arch/arm/boot/dts/tegra-harmony.dts  |    4 +-
 arch/arm/boot/dts/tegra-seaboard.dts |    4 +-
 arch/arm/boot/dts/tegra20.dtsi       |  162 ++++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/tegra250.dtsi      |  162 ----------------------------------
 arch/arm/mach-tegra/board-dt.c       |   32 ++++----
 5 files changed, 182 insertions(+), 182 deletions(-)
 create mode 100644 arch/arm/boot/dts/tegra20.dtsi
 delete mode 100644 arch/arm/boot/dts/tegra250.dtsi
arch/arm/boot/dts/tegra-harmony.dts +2 -2
index ea8ea92..c2bee7e 100644
@@ -1,11 +1,11 @@
 /dts-v1/;
 
 /memreserve/ 0x1c000000 0x04000000;
-/include/ "tegra250.dtsi"
+/include/ "tegra20.dtsi"
 
 / {
 	model = "NVIDIA Tegra2 Harmony evaluation board";
-	compatible = "nvidia,harmony", "nvidia,tegra250";
+	compatible = "nvidia,harmony", "nvidia,tegra20";
 
 	chosen {
 		bootargs = "vmalloc=192M video=tegrafb console=ttyS0,115200n8 root=/dev/mmcblk0p2 rw rootwait";
arch/arm/boot/dts/tegra-seaboard.dts +2 -2
index 418c7b8..5a99b4c 100644
@@ -1,11 +1,11 @@
 /dts-v1/;
 
 /memreserve/ 0x1c000000 0x04000000;
-/include/ "tegra250.dtsi"
+/include/ "tegra20.dtsi"
 
 / {
 	model = "NVIDIA Seaboard";
-	compatible = "nvidia,seaboard", "nvidia,tegra250";
+	compatible = "nvidia,seaboard", "nvidia,tegra20";
 
 	chosen {
 		bootargs = "vmalloc=192M video=tegrafb console=ttyS0,115200n8 root=/dev/mmcblk1p3 rw rootwait";
arch/arm/boot/dts/tegra20.dtsi new file +162 -0

162 lines not on this page · raw message

arch/arm/boot/dts/tegra250.dtsi deleted +0 -162

162 lines not on this page · raw message

arch/arm/mach-tegra/board-dt.c +16 -16
index 75691d5..cc6776e 100644
@@ -45,26 +45,26 @@
 
 void harmony_pinmux_init(void);
 
-static struct platform_device *tegra250_devices[] __initdata = {
+static struct platform_device *tegra20_devices[] __initdata = {
 	&tegra_i2s_device1,
 	&tegra_pcm_device,
 };
 
-struct of_dev_auxdata tegra250_auxdata_lookup[] __initdata = {
-	OF_DEV_AUXDATA("nvidia,tegra250-sdhci", TEGRA_SDMMC1_BASE, "sdhci-tegra.0", NULL),
-	OF_DEV_AUXDATA("nvidia,tegra250-sdhci", TEGRA_SDMMC2_BASE, "sdhci-tegra.1", NULL),
-	OF_DEV_AUXDATA("nvidia,tegra250-sdhci", TEGRA_SDMMC3_BASE, "sdhci-tegra.2", NULL),
-	OF_DEV_AUXDATA("nvidia,tegra250-sdhci", TEGRA_SDMMC4_BASE, "sdhci-tegra.3", NULL),
+struct of_dev_auxdata tegra20_auxdata_lookup[] __initdata = {
+	OF_DEV_AUXDATA("nvidia,tegra20-sdhci", TEGRA_SDMMC1_BASE, "sdhci-tegra.0", NULL),
+	OF_DEV_AUXDATA("nvidia,tegra20-sdhci", TEGRA_SDMMC2_BASE, "sdhci-tegra.1", NULL),
+	OF_DEV_AUXDATA("nvidia,tegra20-sdhci", TEGRA_SDMMC3_BASE, "sdhci-tegra.2", NULL),
+	OF_DEV_AUXDATA("nvidia,tegra20-sdhci", TEGRA_SDMMC4_BASE, "sdhci-tegra.3", NULL),
 
-	OF_DEV_AUXDATA("nvidia,tegra250-i2c", TEGRA_I2C_BASE, "tegra-i2c.0", NULL),
-	OF_DEV_AUXDATA("nvidia,tegra250-i2c", TEGRA_I2C2_BASE, "tegra-i2c.1", NULL),
-	OF_DEV_AUXDATA("nvidia,tegra250-i2c", TEGRA_I2C3_BASE, "tegra-i2c.2", NULL),
-	OF_DEV_AUXDATA("nvidia,tegra250-i2c", TEGRA_DVC_BASE, "tegra-i2c.3", NULL),
+	OF_DEV_AUXDATA("nvidia,tegra20-i2c", TEGRA_I2C_BASE, "tegra-i2c.0", NULL),
+	OF_DEV_AUXDATA("nvidia,tegra20-i2c", TEGRA_I2C2_BASE, "tegra-i2c.1", NULL),
+	OF_DEV_AUXDATA("nvidia,tegra20-i2c", TEGRA_I2C3_BASE, "tegra-i2c.2", NULL),
+	OF_DEV_AUXDATA("nvidia,tegra20-i2c", TEGRA_DVC_BASE, "tegra-i2c.3", NULL),
 #if 0
-	OF_DEV_AUXDATA("nvidia,tegra250-i2s", TEGRA_I2S1_BASE, "tegra-i2s.0", NULL),
-	OF_DEV_AUXDATA("nvidia,tegra250-i2s", TEGRA_I2S1_BASE, "tegra-i2s.1", NULL),
+	OF_DEV_AUXDATA("nvidia,tegra20-i2s", TEGRA_I2S1_BASE, "tegra-i2s.0", NULL),
+	OF_DEV_AUXDATA("nvidia,tegra20-i2s", TEGRA_I2S1_BASE, "tegra-i2s.1", NULL),
 #endif
-	OF_DEV_AUXDATA("nvidia,tegra250-das", TEGRA_APB_MISC_DAS_BASE, "tegra-das", NULL),
+	OF_DEV_AUXDATA("nvidia,tegra20-das", TEGRA_APB_MISC_DAS_BASE, "tegra-das", NULL),
 	{}
 };
 
@@ -80,7 +80,7 @@ static struct of_device_id tegra_dt_match_table[] __initdata = {
 };
 
 static struct of_device_id tegra_dt_gic_match[] __initdata = {
-	{ .compatible = "nvidia,tegra250-gic", },
+	{ .compatible = "nvidia,tegra20-gic", },
 	{}
 };
 
@@ -106,13 +106,13 @@ static void __init tegra_dt_init(void)
 
 	harmony_pinmux_init();
 
-	platform_add_devices(tegra250_devices, ARRAY_SIZE(tegra250_devices));
+	platform_add_devices(tegra20_devices, ARRAY_SIZE(tegra20_devices));
 
 	/*
 	 * Finished with the static registrations now; fill in the missing
 	 * devices
 	 */
-	of_platform_populate(NULL, tegra_dt_match_table, tegra250_auxdata_lookup, NULL);
+	of_platform_populate(NULL, tegra_dt_match_table, tegra20_auxdata_lookup, NULL);
 }
 
 static const char * tegra_dt_board_compat[] = {
Signature · 1 line
1.7.0.4
#3 lore raw

PATCH 3/3 dt: docs: tegra: Use engineering names in DT compatible property

In reply to Stephen Warren

Engineering names are more stable than marketing names. Hence, use them for Device Tree compatible properties instead.

---
 Documentation/devicetree/usage-model |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
Documentation/devicetree/usage-model +6 -6
index 03a56b3..45e03b8 100644
@@ -240,7 +240,7 @@ About now is a good time to lay out an example.  Here is part of the
 device tree for the NVIDIA Tegra board.
 
 /{
-	compatible = "nvidia,harmony", "nvidia,tegra250";
+	compatible = "nvidia,harmony", "nvidia,tegra20";
 	#address-cells = <1>;
 	#size-cells = <1>;
 	interrupt-parent = <&intc>;
@@ -254,33 +254,33 @@ device tree for the NVIDIA Tegra board.
 	};
 
 	soc {
-		compatible = "nvidia,tegra250-soc", "simple-bus";
+		compatible = "nvidia,tegra20-soc", "simple-bus";
 		#address-cells = <1>;
 		#size-cells = <1>;
 		ranges;
 
 		intc: interrupt-controller at 50041000 {
-			compatible = "nvidia,tegra250-gic";
+			compatible = "nvidia,tegra20-gic";
 			interrupt-controller;
 			#interrupt-cells = <1>;
 			reg = <0x50041000 0x1000>, < 0x50040100 0x0100 >;
 		};
 
 		serial at 70006300 {
-			compatible = "nvidia,tegra250-uart";
+			compatible = "nvidia,tegra20-uart";
 			reg = <0x70006300 0x100>;
 			interrupts = <122>;
 		};
 
 		i2s-1: i2s at 70002800 {
-			compatible = "nvidia,tegra250-i2s";
+			compatible = "nvidia,tegra20-i2s";
 			reg = <0x70002800 0x100>;
 			interrupts = <77>;
 			codec = <&wm8903>;
 		};
 
 		i2c at 7000c000 {
-			compatible = "nvidia,tegra250-i2c";
+			compatible = "nvidia,tegra20-i2c";
 			#address-cells = <1>;
 			#size-cells = <1>;
 			reg = <0x7000c000 0x100>;
Signature · 1 line
1.7.0.4
#4 lore raw
In reply to Stephen Warren
Quoted 2 lines · Stephen Warren

Grant, these 3 patches are for the devicetree/test branch. I kept them separated in the hope they'll squash into existing patches already there.

Thanks, I'll pick them up and squash them in.

g.

Quoted 17 lines

Stephen Warren (3):
mmc/tegra: Use engineering names in DT compatible property
ARM: tegra: Use engineering names in DT compatible property
dt: docs: tegra: Use engineering names in DT compatible property

 Documentation/devicetree/usage-model |   12 ++--
 arch/arm/boot/dts/tegra-harmony.dts  |    4 +-
 arch/arm/boot/dts/tegra-seaboard.dts |    4 +-
 arch/arm/boot/dts/tegra20.dtsi       |  162 ++++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/tegra250.dtsi      |  162 ----------------------------------
 arch/arm/mach-tegra/board-dt.c       |   32 ++++----
 drivers/mmc/host/sdhci-pltfm.c       |    2 +-
 7 files changed, 189 insertions(+), 189 deletions(-)
 create mode 100644 arch/arm/boot/dts/tegra20.dtsi
 delete mode 100644 arch/arm/boot/dts/tegra250.dtsi