public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Add device tree binding for ts73xx-fpga
@ 2026-04-07 17:27 Phil Pemberton
  2026-04-07 17:27 ` [PATCH 1/2] dt-bindings: fpga: add binding for Technologic Systems TS-73xx FPGA Phil Pemberton
  2026-04-07 17:27 ` [PATCH 2/2] fpga: ts73xx-fpga: add OF match table for device tree probing Phil Pemberton
  0 siblings, 2 replies; 5+ messages in thread
From: Phil Pemberton @ 2026-04-07 17:27 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.

Phil Pemberton (2):
  dt-bindings: fpga: add binding for Technologic Systems TS-73xx FPGA
  fpga: ts73xx-fpga: add OF match table for device tree probing

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

-- 
2.43.0


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

* [PATCH 1/2] dt-bindings: fpga: add binding for Technologic Systems TS-73xx FPGA
  2026-04-07 17:27 [PATCH 0/2] Add device tree binding for ts73xx-fpga Phil Pemberton
@ 2026-04-07 17:27 ` Phil Pemberton
  2026-04-07 17:32   ` Florian Fainelli
  2026-04-07 17:27 ` [PATCH 2/2] fpga: ts73xx-fpga: add OF match table for device tree probing Phil Pemberton
  1 sibling, 1 reply; 5+ messages in thread
From: Phil Pemberton @ 2026-04-07 17:27 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

Add device tree binding documentation for the Altera Cyclone II FPGA
found on Technologic Systems TS-7300 series boards, programmed via a
CPLD memory-mapped interface.

Signed-off-by: Phil Pemberton <philpem@philpem.me.uk>
---
 .../fpga/technologic,ts73xx-fpga.yaml         | 42 +++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/fpga/technologic,ts73xx-fpga.yaml

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


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

* [PATCH 2/2] fpga: ts73xx-fpga: add OF match table for device tree probing
  2026-04-07 17:27 [PATCH 0/2] Add device tree binding for ts73xx-fpga Phil Pemberton
  2026-04-07 17:27 ` [PATCH 1/2] dt-bindings: fpga: add binding for Technologic Systems TS-73xx FPGA Phil Pemberton
@ 2026-04-07 17:27 ` Phil Pemberton
  2026-04-07 17:32   ` Florian Fainelli
  1 sibling, 1 reply; 5+ messages in thread
From: Phil Pemberton @ 2026-04-07 17:27 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,ts73xx-fpga" compatible string.

Signed-off-by: Phil Pemberton <philpem@philpem.me.uk>
---
 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..5c8a2008d5a2 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,ts73xx-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] 5+ messages in thread

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

On 4/7/26 10:27, 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,ts73xx-fpga" compatible string.
> 
> Signed-off-by: Phil Pemberton <philpem@philpem.me.uk>

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian

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

* Re: [PATCH 1/2] dt-bindings: fpga: add binding for Technologic Systems TS-73xx FPGA
  2026-04-07 17:27 ` [PATCH 1/2] dt-bindings: fpga: add binding for Technologic Systems TS-73xx FPGA Phil Pemberton
@ 2026-04-07 17:32   ` Florian Fainelli
  0 siblings, 0 replies; 5+ messages in thread
From: Florian Fainelli @ 2026-04-07 17:32 UTC (permalink / raw)
  To: Phil Pemberton, Moritz Fischer, Xu Yilun, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: Tom Rix, linux-fpga, devicetree, linux-kernel

On 4/7/26 10:27, Phil Pemberton wrote:
> Add device tree binding documentation for the Altera Cyclone II FPGA
> found on Technologic Systems TS-7300 series boards, programmed via a
> CPLD memory-mapped interface.
> 
> Signed-off-by: Phil Pemberton <philpem@philpem.me.uk>

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian

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

end of thread, other threads:[~2026-04-07 17:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-07 17:27 [PATCH 0/2] Add device tree binding for ts73xx-fpga Phil Pemberton
2026-04-07 17:27 ` [PATCH 1/2] dt-bindings: fpga: add binding for Technologic Systems TS-73xx FPGA Phil Pemberton
2026-04-07 17:32   ` Florian Fainelli
2026-04-07 17:27 ` [PATCH 2/2] fpga: ts73xx-fpga: add OF match table for device tree probing Phil Pemberton
2026-04-07 17:32   ` Florian Fainelli

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