ramips: DTS style improvements for mt7621_wevo_w2914ns-v2.dtsi
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Thu, 12 Dec 2019 18:49:55 +0000 (19:49 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 13 Dec 2019 14:37:58 +0000 (15:37 +0100)
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>
target/linux/ramips/dts/mt7621_wevo_11acnas.dts
target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dts
target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi

index ec315426329f1acc9e5867c42dec41fe0b234501..0320a45060e3ca0a774d39f37b395b38b82e0b39 100644 (file)
@@ -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 {
index 816f6b1c0fb68cf3c101141dbf0be7fd41f0b4f7..bb9fa594845fe062dabf5e11b607c4d06f16d8e4 100644 (file)
@@ -3,6 +3,7 @@
 #include "mt7621_wevo_w2914ns-v2.dtsi"
 
 / {
+       compatible = "wevo,w2914ns-v2", "mediatek,mt7621-soc";
        model = "WeVO W2914NS v2";
 
        leds {
index 6ad3ef111fa9c832b2dbdcceed008c1dcec05c14..2cffb9520cecdf7935e2d7d824dd0dbdaea2d791 100644 (file)
@@ -4,8 +4,6 @@
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "wevo,w2914ns-v2", "mediatek,mt7621-soc";
-
        chosen {
                bootargs = "console=ttyS0,57600";
        };
        };
 };
 
-&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>;
        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";
        };
 };