Skip to content
Snippets Groups Projects
Commit 9b6e3ea4 authored by Tobias Kahlki's avatar Tobias Kahlki Committed by Tobias Kahlki
Browse files

driver:gpio: Added DT support to PI4IO GPIO Expander

BCS 746-001106
parent 949598ee
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
* Driver for the Pericom PI4IOE5V6408 GPIO Expander. * Driver for the Pericom PI4IOE5V6408 GPIO Expander.
* *
* Copyright (C) 2018 Google, LLC. * Copyright (C) 2018 Google, LLC.
* Copyright (C) 2023 SECO Northern Europe GmbH
*/ */
#include <linux/gpio.h> #include <linux/gpio.h>
...@@ -217,9 +218,18 @@ static int pi4io_probe( ...@@ -217,9 +218,18 @@ static int pi4io_probe(
return 0; return 0;
} }
static const struct i2c_device_id pi4io_id_table[] = { { "pi4io", 0 }, {} }; static const struct i2c_device_id pi4io_id_table[] = {
{ "pi4io", 0 },
{ }
};
MODULE_DEVICE_TABLE(i2c, pi4io_id_table); MODULE_DEVICE_TABLE(i2c, pi4io_id_table);
static const struct of_device_id pi4io_of_table[] = {
{ .compatible = "psc,pi4io" },
{ },
};
MODULE_DEVICE_TABLE(of, pi4io_of_table);
static struct i2c_driver pi4io_driver = { static struct i2c_driver pi4io_driver = {
.driver = { .driver = {
.name = "pi4io-gpio", .name = "pi4io-gpio",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment