diff mbox

[U-Boot,v2] ARM: DT: STM32F746: add u-boot, dm-pre-reloc property to sub nodes

Message ID 1492031801-31331-1-git-send-email-vikas.manocha@st.com
State Accepted
Commit f22f3dc996a55047334a2e9312ac440877174470
Delegated to: Tom Rini
Headers show

Commit Message

Vikas MANOCHA April 12, 2017, 9:16 p.m. UTC
This patch is required for correct SPL device tree creation by fdtgrep
as fdtgrep looks for u-boot,dm-pre-reloc property of the node to include
it in the spl device tree.

Not adding it in these subnodes ignores the pin muxing of peripherals
which is almost always in the subnodes.

Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
---
 arch/arm/dts/stm32f7-u-boot.dtsi | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 arch/arm/dts/stm32f7-u-boot.dtsi

Comments

Tom Rini April 12, 2017, 10:03 p.m. UTC | #1
On Wed, Apr 12, 2017 at 02:16:36PM -0700, Vikas Manocha wrote:

> This patch is required for correct SPL device tree creation by fdtgrep
> as fdtgrep looks for u-boot,dm-pre-reloc property of the node to include
> it in the spl device tree.
> 
> Not adding it in these subnodes ignores the pin muxing of peripherals
> which is almost always in the subnodes.
> 
> Signed-off-by: Vikas Manocha <vikas.manocha@st.com>

Reviewed-by: Tom Rini <trini@konsulko.com>
Tom Rini May 8, 2017, 7:41 p.m. UTC | #2
On Wed, Apr 12, 2017 at 02:16:36PM -0700, Vikas Manocha wrote:

> This patch is required for correct SPL device tree creation by fdtgrep
> as fdtgrep looks for u-boot,dm-pre-reloc property of the node to include
> it in the spl device tree.
> 
> Not adding it in these subnodes ignores the pin muxing of peripherals
> which is almost always in the subnodes.
> 
> Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
> Reviewed-by: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/arch/arm/dts/stm32f7-u-boot.dtsi b/arch/arm/dts/stm32f7-u-boot.dtsi
new file mode 100644
index 0000000..5f77f57
--- /dev/null
+++ b/arch/arm/dts/stm32f7-u-boot.dtsi
@@ -0,0 +1,24 @@ 
+&pinctrl {
+	usart1_pins_a: usart1@0	{
+		u-boot,dm-pre-reloc;
+		pins1 {
+			u-boot,dm-pre-reloc;
+		};
+		pins2 {
+			u-boot,dm-pre-reloc;
+		};
+	};
+	fmc_pins: fmc@0 {
+		u-boot,dm-pre-reloc;
+		pins
+		{
+		 u-boot,dm-pre-reloc;
+		};
+	};
+};
+
+&fmc {
+	bank1: bank@0 {
+		 u-boot,dm-pre-reloc;
+	};
+};