From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: megous@megous.com
Cc: Alessandro Zummo <a.zummo@towertech.it>,
Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Maxime Ripard <maxime.ripard@bootlin.com>,
Chen-Yu Tsai <wens@csie.org>,
linux-rtc@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com
Subject: Re: [PATCH v2 2/3] rtc: sun6i: Add support for H6 RTC
Date: Thu, 22 Aug 2019 23:16:01 +0200 [thread overview]
Message-ID: <20190822211601.GF27031@piout.net> (raw)
In-Reply-To: <20190820151934.3860-3-megous@megous.com>
On 20/08/2019 17:19:33+0200, megous@megous.com wrote:
> From: Ondrej Jirman <megous@megous.com>
>
> RTC on H6 is mostly the same as on H5 and H3. It has slight differences
> mostly in features that are not yet supported by this driver.
>
> Some differences are already stated in the comments in existing code.
> One other difference is that H6 has extra bit in LOSC_CTRL_REG, called
> EXT_LOSC_EN to enable/disable external low speed crystal oscillator.
>
> It also has bit EXT_LOSC_STA in LOSC_AUTO_SWT_STA_REG, to check whether
> external low speed oscillator is working correctly.
>
> This patch adds support for enabling LOSC when necessary:
>
> - during reparenting
> - when probing the clock
>
> H6 also has capacbility to automatically reparent RTC clock from
> external crystal oscillator, to internal RC oscillator, if external
> oscillator fails. This is enabled by default. Disable it during
> probe.
>
> Signed-off-by: Ondrej Jirman <megous@megous.com>
> Reviewed-by: Chen-Yu Tsai <wens@csie.org>
> ---
> drivers/rtc/rtc-sun6i.c | 40 ++++++++++++++++++++++++++++++++++++++--
> 1 file changed, 38 insertions(+), 2 deletions(-)
>
Applied, thanks.
--
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
WARNING: multiple messages have this Message-ID (diff)
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: megous@megous.com
Cc: Mark Rutland <mark.rutland@arm.com>,
Alessandro Zummo <a.zummo@towertech.it>,
devicetree@vger.kernel.org,
Maxime Ripard <maxime.ripard@bootlin.com>,
linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org,
Chen-Yu Tsai <wens@csie.org>, Rob Herring <robh+dt@kernel.org>,
linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org
Subject: Re: [PATCH v2 2/3] rtc: sun6i: Add support for H6 RTC
Date: Thu, 22 Aug 2019 23:16:01 +0200 [thread overview]
Message-ID: <20190822211601.GF27031@piout.net> (raw)
In-Reply-To: <20190820151934.3860-3-megous@megous.com>
On 20/08/2019 17:19:33+0200, megous@megous.com wrote:
> From: Ondrej Jirman <megous@megous.com>
>
> RTC on H6 is mostly the same as on H5 and H3. It has slight differences
> mostly in features that are not yet supported by this driver.
>
> Some differences are already stated in the comments in existing code.
> One other difference is that H6 has extra bit in LOSC_CTRL_REG, called
> EXT_LOSC_EN to enable/disable external low speed crystal oscillator.
>
> It also has bit EXT_LOSC_STA in LOSC_AUTO_SWT_STA_REG, to check whether
> external low speed oscillator is working correctly.
>
> This patch adds support for enabling LOSC when necessary:
>
> - during reparenting
> - when probing the clock
>
> H6 also has capacbility to automatically reparent RTC clock from
> external crystal oscillator, to internal RC oscillator, if external
> oscillator fails. This is enabled by default. Disable it during
> probe.
>
> Signed-off-by: Ondrej Jirman <megous@megous.com>
> Reviewed-by: Chen-Yu Tsai <wens@csie.org>
> ---
> drivers/rtc/rtc-sun6i.c | 40 ++++++++++++++++++++++++++++++++++++++--
> 1 file changed, 38 insertions(+), 2 deletions(-)
>
Applied, thanks.
--
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2019-08-22 21:16 UTC|newest]
Thread overview: 61+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-20 15:19 [PATCH v2 0/3] Add basic support for RTC on Allwinner H6 SoC megous
2019-08-20 15:19 ` megous-5qf/QAjKc83QT0dZR+AlfA
2019-08-20 15:19 ` megous
2019-08-20 15:19 ` [PATCH v2 1/3] dt-bindings: Add compatible for H6 RTC megous
2019-08-20 15:19 ` megous-5qf/QAjKc83QT0dZR+AlfA
2019-08-20 15:19 ` megous
2019-08-22 21:15 ` Alexandre Belloni
2019-08-22 21:15 ` Alexandre Belloni
2019-08-22 21:15 ` Alexandre Belloni
2019-08-20 15:19 ` [PATCH v2 2/3] rtc: sun6i: Add support " megous
2019-08-20 15:19 ` megous-5qf/QAjKc83QT0dZR+AlfA
2019-08-20 15:19 ` megous
2019-08-22 21:16 ` Alexandre Belloni [this message]
2019-08-22 21:16 ` Alexandre Belloni
2019-08-24 12:32 ` [linux-sunxi] " Jernej Škrabec
2019-08-24 12:32 ` Jernej Škrabec
2019-08-24 12:32 ` [linux-sunxi] " Jernej Škrabec
2019-08-24 12:46 ` Ondřej Jirman
2019-08-24 12:46 ` Ondřej Jirman
2019-08-24 12:46 ` [linux-sunxi] " Ondřej Jirman
2019-08-24 12:51 ` Jernej Škrabec
2019-08-24 12:51 ` Jernej Škrabec
2019-08-24 12:51 ` [linux-sunxi] " Jernej Škrabec
2019-08-24 13:05 ` Ondřej Jirman
2019-08-24 13:05 ` Ondřej Jirman
2019-08-24 13:05 ` [linux-sunxi] " Ondřej Jirman
2019-08-24 13:16 ` Jernej Škrabec
2019-08-24 13:16 ` Jernej Škrabec
2019-08-24 13:16 ` [linux-sunxi] " Jernej Škrabec
2019-08-24 13:30 ` Ondřej Jirman
2019-08-24 13:30 ` Ondřej Jirman
2019-08-24 13:30 ` [linux-sunxi] " Ondřej Jirman
2019-08-24 21:09 ` Jernej Škrabec
2019-08-24 21:09 ` Jernej Škrabec
2019-08-24 21:09 ` [linux-sunxi] " Jernej Škrabec
2019-08-24 21:27 ` Ondřej Jirman
2019-08-24 21:27 ` Ondřej Jirman
2019-08-24 21:27 ` [linux-sunxi] " Ondřej Jirman
2019-08-24 21:36 ` Jernej Škrabec
2019-08-24 21:36 ` Jernej Škrabec
2019-08-24 21:36 ` [linux-sunxi] " Jernej Škrabec
2019-08-24 22:16 ` Ondřej Jirman
2019-08-24 22:16 ` Ondřej Jirman
2019-08-20 15:19 ` [PATCH v2 3/3] arm64: dts: sun50i-h6: Add support for RTC and fix the clock tree megous
2019-08-20 15:19 ` megous-5qf/QAjKc83QT0dZR+AlfA
2019-08-20 15:19 ` megous
2019-08-23 8:19 ` Maxime Ripard
2019-08-23 8:19 ` Maxime Ripard
2019-08-23 8:19 ` Maxime Ripard
2019-08-24 8:04 ` [linux-sunxi] [PATCH v2 0/3] Add basic support for RTC on Allwinner H6 SoC Jernej Škrabec
2019-08-24 8:04 ` Jernej Škrabec
2019-08-24 8:04 ` [linux-sunxi] " Jernej Škrabec
2019-08-24 8:06 ` Jernej Škrabec
2019-08-24 8:06 ` Jernej Škrabec
2019-08-24 8:06 ` [linux-sunxi] " Jernej Škrabec
2019-08-24 12:56 ` Ondřej Jirman
2019-08-24 12:56 ` Ondřej Jirman
2019-08-24 12:56 ` [linux-sunxi] " Ondřej Jirman
2019-08-24 12:58 ` Jernej Škrabec
2019-08-24 12:58 ` Jernej Škrabec
2019-08-24 12:58 ` [linux-sunxi] " Jernej Škrabec
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190822211601.GF27031@piout.net \
--to=alexandre.belloni@bootlin.com \
--cc=a.zummo@towertech.it \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=linux-sunxi@googlegroups.com \
--cc=mark.rutland@arm.com \
--cc=maxime.ripard@bootlin.com \
--cc=megous@megous.com \
--cc=robh+dt@kernel.org \
--cc=wens@csie.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.