Re: [PATCH v3 12/12] rtc: rzn1: Add support for Renesas RZ/T2H and RZ/N2H SoCs

"Lad, Prabhakar" <[email protected]>
Newsgroups dev.linux.lists.sashiko-reviews,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-rtc
Message-ID <CA+V-a8tJAStSKfsESoEE8vUjgnR+P1yKeYKTnpN43+=MtgbCBw@mail.gmail.com>
Hi Wolfram,

Thank you for the review.

On Tue, Aug 18, 2026 at 12:28 PM Wolfram Sang
<[email protected]> wrote:
>
>
> > Should we add match data to this compatible string to identify the variant
> > and explicitly reject probe with -EOPNOTSUPP if the clock configuration
> > would require the unsupported SUBU mode?
>
> Correct. Matches also my notes which say that this code
>
> 445                 if (rate != 32768)
> 446                         scmp_val = RZN1_RTC_CTL0_SLSB_SCMP;
>
> is wrong when we have a variant which has no SUBU support. Because in
> that case, we need to enable SCMP even for 32768Hz.
>
> So, yes, it is needed to mark which variant has SUBU (RZ/N1 only, likely
> forever) and bail out if no SUBU and no 'xtal'. The above code needs to
> check SUBU support, too.
>
Ok I will introduce OF data to handle this.

struct rzn1_rtc_data {
        bool has_subu;
};

Cheers,
Prabhakar
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.