aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-12-12 19:49:55 +0100
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-12-13 15:37:58 +0100
commit5cda133d99f25ac85fcc4ef9ae092f9c4fb90739 (patch)
treef9a33b35b171ff84d454b9f72d4604325b27db11
parent0375c076b67cda9dc1b758b87ab1b79fd2403d94 (diff)
downloadupstream-5cda133d99f25ac85fcc4ef9ae092f9c4fb90739.tar.gz
upstream-5cda133d99f25ac85fcc4ef9ae092f9c4fb90739.tar.bz2
upstream-5cda133d99f25ac85fcc4ef9ae092f9c4fb90739.zip
ramips: DTS style improvements for mt7621_wevo_w2914ns-v2.dtsi
This does several trivial DTS style improvements: - Move device name compatible to DTS files (and fix compatible in 11acnas.dts) - Remove xhci node as status is set to okay in mt7621.dtsi already - 0x0 instead of 0x0000 - Simplify state_default node definition Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
-rw-r--r--target/linux/ramips/dts/mt7621_wevo_11acnas.dts2
-rw-r--r--target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dts1
-rw-r--r--target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi18
3 files changed, 7 insertions, 14 deletions
diff --git a/target/linux/ramips/dts/mt7621_wevo_11acnas.dts b/target/linux/ramips/dts/mt7621_wevo_11acnas.dts
index ec31542632..0320a45060 100644
--- a/target/linux/ramips/dts/mt7621_wevo_11acnas.dts
+++ b/target/linux/ramips/dts/mt7621_wevo_11acnas.dts
@@ -3,7 +3,7 @@
#include "mt7621_wevo_w2914ns-v2.dtsi"
/ {
- compatible = "wevo,11acnas", "wevo,w2914ns-v2", "mediatek,mt7621-soc";
+ compatible = "wevo,11acnas", "mediatek,mt7621-soc";
model = "WeVO 11AC NAS Router";
leds {
diff --git a/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dts b/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dts
index 816f6b1c0f..bb9fa59484 100644
--- a/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dts
+++ b/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dts
@@ -3,6 +3,7 @@
#include "mt7621_wevo_w2914ns-v2.dtsi"
/ {
+ compatible = "wevo,w2914ns-v2", "mediatek,mt7621-soc";
model = "WeVO W2914NS v2";
leds {
diff --git a/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi b/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi
index 6ad3ef111f..2cffb9520c 100644
--- a/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi
+++ b/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi
@@ -4,8 +4,6 @@
#include <dt-bindings/input/input.h>
/ {
- compatible = "wevo,w2914ns-v2", "mediatek,mt7621-soc";
-
chosen {
bootargs = "console=ttyS0,57600";
};
@@ -27,10 +25,6 @@
};
};
-&xhci {
- status = "okay";
-};
-
&spi0 {
status = "okay";
@@ -80,7 +74,7 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0000>;
+ mediatek,mtd-eeprom = <&factory 0x0>;
led {
led-sources = <0>;
@@ -107,11 +101,9 @@
mtd-mac-address = <&factory 0xe000>;
};
-&pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "wdt", "rgmii2";
- ralink,function = "gpio";
- };
+&state_default {
+ gpio {
+ ralink,group = "wdt", "rgmii2";
+ ralink,function = "gpio";
};
};