[openwrt/openwrt] ramips: move aliases to the top in SoC DTSI files
LEDE Commits
lede-commits at lists.infradead.org
Mon Feb 22 12:50:15 EST 2021
adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/d4520d75a142db901d748c4f07e3ff72916bfa91
commit d4520d75a142db901d748c4f07e3ff72916bfa91
Author: Adrian Schmutzler <freifunk at adrianschmutzler.de>
AuthorDate: Mon Feb 22 18:44:31 2021 +0100
ramips: move aliases to the top in SoC DTSI files
The aliases node is expected as one of the first entries, and
having it there matches alphabetic sorting as well.
Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
target/linux/ramips/dts/mt7620a.dtsi | 12 ++++++------
target/linux/ramips/dts/mt7620n.dtsi | 12 ++++++------
target/linux/ramips/dts/mt7621.dtsi | 8 ++++----
target/linux/ramips/dts/mt7628an.dtsi | 8 ++++----
target/linux/ramips/dts/rt2880.dtsi | 8 ++++----
target/linux/ramips/dts/rt3050.dtsi | 10 +++++-----
target/linux/ramips/dts/rt3352.dtsi | 12 ++++++------
target/linux/ramips/dts/rt3883.dtsi | 12 ++++++------
target/linux/ramips/dts/rt5350.dtsi | 12 ++++++------
9 files changed, 47 insertions(+), 47 deletions(-)
diff --git a/target/linux/ramips/dts/mt7620a.dtsi b/target/linux/ramips/dts/mt7620a.dtsi
index ebcb659d36..afd638a386 100644
--- a/target/linux/ramips/dts/mt7620a.dtsi
+++ b/target/linux/ramips/dts/mt7620a.dtsi
@@ -5,6 +5,12 @@
#size-cells = <1>;
compatible = "ralink,mt7620a-soc";
+ aliases {
+ spi0 = &spi0;
+ spi1 = &spi1;
+ serial0 = &uartlite;
+ };
+
cpus {
#address-cells = <1>;
#size-cells = <0>;
@@ -26,12 +32,6 @@
compatible = "mti,cpu-interrupt-controller";
};
- aliases {
- spi0 = &spi0;
- spi1 = &spi1;
- serial0 = &uartlite;
- };
-
palmbus: palmbus at 10000000 {
compatible = "palmbus";
reg = <0x10000000 0x200000>;
diff --git a/target/linux/ramips/dts/mt7620n.dtsi b/target/linux/ramips/dts/mt7620n.dtsi
index 2feb411dbc..309608adb1 100644
--- a/target/linux/ramips/dts/mt7620n.dtsi
+++ b/target/linux/ramips/dts/mt7620n.dtsi
@@ -5,6 +5,12 @@
#size-cells = <1>;
compatible = "ralink,mt7620n-soc";
+ aliases {
+ spi0 = &spi0;
+ spi1 = &spi1;
+ serial0 = &uartlite;
+ };
+
cpus {
#address-cells = <1>;
#size-cells = <0>;
@@ -26,12 +32,6 @@
compatible = "mti,cpu-interrupt-controller";
};
- aliases {
- spi0 = &spi0;
- spi1 = &spi1;
- serial0 = &uartlite;
- };
-
palmbus: palmbus at 10000000 {
compatible = "palmbus";
reg = <0x10000000 0x200000>;
diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi
index 7636f9d800..53e13441e8 100644
--- a/target/linux/ramips/dts/mt7621.dtsi
+++ b/target/linux/ramips/dts/mt7621.dtsi
@@ -9,6 +9,10 @@
#size-cells = <1>;
compatible = "mediatek,mt7621-soc";
+ aliases {
+ serial0 = &uartlite;
+ };
+
cpus {
#address-cells = <1>;
#size-cells = <0>;
@@ -33,10 +37,6 @@
compatible = "mti,cpu-interrupt-controller";
};
- aliases {
- serial0 = &uartlite;
- };
-
chosen {
bootargs = "console=ttyS0,57600";
};
diff --git a/target/linux/ramips/dts/mt7628an.dtsi b/target/linux/ramips/dts/mt7628an.dtsi
index aa46de7134..d622aa9077 100644
--- a/target/linux/ramips/dts/mt7628an.dtsi
+++ b/target/linux/ramips/dts/mt7628an.dtsi
@@ -5,6 +5,10 @@
#size-cells = <1>;
compatible = "mediatek,mt7628an-soc";
+ aliases {
+ serial0 = &uartlite;
+ };
+
cpus {
#address-cells = <1>;
#size-cells = <0>;
@@ -19,10 +23,6 @@
bootargs = "console=ttyS0,57600";
};
- aliases {
- serial0 = &uartlite;
- };
-
cpuintc: cpuintc {
#address-cells = <0>;
#interrupt-cells = <1>;
diff --git a/target/linux/ramips/dts/rt2880.dtsi b/target/linux/ramips/dts/rt2880.dtsi
index 092b37a0c2..b02ef4f465 100644
--- a/target/linux/ramips/dts/rt2880.dtsi
+++ b/target/linux/ramips/dts/rt2880.dtsi
@@ -5,6 +5,10 @@
#size-cells = <1>;
compatible = "ralink,rt2880-soc";
+ aliases {
+ serial0 = &uartlite;
+ };
+
cpus {
#address-cells = <1>;
#size-cells = <0>;
@@ -19,10 +23,6 @@
bootargs = "console=ttyS0,57600";
};
- aliases {
- serial0 = &uartlite;
- };
-
cpuintc: cpuintc {
#address-cells = <0>;
#interrupt-cells = <1>;
diff --git a/target/linux/ramips/dts/rt3050.dtsi b/target/linux/ramips/dts/rt3050.dtsi
index 847c2169f0..9ba8a4df36 100644
--- a/target/linux/ramips/dts/rt3050.dtsi
+++ b/target/linux/ramips/dts/rt3050.dtsi
@@ -5,6 +5,11 @@
#size-cells = <1>;
compatible = "ralink,rt3050-soc", "ralink,rt3052-soc", "ralink,rt3350-soc";
+ aliases {
+ spi0 = &spi0;
+ serial0 = &uartlite;
+ };
+
cpus {
#address-cells = <1>;
#size-cells = <0>;
@@ -19,11 +24,6 @@
bootargs = "console=ttyS0,57600";
};
- aliases {
- spi0 = &spi0;
- serial0 = &uartlite;
- };
-
cpuintc: cpuintc {
#address-cells = <0>;
#interrupt-cells = <1>;
diff --git a/target/linux/ramips/dts/rt3352.dtsi b/target/linux/ramips/dts/rt3352.dtsi
index 2a51b14de1..054d2e8450 100644
--- a/target/linux/ramips/dts/rt3352.dtsi
+++ b/target/linux/ramips/dts/rt3352.dtsi
@@ -5,6 +5,12 @@
#size-cells = <1>;
compatible = "ralink,rt3352-soc";
+ aliases {
+ spi0 = &spi0;
+ spi1 = &spi1;
+ serial0 = &uartlite;
+ };
+
cpus {
#address-cells = <1>;
#size-cells = <0>;
@@ -26,12 +32,6 @@
compatible = "mti,cpu-interrupt-controller";
};
- aliases {
- spi0 = &spi0;
- spi1 = &spi1;
- serial0 = &uartlite;
- };
-
palmbus: palmbus at 10000000 {
compatible = "palmbus";
reg = <0x10000000 0x200000>;
diff --git a/target/linux/ramips/dts/rt3883.dtsi b/target/linux/ramips/dts/rt3883.dtsi
index a605d60ca7..081b52bfd8 100644
--- a/target/linux/ramips/dts/rt3883.dtsi
+++ b/target/linux/ramips/dts/rt3883.dtsi
@@ -5,6 +5,12 @@
#size-cells = <1>;
compatible = "ralink,rt3883-soc";
+ aliases {
+ spi0 = &spi0;
+ spi1 = &spi1;
+ serial0 = &uartlite;
+ };
+
cpus {
#address-cells = <1>;
#size-cells = <0>;
@@ -19,12 +25,6 @@
bootargs = "console=ttyS0,57600";
};
- aliases {
- spi0 = &spi0;
- spi1 = &spi1;
- serial0 = &uartlite;
- };
-
cpuintc: cpuintc {
#address-cells = <0>;
#interrupt-cells = <1>;
diff --git a/target/linux/ramips/dts/rt5350.dtsi b/target/linux/ramips/dts/rt5350.dtsi
index da282b55ec..579d41456b 100644
--- a/target/linux/ramips/dts/rt5350.dtsi
+++ b/target/linux/ramips/dts/rt5350.dtsi
@@ -5,6 +5,12 @@
#size-cells = <1>;
compatible = "ralink,rt5350-soc";
+ aliases {
+ spi0 = &spi0;
+ spi1 = &spi1;
+ serial0 = &uartlite;
+ };
+
cpus {
#address-cells = <1>;
#size-cells = <0>;
@@ -26,12 +32,6 @@
compatible = "mti,cpu-interrupt-controller";
};
- aliases {
- spi0 = &spi0;
- spi1 = &spi1;
- serial0 = &uartlite;
- };
-
palmbus: palmbus at 10000000 {
compatible = "palmbus";
reg = <0x10000000 0x200000>;
More information about the lede-commits
mailing list