Skip to content

Commit

Permalink
ath79: remove dr_mode and vbus-supply
Browse files Browse the repository at this point in the history
ath79 uses the generic-ehci driver, which does not support regulators
using vbus-supply.

dr_mode is also not useful as the driver does not support multiple
modes.

Signed-off-by: Rosen Penev <[email protected]>
Link: openwrt/openwrt#17486
Signed-off-by: Robert Marko <[email protected]>
  • Loading branch information
neheb authored and robimarko committed Jan 8, 2025
1 parent 3deeb78 commit 4abd819
Show file tree
Hide file tree
Showing 14 changed files with 3 additions and 37 deletions.
2 changes: 0 additions & 2 deletions target/linux/ath79/dts/ar9344_nec_aterm.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,6 @@
#address-cells = <1>;
#size-cells = <0>;

dr_mode = "host";

/delete-node/ port@1;

/* NEC uPD720114 */
Expand Down
4 changes: 2 additions & 2 deletions target/linux/ath79/dts/ar9344_qihoo_c301.dts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@
regulator-name = "usb_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
enable-active-high;
regulator-always-on;
gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
};

Expand Down Expand Up @@ -208,7 +209,6 @@

&usb_phy {
status = "okay";
phy-supply = <&usb_vbus>;
};

&pcie {
Expand Down
2 changes: 0 additions & 2 deletions target/linux/ath79/dts/qca9531_8dev_carambola3.dts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@

&usb0 {
status = "okay";

dr_mode = "host";
};

&usb_phy {
Expand Down
2 changes: 0 additions & 2 deletions target/linux/ath79/dts/qca9531_8dev_lima.dts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@

&usb0 {
status = "okay";

dr_mode = "host";
};

&usb_phy {
Expand Down
2 changes: 0 additions & 2 deletions target/linux/ath79/dts/qca9531_alcatel_hh40v.dts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@

&usb0 {
status = "okay";

dr_mode = "host";
};

&usb_phy {
Expand Down
2 changes: 0 additions & 2 deletions target/linux/ath79/dts/qca9531_tplink_tl-wr810n-v1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

&usb0 {
status = "okay";

vbus-supply = <&reg_usb_vbus>;
};

&usb_phy {
Expand Down
1 change: 0 additions & 1 deletion target/linux/ath79/dts/qca953x.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@

interrupts = <3>;
resets = <&rst 5>;
dr_mode = "host";

has-transaction-translator;
caps-offset = <0x100>;
Expand Down
1 change: 0 additions & 1 deletion target/linux/ath79/dts/qca9558_aruba_ap-115.dts
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,5 @@
};

&usb0 {
dr_mode = "host";
status = "okay";
};
2 changes: 0 additions & 2 deletions target/linux/ath79/dts/qca9558_nec_aterm.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,6 @@
#address-cells = <1>;
#size-cells = <0>;

dr_mode = "host";

/delete-node/ port@1;

/* NEC uPD720114 */
Expand Down
4 changes: 0 additions & 4 deletions target/linux/ath79/dts/qca9558_sophos_ap.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,3 @@
nvmem-cells = <&cal_art_1000>;
nvmem-cell-names = "calibration";
};

&usb0 {
vbus-supply = <&reg_usb_vbus>;
};
1 change: 0 additions & 1 deletion target/linux/ath79/dts/qca9558_sophos_ap100.dts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@

&usb0 {
status = "okay";
dr_mode = "host";
};
1 change: 0 additions & 1 deletion target/linux/ath79/dts/qca9558_sophos_ap55.dts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@

&usb0 {
status = "okay";
dr_mode = "host";
};
4 changes: 0 additions & 4 deletions target/linux/ath79/dts/qca9558_tplink_archer-d7.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@
};

&usb0 {
dr_mode = "host";
vbus-supply = <&reg_usb0_vbus>;
status = "okay";
};

Expand All @@ -155,7 +153,5 @@
};

&usb1 {
dr_mode = "host";
vbus-supply = <&reg_usb1_vbus>;
status = "okay";
};
12 changes: 1 addition & 11 deletions target/linux/ath79/dts/qca955x_elecom_wab.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_USB;
trigger-sources = <&usb_port1>;
trigger-sources = <&hub_port0>;
linux,default-trigger = "usbport";
};
};
Expand Down Expand Up @@ -232,17 +232,7 @@
};

&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

dr_mode = "host";
vbus-supply = <&reg_usb_vbus>;

usb_port1: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};

&wdt {
Expand Down

0 comments on commit 4abd819

Please sign in to comment.