[openwrt/openwrt] ramips: dts: mt7621: add the missing XHCI power regulators
LEDE Commits
lede-commits at lists.infradead.org
Sat Jun 7 11:30:14 PDT 2025
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/51b77a32980324601d0b2721bd9999d78e09d808
commit 51b77a32980324601d0b2721bd9999d78e09d808
Author: Shiji Yang <yangshiji66 at outlook.com>
AuthorDate: Tue May 20 07:50:56 2025 +0800
ramips: dts: mt7621: add the missing XHCI power regulators
The USB power regulators are essential for the Mediatek XHCI
controller. If any of them is missing, the kernel will throw
a warning. Add fixed voltage io/vbus regulators to workaround
this issue. Fix the following warnings:
[ 7.514572] xhci-mtk 1e1c0000.xhci: supply vbus not found, using dummy regulator
[ 7.522375] xhci-mtk 1e1c0000.xhci: supply vusb33 not found, using dummy regulator
Signed-off-by: Shiji Yang <yangshiji66 at outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18886
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
target/linux/ramips/dts/mt7621.dtsi | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi
index da992bada4..711f84689f 100644
--- a/target/linux/ramips/dts/mt7621.dtsi
+++ b/target/linux/ramips/dts/mt7621.dtsi
@@ -64,6 +64,22 @@
regulator-name = "mmc_power";
};
+ reg_vbus: regulator-vbus {
+ compatible = "regulator-fixed";
+ regulator-always-on;
+ regulator-max-microvolt = <5000000>;
+ regulator-min-microvolt = <5000000>;
+ regulator-name = "usb_power";
+ };
+
+ reg_vusb33: regulator-vusb33 {
+ compatible = "regulator-fixed";
+ regulator-always-on;
+ regulator-max-microvolt = <3300000>;
+ regulator-min-microvolt = <3300000>;
+ regulator-name = "usb_io";
+ };
+
palmbus: palmbus at 1e000000 {
compatible = "palmbus";
reg = <0x1e000000 0x100000>;
@@ -395,6 +411,9 @@
interrupt-parent = <&gic>;
interrupts = <GIC_SHARED 22 IRQ_TYPE_LEVEL_HIGH>;
+ vbus-supply = <®_vbus>;
+ vusb33-supply = <®_vusb33>;
+
/*
* Port 1 of both hubs is one usb slot and referenced here.
* The binding doesn't allow to address individual hubs.
More information about the lede-commits
mailing list