[PATCH v2 12/21] dts: mtmips: add u-boot, dm-pre-reloc for some nodes in mt7628a.dtsi
Stefan Roese
sr at denx.de
Fri Jan 17 15:46:21 CET 2020
On 17.01.20 08:45, Weijie Gao wrote:
> To enable DM support in SPL, some necessary nodes must be reserved for
> serial, clk, sysreset and other drivers.
>
> This patch adds u-boot,dm-pre-reloc for these nodes.
>
> Signed-off-by: Weijie Gao <weijie.gao at mediatek.com>
> ---
> Changes since v1: newly added
> ---
> arch/mips/dts/mt7628a.dtsi | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/arch/mips/dts/mt7628a.dtsi b/arch/mips/dts/mt7628a.dtsi
> index 3d7b839e6d..744594c45a 100644
> --- a/arch/mips/dts/mt7628a.dtsi
> +++ b/arch/mips/dts/mt7628a.dtsi
> @@ -23,11 +23,14 @@
> #address-cells = <1>;
> #size-cells = <1>;
>
> + u-boot,dm-pre-reloc;
> +
Please don't add these U-Boot specific properties into these dts/dtsi
files. The preferred way is to create a new dtsi file with the U-Boot
specific additions. This will get included automatically in the build
process. Please see this file for example:
arch/arm/dts/mt7622-u-boot.dtsi
This will also enable us to stay in sync with the Linux DT files.
> resetctl-reboot {
> compatible = "resetctl-reboot";
>
> resets = <&rstctrl MT7628_SYS_RST>;
> reset-names = "sysreset";
> + u-boot,dm-pre-reloc;
> };
>
> clkctrl: clkctrl at 0x2c {
> @@ -42,6 +45,7 @@
> reg = <0x34 0x4>;
> compatible = "mediatek,mtmips-reset";
> #reset-cells = <1>;
> + u-boot,dm-pre-reloc;
> };
>
> pinctrl: pinctrl at 60 {
> @@ -52,6 +56,8 @@
> pinctrl-names = "default";
> pinctrl-0 = <&state_default>;
>
> + u-boot,dm-pre-reloc;
> +
> state_default: pin_state {
> };
>
> @@ -260,6 +266,8 @@
> reset-names = "uart0";
>
> reg-shift = <2>;
> +
> + u-boot,dm-pre-reloc;
> };
>
> uart1: uart1 at d00 {
> @@ -275,6 +283,8 @@
> reset-names = "uart1";
>
> reg-shift = <2>;
> +
> + u-boot,dm-pre-reloc;
> };
>
> uart2: uart2 at e00 {
> @@ -290,6 +300,8 @@
> reset-names = "uart2";
>
> reg-shift = <2>;
> +
> + u-boot,dm-pre-reloc;
> };
> };
>
>
Viele Grüße,
Stefan
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
More information about the U-Boot
mailing list