HomeFreeBSD

pca954x: harmonize pca9547 and pca954x and add pca9540 support

Description

pca954x: harmonize pca9547 and pca954x and add pca9540 support

The two implementations for the pca9548 switch and the pca9547 mux
seemed close enough so we can put them together and with a bit more
abstraction add pca9540 support.

While here apply a bit of consistency in variable and driver naming and
use device_has_property instead of the FDT-only OF_ variant.

This disconnects pca9547 from the build but does not yet delete it.

Reviewed by: mmel (earlier version), avg
Sponsored by: Traverse Technologies (providing Ten64 HW for testing)
Differential Revision: https://reviews.freebsd.org/D35701

(cherry picked from commit 97dbd37753ae1bf9c4f6a23e46e21f0a9f408c82)

Details

Provenance
bzAuthored on Jul 2 2022, 11:33 PM
Reviewer
mmel
Differential Revision
D35701: pca954x: harmonize pca9547 and pca954x and add pca9540 support
Parents
rG74c7b2d74adf: tca6416: add support for tca9539
Branches
Unknown
Tags
Unknown