[Linux-stm32] [PATCH V4 21/22] ARM: dts: stm32: Add bindings for USB on AV96

Manivannan Sadhasivam manivannan.sadhasivam at linaro.org
Mon Apr 6 07:22:42 UTC 2020


On Wed, Apr 01, 2020 at 03:22:36PM +0200, Marek Vasut wrote:
> Fill in the bindings for USB host and gadget on AV96.
> 
> Signed-off-by: Marek Vasut <marex at denx.de>

I can't get the USB B-Micro OTG port to work with this patch. Do I need to
enable any configs other than PHY and USB DWC2 drivers?

Thanks,
Mani

> Cc: Alexandre Torgue <alexandre.torgue at st.com>
> Cc: Manivannan Sadhasivam <manivannan.sadhasivam at linaro.org>
> Cc: Maxime Coquelin <mcoquelin.stm32 at gmail.com>
> Cc: Patrice Chotard <patrice.chotard at st.com>
> Cc: Patrick Delaunay <patrick.delaunay at st.com>
> Cc: linux-stm32 at st-md-mailman.stormreply.com
> To: linux-arm-kernel at lists.infradead.org
> ---
> V2: No change
> V3: No change
> ---
>  arch/arm/boot/dts/stm32mp157a-avenger96.dts | 31 +++++++++++++++++++++
>  1 file changed, 31 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/stm32mp157a-avenger96.dts b/arch/arm/boot/dts/stm32mp157a-avenger96.dts
> index 2f5a53e1b50d..31f23e60629f 100644
> --- a/arch/arm/boot/dts/stm32mp157a-avenger96.dts
> +++ b/arch/arm/boot/dts/stm32mp157a-avenger96.dts
> @@ -544,3 +544,34 @@ bluetooth {
>  		shutdown-gpios = <&gpioz 6 GPIO_ACTIVE_HIGH>;
>  	};
>  };
> +
> +&usbh_ehci {
> +	phys = <&usbphyc_port0>;
> +	phy-names = "usb";
> +	status = "okay";
> +};
> +
> +&usbotg_hs {
> +	pinctrl-0 = <&usbotg_hs_pins_a>;
> +	pinctrl-names = "default";
> +	phy-names = "usb2-phy";
> +	phys = <&usbphyc_port1 0>;
> +	status = "okay";
> +	vbus-supply = <&vbus_otg>;
> +};
> +
> +&usbphyc {
> +	status = "okay";
> +};
> +
> +&usbphyc_port0 {
> +	phy-supply = <&vdd_usb>;
> +	vdda1v1-supply = <&reg11>;
> +	vdda1v8-supply = <&reg18>;
> +};
> +
> +&usbphyc_port1 {
> +	phy-supply = <&vdd_usb>;
> +	vdda1v1-supply = <&reg11>;
> +	vdda1v8-supply = <&reg18>;
> +};
> -- 
> 2.25.1
> 



More information about the Linux-stm32 mailing list