summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2023-10-07 20:55:50 +0800
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-10-09 08:51:00 +0200
commit8a58cd577f019dee00bdb0ffa52e38aab44154e4 (patch)
tree919095e5c0c8962220965085f781213b456e6d07
parentb57587f11f8116c3835e994caed81fc4d8ab5dbd (diff)
downloadlinux-8a58cd577f019dee00bdb0ffa52e38aab44154e4.tar.gz
linux-8a58cd577f019dee00bdb0ffa52e38aab44154e4.tar.bz2
linux-8a58cd577f019dee00bdb0ffa52e38aab44154e4.zip
gpio: vf610: update comment for i.MX8ULP and i.MX93 legacy compatibles
i.MX8ULP and i.MX93 legacy compatible strings use dual regs, while new compatible strings use one reg. The "support old compatible strings" is not clear to reflect the fact, so update it. Suggested-by: Marco Felsch <m.felsch@pengutronix.de> Signed-off-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
-rw-r--r--drivers/gpio/gpio-vf610.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c
index c03dfda41d4c..a89ae84a1fa0 100644
--- a/drivers/gpio/gpio-vf610.c
+++ b/drivers/gpio/gpio-vf610.c
@@ -287,7 +287,10 @@ static int vf610_gpio_probe(struct platform_device *pdev)
dual_base = port->sdata->have_dual_base;
- /* support old compatible strings */
+ /*
+ * Handle legacy compatible combinations which used two reg values
+ * for the i.MX8ULP and i.MX93.
+ */
if (device_is_compatible(dev, "fsl,imx7ulp-gpio") &&
(device_is_compatible(dev, "fsl,imx93-gpio") ||
(device_is_compatible(dev, "fsl,imx8ulp-gpio"))))