[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230301131125.6084-4-sjakhade@cadence.com>
Date: Wed, 1 Mar 2023 14:11:21 +0100
From: Swapnil Jakhade <sjakhade@...ence.com>
To: <vkoul@...nel.org>, <kishon@...nel.org>, <robh+dt@...nel.org>,
<krzysztof.kozlowski+dt@...aro.org>,
<linux-phy@...ts.infradead.org>, <devicetree@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
CC: <mparab@...ence.com>, <sjakhade@...ence.com>, <rogerq@...nel.org>
Subject: [PATCH 3/7] dt-bindings: phy: cadence-torrent: Add bindings to support dual input reference clock configurations
Torrent(SD0801) PHY supports one external and one internal reference
clocks. Update bindings to support dual reference clock multilink
configurations.
Signed-off-by: Swapnil Jakhade <sjakhade@...ence.com>
---
.../bindings/phy/phy-cadence-torrent.yaml | 35 ++++++++++++++-----
1 file changed, 26 insertions(+), 9 deletions(-)
diff --git a/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml b/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml
index 2ad1faadda2a..711097e167bc 100644
--- a/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml
+++ b/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml
@@ -32,17 +32,34 @@ properties:
const: 1
clocks:
- minItems: 1
- maxItems: 2
- description:
- PHY reference clock for 1 item. Must contain an entry in clock-names.
- Optional Parent to enable output reference clock.
+ anyOf:
+ - items:
+ - description: PHY input reference clock. Must contain an entry in clock-names.
+ - items:
+ - description: PHY input reference clock. Must contain an entry in clock-names.
+ - description: Optional Parent to enable output reference clock.
+ - items:
+ - description: PHY input reference clock. Must contain an entry in clock-names.
+ - description: Second optional input reference clock. Must contain an entry in clock-names.
+ - items:
+ - description: PHY input reference clock. Must contain an entry in clock-names.
+ - description: Second optional input reference clock. Must contain an entry in clock-names.
+ - description: Optional Parent to enable output reference clock.
clock-names:
- minItems: 1
- items:
- - const: refclk
- - const: phy_en_refclk
+ oneOf:
+ - items:
+ - const: refclk
+ - items:
+ - const: refclk
+ - const: phy_en_refclk
+ - items:
+ - const: refclk
+ - const: refclk1
+ - items:
+ - const: refclk
+ - const: refclk1
+ - const: phy_en_refclk
assigned-clocks:
maxItems: 3
--
2.34.1
Powered by blists - more mailing lists