mbox series

[v2,0/3] hw/arm: Add support for USB, SATA, and watchdog to Allwinner R40

Message ID 20240115182757.1095012-1-linux@roeck-us.net (mailing list archive)
Headers show
Series hw/arm: Add support for USB, SATA, and watchdog to Allwinner R40 | expand

Message

Guenter Roeck Jan. 15, 2024, 6:27 p.m. UTC
Add support for

- USB 2.0 EHCI/OHCI
- SATA/AHCI
- Watchdog

to Allwinner R40. The hardware is quite similar to Allwinner A10 and H3,
so the code is derived from the implementations for those SOCs.

Tested with bpim2u emulation by instantiating EHCI and OHCI keyboards,
by booting from USB, by booting from ATA/SATA drive, and by manually
testing watchdog operation.

v2:
- The USB Controllers are part of the chipset, so instantiate them
  unconditionally
- Add Reviewed-by: tag to patch 2/3

----------------------------------------------------------------
Guenter Roeck (3):
      hw/arm: Add EHCI/OHCI controllers to Allwinner R40 and Bananapi board
      hw/arm: Add AHCI/SATA controller to Allwinner R40 and Bananapi board
      hw/arm: Add watchdog timer to Allwinner H40 and Bananapi board

 docs/system/arm/bananapi_m2u.rst |  5 +--
 hw/arm/Kconfig                   |  4 +++
 hw/arm/allwinner-r40.c           | 67 ++++++++++++++++++++++++++++++++++++++--
 include/hw/arm/allwinner-r40.h   | 15 +++++++++
 4 files changed, 86 insertions(+), 5 deletions(-)

Comments

Peter Maydell Jan. 19, 2024, 4:57 p.m. UTC | #1
On Mon, 15 Jan 2024 at 18:28, Guenter Roeck <linux@roeck-us.net> wrote:
>
> Add support for
>
> - USB 2.0 EHCI/OHCI
> - SATA/AHCI
> - Watchdog
>
> to Allwinner R40. The hardware is quite similar to Allwinner A10 and H3,
> so the code is derived from the implementations for those SOCs.
>
> Tested with bpim2u emulation by instantiating EHCI and OHCI keyboards,
> by booting from USB, by booting from ATA/SATA drive, and by manually
> testing watchdog operation.
>
> v2:
> - The USB Controllers are part of the chipset, so instantiate them
>   unconditionally
> - Add Reviewed-by: tag to patch 2/3
>



Applied to target-arm.next, thanks.

-- PMM