2021-08-30 15:01:40

by Frank Wunderlich

[permalink] [raw]
Subject: [PATCH v2] arm: dts: mt7623: add otg nodes for bpi-r2

From: Frank Wunderlich <[email protected]>

Add OTG-Nodes for BananaPi-R2

Signed-off-by: Frank Wunderlich <[email protected]>
---
patch is based on

"arm: dts: mt7623: add musb device nodes"

https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
---
v2:
rebase on plain 5.14, v1 was based on some not upstreamed work
---
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 25 +++++++++++++++++++
1 file changed, 25 insertions(+)

diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
index e96aa0ed1ebd..027c1b0c6a98 100644
--- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
+++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
@@ -366,6 +366,14 @@ &pcie1_phy {
status = "okay";
};

+&pio {
+ musb_pins: musb {
+ pins-musb {
+ pinmux = <MT7623_PIN_237_EXT_SDIO2_FUNC_DRV_VBUS>;
+ };
+ };
+};
+
&pwm {
pinctrl-names = "default";
pinctrl-0 = <&pwm_pins_a>;
@@ -396,6 +404,19 @@ &uart2 {
status = "okay";
};

+&usb0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&musb_pins>;
+ status = "okay";
+ usb-role-switch;
+
+ connector {
+ compatible = "gpio-usb-b-connector", "usb-b-connector";
+ type = "micro";
+ id-gpios = <&pio 44 GPIO_ACTIVE_HIGH>;
+ };
+};
+
&usb1 {
vusb33-supply = <&reg_3p3v>;
vbus-supply = <&reg_5v>;
@@ -408,6 +429,10 @@ &usb2 {
status = "okay";
};

+&u2phy1 {
+ status = "okay";
+};
+
&u3phy1 {
status = "okay";
};
--
2.25.1


2021-09-20 14:37:06

by Matthias Brugger

[permalink] [raw]
Subject: Re: [PATCH v2] arm: dts: mt7623: add otg nodes for bpi-r2



On 30/08/2021 16:59, Frank Wunderlich wrote:
> From: Frank Wunderlich <[email protected]>
>
> Add OTG-Nodes for BananaPi-R2
>
> Signed-off-by: Frank Wunderlich <[email protected]>

Applied to v5.15-next/dts32

Thanks

> ---
> patch is based on
>
> "arm: dts: mt7623: add musb device nodes"
>
> https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
> ---
> v2:
> rebase on plain 5.14, v1 was based on some not upstreamed work
> ---
> arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 25 +++++++++++++++++++
> 1 file changed, 25 insertions(+)
>
> diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
> index e96aa0ed1ebd..027c1b0c6a98 100644
> --- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
> +++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
> @@ -366,6 +366,14 @@ &pcie1_phy {
> status = "okay";
> };
>
> +&pio {
> + musb_pins: musb {
> + pins-musb {
> + pinmux = <MT7623_PIN_237_EXT_SDIO2_FUNC_DRV_VBUS>;
> + };
> + };
> +};
> +
> &pwm {
> pinctrl-names = "default";
> pinctrl-0 = <&pwm_pins_a>;
> @@ -396,6 +404,19 @@ &uart2 {
> status = "okay";
> };
>
> +&usb0 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&musb_pins>;
> + status = "okay";
> + usb-role-switch;
> +
> + connector {
> + compatible = "gpio-usb-b-connector", "usb-b-connector";
> + type = "micro";
> + id-gpios = <&pio 44 GPIO_ACTIVE_HIGH>;
> + };
> +};
> +
> &usb1 {
> vusb33-supply = <&reg_3p3v>;
> vbus-supply = <&reg_5v>;
> @@ -408,6 +429,10 @@ &usb2 {
> status = "okay";
> };
>
> +&u2phy1 {
> + status = "okay";
> +};
> +
> &u3phy1 {
> status = "okay";
> };
>