From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Biju Das <biju.das.jz@bp.renesas.com>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>,
"linux-renesas-soc@vger.kernel.org"
<linux-renesas-soc@vger.kernel.org>,
"linux-clk@vger.kernel.org" <linux-clk@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Fabrizio Castro <fabrizio.castro.jz@renesas.com>
Subject: Re: [PATCH RFC 1/3] dt-bindings: clock: Add Renesas versa3 clock generator bindings
Date: Wed, 8 Mar 2023 19:47:48 +0100 [thread overview]
Message-ID: <36e06397-2189-4f1b-99cc-d39e720ebc71@linaro.org> (raw)
In-Reply-To: <OS0PR01MB59221C8C937EF20347149E4886B49@OS0PR01MB5922.jpnprd01.prod.outlook.com>
On 08/03/2023 15:39, Biju Das wrote:
>>> +++ b/Documentation/devicetree/bindings/clock/renesas,versaclock3.yaml
>>
>> Filename usually is based on the compatible. Why these two are so different?
>
> Versa3 clock generator has the following variants.
>
> 5P35023, 5L35021, 5L35023 and 5P35021
>
> RZ/G2L SMARC EVK uses 5P35023. So I used generic one as file name.
> And added compatible for specific one.
And what about other devices? Since you do not add them, just keep
compatible as filename.
>>
>>> +
>>> + clocks:
>>> + maxItems: 1
>>> +
>>> + renesas,settings:
>>> + description: Optional, complete register map of the device.
>>> + Optimized settings for the device must be provided in full
>>> + and are written during initialization.
>>> + $ref: /schemas/types.yaml#/definitions/uint8-array
>>> + minItems: 37
>>
>> maxItems instead... but I am not sure that we allow register settings in DT
>> in general.
>
> Agreed. I guess it is allowed [1]
> [1] https://lore.kernel.org/linux-renesas-soc/833d3837892f0879233695636291af97a746e584.1643968653.git.michal.simek@xilinx.com/
I don't see Rob's review on this, so what do you prove exactly?
>
>>
>>> +
>>> + assigned-clocks:
>>> + minItems: 6
>>
>> Drop.
>
> OK.
>
>>
>>> +
>>> + assigned-clock-rates:
>>> + minItems: 6
>>
>> Drop.
>
> OK.
>
>>
>>> +
>>> + renesas,clock-divider-read-only:
>>> + description: Flag for setting divider in read only mode.
>>
>> Flag? Then type: boolean.
>
> Agreed.
>>
>>> + $ref: /schemas/types.yaml#/definitions/uint32-array
>>> + minItems: 5
>>
>> This is broken...
> OK you mean maxItems. Based on Boolean type I will update this
I mean, it does not match the description. Maybe I just don't understand
here something, but flag is boolean. Anyway, minItems means you can have
million of items, so was it intended?
>>
>>> +
>>> + renesas,clock-flags:
>>> + description: Flags used in common clock frame work for configuring
>>> + clk outputs. See include/linux/clk-provider.h
>>
>> These are not bindings, so why do you non-bindings constants as bindings?
>> They can change anytime. Choose one:
>> 1. Drop entire property,
>> 2. Make it a proper binding property, so an ABI and explain why this is DT
>> specific. None of clock providers have to do it, so you need here good
>> explanation.
>
> I will choose 2 and will explain as user should be allowed to
> configure the output clock from clk generator, so that it has flexibility
> for
> 1) changing the rates (propagate rate change up one level)
> 2) fixed always
> 3) don't gate the ouput clk at all.
User's choice is task for user-space, so not a good explanation for DT.
Best regards,
Krzysztof
next prev parent reply other threads:[~2023-03-08 18:47 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20230220131307.269100-1-biju.das.jz@bp.renesas.com>
2023-02-20 13:13 ` [PATCH RFC 1/3] dt-bindings: clock: Add Renesas versa3 clock generator bindings Biju Das
2023-02-22 9:34 ` Krzysztof Kozlowski
2023-03-08 14:39 ` Biju Das
2023-03-08 14:50 ` Geert Uytterhoeven
2023-03-08 14:57 ` Biju Das
2023-03-08 18:47 ` Krzysztof Kozlowski [this message]
2023-03-08 18:55 ` Biju Das
2023-03-08 19:17 ` Krzysztof Kozlowski
2023-03-09 7:57 ` Biju Das
2023-03-09 9:13 ` Krzysztof Kozlowski
2023-03-09 9:18 ` Biju Das
2023-03-09 9:44 ` Krzysztof Kozlowski
2023-03-09 9:53 ` Biju Das
2023-03-09 10:15 ` Krzysztof Kozlowski
2023-03-09 11:18 ` Biju Das
2023-03-09 9:58 ` Geert Uytterhoeven
2023-03-09 10:17 ` Krzysztof Kozlowski
2023-03-09 10:25 ` Geert Uytterhoeven
2023-03-09 15:15 ` Biju Das
2023-03-09 10:30 ` Biju Das
2023-02-20 13:18 ` [PATCH RFC 0/3] Add Versa3 clock generator support Biju Das
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=36e06397-2189-4f1b-99cc-d39e720ebc71@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=biju.das.jz@bp.renesas.com \
--cc=devicetree@vger.kernel.org \
--cc=fabrizio.castro.jz@renesas.com \
--cc=geert+renesas@glider.be \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@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;
as well as URLs for NNTP newsgroup(s).