Re: [PATCH v1 06/19] arm: dts: mt7623: fix USB initialization fails on bananapi-r2

2018-03-12 Thread Matthias Brugger


On 02/23/2018 11:16 AM, sean.w...@mediatek.com wrote:
> From: Sean Wang 
> 
> 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.
> 
> [6.473958] xhci-mtk 1a1c.usb: fail to get vbus
> [6.479313] xhci-mtk 1a24.usb: fail to get vbus
> 
> Cc: sta...@vger.kernel.org
> Fixes: f4ff257cd160 ("arm: dts: mt7623: add support for Bananapi R2 (BPI-R2) 
> board")
> Signed-off-by: Sean Wang 
> ---
>  arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 24 ++--
>  1 file changed, 22 insertions(+), 2 deletions(-)
> 

Pushed to v4.16-next/dts32


Re: [PATCH v1 06/19] arm: dts: mt7623: fix USB initialization fails on bananapi-r2

2018-03-12 Thread Matthias Brugger


On 02/23/2018 11:16 AM, sean.w...@mediatek.com wrote:
> From: Sean Wang 
> 
> 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.
> 
> [6.473958] xhci-mtk 1a1c.usb: fail to get vbus
> [6.479313] xhci-mtk 1a24.usb: fail to get vbus
> 
> Cc: sta...@vger.kernel.org
> Fixes: f4ff257cd160 ("arm: dts: mt7623: add support for Bananapi R2 (BPI-R2) 
> board")
> Signed-off-by: Sean Wang 
> ---
>  arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 24 ++--
>  1 file changed, 22 insertions(+), 2 deletions(-)
> 

Pushed to v4.16-next/dts32


[PATCH v1 06/19] arm: dts: mt7623: fix USB initialization fails on bananapi-r2

2018-02-23 Thread sean.wang
From: Sean Wang 

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.

[6.473958] xhci-mtk 1a1c.usb: fail to get vbus
[6.479313] xhci-mtk 1a24.usb: fail to get vbus

Cc: sta...@vger.kernel.org
Fixes: f4ff257cd160 ("arm: dts: mt7623: add support for Bananapi R2 (BPI-R2) 
board")
Signed-off-by: Sean Wang 
---
 arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 24 ++--
 1 file changed, 22 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts 
b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
index ec11e14..f660d15 100644
--- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
+++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
@@ -39,6 +39,24 @@
};
};
 
+   reg_3p3v: regulator-3p3v {
+   compatible = "regulator-fixed";
+   regulator-name = "fixed-3.3V";
+   regulator-min-microvolt = <330>;
+   regulator-max-microvolt = <330>;
+   regulator-boot-on;
+   regulator-always-on;
+   };
+
+   reg_5v: regulator-5v {
+   compatible = "regulator-fixed";
+   regulator-name = "fixed-5V";
+   regulator-min-microvolt = <500>;
+   regulator-max-microvolt = <500>;
+   regulator-boot-on;
+   regulator-always-on;
+   };
+
gpio_keys {
compatible = "gpio-keys";
pinctrl-names = "default";
@@ -502,12 +520,14 @@
 };
 
  {
-   vusb33-supply = <_vusb_reg>;
+   vusb33-supply = <_3p3v>;
+   vbus-supply = <_5v>;
status = "okay";
 };
 
  {
-   vusb33-supply = <_vusb_reg>;
+   vusb33-supply = <_3p3v>;
+   vbus-supply = <_5v>;
status = "okay";
 };
 
-- 
2.7.4



[PATCH v1 06/19] arm: dts: mt7623: fix USB initialization fails on bananapi-r2

2018-02-23 Thread sean.wang
From: Sean Wang 

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.

[6.473958] xhci-mtk 1a1c.usb: fail to get vbus
[6.479313] xhci-mtk 1a24.usb: fail to get vbus

Cc: sta...@vger.kernel.org
Fixes: f4ff257cd160 ("arm: dts: mt7623: add support for Bananapi R2 (BPI-R2) 
board")
Signed-off-by: Sean Wang 
---
 arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 24 ++--
 1 file changed, 22 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts 
b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
index ec11e14..f660d15 100644
--- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
+++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
@@ -39,6 +39,24 @@
};
};
 
+   reg_3p3v: regulator-3p3v {
+   compatible = "regulator-fixed";
+   regulator-name = "fixed-3.3V";
+   regulator-min-microvolt = <330>;
+   regulator-max-microvolt = <330>;
+   regulator-boot-on;
+   regulator-always-on;
+   };
+
+   reg_5v: regulator-5v {
+   compatible = "regulator-fixed";
+   regulator-name = "fixed-5V";
+   regulator-min-microvolt = <500>;
+   regulator-max-microvolt = <500>;
+   regulator-boot-on;
+   regulator-always-on;
+   };
+
gpio_keys {
compatible = "gpio-keys";
pinctrl-names = "default";
@@ -502,12 +520,14 @@
 };
 
  {
-   vusb33-supply = <_vusb_reg>;
+   vusb33-supply = <_3p3v>;
+   vbus-supply = <_5v>;
status = "okay";
 };
 
  {
-   vusb33-supply = <_vusb_reg>;
+   vusb33-supply = <_3p3v>;
+   vbus-supply = <_5v>;
status = "okay";
 };
 
-- 
2.7.4