[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b42d082e-0568-4d2c-849c-a0b9ab762afd@kernel.org>
Date: Tue, 8 Apr 2025 08:14:36 +0200
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Antoni Pokusinski <apokusinski01@...il.com>,
alexandre.belloni@...tlin.com, krzk+dt@...nel.org, conor+dt@...nel.org,
robh@...nel.org, alexander.stein@...tq-group.com
Cc: 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 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.
> + 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
Powered by blists - more mailing lists