ramips: simplify status for ehci/ohci on mt7628 TP-Link devices

At the moment, ehci/ohci is enabled in mt7628an SoC DTSI, then
disabled in the TP-Link-specific DTSI files, and finally enabled
again in the DTS files of the devices needing it.

This on-off-on scheme is hard to grasp on a quick look. Thus, this
patch drops the status in the TP-Link-specific DTSI files, having
the TP-Link devices treated like the rest of mt7628an DTSes, i.e.
ehci/ohci is enabled by default and needs to be disabled explicitly
where needed.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Adrian Schmutzler 2020-12-01 14:48:41 +01:00
parent b9971db7c3
commit e6a181dcea
16 changed files with 72 additions and 56 deletions

View File

@ -72,14 +72,6 @@
};
};
&ehci {
status = "disabled";
};
&ohci {
status = "disabled";
};
&wmac {
status = "okay";
mtd-mac-address = <&rom 0xf100>;

View File

@ -53,14 +53,6 @@
};
};
&ehci {
status = "disabled";
};
&ohci {
status = "disabled";
};
&wmac {
status = "okay";
mtd-mac-address = <&factory 0xf100>;

View File

@ -69,6 +69,14 @@
};
};
&ehci {
status = "disabled";
};
&ohci {
status = "disabled";
};
&wmac {
mtd-mac-address-increment = <(-2)>;
};

View File

@ -71,6 +71,14 @@
};
};
&ehci {
status = "disabled";
};
&ohci {
status = "disabled";
};
&state_default {
gpio {
groups = "i2s", "gpio", "refclk", "p0led_an", "p1led_an",

View File

@ -67,6 +67,14 @@
};
};
&ehci {
status = "disabled";
};
&ohci {
status = "disabled";
};
&state_default {
gpio {
groups = "i2c", "gpio", "p0led_an", "p1led_an", "p2led_an",

View File

@ -69,6 +69,14 @@
};
};
&ehci {
status = "disabled";
};
&ohci {
status = "disabled";
};
&state_default {
gpio {
groups = "i2c", "p0led_an", "p1led_an", "p2led_an",

View File

@ -69,14 +69,6 @@
};
};
&ehci {
status = "okay";
};
&ohci {
status = "okay";
};
&state_default {
gpio {
groups = "i2c", "i2s", "p2led_an", "refclk", "uart1", "wdt", "wled_an";

View File

@ -70,14 +70,6 @@
};
};
&ehci {
status = "okay";
};
&ohci {
status = "okay";
};
&state_default {
gpio {
groups = "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "refclk", "uart1", "wdt", "wled_an";

View File

@ -70,14 +70,6 @@
};
};
&ehci {
status = "okay";
};
&ohci {
status = "okay";
};
&state_default {
gpio {
groups = "i2c", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "uart1", "wdt";

View File

@ -58,6 +58,14 @@
};
};
&ehci {
status = "disabled";
};
&ohci {
status = "disabled";
};
&state_default {
gpio {
groups = "p0led_an", "p1led_an", "perst", "refclk",

View File

@ -33,6 +33,14 @@
};
};
&ehci {
status = "disabled";
};
&ohci {
status = "disabled";
};
&state_default {
gpio {
groups = "refclk", "wdt";

View File

@ -51,6 +51,14 @@
};
};
&ehci {
status = "disabled";
};
&ohci {
status = "disabled";
};
&state_default {
gpio {
groups = "p0led_an", "p2led_an", "perst", "refclk", "wdt", "wled_an";

View File

@ -77,6 +77,14 @@
};
};
&ehci {
status = "disabled";
};
&ohci {
status = "disabled";
};
&state_default {
gpio {
groups = "gpio", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "perst", "refclk", "uart1", "wdt", "wled_an";

View File

@ -69,14 +69,6 @@
};
};
&ehci {
status = "okay";
};
&ohci {
status = "okay";
};
&state_default {
gpio {
groups = "i2c", "i2s", "p2led_an", "refclk", "uart1", "wdt", "wled_an";

View File

@ -54,6 +54,14 @@
};
};
&ehci {
status = "disabled";
};
&ohci {
status = "disabled";
};
&state_default {
gpio {
groups = "p0led_an", "p2led_an", "perst", "refclk", "wdt", "wled_an";

View File

@ -83,14 +83,6 @@
};
};
&ehci {
status = "okay";
};
&ohci {
status = "okay";
};
&pcie {
status = "okay";
};