[OpenWrt-Devel] [PATCH 8/8] ramips: update dtsi files to set mt7621 spi bus number

Michael Lee igvtee at gmail.com
Sat Oct 10 23:54:34 EDT 2015


Signed-off-by: Michael Lee <igvtee at gmail.com>
---
 target/linux/ramips/dts/mt7621.dtsi   | 6 +++++-
 target/linux/ramips/dts/mt7628an.dtsi | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi
index fd2e100..a4d4614 100644
--- a/target/linux/ramips/dts/mt7621.dtsi
+++ b/target/linux/ramips/dts/mt7621.dtsi
@@ -20,6 +20,10 @@
 		compatible = "mti,cpu-interrupt-controller";
 	};
 
+	aliases {
+		spi0 = &spi0;
+	};
+
 	palmbus at 1E000000 {
 		compatible = "palmbus";
 		reg = <0x1E000000 0x100000>;
@@ -84,7 +88,7 @@
 			no-loopback-test;
 		};
 
-		spi at b00 {
+		spi0: spi at b00 {
 			status = "okay";
 
 			compatible = "ralink,mt7621-spi";
diff --git a/target/linux/ramips/dts/mt7628an.dtsi b/target/linux/ramips/dts/mt7628an.dtsi
index 0f59cb7..629157d 100644
--- a/target/linux/ramips/dts/mt7628an.dtsi
+++ b/target/linux/ramips/dts/mt7628an.dtsi
@@ -20,6 +20,10 @@
 		compatible = "mti,cpu-interrupt-controller";
 	};
 
+	aliases {
+		spi0 = &spi0;
+	};
+
 	palmbus at 10000000 {
 		compatible = "palmbus";
 		reg = <0x10000000 0x200000>;
@@ -105,7 +109,7 @@
 			};
 		};
 
-		spi at b00 {
+		spi0: spi at b00 {
 			compatible = "ralink,mt7621-spi";
 			reg = <0xb00 0x100>;
 
-- 
2.3.6
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list