[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250904-mustard-lion-of-downpour-f07cea@kuoka>
Date: Thu, 4 Sep 2025 11:29:25 +0200
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Alexandre Belloni <alexandre.belloni@...tlin.com>
Cc: Frank Li <Frank.li@....com>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>,
"open list:REAL TIME CLOCK (RTC) SUBSYSTEM" <linux-rtc@...r.kernel.org>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" <devicetree@...r.kernel.org>, open list <linux-kernel@...r.kernel.org>, imx@...ts.linux.dev
Subject: Re: [PATCH 1/1] dt-bindings: rtc: pcf2127: add compatible string
nxp,rtc-pcf2123
On Wed, Sep 03, 2025 at 09:24:36PM +0200, Alexandre Belloni wrote:
> On 03/09/2025 14:24:10-0400, Frank Li wrote:
> > On Wed, Sep 03, 2025 at 06:58:29PM +0200, Alexandre Belloni wrote:
> > > On 03/09/2025 12:55:36-0400, Frank Li wrote:
> > > > Add compatible string nxp,rtc-pcf2123, which style is not consistent with
> > > > existed compatible string because existed driver and dts use
> > > > nxp,rtc-pcf2123.
> > > >
> > > > Fix below CHECK_DTBS warning:
> > > > arch/arm/boot/dts/nxp/imx/imx6q-evi.dtb: /soc/bus@...0000/spba-bus@...0000/spi@...8000/rtc@3: failed to match any schema with compatible: ['nxp,rtc-pcf2123']
> > > >
> > > > Signed-off-by: Frank Li <Frank.Li@....com>
> > > > ---
> > > > Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml | 1 +
> > > > 1 file changed, 1 insertion(+)
> > > >
> > > > diff --git a/Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml b/Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml
> > > > index 11fcf0ca1ae07..595c20df6a411 100644
> > > > --- a/Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml
> > > > +++ b/Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml
> > > > @@ -20,6 +20,7 @@ properties:
> > > > - nxp,pcf2127
> > > > - nxp,pcf2129
> > > > - nxp,pcf2131
> > > > + - nxp,rtc-pcf2123
> > >
> > > Nope, you need to fix the devicetree.
Yep, 6 years is enough for all users to adjust, so I agree.
> >
> > Oh, driver drivers/rtc/rtc-pcf2123.c also use nxp,rtc-pcf2123. For such old
> > devices, generally keep it as it.
> >
> > Maybe DT team members provide more professional comments for it.
>
> It is there for DT ABI compatibility, we don't need to advertise its
> existence in the doc, you must fix the device tree.
In-tree compatibles should be documented anyway (as "deprecated: true").
Best regards,
Krzysztof
Powered by blists - more mailing lists