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

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
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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"))))