Skip to contentSkip to conversation

Fix Tegra devicetree support

PATCH In review Stephen Warren 2 participants 10 messages Apr 24, 2011 – Apr 30, 2011 6 messages not in the archive

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

cover Fix Tegra devicetree support

I tried out:

git://git.secretlab.ca/git/linux-2.6.git devicetree/test

plus the following commits from jk's dtbimage branch:

4c2eddb89542f73fe626813e3cdafc789f931aec
arm: dtbImage support

4cb80ac96489220554d28f6fde527aeef83e628b arm/dtbimage: copy dtb blob to offset from image base

A local patch to modify the Tegra devicetree support to support Seaboard instead of Harmony.

... on an NVIDIA Tegra Seaboard board.

This patch series includes fixes to that branch to get Tegra booting to user-space.

Note that soon after user-space starts, the system still crashes with:

Unhandled prefetch abort: debug event (0x002) at 0x40e97714

However, this happens with or without actually providing a devicetree image to the kernel (I modified jk's dtbimage wrapper just to jump straight to the regular kernel startup, thus not providing a devicetree at all). So, I suspect it's some unrelated issue. I'll try to follow up and solve that too.

Stephen Warren (3):
ARM: Tegra: dt: Compile fix; tegra_common_init removed
ARM: Tegra: dt: Fix machine desc to match other boards.
ARM: Tegra: Move Harmony .dts file to correct place

 arch/arm/boot/dts/tegra-harmony.dts   |  110 +++++++++++++++++++++++++++++++-
 arch/arm/mach-tegra/board-dt.c        |   13 ++--
 arch/arm/mach-tegra/board-harmony.dts |  113 ---------------------------------
 3 files changed, 114 insertions(+), 122 deletions(-)
 delete mode 100644 arch/arm/mach-tegra/board-harmony.dts

A message that is not in the archive (sent off-list or not yet received): 1303619404-27604-1-git-send-email-swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org

#2 lore raw

PATCH 1/3 ARM: Tegra: dt: Compile fix; tegra_common_init removed

tegra_common_init was removed by:
0cf6230af909a86f81907455eca2a5c9b8f68fe6
ARM: tegra: Move tegra_common_init to tegra_init_early

Fix the Tegra devicetree support to match.

---
 arch/arm/mach-tegra/board-dt.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
arch/arm/mach-tegra/board-dt.c +0 -2
index bc9777e..899311b 100644
@@ -156,8 +156,6 @@ static void __init tegra_dt_init(void)
 	 */
 	of_platform_prepare(NULL, tegra_dt_match_table);
 
-	tegra_common_init();
-
 	tegra_clk_init_from_table(tegra_dt_clk_init_table);
 
 	harmony_pinmux_init();
Signature · 1 line
1.7.1

A message that is not in the archive (sent off-list or not yet received): 1303619404-27604-2-git-send-email-swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org

#4 lore raw

Re: [PATCH 1/3] ARM: Tegra: dt: Compile fix; tegra_common_init removed

Quoted 7 lines · Stephen Warren

tegra_common_init was removed by:
0cf6230af909a86f81907455eca2a5c9b8f68fe6
ARM: tegra: Move tegra_common_init to tegra_init_early

Fix the Tegra devicetree support to match.

Squashed into the "arm/dt: full tegra devicetree support" commit

Thanks!

g.

Quoted 20 lines
---
 arch/arm/mach-tegra/board-dt.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
arch/arm/mach-tegra/board-dt.c +0 -2
index bc9777e..899311b 100644
@@ -156,8 +156,6 @@ static void __init tegra_dt_init(void)
 	 */
 	of_platform_prepare(NULL, tegra_dt_match_table);
 
-	tegra_common_init();
-
 	tegra_clk_init_from_table(tegra_dt_clk_init_table);
 
 	harmony_pinmux_init();
Signature · 1 line
1.7.1
#5 lore raw

PATCH 2/3 ARM: Tegra: dt: Fix machine desc to match other boards.

In reply to a message not in the archive

The content of the machine descriptions has be re-organized. Without fixing the board-dt.c copy, the system will fail to boot (BUG_ON during timer initialization, which happens before printk is operational, leading to a silent hang early during kernel boot). Solve this basiclaly by copying the existing Harmony version over the copy in board-dt.c

---
 arch/arm/mach-tegra/board-dt.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
arch/arm/mach-tegra/board-dt.c +6 -5
index 899311b..7b9d469 100644
@@ -175,10 +175,11 @@ static const char * tegra_dt_board_compat[] = {
 };
 
 DT_MACHINE_START(TEGRA_DT, "nVidia Tegra (Flattened Device Tree)")
-	.fixup		= tegra_dt_fixup,
-	.init_irq	= tegra_init_irq,
-	.init_machine	= tegra_dt_init,
-	.map_io		= tegra_map_common_io,
-	.timer		= &tegra_timer,
+	.boot_params    = 0x00000100,
+	.map_io         = tegra_map_common_io,
+	.init_early     = tegra_init_early,
+	.init_irq       = tegra_init_irq,
+	.timer          = &tegra_timer,
+	.init_machine   = tegra_dt_init,
 	.dt_compat	= tegra_dt_board_compat,
 MACHINE_END
Signature · 1 line
1.7.1

A message that is not in the archive (sent off-list or not yet received): 1303619404-27604-3-git-send-email-swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org

#7 lore raw

Re: [PATCH 2/3] ARM: Tegra: dt: Fix machine desc to match other boards.

Quoted 16 lines · Stephen Warren

The content of the machine descriptions has be re-organized. Without fixing the board-dt.c copy, the system will fail to boot (BUG_ON during timer initialization, which happens before printk is operational, leading to a silent hang early during kernel boot). Solve this basiclaly by copying the existing Harmony version over the copy in board-dt.c

---
 arch/arm/mach-tegra/board-dt.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
arch/arm/mach-tegra/board-dt.c +0 -0
index 899311b..7b9d469 100644

arch/arm/mach-tegra/board-dt.c static const char * tegra_dt_board_compat[] = { · line 178

Quoted 4 lines
arch/arm/mach-tegra/board-dt.c +0 -1
@@ -175,10 +175,11 @@ static const char * tegra_dt_board_compat[] = {
 };
 
 DT_MACHINE_START(TEGRA_DT, "nVidia Tegra (Flattened Device Tree)")
-	.fixup		= tegra_dt_fixup,

I take it that with memory ranges encoded into the device tree this fixup is no longer needed? I'll drop the tegra_dt_fixup() function from the file too then.

arch/arm/mach-tegra/board-dt.c static const char * tegra_dt_board_compat[] = { · line 178

Quoted 5 lines
arch/arm/mach-tegra/board-dt.c +1 -4
-	.init_irq	= tegra_init_irq,
-	.init_machine	= tegra_dt_init,
-	.map_io		= tegra_map_common_io,
-	.timer		= &tegra_timer,
+	.boot_params    = 0x00000100,

boot_params isn't used for dtb boot, so I'll drop this line.

arch/arm/mach-tegra/board-dt.c static const char * tegra_dt_board_compat[] = { · line 185

Quoted 7 lines
arch/arm/mach-tegra/board-dt.c +5 -0
+	.map_io         = tegra_map_common_io,
+	.init_early     = tegra_init_early,
+	.init_irq       = tegra_init_irq,
+	.timer          = &tegra_timer,
+	.init_machine   = tegra_dt_init,
 	.dt_compat	= tegra_dt_board_compat,
 MACHINE_END

I'll also squash these changes into the clean commit in devicetree/test. I'm just building and testing now.

Thanks!
g.

A message that is not in the archive (sent off-list or not yet received): 20110429233502.GM7497-e0URQFbLeQY2iJbIjFUEsiwD8/[email protected]

#9 lore raw

RE: [PATCH 2/3] ARM: Tegra: dt: Fix machine desc to match other boards.

Grant Likely wrote at Friday, April 29, 2011 5:35 PM:

Quoted 19 lines · Stephen Warren
Quoted 18 lines

The content of the machine descriptions has be re-organized. Without fixing the board-dt.c copy, the system will fail to boot (BUG_ON during timer initialization, which happens before printk is operational, leading to a silent hang early during kernel boot). Solve this basiclaly by copying the existing Harmony version over the copy in board-dt.c

---
 arch/arm/mach-tegra/board-dt.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
arch/arm/mach-tegra/board-dt.c +0 -0
index 899311b..7b9d469 100644
@@ -175,10 +175,11 @@ static const char * tegra_dt_board_compat[] = {
 };
 
Quoted 6 lines

arch/arm/mach-tegra/board-dt.c static const char * tegra_dt_board_compat[] = { · line 178

Quoted 2 lines
arch/arm/mach-tegra/board-dt.c +0 -1
 DT_MACHINE_START(TEGRA_DT, "nVidia Tegra (Flattened Device Tree)")
-	.fixup		= tegra_dt_fixup,

I take it that with memory ranges encoded into the device tree this fixup is no longer needed? I'll drop the tegra_dt_fixup() function from the file too then.

I actually tested this all on Seaboard not Harmony, and locally modified the tegra-harmony.dts to add to the kernel cmdline mem=/nvmem= options identical to what we use for Seaboard + ChromeOS. Now I have things working, I should probably remove the kernel cmdline mem=/nvmem= options, and validate that the dt memory setup is working correctly. I believe the fixup function was only there to cater for broken bootloader setups that didn't supply the correct mem=/nvmem= on the kernel cmdline, so this should all work OK...

Signature · 1 line
nvpublic

A message that is not in the archive (sent off-list or not yet received): 74CDBE0F657A3D45AFBB94109FB122FF0497F1B0AB-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org

#11 lore raw

RE: [PATCH 2/3] ARM: Tegra: dt: Fix machine desc to match other boards.

Stephen Warren wrote at Sent: Friday, April 29, 2011 7:52 PM:

Quoted 32 lines

To: Grant Likely
Cc: [email protected]; [email protected]
Subject: RE: [PATCH 2/3] ARM: Tegra: dt: Fix machine desc to match other
boards.

Grant Likely wrote at Friday, April 29, 2011 5:35 PM:

Quoted 19 lines · Stephen Warren
Quoted 18 lines

The content of the machine descriptions has be re-organized. Without fixing the board-dt.c copy, the system will fail to boot (BUG_ON during timer initialization, which happens before printk is operational, leading to a silent hang early during kernel boot). Solve this basiclaly by copying the existing Harmony version over the copy in board-dt.c

---
 arch/arm/mach-tegra/board-dt.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
arch/arm/mach-tegra/board-dt.c +0 -0
index 899311b..7b9d469 100644
@@ -175,10 +175,11 @@ static const char * tegra_dt_board_compat[] = {
 };
 
Quoted 6 lines

arch/arm/mach-tegra/board-dt.c static const char * tegra_dt_board_compat[] = { · line 178

Quoted 2 lines
arch/arm/mach-tegra/board-dt.c +0 -1
 DT_MACHINE_START(TEGRA_DT, "nVidia Tegra (Flattened Device Tree)")
-	.fixup		= tegra_dt_fixup,

I take it that with memory ranges encoded into the device tree this fixup is no longer needed? I'll drop the tegra_dt_fixup() function from the file too then.

Quoted 8 lines

I actually tested this all on Seaboard not Harmony, and locally modified the tegra-harmony.dts to add to the kernel cmdline mem=/nvmem= options identical to what we use for Seaboard + ChromeOS. Now I have things working, I should probably remove the kernel cmdline mem=/nvmem= options, and validate that the dt memory setup is working correctly. I believe the fixup function was only there to cater for broken bootloader setups that didn't supply the correct mem=/nvmem= on the kernel cmdline, so this should all work OK...

I've now tested on Seaboard with the fixup removed as above, no mem= or nvmem= kernel cmdline options, and hence just the devicetree memory definitions. Everything looks like it's fine.

Signature · 1 line
nvpublic
#12 lore raw

PATCH 3/3 ARM: Tegra: Move Harmony .dts file to correct place

In reply to a message not in the archive

The following workflow:

make dtbs
make dtbuImage # See my earlier patch which adds this based on
Jeremy Kerr's patch to add a dtbImage target.

... seems to require the *.dts file to be in arch/arm/boot/dts. I'm not sure if any other devicetree testing flows will be negatively affected by this change.

---
 arch/arm/boot/dts/tegra-harmony.dts   |  110 +++++++++++++++++++++++++++++++-
 arch/arm/mach-tegra/board-harmony.dts |  113 ---------------------------------
 2 files changed, 108 insertions(+), 115 deletions(-)
 delete mode 100644 arch/arm/mach-tegra/board-harmony.dts
arch/arm/boot/dts/tegra-harmony.dts +108 -2
index 81032e7..82fa0c2 100644
@@ -1,7 +1,113 @@
+
 /dts-v1/;
-/include/ "skeleton.dtsi"
 
 / {
-	model = "NVIDIA Tegra2 Harmony evaluation board";
+	model = "nVidia Harmony";
 	compatible = "nvidia,harmony", "nvidia,tegra250";
+	#address-cells = <1>;
+	#size-cells = <1>;
+	interrupt-parent = <&intc>;
+
+	chosen {
+		bootargs = "vmalloc=192M video=tegrafb console=ttyS0,115200n8 root=/dev/mmcblk0p2 rw rootdelay=2";
+	};
+
+	memory {
+		device_type = "memory";
+		reg = < 0x00000000 0x1C000000
+		        0x20000000 0x20000000 >;
+	};
+
+	amba {
+		compatible = "simple-bus";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges;
+
+		intc: intc {
+			interrupt-controller;
+			#interrupt-cells = <1>;
+		};
+	};
+
+	gpio: gpio@6000d000 {
+		compatible = "nvidia,tegra250-gpio";
+		reg = < 0x6000d000 0x1000 >;
+		interrupts = < 64 65 66 67 87 119 121 >;
+		#gpio-cells = <2>;
+		gpio-controller;
+	};
+
+	serial@70006000 {
+		compatible = "nvidia,tegra250-uart";
+		reg = <0x70006000 0x40>;
+		reg-shift = <2>;
+		interrupts = < 68 >;
+		status = "disabled";
+	};
+
+	serial@70006040 {
+		compatible = "nvidia,tegra250-uart";
+		reg = <0x70006040 0x40>;
+		reg-shift = <2>;
+		interrupts = < 69 >;
+		status = "disabled";
+	};
+
+	serial@70006200 {
+		compatible = "nvidia,tegra250-uart";
+		reg = <0x70006200 0x100>;
+		reg-shift = <2>;
+		interrupts = < 78 >;
+		status = "disabled";
+	};
+
+	serial@70006300 {
+		compatible = "nvidia,tegra250-uart";
+		reg = <0x70006300 0x100>;
+		reg-shift = <2>;
+		interrupts = < 122 >;
+
+		clock-frequency = < 216000000 >;
+	};
+
+	serial@70006400 {
+		compatible = "nvidia,tegra250-uart";
+		reg = <0x70006400 0x100>;
+		reg-shift = <2>;
+		interrupts = < 123 >;
+		status = "disabled";
+	};
+
+	sdhci@c8000000 {
+		compatible = "nvidia,tegra250-sdhci";
+		reg = <0xc8000000 0x200>;
+		interrupts = < 46 >;
+		status = "disabled";
+	};
+
+	sdhci@c8000200 {
+		compatible = "nvidia,tegra250-sdhci";
+		reg = <0xc8000200 0x200>;
+		interrupts = < 47 >;
+		gpios = <&gpio 69 0>, /* cd, gpio PI5 */
+			<&gpio 57 0>, /* wp, gpio PH1 */
+			<&gpio 155 0>; /* power, gpio PT3 */
+	};
+
+	sdhci@c8000400 {
+		compatible = "nvidia,tegra250-sdhci";
+		reg = <0xc8000400 0x200>;
+		interrupts = < 51 >;
+		status = "disabled";
+	};
+
+	sdhci@c8000600 {
+		compatible = "nvidia,tegra250-sdhci";
+		reg = <0xc8000600 0x200>;
+		interrupts = < 63 >;
+		gpios = <&gpio 58 0>, /* cd, gpio PH2 */
+			<&gpio 59 0>, /* wp, gpio PH3 */
+			<&gpio 70 0>; /* power, gpio PI6 */
+	};
 };
arch/arm/mach-tegra/board-harmony.dts deleted +0 -113

113 lines not on this page · raw message

Signature · 1 line
1.7.1

A message that is not in the archive (sent off-list or not yet received): 1303619404-27604-4-git-send-email-swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org

#14 lore raw

Re: [PATCH 3/3] ARM: Tegra: Move Harmony .dts file to correct place

Quoted 9 lines · Stephen Warren

The following workflow:

make dtbs
make dtbuImage # See my earlier patch which adds this based on
Jeremy Kerr's patch to add a dtbImage target.

... seems to require the *.dts file to be in arch/arm/boot/dts. I'm not sure if any other devicetree testing flows will be negatively affected by this change.

Yeah, I started on the tegra work quite a while ago before dts files started getting put into arch/arm/boot/dts. I'll also squash this into the board support patch in devicetree/test.

Thanks,
g.

Quoted 250 lines
---
 arch/arm/boot/dts/tegra-harmony.dts   |  110 +++++++++++++++++++++++++++++++-
 arch/arm/mach-tegra/board-harmony.dts |  113 ---------------------------------
 2 files changed, 108 insertions(+), 115 deletions(-)
 delete mode 100644 arch/arm/mach-tegra/board-harmony.dts
arch/arm/boot/dts/tegra-harmony.dts +108 -2
index 81032e7..82fa0c2 100644
@@ -1,7 +1,113 @@
+
 /dts-v1/;
-/include/ "skeleton.dtsi"
 
 / {
-	model = "NVIDIA Tegra2 Harmony evaluation board";
+	model = "nVidia Harmony";
 	compatible = "nvidia,harmony", "nvidia,tegra250";
+	#address-cells = <1>;
+	#size-cells = <1>;
+	interrupt-parent = <&intc>;
+
+	chosen {
+		bootargs = "vmalloc=192M video=tegrafb console=ttyS0,115200n8 root=/dev/mmcblk0p2 rw rootdelay=2";
+	};
+
+	memory {
+		device_type = "memory";
+		reg = < 0x00000000 0x1C000000
+		        0x20000000 0x20000000 >;
+	};
+
+	amba {
+		compatible = "simple-bus";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges;
+
+		intc: intc {
+			interrupt-controller;
+			#interrupt-cells = <1>;
+		};
+	};
+
+	gpio: gpio@6000d000 {
+		compatible = "nvidia,tegra250-gpio";
+		reg = < 0x6000d000 0x1000 >;
+		interrupts = < 64 65 66 67 87 119 121 >;
+		#gpio-cells = <2>;
+		gpio-controller;
+	};
+
+	serial@70006000 {
+		compatible = "nvidia,tegra250-uart";
+		reg = <0x70006000 0x40>;
+		reg-shift = <2>;
+		interrupts = < 68 >;
+		status = "disabled";
+	};
+
+	serial@70006040 {
+		compatible = "nvidia,tegra250-uart";
+		reg = <0x70006040 0x40>;
+		reg-shift = <2>;
+		interrupts = < 69 >;
+		status = "disabled";
+	};
+
+	serial@70006200 {
+		compatible = "nvidia,tegra250-uart";
+		reg = <0x70006200 0x100>;
+		reg-shift = <2>;
+		interrupts = < 78 >;
+		status = "disabled";
+	};
+
+	serial@70006300 {
+		compatible = "nvidia,tegra250-uart";
+		reg = <0x70006300 0x100>;
+		reg-shift = <2>;
+		interrupts = < 122 >;
+
+		clock-frequency = < 216000000 >;
+	};
+
+	serial@70006400 {
+		compatible = "nvidia,tegra250-uart";
+		reg = <0x70006400 0x100>;
+		reg-shift = <2>;
+		interrupts = < 123 >;
+		status = "disabled";
+	};
+
+	sdhci@c8000000 {
+		compatible = "nvidia,tegra250-sdhci";
+		reg = <0xc8000000 0x200>;
+		interrupts = < 46 >;
+		status = "disabled";
+	};
+
+	sdhci@c8000200 {
+		compatible = "nvidia,tegra250-sdhci";
+		reg = <0xc8000200 0x200>;
+		interrupts = < 47 >;
+		gpios = <&gpio 69 0>, /* cd, gpio PI5 */
+			<&gpio 57 0>, /* wp, gpio PH1 */
+			<&gpio 155 0>; /* power, gpio PT3 */
+	};
+
+	sdhci@c8000400 {
+		compatible = "nvidia,tegra250-sdhci";
+		reg = <0xc8000400 0x200>;
+		interrupts = < 51 >;
+		status = "disabled";
+	};
+
+	sdhci@c8000600 {
+		compatible = "nvidia,tegra250-sdhci";
+		reg = <0xc8000600 0x200>;
+		interrupts = < 63 >;
+		gpios = <&gpio 58 0>, /* cd, gpio PH2 */
+			<&gpio 59 0>, /* wp, gpio PH3 */
+			<&gpio 70 0>; /* power, gpio PI6 */
+	};
 };
arch/arm/mach-tegra/board-harmony.dts deleted +0 -113
deleted file mode 100644
index 82fa0c2..0000000
@@ -1,113 +0,0 @@
-
-/dts-v1/;
-
-/ {
-	model = "nVidia Harmony";
-	compatible = "nvidia,harmony", "nvidia,tegra250";
-	#address-cells = <1>;
-	#size-cells = <1>;
-	interrupt-parent = <&intc>;
-
-	chosen {
-		bootargs = "vmalloc=192M video=tegrafb console=ttyS0,115200n8 root=/dev/mmcblk0p2 rw rootdelay=2";
-	};
-
-	memory {
-		device_type = "memory";
-		reg = < 0x00000000 0x1C000000
-		        0x20000000 0x20000000 >;
-	};
-
-	amba {
-		compatible = "simple-bus";
-		#address-cells = <1>;
-		#size-cells = <1>;
-		ranges;
-
-		intc: intc {
-			interrupt-controller;
-			#interrupt-cells = <1>;
-		};
-	};
-
-	gpio: gpio@6000d000 {
-		compatible = "nvidia,tegra250-gpio";
-		reg = < 0x6000d000 0x1000 >;
-		interrupts = < 64 65 66 67 87 119 121 >;
-		#gpio-cells = <2>;
-		gpio-controller;
-	};
-
-	serial@70006000 {
-		compatible = "nvidia,tegra250-uart";
-		reg = <0x70006000 0x40>;
-		reg-shift = <2>;
-		interrupts = < 68 >;
-		status = "disabled";
-	};
-
-	serial@70006040 {
-		compatible = "nvidia,tegra250-uart";
-		reg = <0x70006040 0x40>;
-		reg-shift = <2>;
-		interrupts = < 69 >;
-		status = "disabled";
-	};
-
-	serial@70006200 {
-		compatible = "nvidia,tegra250-uart";
-		reg = <0x70006200 0x100>;
-		reg-shift = <2>;
-		interrupts = < 78 >;
-		status = "disabled";
-	};
-
-	serial@70006300 {
-		compatible = "nvidia,tegra250-uart";
-		reg = <0x70006300 0x100>;
-		reg-shift = <2>;
-		interrupts = < 122 >;
-
-		clock-frequency = < 216000000 >;
-	};
-
-	serial@70006400 {
-		compatible = "nvidia,tegra250-uart";
-		reg = <0x70006400 0x100>;
-		reg-shift = <2>;
-		interrupts = < 123 >;
-		status = "disabled";
-	};
-
-	sdhci@c8000000 {
-		compatible = "nvidia,tegra250-sdhci";
-		reg = <0xc8000000 0x200>;
-		interrupts = < 46 >;
-		status = "disabled";
-	};
-
-	sdhci@c8000200 {
-		compatible = "nvidia,tegra250-sdhci";
-		reg = <0xc8000200 0x200>;
-		interrupts = < 47 >;
-		gpios = <&gpio 69 0>, /* cd, gpio PI5 */
-			<&gpio 57 0>, /* wp, gpio PH1 */
-			<&gpio 155 0>; /* power, gpio PT3 */
-	};
-
-	sdhci@c8000400 {
-		compatible = "nvidia,tegra250-sdhci";
-		reg = <0xc8000400 0x200>;
-		interrupts = < 51 >;
-		status = "disabled";
-	};
-
-	sdhci@c8000600 {
-		compatible = "nvidia,tegra250-sdhci";
-		reg = <0xc8000600 0x200>;
-		interrupts = < 63 >;
-		gpios = <&gpio 58 0>, /* cd, gpio PH2 */
-			<&gpio 59 0>, /* wp, gpio PH3 */
-			<&gpio 70 0>; /* power, gpio PI6 */
-	};
-};
Signature · 1 line
1.7.1
#15 lore raw

Re: [PATCH 3/3] ARM: Tegra: Move Harmony .dts file to correct place

In reply to a message not in the archive
Quoted 11 lines · Stephen Warren

The following workflow:

make dtbs
make dtbuImage # See my earlier patch which adds this based on
Jeremy Kerr's patch to add a dtbImage target.

... seems to require the *.dts file to be in arch/arm/boot/dts. I'm not sure if any other devicetree testing flows will be negatively affected by this change.

Hmmm, I seem to have broken stuff. No time to sort it out now though. Oh well. I'll try it again (hopefully) tomorrow.

g.

Quoted 248 lines
---
 arch/arm/boot/dts/tegra-harmony.dts   |  110 +++++++++++++++++++++++++++++++-
 arch/arm/mach-tegra/board-harmony.dts |  113 ---------------------------------
 2 files changed, 108 insertions(+), 115 deletions(-)
 delete mode 100644 arch/arm/mach-tegra/board-harmony.dts
arch/arm/boot/dts/tegra-harmony.dts +108 -2
index 81032e7..82fa0c2 100644
@@ -1,7 +1,113 @@
+
 /dts-v1/;
-/include/ "skeleton.dtsi"
 
 / {
-	model = "NVIDIA Tegra2 Harmony evaluation board";
+	model = "nVidia Harmony";
 	compatible = "nvidia,harmony", "nvidia,tegra250";
+	#address-cells = <1>;
+	#size-cells = <1>;
+	interrupt-parent = <&intc>;
+
+	chosen {
+		bootargs = "vmalloc=192M video=tegrafb console=ttyS0,115200n8 root=/dev/mmcblk0p2 rw rootdelay=2";
+	};
+
+	memory {
+		device_type = "memory";
+		reg = < 0x00000000 0x1C000000
+		        0x20000000 0x20000000 >;
+	};
+
+	amba {
+		compatible = "simple-bus";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges;
+
+		intc: intc {
+			interrupt-controller;
+			#interrupt-cells = <1>;
+		};
+	};
+
+	gpio: gpio@6000d000 {
+		compatible = "nvidia,tegra250-gpio";
+		reg = < 0x6000d000 0x1000 >;
+		interrupts = < 64 65 66 67 87 119 121 >;
+		#gpio-cells = <2>;
+		gpio-controller;
+	};
+
+	serial@70006000 {
+		compatible = "nvidia,tegra250-uart";
+		reg = <0x70006000 0x40>;
+		reg-shift = <2>;
+		interrupts = < 68 >;
+		status = "disabled";
+	};
+
+	serial@70006040 {
+		compatible = "nvidia,tegra250-uart";
+		reg = <0x70006040 0x40>;
+		reg-shift = <2>;
+		interrupts = < 69 >;
+		status = "disabled";
+	};
+
+	serial@70006200 {
+		compatible = "nvidia,tegra250-uart";
+		reg = <0x70006200 0x100>;
+		reg-shift = <2>;
+		interrupts = < 78 >;
+		status = "disabled";
+	};
+
+	serial@70006300 {
+		compatible = "nvidia,tegra250-uart";
+		reg = <0x70006300 0x100>;
+		reg-shift = <2>;
+		interrupts = < 122 >;
+
+		clock-frequency = < 216000000 >;
+	};
+
+	serial@70006400 {
+		compatible = "nvidia,tegra250-uart";
+		reg = <0x70006400 0x100>;
+		reg-shift = <2>;
+		interrupts = < 123 >;
+		status = "disabled";
+	};
+
+	sdhci@c8000000 {
+		compatible = "nvidia,tegra250-sdhci";
+		reg = <0xc8000000 0x200>;
+		interrupts = < 46 >;
+		status = "disabled";
+	};
+
+	sdhci@c8000200 {
+		compatible = "nvidia,tegra250-sdhci";
+		reg = <0xc8000200 0x200>;
+		interrupts = < 47 >;
+		gpios = <&gpio 69 0>, /* cd, gpio PI5 */
+			<&gpio 57 0>, /* wp, gpio PH1 */
+			<&gpio 155 0>; /* power, gpio PT3 */
+	};
+
+	sdhci@c8000400 {
+		compatible = "nvidia,tegra250-sdhci";
+		reg = <0xc8000400 0x200>;
+		interrupts = < 51 >;
+		status = "disabled";
+	};
+
+	sdhci@c8000600 {
+		compatible = "nvidia,tegra250-sdhci";
+		reg = <0xc8000600 0x200>;
+		interrupts = < 63 >;
+		gpios = <&gpio 58 0>, /* cd, gpio PH2 */
+			<&gpio 59 0>, /* wp, gpio PH3 */
+			<&gpio 70 0>; /* power, gpio PI6 */
+	};
 };
arch/arm/mach-tegra/board-harmony.dts deleted +0 -113
deleted file mode 100644
index 82fa0c2..0000000
@@ -1,113 +0,0 @@
-
-/dts-v1/;
-
-/ {
-	model = "nVidia Harmony";
-	compatible = "nvidia,harmony", "nvidia,tegra250";
-	#address-cells = <1>;
-	#size-cells = <1>;
-	interrupt-parent = <&intc>;
-
-	chosen {
-		bootargs = "vmalloc=192M video=tegrafb console=ttyS0,115200n8 root=/dev/mmcblk0p2 rw rootdelay=2";
-	};
-
-	memory {
-		device_type = "memory";
-		reg = < 0x00000000 0x1C000000
-		        0x20000000 0x20000000 >;
-	};
-
-	amba {
-		compatible = "simple-bus";
-		#address-cells = <1>;
-		#size-cells = <1>;
-		ranges;
-
-		intc: intc {
-			interrupt-controller;
-			#interrupt-cells = <1>;
-		};
-	};
-
-	gpio: gpio@6000d000 {
-		compatible = "nvidia,tegra250-gpio";
-		reg = < 0x6000d000 0x1000 >;
-		interrupts = < 64 65 66 67 87 119 121 >;
-		#gpio-cells = <2>;
-		gpio-controller;
-	};
-
-	serial@70006000 {
-		compatible = "nvidia,tegra250-uart";
-		reg = <0x70006000 0x40>;
-		reg-shift = <2>;
-		interrupts = < 68 >;
-		status = "disabled";
-	};
-
-	serial@70006040 {
-		compatible = "nvidia,tegra250-uart";
-		reg = <0x70006040 0x40>;
-		reg-shift = <2>;
-		interrupts = < 69 >;
-		status = "disabled";
-	};
-
-	serial@70006200 {
-		compatible = "nvidia,tegra250-uart";
-		reg = <0x70006200 0x100>;
-		reg-shift = <2>;
-		interrupts = < 78 >;
-		status = "disabled";
-	};
-
-	serial@70006300 {
-		compatible = "nvidia,tegra250-uart";
-		reg = <0x70006300 0x100>;
-		reg-shift = <2>;
-		interrupts = < 122 >;
-
-		clock-frequency = < 216000000 >;
-	};
-
-	serial@70006400 {
-		compatible = "nvidia,tegra250-uart";
-		reg = <0x70006400 0x100>;
-		reg-shift = <2>;
-		interrupts = < 123 >;
-		status = "disabled";
-	};
-
-	sdhci@c8000000 {
-		compatible = "nvidia,tegra250-sdhci";
-		reg = <0xc8000000 0x200>;
-		interrupts = < 46 >;
-		status = "disabled";
-	};
-
-	sdhci@c8000200 {
-		compatible = "nvidia,tegra250-sdhci";
-		reg = <0xc8000200 0x200>;
-		interrupts = < 47 >;
-		gpios = <&gpio 69 0>, /* cd, gpio PI5 */
-			<&gpio 57 0>, /* wp, gpio PH1 */
-			<&gpio 155 0>; /* power, gpio PT3 */
-	};
-
-	sdhci@c8000400 {
-		compatible = "nvidia,tegra250-sdhci";
-		reg = <0xc8000400 0x200>;
-		interrupts = < 51 >;
-		status = "disabled";
-	};
-
-	sdhci@c8000600 {
-		compatible = "nvidia,tegra250-sdhci";
-		reg = <0xc8000600 0x200>;
-		interrupts = < 63 >;
-		gpios = <&gpio 58 0>, /* cd, gpio PH2 */
-			<&gpio 59 0>, /* wp, gpio PH3 */
-			<&gpio 70 0>; /* power, gpio PI6 */
-	};
-};
Signature · 1 line
1.7.1