]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fpga: ts73xx-fpga: add OF match table for device tree probing
authorPhil Pemberton <philpem@philpem.me.uk>
Thu, 9 Apr 2026 12:20:16 +0000 (13:20 +0100)
committerXu Yilun <yilun.xu@linux.intel.com>
Mon, 4 May 2026 11:28:18 +0000 (19:28 +0800)
commitbd3ce2c63dc8a78c6a383ed53cffe2bc6e5f3378
treefc6b9168f371668f31403add893e99d96dbd72ae
parent49d580fc54f2d9c6cc3529361cafd44b14e87644
fpga: ts73xx-fpga: add OF match table for device tree probing

The ts73xx-fpga driver currently only matches by platform device name,
which prevents it from being probed when the device is described in a
device tree. Add an of_device_id table so the driver can match against
the "technologic,ts7300-fpga" compatible string.

The TS-7350 and TS-7390 use different FPGAs with a different programming
interface, so while the driver is named "ts73xx-fpga", it doesn't apply
to them.

Signed-off-by: Phil Pemberton <philpem@philpem.me.uk>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/20260409122016.3940462-3-philpem@philpem.me.uk
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
drivers/fpga/ts73xx-fpga.c