Page MenuHomeFreeBSD

[new driver] allwinner/ac100: rtc and audio codec for a83t
Needs ReviewPublic

Authored by kevans on Nov 17 2017, 6:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 16, 8:22 PM
Unknown Object (File)
Feb 11 2024, 11:09 PM
Unknown Object (File)
Feb 10 2024, 9:33 PM
Unknown Object (File)
Feb 2 2024, 10:45 PM
Unknown Object (File)
Jan 27 2024, 8:42 AM
Unknown Object (File)
Jan 14 2024, 5:54 AM
Unknown Object (File)
Dec 22 2023, 11:27 PM
Unknown Object (File)
Dec 14 2023, 11:36 AM
Subscribers

Details

Summary

The X-Powers AC100 provides an RTC and an audio codec to at least the Banana Pi-M3 (a83t). Driver is ported from NetBSD, currently only supports the RTC bits.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 12967

Event Timeline

Sorry, should be the last correction for now- simplified the ofw compat bits.

sys/arm/allwinner/files.allwinner
16

This should by optional ac100

It feels like this should be 2 drivers. One to talk with the ac100, and a second jsut for the rtc bits.

It feels like this should be 2 drivers. One to talk with the ac100, and a second jsut for the rtc bits.

You never talk to the ac100, only to the rtc bits or the coded bits.
This is what DT calls MFD (Multi Function Device) and I never knew what is the best way to represent it in our drivers.

standard -> optional ac100, add ac100 to the arm/GENERIC config near rsb and axp209/axp81x.

This is what DT calls MFD (Multi Function Device) and I never knew what is the best way to represent it in our drivers.

How would an eventual codec driver interact with this one?

This is what DT calls MFD (Multi Function Device) and I never knew what is the best way to represent it in our drivers.

How would an eventual codec driver interact with this one?

AFAICT, it's intended that the AC100 bits should be an all-in-one kind of driver, thus the codec driver would "attach" like the RTC does here; not actually having its own resources or anything to that effect, and sharing a context with the RTC.

linimon retitled this revision from Add ac100 driver to [new driver] allwinner/ac100: rtc and audio codec for a83t.Aug 2 2018, 10:27 PM