gpio: vf610: add i.MX8ULP of_device_id entry
authorPeng Fan <peng.fan@nxp.com>
Sun, 1 Oct 2023 08:27:55 +0000 (16:27 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 5 Oct 2023 17:53:00 +0000 (19:53 +0200)
commit76bc907b142cca4a043e0a18be4d8a4e6d2df328
treef74664785135aefaebc59ff5b8231ce50689cb12
parent2b575631fe5f4e7948954e70fcff409b67ed42c3
gpio: vf610: add i.MX8ULP of_device_id entry

i.MX8ULP/93 GPIO supports similar feature as i.MX7ULP GPIO, but i.MX8ULP is
actually not hardware compatible with i.MX7ULP. i.MX8ULP only has one
register base, not two bases. i.MX8ULP and i.MX93 actually has two
interrupts for each gpio controller, one for Trustzone non-secure world,
one for secure world.

Although the Linux Kernel driver gpio-vf610.c could work with
fsl,imx7ulp-gpio compatible, it is based on some tricks did in device tree
with some offset added to base address.

Add a new of_device_id entry for i.MX8ULP. But to make the driver could
also support old bindings, check the compatible string first, before
check the device data.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-vf610.c