Commit d274f02e authored by Lucas Stach's avatar Lucas Stach Committed by Bartosz Golaszewski
Browse files

gpio: pca9570: add pca9571 support



The PCA9571 very similar to the PCA9570, it only differs in the
number of GPIOs.

Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: default avatarBartosz Golaszewski <brgl@bgdev.pl>
parent 91e9111b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);