Page MenuHomeFreeBSD

riscv: support Allwinner D1 GPIO controller
Needs ReviewPublic

Authored by julien.cassette_gmail.com on Jun 25 2022, 12:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 22, 7:37 AM
Unknown Object (File)
Jan 20 2024, 3:32 AM
Unknown Object (File)
Dec 21 2023, 8:46 PM
Unknown Object (File)
Dec 20 2023, 2:50 AM
Unknown Object (File)
Nov 7 2023, 11:50 AM
Unknown Object (File)
Nov 3 2023, 3:59 PM
Unknown Object (File)
Oct 6 2023, 10:47 AM
Unknown Object (File)
Aug 14 2023, 3:48 PM

Details

Reviewers
manu
mhorne
Group Reviewers
riscv
Summary

The GPIO controls the multiplexing of the D1 pins to its peripherals,
so this adds the definitions needed by the aw_gpio driver to support
the D1.

Also, this modifies the aw_gpio driver to support the differences of
the D1 controller:

  • pins can have up to 15 functions,
  • each port is mapped with an alignment of 0x30,
  • CFG registers have 4 bits per pin,
  • DRV registers have 4 bits per pin,
  • the offset of PULL registers is 0x24.

Signed-off-by: Julien Cassette <julien.cassette@gmail.com>

Test Plan

The driver correctly processes FDT pin-config nodes for serial, mmc, spi.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46112
Build 43001: arc lint + arc unit