Commit 8a58cd57 authored by Peng Fan's avatar Peng Fan Committed by Bartosz Golaszewski

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: default avatarMarco Felsch <m.felsch@pengutronix.de>
Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
parent b57587f1
......@@ -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"))))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment