Skip to contentSkip to conversation

dts: mtmips: add u-boot, dm-pre-reloc for some nodes in mt7628a.dtsi

PATCH Superseded Weijie Gao 2 participants 2 messages Jan 17, 2020

Subsystems (2)

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

Weijie Gao

author
#0 lore raw

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

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.

---
Changes since v1: newly added

---
 arch/mips/dts/mt7628a.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/mips/dts/mt7628a.dtsi +12 -0
index 3d7b839e6d..744594c45a 100644
@@ -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;
 		};
 	};
 
Signature · 1 line
2.17.1
#1 lore raw

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

Quoted 17 lines · Weijie Gao

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.

---
Changes since v1: newly added

---
  arch/mips/dts/mt7628a.dtsi | 12 ++++++++++++
  1 file changed, 12 insertions(+)
arch/mips/dts/mt7628a.dtsi +0 -0
index 3d7b839e6d..744594c45a 100644

arch/mips/dts/mt7628a.dtsi line 27

Quoted 5 lines
arch/mips/dts/mt7628a.dtsi +2 -0
@@ -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.

Quoted 46 lines
arch/mips/dts/mt7628a.dtsi +8 -0
  		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 {

arch/mips/dts/mt7628a.dtsi line 307

Quoted 8 lines
arch/mips/dts/mt7628a.dtsi +2 -0
@@ -290,6 +300,8 @@
  			reset-names = "uart2";
 
  			reg-shift = <2>;
+
+			u-boot,dm-pre-reloc;
  		};
  	};
 

Viele Grüße,
Stefan

Signature · 3 lines
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