[PATCH v5 4/5] ARM: dts: stm32: Enable USB HS in FS mode (embedded phy) on stm32f429-disco

2017-01-31 Thread Bruno Herrera
This patch enables USB HS working in FS mode on stm32f429-disco with 5V VBUS enable. Signed-off-by: Bruno Herrera <bruherr...@gmail.com> --- arch/arm/boot/dts/stm32f429-disco.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429-disco.dts

[PATCH v5 3/5] ARM: dts: stm32: Enable USB FS on stm32f469-disco

2017-01-31 Thread Bruno Herrera
This patch enables USB FS on stm32f469-disco with 5V VBUS enable. Signed-off-by: Bruno Herrera <bruherr...@gmail.com> --- arch/arm/boot/dts/stm32f469-disco.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/bo

[PATCH v5 5/5] dt-bindings: Document the STM32 USB OTG DWC2 core binding

2017-01-31 Thread Bruno Herrera
This patch adds the documentation for STM32F4x9 USB OTG FS/HS compatible strings. Signed-off-by: Bruno Herrera <bruherr...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> --- Documentation/devicetree/bindings/usb/dwc2.txt | 4 1 file changed, 4 insertions(+) diff --git a/D

[PATCH v5 1/5] usb: dwc2: Add support for STM32F429/439/469 USB OTG HS/FS in FS mode (internal PHY)

2017-01-31 Thread Bruno Herrera
This patch introduces a new parameter to activate USB OTG HS/FS core embedded phy transceiver. The STM32F4x9 SoC uses the GGPIO register to enable the transceiver. Also add the dwc2_set_params function for stm32f4 otg fs. Signed-off-by: Bruno Herrera <bruherr...@gmail.com> --- drivers/us

[PATCH v5 2/5] ARM: dts: stm32: Add USB FS support for STM32F429 MCU

2017-01-31 Thread Bruno Herrera
This patch adds the USB pins and nodes for USB FS core. Signed-off-by: Bruno Herrera <bruherr...@gmail.com> --- arch/arm/boot/dts/stm32f429.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm

[PATCH v5 0/5] usb: dwc2: Add support for USB OTG on STM32F4x9

2017-01-31 Thread Bruno Herrera
the driver standard - Add compatible string for HS core Changes since v1: - Add dwc2_core_params structure for stm32f4 otg fs - Add compatible string for FS core/mode - Use GGPIO register to deativate power down of the phy Bruno Herrera (5): usb: dwc2: Add support for STM32F429/439/469 USB OTG HS/FS

[PATCH v4 0/5] usb: dwc2: Add support for USB OTG on STM32F4x9

2017-01-28 Thread Bruno Herrera
GGPIO register to deativate power down of the phy Bruno Herrera (5): usb: dwc2: Add support for STM32F429/439/469 USB OTG HS/FS in FS mode (internal PHY) ARM: dts: stm32: Add USB FS support for STM32F429 MCU ARM: dts: stm32: Enable USB FS on stm32f469-disco ARM: dts: stm32: Enable USB

[PATCH v4 1/5] usb: dwc2: Add support for STM32F429/439/469 USB OTG HS/FS in FS mode (internal PHY)

2017-01-28 Thread Bruno Herrera
This patch introduces a new parameter to activate USB OTG HS/FS core embedded phy transceiver. The STM32F4x9 SoC uses the GGPIO register to enable the transceiver. Also add the dwc2_core_params structure for stm32f4 otg fs. Signed-off-by: Bruno Herrera <bruherr...@gmail.com> --- drive

[PATCH v4 5/5] dt-bindings: Document the STM32 USB OTG DWC2 core binding

2017-01-28 Thread Bruno Herrera
This patch adds the documentation for STM32F4x9 USB OTG FS/HS compatible strings. Signed-off-by: Bruno Herrera <bruherr...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> --- Documentation/devicetree/bindings/usb/dwc2.txt | 4 1 file changed, 4 insertions(+) diff --git a/D

[PATCH v4 3/5] ARM: dts: stm32: Enable USB FS on stm32f469-disco

2017-01-28 Thread Bruno Herrera
This patch enables USB FS on stm32f469-disco with 5V VBUS enable. Signed-off-by: Bruno Herrera <bruherr...@gmail.com> --- arch/arm/boot/dts/stm32f469-disco.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/bo

[PATCH v4 2/5] ARM: dts: stm32: Add USB FS support for STM32F429 MCU

2017-01-28 Thread Bruno Herrera
This patch adds the USB pins and nodes for USB FS core. Signed-off-by: Bruno Herrera <bruherr...@gmail.com> --- arch/arm/boot/dts/stm32f429.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm

[PATCH v4 4/5] ARM: dts: stm32: Enable USB HS in FS mode (embedded phy) on stm32f429-disco

2017-01-28 Thread Bruno Herrera
This patch enables USB HS working in FS mode on stm32f429-disco with 5V VBUS enable. Signed-off-by: Bruno Herrera <bruherr...@gmail.com> --- arch/arm/boot/dts/stm32f429-disco.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429-disco.dts

[PATCH v3 0/5] usb: dwc2: Add support for USB OTG on STM32F4x9

2017-01-17 Thread Bruno Herrera
the driver standard - Add compatible string for HS core Changes since v1: - Add dwc2_core_params structure for stm32f4 otg fs - Add compatible string for FS core/mode - Use GGPIO register to deativate power down of the phy Bruno Herrera (5): usb: dwc2: Add support for STM32F429/439/469 USB OTG HS/FS

[PATCH v3 1/5] usb: dwc2: Add support for STM32F429/439/469 USB OTG HS/FS in FS mode (internal PHY)

2017-01-17 Thread Bruno Herrera
This patch introduces a new parameter to activate USB OTG HS/FS core embedded phy transceiver. The STM32F4x9 SoC uses the GGPIO register to enable the transceiver. Also add the dwc2_core_params structure for stm32f4 otg fs. Signed-off-by: Bruno Herrera <bruherr...@gmail.com> --- drive

[PATCH v3 2/5] ARM: dts: stm32: Add USB FS support for STM32F429 MCU

2017-01-17 Thread Bruno Herrera
This patch adds the USB pins and nodes for USB FS core. Signed-off-by: Bruno Herrera <bruherr...@gmail.com> --- arch/arm/boot/dts/stm32f429.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm

[PATCH v3 3/5] ARM: dts: stm32: Enable USB FS on stm32f469-disco

2017-01-17 Thread Bruno Herrera
This patch enables USB FS on stm32f469-disco with 5V VBUS enable. Signed-off-by: Bruno Herrera <bruherr...@gmail.com> --- arch/arm/boot/dts/stm32f469-disco.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/bo

[PATCH v3 4/5] ARM: dts: stm32: Enable USB HS in FS mode (embedded phy) on stm32f429-disco

2017-01-17 Thread Bruno Herrera
This patch enables USB HS working in FS mode on stm32f429-disco with 5V VBUS enable. Signed-off-by: Bruno Herrera <bruherr...@gmail.com> --- arch/arm/boot/dts/stm32f429-disco.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429-disco.dts

[PATCH v3 5/5] dt-bindings: Document the STM32 USB OTG DWC2 core binding

2017-01-17 Thread Bruno Herrera
This patch adds the documentation for STM32F4x9 USB OTG FS/HS compatible strings. Signed-off-by: Bruno Herrera <bruherr...@gmail.com> --- Documentation/devicetree/bindings/usb/dwc2.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/dwc2.

[v2 3/3] dt-bindings: Document the STM32 USB OTG DWC2 core binding

2017-01-15 Thread Bruno Herrera
This patch adds the documentation for STM32F4x9 USB OTG FS/HS compatible strings. Signed-off-by: Bruno Herrera <bruherr...@gmail.com> --- Documentation/devicetree/bindings/usb/dwc2.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/dwc2.

[v2 1/3] usb: dwc2: Add support for STM32F429/439/469 USB OTG HS/FS in FS mode (internal PHY)

2017-01-15 Thread Bruno Herrera
This patch introduces a new parameter to activate USB OTG HS/FS core embedded phy transciver. The STM32F4x9 SoC uses the GGPIO register to enable the transciver. Signed-off-by: Bruno Herrera <bruherr...@gmail.com> --- drivers/usb/dwc2/core.h | 4 drivers/usb/dwc2/hcd.c

Re: [PATCH 1/3] usb: dwc2: Add support for STM32F429/439/469 USB OTG in FS mode with internal PHY

2016-06-29 Thread Bruno Herrera
On Mon, Jun 27, 2016 at 7:51 PM, John Youn <john.y...@synopsys.com> wrote: > On 6/21/2016 7:26 PM, Bruno Herrera wrote: >> Signed-off-by: Bruno Herrera <bruherr...@gmail.com> > > Please add a commit message describing the purpose of your changes, > some information ab

Re: [PATCH 3/3] dt-bindings: Document the STM32 USB OTG DWC2 core binding

2016-06-29 Thread Bruno Herrera
On Tue, Jun 28, 2016 at 5:54 PM, Rob Herring <r...@kernel.org> wrote: > On Fri, Jun 24, 2016 at 03:51:18PM -0300, Bruno Herrera wrote: >> On Fri, Jun 24, 2016 at 12:41 PM, Rob Herring <r...@kernel.org> wrote: >> > On Tue, Jun 21, 2016 at 11:25:49PM -0300, Bruno H

Re: [PATCH 3/3] dt-bindings: Document the STM32 USB OTG DWC2 core binding

2016-06-24 Thread Bruno Herrera
On Fri, Jun 24, 2016 at 12:41 PM, Rob Herring <r...@kernel.org> wrote: > On Tue, Jun 21, 2016 at 11:25:49PM -0300, Bruno Herrera wrote: >> Signed-off-by: Bruno Herrera <bruherr...@gmail.com> >> --- >> Documentation/devicetree/bindings/usb/dwc2.txt | 1

[PATCH 3/3] dt-bindings: Document the STM32 USB OTG DWC2 core binding

2016-06-21 Thread Bruno Herrera
Signed-off-by: Bruno Herrera <bruherr...@gmail.com> --- Documentation/devicetree/bindings/usb/dwc2.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/dwc2.txt b/Documentation/devicetree/bindings/usb/dwc2.txt index 20a68bf..79e5370

[PATCH 2/3] ARM: dts: STM32 Add USB FS host mode support

2016-06-21 Thread Bruno Herrera
Signed-off-by: Bruno Herrera <bruherr...@gmail.com> --- arch/arm/boot/dts/stm32f429-disco.dts | 30 ++ arch/arm/boot/dts/stm32f429.dtsi | 33 - arch/arm/boot/dts/stm32f469-disco.dts | 30 ++ 3

[PATCH 1/3] usb: dwc2: Add support for STM32F429/439/469 USB OTG in FS mode with internal PHY

2016-06-21 Thread Bruno Herrera
Signed-off-by: Bruno Herrera <bruherr...@gmail.com> --- drivers/usb/dwc2/core.c | 18 ++ drivers/usb/dwc2/core.h | 5 + drivers/usb/dwc2/hcd.c | 12 +++- drivers/usb/dwc2/hw.h | 2 ++ drivers/usb/dwc2/platform.

Re: [RESENDING] dwc2: Using internal phy (fs mode) for STM32F4x9 platform

2016-06-15 Thread Bruno Herrera
On Wed, Jun 15, 2016 at 2:04 AM, John Youn <john.y...@synopsys.com> wrote: > On 6/13/2016 8:21 AM, Bruno Herrera wrote: >> Hi >> >> On Mon, Jun 13, 2016 at 9:19 AM, Maxime Coquelin >> <mcoquelin.st...@gmail.com> wrote: >>> Hi, >>> >

Re: [RESENDING] dwc2: Using internal phy (fs mode) for STM32F4x9 platform

2016-06-13 Thread Bruno Herrera
Hi On Mon, Jun 13, 2016 at 9:19 AM, Maxime Coquelin <mcoquelin.st...@gmail.com> wrote: > Hi, > > 2016-06-10 8:56 GMT+02:00 Felipe Balbi <ba...@kernel.org>: >> >> Hi, >> >> John Youn <john.y...@synopsys.com> writes: >>> On 6/9/2016 10:1

dwc2: Using internal phy (fs mode) for STM32F4x9 platform

2016-06-04 Thread Bruno Herrera
Hello all, I'm bringing the linux kernel for the STM32F4 MCU (mmu-less). This MCU has two DWC2 cores on it:one for USB OTG HS and one for USB OTG FS. I was able to make the DWC2 driver to work in FS mode using a internal phy in both cores (HS and FS), but I had to patch it (in a bad way, see