[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d83be897-55ee-25d2-4048-586646cd7151@linaro.org>
Date: Sun, 10 Apr 2022 16:21:14 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Josua Mayer <josua@...id-run.com>, netdev@...r.kernel.org
Cc: alvaro.karsz@...id-run.com,
Michael Hennerich <michael.hennerich@...log.com>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Alexandru Ardelean <alexandru.ardelean@...log.com>
Subject: Re: [PATCH 1/3] dt: adin: document clk-out property
On 10/04/2022 12:46, Josua Mayer wrote:
> The ADIN1300 supports generating certain clocks on its GP_CLK pin.
> Add a DT property to specify the frequency.
>
> Due to the complexity of the clock configuration register, for now only
> 125MHz is documented.
Thank you for your patch. There is something to discuss/improve.
Adjust subject prefix to the subsystem (dt-bindings, not dt, missing net).
>
> Signed-off-by: Josua Mayer <josua@...id-run.com>
> ---
> Documentation/devicetree/bindings/net/adi,adin.yaml | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/net/adi,adin.yaml b/Documentation/devicetree/bindings/net/adi,adin.yaml
> index 1129f2b58e98..4e421bf5193d 100644
> --- a/Documentation/devicetree/bindings/net/adi,adin.yaml
> +++ b/Documentation/devicetree/bindings/net/adi,adin.yaml
> @@ -36,6 +36,11 @@ properties:
> enum: [ 4, 8, 12, 16, 20, 24 ]
> default: 8
>
> + adi,clk-out-frequency:
Use types defined by the dtschema, so "adi,clk-out-hz". Then no need for
type/ref.
> + description: Clock output frequency in Hertz.
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum: [125000000]
If only one value, then "const: 125000000", but why do you need such
value in DT if it is always the same?
Best regards,
Krzysztof
Powered by blists - more mailing lists