diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-09-02 20:26:47 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2022-09-08 10:06:08 +0200 |
commit | 618a43ff1f37603164ac82cfa0734a39c079a3e9 (patch) | |
tree | 202212a36bd574df4389033947bcff9a1ba35f53 /drivers/pinctrl/pinctrl-cy8c95x0.c | |
parent | pinctrl: cy8c95x0: Make use of device properties (diff) | |
download | linux-618a43ff1f37603164ac82cfa0734a39c079a3e9.tar.xz linux-618a43ff1f37603164ac82cfa0734a39c079a3e9.zip |
pinctrl: cy8c95x0: support ACPI device found on Galileo Gen1
Add support of the expander found on Intel Galileo Gen1 board.
The platform information comes from ACPI.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Link: https://lore.kernel.org/r/20220902182650.83098-14-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-cy8c95x0.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-cy8c95x0.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/pinctrl/pinctrl-cy8c95x0.c b/drivers/pinctrl/pinctrl-cy8c95x0.c index e0f99c82f621..18a9f5a8ab2d 100644 --- a/drivers/pinctrl/pinctrl-cy8c95x0.c +++ b/drivers/pinctrl/pinctrl-cy8c95x0.c @@ -1339,10 +1339,17 @@ static void cy8c95x0_remove(struct i2c_client *client) regulator_disable(chip->regulator); } +static const struct acpi_device_id cy8c95x0_acpi_ids[] = { + { "INT3490", 40, }, + { } +}; +MODULE_DEVICE_TABLE(acpi, cy8c95x0_acpi_ids); + static struct i2c_driver cy8c95x0_driver = { .driver = { .name = "cy8c95x0-pinctrl", .of_match_table = cy8c95x0_dt_ids, + .acpi_match_table = cy8c95x0_acpi_ids, }, .probe_new = cy8c95x0_probe, .remove = cy8c95x0_remove, |