]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm: dts: mt7623: fix USB initialization fails on bananapi-r2
authorSean Wang <sean.wang@mediatek.com>
Fri, 23 Feb 2018 10:16:26 +0000 (18:16 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 12 Mar 2018 10:52:26 +0000 (11:52 +0100)
Fix that USB initialization fails as below runtime log is present during
booting on bananapi-r2 board by adding missing regulators the USB device
requires. Current regulators USB device uses are being updated with the
correct ones to reflect real configurations which are all from fixed
regulators rather than MT6323 one's output.

xhci-mtk 1a1c0000.usb: 1a1c0000.usb supply vbus not found, using dummy regulator
xhci-mtk 1a240000.usb: 1a240000.usb supply vbus not found, using dummy regulator

Cc: stable@vger.kernel.org
Fixes: f4ff257cd160 ("arm: dts: mt7623: add support for Bananapi R2 (BPI-R2) board")
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
[mb: update kernel log in commit message]
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts

index 7bf5aa2237c9d1363b85517295b0ce4b53ab7b57..7de704575aeeb80bc912cf7e0760e5cb1479a965 100644 (file)
@@ -39,6 +39,24 @@ cpu@3 {
                };
        };
 
+       reg_3p3v: regulator-3p3v {
+               compatible = "regulator-fixed";
+               regulator-name = "fixed-3.3V";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               regulator-boot-on;
+               regulator-always-on;
+       };
+
+       reg_5v: regulator-5v {
+               compatible = "regulator-fixed";
+               regulator-name = "fixed-5V";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               regulator-boot-on;
+               regulator-always-on;
+       };
+
        gpio_keys {
                compatible = "gpio-keys";
                pinctrl-names = "default";
@@ -468,12 +486,14 @@ &uart2 {
 };
 
 &usb1 {
-       vusb33-supply = <&mt6323_vusb_reg>;
+       vusb33-supply = <&reg_3p3v>;
+       vbus-supply = <&reg_5v>;
        status = "okay";
 };
 
 &usb2 {
-       vusb33-supply = <&mt6323_vusb_reg>;
+       vusb33-supply = <&reg_3p3v>;
+       vbus-supply = <&reg_5v>;
        status = "okay";
 };