Skip to content

Commit

Permalink
ramips: simplify status for ehci/ohci on mt7628 TP-Link devices
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
adschm committed Dec 7, 2020
1 parent b9971db commit e6a181d
Show file tree
Hide file tree
Showing 16 changed files with 72 additions and 56 deletions.
8 changes: 0 additions & 8 deletions target/linux/ramips/dts/mt7628an_tplink_8m-split-uboot.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,6 @@
};
};

&ehci {
status = "disabled";
};

&ohci {
status = "disabled";
};

&wmac {
status = "okay";
mtd-mac-address = <&rom 0xf100>;
Expand Down
8 changes: 0 additions & 8 deletions target/linux/ramips/dts/mt7628an_tplink_8m.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@
};
};

&ehci {
status = "disabled";
};

&ohci {
status = "disabled";
};

&wmac {
status = "okay";
mtd-mac-address = <&factory 0xf100>;
Expand Down
8 changes: 8 additions & 0 deletions target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@
};
};

&ehci {
status = "disabled";
};

&ohci {
status = "disabled";
};

&wmac {
mtd-mac-address-increment = <(-2)>;
};
Expand Down
8 changes: 8 additions & 0 deletions target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@
};
};

&ehci {
status = "disabled";
};

&ohci {
status = "disabled";
};

&state_default {
gpio {
groups = "i2s", "gpio", "refclk", "p0led_an", "p1led_an",
Expand Down
8 changes: 8 additions & 0 deletions target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@
};
};

&ehci {
status = "disabled";
};

&ohci {
status = "disabled";
};

&state_default {
gpio {
groups = "i2c", "gpio", "p0led_an", "p1led_an", "p2led_an",
Expand Down
8 changes: 8 additions & 0 deletions target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@
};
};

&ehci {
status = "disabled";
};

&ohci {
status = "disabled";
};

&state_default {
gpio {
groups = "i2c", "p0led_an", "p1led_an", "p2led_an",
Expand Down
8 changes: 0 additions & 8 deletions target/linux/ramips/dts/mt7628an_tplink_tl-mr3420-v5.dts
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,6 @@
};
};

&ehci {
status = "okay";
};

&ohci {
status = "okay";
};

&state_default {
gpio {
groups = "i2c", "i2s", "p2led_an", "refclk", "uart1", "wdt", "wled_an";
Expand Down
8 changes: 0 additions & 8 deletions target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
8 changes: 0 additions & 8 deletions target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v5.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
8 changes: 8 additions & 0 deletions target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@
};
};

&ehci {
status = "disabled";
};

&ohci {
status = "disabled";
};

&state_default {
gpio {
groups = "p0led_an", "p1led_an", "perst", "refclk",
Expand Down
8 changes: 8 additions & 0 deletions target/linux/ramips/dts/mt7628an_tplink_tl-wr802n-v4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@
};
};

&ehci {
status = "disabled";
};

&ohci {
status = "disabled";
};

&state_default {
gpio {
groups = "refclk", "wdt";
Expand Down
8 changes: 8 additions & 0 deletions target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@
};
};

&ehci {
status = "disabled";
};

&ohci {
status = "disabled";
};

&state_default {
gpio {
groups = "p0led_an", "p2led_an", "perst", "refclk", "wdt", "wled_an";
Expand Down
8 changes: 8 additions & 0 deletions target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v13.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
8 changes: 0 additions & 8 deletions target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,6 @@
};
};

&ehci {
status = "okay";
};

&ohci {
status = "okay";
};

&state_default {
gpio {
groups = "i2c", "i2s", "p2led_an", "refclk", "uart1", "wdt", "wled_an";
Expand Down
8 changes: 8 additions & 0 deletions target/linux/ramips/dts/mt7628an_tplink_tl-wr850n-v2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@
};
};

&ehci {
status = "disabled";
};

&ohci {
status = "disabled";
};

&state_default {
gpio {
groups = "p0led_an", "p2led_an", "perst", "refclk", "wdt", "wled_an";
Expand Down
8 changes: 0 additions & 8 deletions target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,6 @@
};
};

&ehci {
status = "okay";
};

&ohci {
status = "okay";
};

&pcie {
status = "okay";
};
Expand Down

0 comments on commit e6a181d

Please sign in to comment.