gpio: pca9570: add pca9571 support
authorLucas Stach <l.stach@pengutronix.de>
Wed, 29 Jun 2022 17:04:20 +0000 (19:04 +0200)
committerBartosz Golaszewski <brgl@bgdev.pl>
Tue, 19 Jul 2022 07:57:13 +0000 (09:57 +0200)
The PCA9571 very similar to the PCA9570, it only differs in the
number of GPIOs.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpio-pca9570.c

index cb2b2f735c1595152679771fe4089f1579008c25..ab2a652964ec2ff93e0cbe38cda455a749fb96eb 100644 (file)
@@ -121,12 +121,14 @@ static int pca9570_probe(struct i2c_client *client)
 
 static const struct i2c_device_id pca9570_id_table[] = {
        { "pca9570", 4 },
+       { "pca9571", 8 },
        { /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(i2c, pca9570_id_table);
 
 static const struct of_device_id pca9570_of_match_table[] = {
        { .compatible = "nxp,pca9570", .data = (void *)4 },
+       { .compatible = "nxp,pca9571", .data = (void *)8 },
        { /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, pca9570_of_match_table);