From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Alex Helms <alexander.helms.jy@renesas.com>,
Rob Herring <robh@kernel.org>
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux-clk@vger.kernel.org, sboyd@kernel.org,
mturquette@baylibre.com, geert+renesas@glider.be
Subject: Re: [PATCH 1/2] dt-bindings: clock: Add bindings for Renesas ProXO
Date: Fri, 28 Oct 2022 19:55:59 -0400 [thread overview]
Message-ID: <fdbde791-b0d9-7cb8-c028-5e4466ae3d81@linaro.org> (raw)
In-Reply-To: <8d71b849-7226-09ec-d099-ae5c172e1a17@renesas.com>
On 22/09/2022 14:06, Alex Helms wrote:
> On 9/15/2022 5:08 AM, Rob Herring wrote:
>> On Wed, Sep 14, 2022 at 02:18:08PM -0700, Alex Helms wrote:
>>> Add dt bindings for the Renesas ProXO oscillator.
>>>
>>> Signed-off-by: Alex Helms <alexander.helms.jy@renesas.com>
Please use scripts/get_maintainers.pl to get a list of necessary people
and lists to CC. It might happen, that command when run on an older
kernel, gives you outdated entries. Therefore please be sure you base
your patches on recent Linux kernel.
>>> ---
>>> .../bindings/clock/renesas,proxo.yaml | 50 +++++++++++++++++++
>>> MAINTAINERS | 5 ++
>>> 2 files changed, 55 insertions(+)
>>> create mode 100644 Documentation/devicetree/bindings/clock/renesas,proxo.yaml
>>>
>>> diff --git a/Documentation/devicetree/bindings/clock/renesas,proxo.yaml b/Documentation/devicetree/bindings/clock/renesas,proxo.yaml
>>> new file mode 100644
>>> index 000000000..2ae131431
>>> --- /dev/null
>>> +++ b/Documentation/devicetree/bindings/clock/renesas,proxo.yaml
>>> @@ -0,0 +1,50 @@
>>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
>>> +%YAML 1.2
>>> +---
>>> +$id: https://jpn01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdevicetree.org%2Fschemas%2Fclock%2Frenesas%2Cversaclock7.yaml%23&data=05%7C01%7Calexander.helms.jy%40renesas.com%7C34ce960b2542459b61d408da97130b50%7C53d82571da1947e49cb4625a166a4a2a%7C0%7C0%7C637988405289843575%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=izvR%2FXbUNVXknaODSnMmcetPnn%2Ff3Jk%2F6RuBdZ7uSa0%3D&reserved=0
>>> +$schema: https://jpn01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdevicetree.org%2Fmeta-schemas%2Fcore.yaml%23&data=05%7C01%7Calexander.helms.jy%40renesas.com%7C34ce960b2542459b61d408da97130b50%7C53d82571da1947e49cb4625a166a4a2a%7C0%7C0%7C637988405289843575%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=dQ7nZtgfTE5DrXB1iavJuOhSWmGl4tYI1m6iZpkPAhA%3D&reserved=0
>>> +
>>> +title: Renesas ProXO Oscillator Device Tree Bindings
>>> +
>>> +maintainers:
>>> + - Alex Helms <alexander.helms.jy@renesas.com>
>>> +
>>> +description: |
>>
>> Don't need '|' if no formatting to preserve.
>>
>>> + Renesas ProXO is a family of programmable ultra-low phase noise
>>> + quartz-based oscillators.
>>
>> Are they all the same from a s/w standpoint. If not you need specific
>> compatibles for the differences.
>
> At this time only the XP variant is supported and this is reflected in
> the "compatible" string.
You should document everything, if possible, not what is supported by
some version of some system/driver/firmware.
>
>>
>>> +
>>> +properties:
>>> + '#clock-cells':
>>> + const: 0
>>> +
>>> + compatible:
>>> + enum:
>>> + - renesas,proxo-xp
>>> +
>>> + reg:
>>> + maxItems: 1
>>> +
>>> + renesas,xtal:
>>> + description: Internal crystal frequency, default is 50000000 (50MHz)
>>> + $ref: /schemas/types.yaml#/definitions/uint32
>>
>> Use 'clock-frequency'.
>
> I think "crystal-frequency" would make more sense. The parts come
> programmed to a factory clock frequency which is different than the
> internal crystal frequency.
We have a standard property and it should be used, when applicable.
Don't encode here frequency for something else than the driving clock.
Best regards,
Krzysztof
next prev parent reply other threads:[~2022-10-28 23:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-14 21:18 [PATCH 0/2] Add support for Renesas ProXO XP oscillator Alex Helms
2022-09-14 21:18 ` [PATCH 1/2] dt-bindings: clock: Add bindings for Renesas ProXO Alex Helms
2022-09-15 9:36 ` Krzysztof Kozlowski
2022-09-15 12:08 ` Rob Herring
2022-09-22 18:06 ` Alex Helms
2022-10-28 23:55 ` Krzysztof Kozlowski [this message]
2022-09-14 21:18 ` [PATCH 2/2] clk: Add support for Renesas ProXO oscillator Alex Helms
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=fdbde791-b0d9-7cb8-c028-5e4466ae3d81@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=alexander.helms.jy@renesas.com \
--cc=devicetree@vger.kernel.org \
--cc=geert+renesas@glider.be \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=robh@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).