Message ID | 20230824-tca9538-v1-1-ee3bf2065065@gmail.com |
---|---|
State | Accepted |
Commit | 3d0957b07e27abd3237b1fe0c7f06485ba80852f |
Headers | show |
Series | gpio: pca953x: add support for TCA9538 | expand |
On Thu, Aug 24, 2023 at 07:16:25PM -0400, Liam Beguin wrote: > The TCA9538 is an 8 bit version of the already supported TCA9539. > This chip also has interrupt support. Reviewed-by: Andy Shevchenko <andy@kernel.org>
On Fri, Aug 25, 2023 at 1:16 AM Liam Beguin <liambeguin@gmail.com> wrote: > > The TCA9538 is an 8 bit version of the already supported TCA9539. > This chip also has interrupt support. > > Signed-off-by: Liam Beguin <liambeguin@gmail.com> > --- > drivers/gpio/gpio-pca953x.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c > index a806a3c1b801..71a750363738 100644 > --- a/drivers/gpio/gpio-pca953x.c > +++ b/drivers/gpio/gpio-pca953x.c > @@ -108,6 +108,7 @@ static const struct i2c_device_id pca953x_id[] = { > { "tca6408", 8 | PCA953X_TYPE | PCA_INT, }, > { "tca6416", 16 | PCA953X_TYPE | PCA_INT, }, > { "tca6424", 24 | PCA953X_TYPE | PCA_INT, }, > + { "tca9538", 8 | PCA953X_TYPE | PCA_INT, }, > { "tca9539", 16 | PCA953X_TYPE | PCA_INT, }, > { "tca9554", 8 | PCA953X_TYPE | PCA_INT, }, > { "xra1202", 8 | PCA953X_TYPE }, > @@ -1354,6 +1355,7 @@ static const struct of_device_id pca953x_dt_ids[] = { > { .compatible = "ti,tca6408", .data = OF_953X( 8, PCA_INT), }, > { .compatible = "ti,tca6416", .data = OF_953X(16, PCA_INT), }, > { .compatible = "ti,tca6424", .data = OF_953X(24, PCA_INT), }, > + { .compatible = "ti,tca9538", .data = OF_953X( 8, PCA_INT), }, > { .compatible = "ti,tca9539", .data = OF_953X(16, PCA_INT), }, > > { .compatible = "onnn,cat9554", .data = OF_953X( 8, PCA_INT), }, > > -- > 2.39.0 > Applied, thanks! Bart
diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c index a806a3c1b801..71a750363738 100644 --- a/drivers/gpio/gpio-pca953x.c +++ b/drivers/gpio/gpio-pca953x.c @@ -108,6 +108,7 @@ static const struct i2c_device_id pca953x_id[] = { { "tca6408", 8 | PCA953X_TYPE | PCA_INT, }, { "tca6416", 16 | PCA953X_TYPE | PCA_INT, }, { "tca6424", 24 | PCA953X_TYPE | PCA_INT, }, + { "tca9538", 8 | PCA953X_TYPE | PCA_INT, }, { "tca9539", 16 | PCA953X_TYPE | PCA_INT, }, { "tca9554", 8 | PCA953X_TYPE | PCA_INT, }, { "xra1202", 8 | PCA953X_TYPE }, @@ -1354,6 +1355,7 @@ static const struct of_device_id pca953x_dt_ids[] = { { .compatible = "ti,tca6408", .data = OF_953X( 8, PCA_INT), }, { .compatible = "ti,tca6416", .data = OF_953X(16, PCA_INT), }, { .compatible = "ti,tca6424", .data = OF_953X(24, PCA_INT), }, + { .compatible = "ti,tca9538", .data = OF_953X( 8, PCA_INT), }, { .compatible = "ti,tca9539", .data = OF_953X(16, PCA_INT), }, { .compatible = "onnn,cat9554", .data = OF_953X( 8, PCA_INT), },
The TCA9538 is an 8 bit version of the already supported TCA9539. This chip also has interrupt support. Signed-off-by: Liam Beguin <liambeguin@gmail.com> --- drivers/gpio/gpio-pca953x.c | 2 ++ 1 file changed, 2 insertions(+)