From: Amit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
To: <broonie@kernel.org>, <robh@kernel.org>, <krzk+dt@kernel.org>,
<conor+dt@kernel.org>
Cc: <michal.simek@amd.com>, <linux-spi@vger.kernel.org>,
<devicetree@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>, <git@amd.com>,
<amitrkcian2002@gmail.com>,
Amit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
Subject: [PATCH] dt-bindings: spi: xilinx: Add clocks & clock-names properties
Date: Mon, 23 Sep 2024 18:02:42 +0530 [thread overview]
Message-ID: <20240923123242.2101562-1-amit.kumar-mahapatra@amd.com> (raw)
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
next reply other threads:[~2024-09-23 12:32 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-23 12:32 Amit Kumar Mahapatra [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240923123242.2101562-1-amit.kumar-mahapatra@amd.com \
--to=amit.kumar-mahapatra@amd.com \
--cc=amitrkcian2002@gmail.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=git@amd.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=michal.simek@amd.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®