[PATCH] mips: dts: ralink: mt7620a: rename nodes to generic names

Du Huanpeng dhu at hodcarrier.org
Thu Apr 21 10:39:28 PDT 2022


The name of a node should be somewhat generic, reflecting the function
of the device and not its precise programming model.

- interrupt-controller
- syscon
- memory-controller
- serial

devicetree-specification-v0.3.pdf
link: https://github.com/devicetree-org/devicetree-specification/releases/tag/v0.3

Signed-off-by: Du Huanpeng <dhu at hodcarrier.org>
---
 arch/mips/boot/dts/ralink/mt7620a.dtsi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/mips/boot/dts/ralink/mt7620a.dtsi b/arch/mips/boot/dts/ralink/mt7620a.dtsi
index 1f6e5320f486..b9cbde603778 100644
--- a/arch/mips/boot/dts/ralink/mt7620a.dtsi
+++ b/arch/mips/boot/dts/ralink/mt7620a.dtsi
@@ -10,7 +10,7 @@ cpu at 0 {
 		};
 	};
 
-	cpuintc: cpuintc {
+	cpuintc: interrupt-controller {
 		#address-cells = <0>;
 		#interrupt-cells = <1>;
 		interrupt-controller;
@@ -25,12 +25,12 @@ palmbus at 10000000 {
 		#address-cells = <1>;
 		#size-cells = <1>;
 
-		sysc at 0 {
+		syscon at 0 {
 			compatible = "ralink,mt7620a-sysc";
 			reg = <0x0 0x100>;
 		};
 
-		intc: intc at 200 {
+		intc: interrupt-controller at 200 {
 			compatible = "ralink,mt7620a-intc", "ralink,rt2880-intc";
 			reg = <0x200 0x100>;
 
@@ -41,12 +41,12 @@ intc: intc at 200 {
 			interrupts = <2>;
 		};
 
-		memc at 300 {
+		memory-controller at 300 {
 			compatible = "ralink,mt7620a-memc", "ralink,rt3050-memc";
 			reg = <0x300 0x100>;
 		};
 
-		uartlite at c00 {
+		uartlite: serial at c00 {
 			compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
 			reg = <0xc00 0x100>;
 
-- 
2.25.1




More information about the Linux-mediatek mailing list