* [U-Boot] [PATCH] ARM: DT: STM32F746: add u-boot, dm-pre-reloc property to sub nodes
@ 2017-04-04 23:59 Vikas Manocha
2017-04-12 17:27 ` [U-Boot] " Tom Rini
0 siblings, 1 reply; 3+ messages in thread
From: Vikas Manocha @ 2017-04-04 23:59 UTC (permalink / raw)
To: u-boot
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/stm32f746-disco.dts | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/arch/arm/dts/stm32f746-disco.dts b/arch/arm/dts/stm32f746-disco.dts
index 2c7fa79..30c92ef 100644
--- a/arch/arm/dts/stm32f746-disco.dts
+++ b/arch/arm/dts/stm32f746-disco.dts
@@ -96,15 +96,18 @@
&pinctrl {
usart1_pins_a: usart1 at 0 {
+ u-boot,dm-pre-reloc;
pins1 {
- pinmux = <STM32F746_PA9_FUNC_USART1_TX>;
+ pinmux = <STM32F746_PA9_FUNC_USART1_TX>;
bias-disable;
drive-push-pull;
slew-rate = <2>;
+ u-boot,dm-pre-reloc;
};
pins2 {
pinmux = <STM32F746_PB7_FUNC_USART1_RX>;
bias-disable;
+ u-boot,dm-pre-reloc;
};
};
@@ -136,7 +139,9 @@
};
fmc_pins: fmc at 0 {
+ u-boot,dm-pre-reloc;
pins {
+ u-boot,dm-pre-reloc;
pinmux = <STM32F746_PD10_FUNC_FMC_D15>,
<STM32F746_PD9_FUNC_FMC_D14>,
<STM32F746_PD8_FUNC_FMC_D13>,
@@ -198,6 +203,7 @@
mr-nbanks = <1>;
/* Memory configuration from sdram datasheet MT48LC_4M32_B2B5-6A */
bank1: bank at 0 {
+ u-boot,dm-pre-reloc;
st,sdram-control = /bits/ 8 <NO_COL_8 NO_ROW_12 MWIDTH_16 BANKS_4
CAS_3 SDCLK_2 RD_BURST_EN
RD_PIPE_DL_0>;
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* [U-Boot] ARM: DT: STM32F746: add u-boot, dm-pre-reloc property to sub nodes
2017-04-04 23:59 [U-Boot] [PATCH] ARM: DT: STM32F746: add u-boot, dm-pre-reloc property to sub nodes Vikas Manocha
@ 2017-04-12 17:27 ` Tom Rini
2017-04-12 21:32 ` Vikas MANOCHA
0 siblings, 1 reply; 3+ messages in thread
From: Tom Rini @ 2017-04-12 17:27 UTC (permalink / raw)
To: u-boot
On Tue, Apr 04, 2017 at 04:59:06PM -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>
> ---
> arch/arm/dts/stm32f746-disco.dts | 8 +++++++-
This should be done in arch/arm/dts/stm32f746-u-boot.dtsi or similar,
see scripts/Makefile.lib for the logic on how we pick these files up,
thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170412/1aa86c6d/attachment.sig>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] ARM: DT: STM32F746: add u-boot, dm-pre-reloc property to sub nodes
2017-04-12 17:27 ` [U-Boot] " Tom Rini
@ 2017-04-12 21:32 ` Vikas MANOCHA
0 siblings, 0 replies; 3+ messages in thread
From: Vikas MANOCHA @ 2017-04-12 21:32 UTC (permalink / raw)
To: u-boot
Hi Tom,
> -----Original Message-----
> From: Tom Rini [mailto:trini at konsulko.com]
> Sent: Wednesday, April 12, 2017 10:27 AM
> To: Vikas MANOCHA <vikas.manocha@st.com>
> Cc: u-boot at lists.denx.de; Ian Campbell <ijc@hellion.org.uk>; Hans de Goede <hdegoede@redhat.com>
> Subject: Re: [U-Boot] ARM: DT: STM32F746: add u-boot, dm-pre-reloc property to sub nodes
>
> On Tue, Apr 04, 2017 at 04:59:06PM -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>
> > ---
> > arch/arm/dts/stm32f746-disco.dts | 8 +++++++-
>
> This should be done in arch/arm/dts/stm32f746-u-boot.dtsi or similar, see scripts/Makefile.lib for the logic on how we pick these files
> up, thanks!
Really cool! Thanks for this information. I will create stm32f7-u-boot.dtsi to add this info & send v2.
Cheers,
Vikas
>
> --
> Tom
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-04-12 21:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-04 23:59 [U-Boot] [PATCH] ARM: DT: STM32F746: add u-boot, dm-pre-reloc property to sub nodes Vikas Manocha
2017-04-12 17:27 ` [U-Boot] " Tom Rini
2017-04-12 21:32 ` Vikas MANOCHA
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox