2020-12-24 11:45:09

by Kishon Vijay Abraham I

[permalink] [raw]
Subject: [PATCH 3/7] dt-bindings: phy: cadence-torrent: Add binding for refclk driver

Add binding for refclk driver used to route the refclk out of the
SERDES.

Signed-off-by: Kishon Vijay Abraham I <[email protected]>
---
.../bindings/phy/phy-cadence-torrent.yaml | 17 +++++++++++++++++
1 file changed, 17 insertions(+)

diff --git a/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml b/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml
index e266ade53d87..d3b96afd514c 100644
--- a/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml
+++ b/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml
@@ -125,6 +125,23 @@ patternProperties:

additionalProperties: false

+ "^refclk-driver":
+ type: object
+ description: |
+ Driver to route the reference clock out of the SERDES.
+ properties:
+ clocks:
+ maxItems: 1
+ description: Phandle to clock nodes representing the input to the
+ refclk driver.
+
+ "#clock-cells":
+ const: 0
+
+ required:
+ - clocks
+ - "#clock-cells"
+
required:
- compatible
- "#address-cells"
--
2.17.1


2021-01-08 03:03:36

by Rob Herring (Arm)

[permalink] [raw]
Subject: Re: [PATCH 3/7] dt-bindings: phy: cadence-torrent: Add binding for refclk driver

On Thu, Dec 24, 2020 at 05:12:46PM +0530, Kishon Vijay Abraham I wrote:
> Add binding for refclk driver used to route the refclk out of the
> SERDES.
>
> Signed-off-by: Kishon Vijay Abraham I <[email protected]>
> ---
> .../bindings/phy/phy-cadence-torrent.yaml | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml b/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml
> index e266ade53d87..d3b96afd514c 100644
> --- a/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml
> +++ b/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml
> @@ -125,6 +125,23 @@ patternProperties:
>
> additionalProperties: false
>
> + "^refclk-driver":
> + type: object
> + description: |
> + Driver to route the reference clock out of the SERDES.
> + properties:
> + clocks:
> + maxItems: 1
> + description: Phandle to clock nodes representing the input to the
> + refclk driver.
> +
> + "#clock-cells":
> + const: 0

Just move to the parent node.

> +
> + required:
> + - clocks
> + - "#clock-cells"
> +
> required:
> - compatible
> - "#address-cells"
> --
> 2.17.1
>