devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: spi: xilinx: Add clocks & clock-names properties
@ 2024-09-23 12:32 Amit Kumar Mahapatra
  2024-09-24 16:36 ` Conor Dooley
  0 siblings, 1 reply; 13+ messages in thread
From: Amit Kumar Mahapatra @ 2024-09-23 12:32 UTC (permalink / raw)
  To: broonie, robh, krzk+dt, conor+dt
  Cc: michal.simek, linux-spi, devicetree, linux-arm-kernel,
	linux-kernel, git, amitrkcian2002, Amit Kumar Mahapatra

Include the 'clocks' and 'clock-names' properties in the AXI Quad-SPI
bindings. When the AXI4-Lite interface is enabled, the core operates in
legacy mode, maintaining backward compatibility with version 1.00, and
uses 's_axi_aclk' and 'ext_spi_clk'. For the AXI interface, it uses
's_axi4_aclk' and 'ext_spi_clk'.

Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
---
BRANCH: for-next
---
 .../devicetree/bindings/spi/spi-xilinx.yaml   | 29 +++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/Documentation/devicetree/bindings/spi/spi-xilinx.yaml b/Documentation/devicetree/bindings/spi/spi-xilinx.yaml
index 4beb3af0416d..9dfec195ecd4 100644
--- a/Documentation/devicetree/bindings/spi/spi-xilinx.yaml
+++ b/Documentation/devicetree/bindings/spi/spi-xilinx.yaml
@@ -12,6 +12,25 @@ maintainers:
 allOf:
   - $ref: spi-controller.yaml#
 
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: xlnx,axi-quad-spi-1.00.a
+    then:
+      properties:
+        clock-names:
+          items:
+            - const: s_axi_aclk
+            - const: ext_spi_clk
+
+    else:
+      properties:
+        clock-names:
+          items:
+            - const: s_axi4_aclk
+            - const: ext_spi_clk
+
 properties:
   compatible:
     enum:
@@ -25,6 +44,12 @@ properties:
   interrupts:
     maxItems: 1
 
+  clocks:
+    maxItems: 2
+
+  clock-names:
+    maxItems: 2
+
   xlnx,num-ss-bits:
     description: Number of chip selects used.
     minimum: 1
@@ -39,6 +64,8 @@ required:
   - compatible
   - reg
   - interrupts
+  - clocks
+  - clock-names
 
 unevaluatedProperties: false
 
@@ -49,6 +76,8 @@ examples:
       interrupt-parent = <&intc>;
       interrupts = <0 31 1>;
       reg = <0x41e00000 0x10000>;
+      clocks = <&clkc 72>, <&clkc 73>;
+      clock-names = "s_axi4_aclk", "ext_spi_clk";
       xlnx,num-ss-bits = <0x1>;
       xlnx,num-transfer-bits = <32>;
     };
-- 
2.34.1


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

end of thread, other threads:[~2024-10-03  7:47 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-23 12:32 [PATCH] dt-bindings: spi: xilinx: Add clocks & clock-names properties Amit Kumar Mahapatra
2024-09-24 16:36 ` Conor Dooley
2024-09-25 11:35   ` Mahapatra, Amit Kumar
2024-09-25 12:46     ` Conor Dooley
2024-09-27  9:30       ` Mahapatra, Amit Kumar
2024-09-28  8:19         ` Krzysztof Kozlowski
2024-09-28 20:12           ` Conor Dooley
2024-09-30 15:44             ` Mahapatra, Amit Kumar
2024-09-30 16:40               ` Conor Dooley
2024-10-03  6:23                 ` Mahapatra, Amit Kumar
2024-10-03  7:01                   ` Krzysztof Kozlowski
2024-10-03  7:42                     ` Mahapatra, Amit Kumar
2024-10-03  7:47                       ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).