summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Molloy <[email protected]>2025-09-05 11:25:13 +0000
committerTom Rini <[email protected]>2025-09-16 13:41:31 -0600
commit41d9ac102536a07f8561533873bb8e772e61d54a (patch)
tree18df9a92671ca55c14d22743045ea62fcf630f3f
parent8db442e1a03b048fd34651b3e48ffdcc0bf7868b (diff)
gpio: adp5588: Add ADP5587 as compatible
The ADP5587 is a simpler version of the ADP5588. The ADP5588 can configure two pins, C8 and C9, as GPIOs or light sensors. The ADP5587 does not include the light sensors. Signed-off-by: Philip Molloy <[email protected]>
-rw-r--r--drivers/gpio/adp5588_gpio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpio/adp5588_gpio.c b/drivers/gpio/adp5588_gpio.c
index d081e169897..36304e48893 100644
--- a/drivers/gpio/adp5588_gpio.c
+++ b/drivers/gpio/adp5588_gpio.c
@@ -168,7 +168,7 @@ static int adp5588_ofdata_platdata(struct udevice *dev)
revid = ret & ID_MASK;
- printf("ADP5588 Detected: Rev %x, Rev ID %x\n", ret, revid);
+ printf("ADP558x Detected: Rev %x, Rev ID %x\n", ret, revid);
for (i = 0, ret = 0; i <= ADP5588_BANK(ADP5588_MAXGPIO); i++) {
plat->dat_out[i] = adp5588_gpio_read(dev, GPIO_DAT_OUT1 + i);
@@ -194,6 +194,7 @@ static const struct dm_gpio_ops adp5588_ops = {
static const struct udevice_id adp5588_of_match_list[] = {
{ .compatible = "adi,adp5588"},
+ { .compatible = "adi,adp5587"},
{ /* sentinel */ }
};