diff mbox series

[v2,12/21] dts: mtmips: add u-boot, dm-pre-reloc for some nodes in mt7628a.dtsi

Message ID 1579247159-32743-1-git-send-email-weijie.gao@mediatek.com
State New
Headers show
Series None | expand

Commit Message

Weijie Gao Jan. 17, 2020, 7:45 a.m. UTC
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(+)

Comments

Stefan Roese Jan. 17, 2020, 2:46 p.m. UTC | #1
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
diff mbox series

Patch

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;
+
 		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;
 		};
 	};