[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250408073641fa372d2e@mail.local>
Date: Tue, 8 Apr 2025 09:36:41 +0200
From: Alexandre Belloni <alexandre.belloni@...tlin.com>
To: Krzysztof Kozlowski <krzk@...nel.org>
Cc: Antoni Pokusinski <apokusinski01@...il.com>, krzk+dt@...nel.org,
conor+dt@...nel.org, robh@...nel.org,
alexander.stein@...tq-group.com, linux-rtc@...r.kernel.org,
linux-kernel@...r.kernel.org, devicetree@...r.kernel.org
Subject: Re: [PATCH 2/3] rtc: pcf85063: add support for RV8063
On 08/04/2025 08:14:36+0200, Krzysztof Kozlowski wrote:
> On 07/04/2025 21:35, Antoni Pokusinski wrote:
> > Microcrystal RV8063 is a real-time clock with SPI interface. Its
> > functionality is very similar to the RV8263 rtc.
> >
> > Signed-off-by: Antoni Pokusinski <apokusinski01@...il.com>
> > ---
> > drivers/rtc/Kconfig | 21 ++++++-----
> > drivers/rtc/rtc-pcf85063.c | 74 +++++++++++++++++++++++++++++++++++++-
> > 2 files changed, 85 insertions(+), 10 deletions(-)
> >
> > diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
> > index 838bdc138ffe..1b9be96faa13 100644
> > --- a/drivers/rtc/Kconfig
> > +++ b/drivers/rtc/Kconfig
> > @@ -483,15 +483,6 @@ config RTC_DRV_PCF8523
> > This driver can also be built as a module. If so, the module
> > will be called rtc-pcf8523.
> >
> > -config RTC_DRV_PCF85063
> > - tristate "NXP PCF85063"
> > - select REGMAP_I2C
> > - help
> > - If you say yes here you get support for the PCF85063 RTC chip
> > -
> > - This driver can also be built as a module. If so, the module
> > - will be called rtc-pcf85063.
> > -
> > config RTC_DRV_PCF85363
> > tristate "NXP PCF85363"
> > select REGMAP_I2C
> > @@ -971,6 +962,18 @@ config RTC_DRV_PCF2127
> > This driver can also be built as a module. If so, the module
> > will be called rtc-pcf2127.
> >
> > +config RTC_DRV_PCF85063
>
> Why? This breaks the order.
>
I don't think it does but you can't see it from the diff.
> > + tristate "NXP PCF85063"
> > + depends on RTC_I2C_AND_SPI
> > + select REGMAP_I2C if I2C
> > + select REGMAP_SPI if SPI_MASTER
> > + help
> > + If you say yes here you get support for the PCF85063 and RV8063
> > + RTC chips.
> > +
> > + This driver can also be built as a module. If so, the module
> > + will be called rtc-pcf85063.
> > +
>
>
> ...
>
> > module_exit(pcf85063_exit);
> > @@ -740,3 +811,4 @@ module_exit(pcf85063_exit);
> > MODULE_AUTHOR("Søren Andersen <san@...etechnology.dk>");
> > MODULE_DESCRIPTION("PCF85063 RTC driver");
> > MODULE_LICENSE("GPL");
> > +MODULE_ALIAS("spi:rv8063");
>
> Drop and use proper ID tables.
>
>
> Best regards,
> Krzysztof
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Powered by blists - more mailing lists