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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2018 07:36:24 +0000 (09:36 +0200)
commit 0629a01920c0f8a3f825361b24863d760610884a upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts

index 7bf5aa2237c9d1363b85517295b0ce4b53ab7b57..7de704575aeeb80bc912cf7e0760e5cb1479a965 100644 (file)
                };
        };
 
+       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";
 };
 
 &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";
 };