Devicetree
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Add device tree binding for ts73xx-fpga
@ 2026-04-09 12:20 Phil Pemberton
  2026-04-09 12:20 ` [PATCH v3 1/2] dt-bindings: fpga: Add Technologic Systems TS-7300 FPGA Manager Phil Pemberton
  2026-04-09 12:20 ` [PATCH v3 2/2] fpga: ts73xx-fpga: add OF match table for device tree probing Phil Pemberton
  0 siblings, 2 replies; 4+ messages in thread
From: Phil Pemberton @ 2026-04-09 12:20 UTC (permalink / raw)
  To: Moritz Fischer, Xu Yilun, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: Tom Rix, Florian Fainelli, linux-fpga, devicetree, linux-kernel,
	Phil Pemberton

The driver for the Technologic Systems (EmbeddedTS) TS-7300 board's
onboard FPGA didn't have an OF match table. This prevented it from being
instantiated from a device tree. This is undesirable given EP93xx is
moving to device tree, and effectively prevents it from being used.
This patch series adds the OF match table and a device tree binding.

Changes since v2:
  - Fix subject line on patch 1 (Krzysztof)
  - Carry forward Reviewed-by tags

Changes since v1:
  - Use specific compatible "technologic,ts7300-fpga" instead of
    wildcard "technologic,ts73xx-fpga" (Krzysztof)
  - Fix subject line for dt-bindings patch (Krzysztof)
  - Simplify example in binding doc (Krzysztof)

Phil Pemberton (2):
  dt-bindings: fpga: Add Technologic Systems TS-7300 FPGA Manager
  fpga: ts73xx-fpga: add OF match table for device tree probing

 .../fpga/technologic,ts7300-fpga.yaml         | 36 +++++++++++++++++++
 drivers/fpga/ts73xx-fpga.c                    |  9 +++++
 2 files changed, 45 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/fpga/technologic,ts7300-fpga.yaml

-- 
2.43.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v3 1/2] dt-bindings: fpga: Add Technologic Systems TS-7300 FPGA Manager
  2026-04-09 12:20 [PATCH v3 0/2] Add device tree binding for ts73xx-fpga Phil Pemberton
@ 2026-04-09 12:20 ` Phil Pemberton
  2026-04-09 12:20 ` [PATCH v3 2/2] fpga: ts73xx-fpga: add OF match table for device tree probing Phil Pemberton
  1 sibling, 0 replies; 4+ messages in thread
From: Phil Pemberton @ 2026-04-09 12:20 UTC (permalink / raw)
  To: Moritz Fischer, Xu Yilun, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: Tom Rix, Florian Fainelli, linux-fpga, devicetree, linux-kernel,
	Phil Pemberton, Krzysztof Kozlowski

Add device tree binding documentation for the Altera Cyclone II FPGA
found on Technologic Systems (now EmbeddedTS) TS-7300 boards, programmed
via the memory-mapped interface in the CPLD.

Signed-off-by: Phil Pemberton <philpem@philpem.me.uk>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
---
 .../fpga/technologic,ts7300-fpga.yaml         | 36 +++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/fpga/technologic,ts7300-fpga.yaml

diff --git a/Documentation/devicetree/bindings/fpga/technologic,ts7300-fpga.yaml b/Documentation/devicetree/bindings/fpga/technologic,ts7300-fpga.yaml
new file mode 100644
index 000000000000..c93e3a1a135b
--- /dev/null
+++ b/Documentation/devicetree/bindings/fpga/technologic,ts7300-fpga.yaml
@@ -0,0 +1,36 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/fpga/technologic,ts7300-fpga.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Technologic Systems TS-7300 FPGA Manager
+
+maintainers:
+  - Florian Fainelli <f.fainelli@gmail.com>
+
+description:
+  FPGA manager for the Altera Cyclone II FPGA on Technologic Systems
+  TS-7300 board. The FPGA is programmed via the memory-mapped interface
+  implemented in the CPLD.
+
+properties:
+  compatible:
+    const: technologic,ts7300-fpga
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    fpga-mgr@13c00000 {
+        compatible = "technologic,ts7300-fpga";
+        reg = <0x13c00000 0x2>;
+    };
+...
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v3 2/2] fpga: ts73xx-fpga: add OF match table for device tree probing
  2026-04-09 12:20 [PATCH v3 0/2] Add device tree binding for ts73xx-fpga Phil Pemberton
  2026-04-09 12:20 ` [PATCH v3 1/2] dt-bindings: fpga: Add Technologic Systems TS-7300 FPGA Manager Phil Pemberton
@ 2026-04-09 12:20 ` Phil Pemberton
  2026-05-04 11:19   ` Xu Yilun
  1 sibling, 1 reply; 4+ messages in thread
From: Phil Pemberton @ 2026-04-09 12:20 UTC (permalink / raw)
  To: Moritz Fischer, Xu Yilun, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: Tom Rix, Florian Fainelli, linux-fpga, devicetree, linux-kernel,
	Phil Pemberton

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>
---
 drivers/fpga/ts73xx-fpga.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/fpga/ts73xx-fpga.c b/drivers/fpga/ts73xx-fpga.c
index 4e1d2a4d3df4..3460e4809f86 100644
--- a/drivers/fpga/ts73xx-fpga.c
+++ b/drivers/fpga/ts73xx-fpga.c
@@ -11,6 +11,7 @@
 #include <linux/delay.h>
 #include <linux/io.h>
 #include <linux/module.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/string.h>
 #include <linux/iopoll.h>
@@ -119,9 +120,17 @@ static int ts73xx_fpga_probe(struct platform_device *pdev)
 	return PTR_ERR_OR_ZERO(mgr);
 }
 
+static const struct of_device_id ts73xx_fpga_of_match[] = {
+	{ .compatible = "technologic,ts7300-fpga" },
+	{},
+};
+
+MODULE_DEVICE_TABLE(of, ts73xx_fpga_of_match);
+
 static struct platform_driver ts73xx_fpga_driver = {
 	.driver	= {
 		.name	= "ts73xx-fpga-mgr",
+		.of_match_table = ts73xx_fpga_of_match,
 	},
 	.probe	= ts73xx_fpga_probe,
 };
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v3 2/2] fpga: ts73xx-fpga: add OF match table for device tree probing
  2026-04-09 12:20 ` [PATCH v3 2/2] fpga: ts73xx-fpga: add OF match table for device tree probing Phil Pemberton
@ 2026-05-04 11:19   ` Xu Yilun
  0 siblings, 0 replies; 4+ messages in thread
From: Xu Yilun @ 2026-05-04 11:19 UTC (permalink / raw)
  To: Phil Pemberton
  Cc: Moritz Fischer, Xu Yilun, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Tom Rix, Florian Fainelli, linux-fpga, devicetree,
	linux-kernel

On Thu, Apr 09, 2026 at 01:20:16PM +0100, Phil Pemberton wrote:
> 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>

Applied this series to for-next.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-05-04 11:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-09 12:20 [PATCH v3 0/2] Add device tree binding for ts73xx-fpga Phil Pemberton
2026-04-09 12:20 ` [PATCH v3 1/2] dt-bindings: fpga: Add Technologic Systems TS-7300 FPGA Manager Phil Pemberton
2026-04-09 12:20 ` [PATCH v3 2/2] fpga: ts73xx-fpga: add OF match table for device tree probing Phil Pemberton
2026-05-04 11:19   ` Xu Yilun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox