i2c: muxes: pca954x: Allow sharing reset GPIO
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Tue, 12 Mar 2024 20:14:00 +0000 (09:14 +1300)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 20 Mar 2024 08:45:04 +0000 (09:45 +0100)
commitb7b73f6d4f7bca79fef9e31a054e24e31a65f22a
treee7a17072aa74fbf8aa272acfd42245bf3eed6299
parent7e5d4236d5462e2fef75fad6101fccee47051c4a
i2c: muxes: pca954x: Allow sharing reset GPIO

Some hardware designs with multiple PCA954x devices use a reset GPIO
connected to all the muxes. Support this configuration by making use of
the reset controller framework which can deal with the shared reset
GPIOs. Fall back to the old GPIO descriptor method if the reset
controller framework is not enabled.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Acked-by: Peter Rosin <peda@axentia.se>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
drivers/i2c/muxes/i2c-mux-pca954x.c