[PATCH 06/10] ARM: dts: stm32: Add stm32mp13-ddr.dtsi template
Patrick DELAUNAY
patrick.delaunay at foss.st.com
Tue Jun 3 16:22:47 CEST 2025
Hi,
On 5/12/25 19:21, Marek Vasut wrote:
> Factor out common parts of STM32MP15xx DRAM controller configuration DT
> description into stm32mp1-ddr.dtsi and introduce stm32mp13-ddr.dtsi which
> describes STM32MP13xx DRAM controller configuration in DT.
>
> Signed-off-by: Marek Vasut <marek.vasut at mailbox.org>
> ---
> Cc: Cheick Traore <cheick.traore at foss.st.com>
> Cc: Fabrice Gasnier <fabrice.gasnier at foss.st.com>
> Cc: Gatien Chevallier <gatien.chevallier at foss.st.com>
> Cc: Lionel Debieve <lionel.debieve at foss.st.com>
> Cc: Pascal Zimmermann <pzimmermann at dh-electronics.com>
> Cc: Patrice Chotard <patrice.chotard at foss.st.com>
> Cc: Patrick Delaunay <patrick.delaunay at foss.st.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Sughosh Ganu <sughosh.ganu at linaro.org>
> Cc: Tom Rini <trini at konsulko.com>
> Cc: u-boot at dh-electronics.com
> Cc: u-boot at lists.denx.de
> Cc: uboot-stm32 at st-md-mailman.stormreply.com
> ---
> arch/arm/dts/stm32mp1-ddr.dtsi | 187 ++++++++++++++++++++++++++++++++
> arch/arm/dts/stm32mp13-ddr.dtsi | 49 +++++++++
> arch/arm/dts/stm32mp15-ddr.dtsi | 170 +----------------------------
> 3 files changed, 237 insertions(+), 169 deletions(-)
> create mode 100644 arch/arm/dts/stm32mp1-ddr.dtsi
> create mode 100644 arch/arm/dts/stm32mp13-ddr.dtsi
>
....
> diff --git a/arch/arm/dts/stm32mp13-ddr.dtsi b/arch/arm/dts/stm32mp13-ddr.dtsi
> new file mode 100644
> index 00000000000..30d8c5014e0
> --- /dev/null
> +++ b/arch/arm/dts/stm32mp13-ddr.dtsi
> @@ -0,0 +1,49 @@
> +// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
For new STM32MP file avoids to use the Deprecated License Identifiers
(GPL-2.0+ / GPL-2.0)
reference=
+https://spdx.dev/learn/handling-license-info/
+ https://spdx.org/licenses/
=>
SPDX-License-Identifier: GPL-2.0-or-later OR BSD-3-Clause
> +/*
> + * Copyright : STMicroelectronics 2018
This copyright, with year 2018 is strange this file is copied for TF-A
file, I think = ./fdts/stm32mp13-ddr.dtsi
Copyright (C) 2022, STMicroelectronics - All Rights Reserved
> + */
> +#ifdef CONFIG_SPL
> +&ddr {
> + clocks = <&rcc AXIDCG>,
> + <&rcc DDRC1>,
> + <&rcc DDRPHYC>,
> + <&rcc DDRCAPB>,
> + <&rcc DDRPHYCAPB>;
> +
> + clock-names = "axidcg",
> + "ddrc1",
> + "ddrphyc",
> + "ddrcapb",
> + "ddrphycapb";
> +
> + config-DDR_MEM_COMPATIBLE {
> + st,ctl-perf = <
> + DDR_SCHED
> + DDR_SCHED1
> + DDR_PERFHPR1
> + DDR_PERFLPR1
> + DDR_PERFWR1
> + DDR_PCFGR_0
> + DDR_PCFGW_0
> + DDR_PCFGQOS0_0
> + DDR_PCFGQOS1_0
> + DDR_PCFGWQOS0_0
> + DDR_PCFGWQOS1_0
> + >;
> +
> + st,phy-reg = <
> + DDR_PGCR
> + DDR_ACIOCR
> + DDR_DXCCR
> + DDR_DSGCR
> + DDR_DCR
> + DDR_ODTCR
> + DDR_ZQ0CR1
> + DDR_DX0GCR
> + DDR_DX1GCR
> + >;
> + };
> +};
> +#endif
> +
> +#include "stm32mp1-ddr.dtsi"
...
Witth the minor updates
Reviewed-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
Thanks
Patrick
More information about the U-Boot
mailing list