[PATCH 0/4] Register at91 OHCI into DM and add SAMA7 USB PHY's

Sergiu.Moga at microchip.com Sergiu.Moga at microchip.com
Fri Dec 23 13:44:01 CET 2022


On 23.12.2022 14:34, Sergiu Moga wrote:
> This patch series originates from a bigger patch series:
> https://lists.denx.de/pipermail/u-boot/2022-December/502865.html
> 
> Register ohci-at91 driver into Driver Model. In order for the VBUS to
> stay enabled, a `child_pre_probe` method has been added to overcome the
> DM core disabling it in `usb_scan_device`: when the generic `device_probe`
> method is called, the pinctrl is processed once again, undoing whatever
> changes have been made in our driver's probe method.
> In order to enable USB on SAMA7G5 the addition of the USB 2.0 PHY
> drivers were required.
> 
> Cristian Birsan (1):
>    usb: ohci-at91: Add `ohci_t` field in `ohci_at91_priv`
> 
> Sergiu Moga (3):
>    phy: at91: Add support for the USB 2.0 PHY's of SAMA7
>    usb: ohci-at91: Enable OHCI functionality and register into DM
>    usb: ohci-at91: Add USB PHY functionality
> 
>   drivers/phy/Kconfig              |  10 ++
>   drivers/phy/Makefile             |   1 +
>   drivers/phy/phy-sama7-usb.c      |  90 +++++++++++++
>   drivers/phy/phy-sama7-utmi-clk.c | 202 +++++++++++++++++++++++++++++
>   drivers/usb/host/ohci-at91.c     | 215 +++++++++++++++++++++++++++++++
>   5 files changed, 518 insertions(+)
>   create mode 100644 drivers/phy/phy-sama7-usb.c
>   create mode 100644 drivers/phy/phy-sama7-utmi-clk.c
> 

By the way, this also depends on the following patch series:
https://lists.denx.de/pipermail/u-boot/2022-December/502979.html


More information about the U-Boot mailing list