diff mbox series

mips: dts: ralink: mt7620a: rename nodes to generic names

Message ID 20220421173928.61467-1-dhu@hodcarrier.org (mailing list archive)
State New
Headers show
Series mips: dts: ralink: mt7620a: rename nodes to generic names | expand

Commit Message

Du Huanpeng April 21, 2022, 5:39 p.m. UTC
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@hodcarrier.org>
---
 arch/mips/boot/dts/ralink/mt7620a.dtsi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
diff mbox series

Patch

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@0 {
 		};
 	};
 
-	cpuintc: cpuintc {
+	cpuintc: interrupt-controller {
 		#address-cells = <0>;
 		#interrupt-cells = <1>;
 		interrupt-controller;
@@ -25,12 +25,12 @@  palmbus@10000000 {
 		#address-cells = <1>;
 		#size-cells = <1>;
 
-		sysc@0 {
+		syscon@0 {
 			compatible = "ralink,mt7620a-sysc";
 			reg = <0x0 0x100>;
 		};
 
-		intc: intc@200 {
+		intc: interrupt-controller@200 {
 			compatible = "ralink,mt7620a-intc", "ralink,rt2880-intc";
 			reg = <0x200 0x100>;
 
@@ -41,12 +41,12 @@  intc: intc@200 {
 			interrupts = <2>;
 		};
 
-		memc@300 {
+		memory-controller@300 {
 			compatible = "ralink,mt7620a-memc", "ralink,rt3050-memc";
 			reg = <0x300 0x100>;
 		};
 
-		uartlite@c00 {
+		uartlite: serial@c00 {
 			compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
 			reg = <0xc00 0x100>;