diff mbox series

[1/4] arm64: defconfig: Enable rv3028 i2c rtc driver

Message ID 1607113982-109524-2-git-send-email-t.remmet@phytec.de (mailing list archive)
State New, archived
Headers show
Series Initial support for phyBOARD-Pollux i.MX8MP | expand

Commit Message

Teresa Remmet Dec. 4, 2020, 8:32 p.m. UTC
Enable rv3028 i2c rtc driver populated on phyBOARD-Pollux-i.MX8M Plus.

Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Krzysztof Kozlowski Dec. 7, 2020, 12:10 p.m. UTC | #1
On Fri, Dec 04, 2020 at 09:32:59PM +0100, Teresa Remmet wrote:
> Enable rv3028 i2c rtc driver populated on phyBOARD-Pollux-i.MX8M Plus.
> 
> Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
> ---
>  arch/arm64/configs/defconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> index 5cfe3cf6f2ac..2034fefb3f44 100644
> --- a/arch/arm64/configs/defconfig
> +++ b/arch/arm64/configs/defconfig
> @@ -818,6 +818,7 @@ CONFIG_RTC_DRV_MAX77686=y
>  CONFIG_RTC_DRV_RK808=m
>  CONFIG_RTC_DRV_PCF85363=m
>  CONFIG_RTC_DRV_RX8581=m
> +CONFIG_RTC_DRV_RV3028=y

This should be a module.

Best regards,
Krzysztof


>  CONFIG_RTC_DRV_RV8803=m
>  CONFIG_RTC_DRV_S5M=y
>  CONFIG_RTC_DRV_DS3232=y
> -- 
> 2.7.4
>
Teresa Remmet Dec. 7, 2020, 1:38 p.m. UTC | #2
Am Montag, den 07.12.2020, 13:10 +0100 schrieb Krzysztof Kozlowski:
> On Fri, Dec 04, 2020 at 09:32:59PM +0100, Teresa Remmet wrote:
> > Enable rv3028 i2c rtc driver populated on phyBOARD-Pollux-i.MX8M
> > Plus.
> > 
> > Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
> > ---
> >  arch/arm64/configs/defconfig | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/arch/arm64/configs/defconfig
> > b/arch/arm64/configs/defconfig
> > index 5cfe3cf6f2ac..2034fefb3f44 100644
> > --- a/arch/arm64/configs/defconfig
> > +++ b/arch/arm64/configs/defconfig
> > @@ -818,6 +818,7 @@ CONFIG_RTC_DRV_MAX77686=y
> >  CONFIG_RTC_DRV_RK808=m
> >  CONFIG_RTC_DRV_PCF85363=m
> >  CONFIG_RTC_DRV_RX8581=m
> > +CONFIG_RTC_DRV_RV3028=y
> 
> This should be a module.

with having this build in the clock out of this rtc will be disabled as
not using during boot up. The clock out is enabled as default and has
to be disabled explicit. But I guess the correct way would be to find a
solution in the rtc driver itself?

Teresa

> 
> Best regards,
> Krzysztof
> 
> 
> >  CONFIG_RTC_DRV_RV8803=m
> >  CONFIG_RTC_DRV_S5M=y
> >  CONFIG_RTC_DRV_DS3232=y
> > -- 
> > 2.7.4
> >
Krzysztof Kozlowski Dec. 7, 2020, 1:50 p.m. UTC | #3
On Mon, Dec 07, 2020 at 02:38:51PM +0100, Teresa Remmet wrote:
> Am Montag, den 07.12.2020, 13:10 +0100 schrieb Krzysztof Kozlowski:
> > On Fri, Dec 04, 2020 at 09:32:59PM +0100, Teresa Remmet wrote:
> > > Enable rv3028 i2c rtc driver populated on phyBOARD-Pollux-i.MX8M
> > > Plus.
> > > 
> > > Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
> > > ---
> > >  arch/arm64/configs/defconfig | 1 +
> > >  1 file changed, 1 insertion(+)
> > > 
> > > diff --git a/arch/arm64/configs/defconfig
> > > b/arch/arm64/configs/defconfig
> > > index 5cfe3cf6f2ac..2034fefb3f44 100644
> > > --- a/arch/arm64/configs/defconfig
> > > +++ b/arch/arm64/configs/defconfig
> > > @@ -818,6 +818,7 @@ CONFIG_RTC_DRV_MAX77686=y
> > >  CONFIG_RTC_DRV_RK808=m
> > >  CONFIG_RTC_DRV_PCF85363=m
> > >  CONFIG_RTC_DRV_RX8581=m
> > > +CONFIG_RTC_DRV_RV3028=y
> > 
> > This should be a module.
> 
> with having this build in the clock out of this rtc will be disabled as
> not using during boot up. The clock out is enabled as default and has
> to be disabled explicit. But I guess the correct way would be to find a
> solution in the rtc driver itself?

Regardless whether it is built-in or module, the driver will behave the
same. So either the driver disables the clock, or not. The only
difference will be *when* the action happens.

Choosing it as built-in for the purpose of disabling some clock is not a
proper approach.

The defconfig here serves only a development/debugging/reference purpose.
It's not for production so anyway the effect on disabling some parts is
not that important.

Best regards,
Krzysztof
Teresa Remmet Dec. 8, 2020, 11:33 a.m. UTC | #4
Hello Krzysztof,

Am Montag, den 07.12.2020, 14:50 +0100 schrieb Krzysztof Kozlowski:
> On Mon, Dec 07, 2020 at 02:38:51PM +0100, Teresa Remmet wrote:
> > Am Montag, den 07.12.2020, 13:10 +0100 schrieb Krzysztof Kozlowski:
> > > On Fri, Dec 04, 2020 at 09:32:59PM +0100, Teresa Remmet wrote:
> > > > Enable rv3028 i2c rtc driver populated on phyBOARD-Pollux-
> > > > i.MX8M
> > > > Plus.
> > > > 
> > > > Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
> > > > ---
> > > >  arch/arm64/configs/defconfig | 1 +
> > > >  1 file changed, 1 insertion(+)
> > > > 
> > > > diff --git a/arch/arm64/configs/defconfig
> > > > b/arch/arm64/configs/defconfig
> > > > index 5cfe3cf6f2ac..2034fefb3f44 100644
> > > > --- a/arch/arm64/configs/defconfig
> > > > +++ b/arch/arm64/configs/defconfig
> > > > @@ -818,6 +818,7 @@ CONFIG_RTC_DRV_MAX77686=y
> > > >  CONFIG_RTC_DRV_RK808=m
> > > >  CONFIG_RTC_DRV_PCF85363=m
> > > >  CONFIG_RTC_DRV_RX8581=m
> > > > +CONFIG_RTC_DRV_RV3028=y
> > > 
> > > This should be a module.
> > 
> > with having this build in the clock out of this rtc will be
> > disabled as
> > not using during boot up. The clock out is enabled as default and
> > has
> > to be disabled explicit. But I guess the correct way would be to
> > find a
> > solution in the rtc driver itself?
> 
> Regardless whether it is built-in or module, the driver will behave
> the
> same. So either the driver disables the clock, or not. The only
> difference will be *when* the action happens.
> 
> Choosing it as built-in for the purpose of disabling some clock is
> not a
> proper approach.
> 
> The defconfig here serves only a development/debugging/reference
> purpose.
> It's not for production so anyway the effect on disabling some parts
> is
> not that important.

I will include this as module in v2.

Thanks,
Teresa

> 
> Best regards,
> Krzysztof
>
diff mbox series

Patch

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 5cfe3cf6f2ac..2034fefb3f44 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -818,6 +818,7 @@  CONFIG_RTC_DRV_MAX77686=y
 CONFIG_RTC_DRV_RK808=m
 CONFIG_RTC_DRV_PCF85363=m
 CONFIG_RTC_DRV_RX8581=m
+CONFIG_RTC_DRV_RV3028=y
 CONFIG_RTC_DRV_RV8803=m
 CONFIG_RTC_DRV_S5M=y
 CONFIG_RTC_DRV_DS3232=y