From: Rob Herring <robh@kernel.org>
To: Paul Cercueil <paul@crapouillou.net>
Cc: Alessandro Zummo <a.zummo@towertech.it>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
linux-rtc@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org,
od@opendingux.net
Subject: Re: [PATCH v2 1/4] dt-bindings: rtc: ingenic: Rework compatible strings and add #clock-cells
Date: Mon, 31 Oct 2022 14:23:41 -0500 [thread overview]
Message-ID: <20221031192341.GA3270129-robh@kernel.org> (raw)
In-Reply-To: <20221028225519.89210-2-paul@crapouillou.net>
On Fri, Oct 28, 2022 at 11:55:16PM +0100, Paul Cercueil wrote:
> The RTC in the JZ4770 is compatible with the JZ4760, but has an extra
> register that permits to configure the behaviour of the CLK32K pin. The
> same goes for the RTC in the JZ4780.
>
> Therefore, the ingenic,jz4770-rtc and ingenic,jz4780-rtc strings do not
> fall back anymore to ingenic,jz4760-rtc. The ingenic,jz4780-rtc string
> now falls back to the ingenic,jz4770-rtc string.
This is a compatibility mess. There is no driver support in v6.1-rc for
ingenic,jz4770-rtc, so a new DT would not work with existing kernels. It
sounds like you need 3 compatibles for 4780.
>
> Additionally, since the RTCs in the JZ4770 and JZ4780 support outputting
> the input oscillator's clock to the CLK32K pin, the RTC node is now also
> a clock provider on these SoCs, so a #clock-cells property is added.
>
> Signed-off-by: Paul Cercueil <paul@crapouillou.net>
> ---
>
> v2: - add constraint on which SoCs can have the #clock-cells property
> - add JZ4780 example which has a #clock-cells
>
> .../devicetree/bindings/rtc/ingenic,rtc.yaml | 32 +++++++++++++++++--
> 1 file changed, 30 insertions(+), 2 deletions(-)
next prev parent reply other threads:[~2022-10-31 19:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-28 22:55 [PATCH v2 0/4] rtc: ingenic: various updates Paul Cercueil
2022-10-28 22:55 ` [PATCH v2 1/4] dt-bindings: rtc: ingenic: Rework compatible strings and add #clock-cells Paul Cercueil
2022-10-31 19:23 ` Rob Herring [this message]
2022-10-31 19:40 ` Paul Cercueil
2022-11-01 17:32 ` Rob Herring
2022-10-28 22:55 ` [PATCH v2 2/4] rtc: jz4740: Use readl_poll_timeout Paul Cercueil
2022-10-28 22:55 ` [PATCH v2 3/4] rtc: jz4740: Register clock provider for the CLK32K pin Paul Cercueil
2022-10-28 22:55 ` [PATCH v2 4/4] rtc: jz4740: Support for fine-tuning the RTC clock Paul Cercueil
2022-10-29 8:51 ` kernel test robot
2022-10-29 11:52 ` Paul Cercueil
2022-11-02 17:40 ` [PATCH v2 0/4] rtc: ingenic: various updates Alexandre Belloni
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=20221031192341.GA3270129-robh@kernel.org \
--to=robh@kernel.org \
--cc=a.zummo@towertech.it \
--cc=alexandre.belloni@bootlin.com \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=od@opendingux.net \
--cc=paul@crapouillou.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.