From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: Anson Huang <anson.huang@nxp.com>
Cc: "robh+dt@kernel.org" <robh+dt@kernel.org>,
"mark.rutland@arm.com" <mark.rutland@arm.com>,
"catalin.marinas@arm.com" <catalin.marinas@arm.com>,
"will.deacon@arm.com" <will.deacon@arm.com>,
"a.zummo@towertech.it" <a.zummo@towertech.it>,
Aisheng Dong <aisheng.dong@nxp.com>,
"shawnguo@kernel.org" <shawnguo@kernel.org>,
"s.hauer@pengutronix.de" <s.hauer@pengutronix.de>,
Andy Gross <andy.gross@linaro.org>,
"horms+renesas@verge.net.au" <horms+renesas@verge.net.au>,
"heiko@sntech.de" <heiko@sntech.de>,
"arnd@arndb.de" <arnd@arndb.de>,
"bjorn.andersson@linaro.org" <bjorn.andersson@linaro.org>,
"enric.balletbo@collabora.com" <enric.balletbo@collabora.com>,
"amit.kucheria@linaro.org" <amit.kucheria@linaro.org>,
"ezequiel@collabora.com" <ezequiel@collabora.com>,
"olof@lixom.net" <olof@lixom.net>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-rtc@vger.kernel.org" <linux-rtc@vger.kernel.org>,
dl-linux-imx <linux-imx@nxp.com>
Subject: Re: [PATCH V5 2/4] rtc: add i.MX system controller RTC support
Date: Fri, 21 Dec 2018 10:24:47 +0100 [thread overview]
Message-ID: <20181221092447.GM2188@piout.net> (raw)
In-Reply-To: <1545295872-20169-3-git-send-email-Anson.Huang@nxp.com>
On 20/12/2018 08:56:16+0000, Anson Huang wrote:
> i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller
> inside, the system controller is in charge of controlling power,
> clock and secure rtc etc..
>
> This patch adds i.MX system controller RTC driver support,
> Linux kernel has to communicate with system controller via MU
> (message unit) IPC to set/get RTC time and other alarm functions,
> since the RTC set time needs to be done in secure EL3 mode (required
> by system controller firmware) and alarm functions needs to be done
> with general MU IRQ handle, these depend on other components which
> are NOT ready, so this patch ONLY enables the RTC time read.
>
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
> ChangeLog since V4:
> - Add dependency on IMX_SCU to avoid compile error when IMX_SCU is NOT enabled;
> - Use dev_err instead of pr_err;
> - Remove unneccssary different errors check in imx_scu_get_handle which is already done in API.
> ---
> drivers/rtc/Kconfig | 7 ++++
> drivers/rtc/Makefile | 1 +
> drivers/rtc/rtc-imx-sc.c | 91 ++++++++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 99 insertions(+)
> create mode 100644 drivers/rtc/rtc-imx-sc.c
>
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: Anson Huang <anson.huang@nxp.com>
Cc: "mark.rutland@arm.com" <mark.rutland@arm.com>,
"heiko@sntech.de" <heiko@sntech.de>,
"catalin.marinas@arm.com" <catalin.marinas@arm.com>,
"will.deacon@arm.com" <will.deacon@arm.com>,
"bjorn.andersson@linaro.org" <bjorn.andersson@linaro.org>,
"linux-rtc@vger.kernel.org" <linux-rtc@vger.kernel.org>,
dl-linux-imx <linux-imx@nxp.com>,
Andy Gross <andy.gross@linaro.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"arnd@arndb.de" <arnd@arndb.de>,
"s.hauer@pengutronix.de" <s.hauer@pengutronix.de>,
"enric.balletbo@collabora.com" <enric.balletbo@collabora.com>,
"robh+dt@kernel.org" <robh+dt@kernel.org>,
"horms+renesas@verge.net.au" <horms+renesas@verge.net.au>,
"ezequiel@collabora.com" <ezequiel@collabora.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
Aisheng Dong <aisheng.dong@nxp.com>,
"a.zummo@towertech.it" <a.zummo@towertech.it>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"amit.kucheria@linaro.org" <amit.kucheria@linaro.org>,
"olof@lixom.net" <olof@lixom.net>,
"shawnguo@kernel.org" <shawnguo@kernel.org>
Subject: Re: [PATCH V5 2/4] rtc: add i.MX system controller RTC support
Date: Fri, 21 Dec 2018 10:24:47 +0100 [thread overview]
Message-ID: <20181221092447.GM2188@piout.net> (raw)
In-Reply-To: <1545295872-20169-3-git-send-email-Anson.Huang@nxp.com>
On 20/12/2018 08:56:16+0000, Anson Huang wrote:
> i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller
> inside, the system controller is in charge of controlling power,
> clock and secure rtc etc..
>
> This patch adds i.MX system controller RTC driver support,
> Linux kernel has to communicate with system controller via MU
> (message unit) IPC to set/get RTC time and other alarm functions,
> since the RTC set time needs to be done in secure EL3 mode (required
> by system controller firmware) and alarm functions needs to be done
> with general MU IRQ handle, these depend on other components which
> are NOT ready, so this patch ONLY enables the RTC time read.
>
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
> ChangeLog since V4:
> - Add dependency on IMX_SCU to avoid compile error when IMX_SCU is NOT enabled;
> - Use dev_err instead of pr_err;
> - Remove unneccssary different errors check in imx_scu_get_handle which is already done in API.
> ---
> drivers/rtc/Kconfig | 7 ++++
> drivers/rtc/Makefile | 1 +
> drivers/rtc/rtc-imx-sc.c | 91 ++++++++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 99 insertions(+)
> create mode 100644 drivers/rtc/rtc-imx-sc.c
>
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
WARNING: multiple messages have this Message-ID (diff)
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: Anson Huang <anson.huang@nxp.com>
Cc: "robh+dt@kernel.org" <robh+dt@kernel.org>,
"mark.rutland@arm.com" <mark.rutland@arm.com>,
"catalin.marinas@arm.com" <catalin.marinas@arm.com>,
"will.deacon@arm.com" <will.deacon@arm.com>,
"a.zummo@towertech.it" <a.zummo@towertech.it>,
Aisheng Dong <aisheng.dong@nxp.com>,
"shawnguo@kernel.org" <shawnguo@kernel.org>,
"s.hauer@pengutronix.de" <s.hauer@pengutronix.de>,
Andy Gross <andy.gross@linaro.org>,
"horms+renesas@verge.net.au" <horms+renesas@verge.net.au>,
"heiko@sntech.de" <heiko@sntech.de>,
"arnd@arndb.de" <arnd@arndb.de>,
"bjorn.andersson@linaro.org" <bjorn.andersson@linaro.org>,
"enric.balletbo@collabora.com" <enric.balletbo@collabora.com>,
"amit.kucheria@linaro.org" <amit.kucheria@linaro.org>,
"ezequiel@collabora.com" <ezequiel@collabora.com>,
olof@l
Subject: Re: [PATCH V5 2/4] rtc: add i.MX system controller RTC support
Date: Fri, 21 Dec 2018 10:24:47 +0100 [thread overview]
Message-ID: <20181221092447.GM2188@piout.net> (raw)
In-Reply-To: <1545295872-20169-3-git-send-email-Anson.Huang@nxp.com>
On 20/12/2018 08:56:16+0000, Anson Huang wrote:
> i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller
> inside, the system controller is in charge of controlling power,
> clock and secure rtc etc..
>
> This patch adds i.MX system controller RTC driver support,
> Linux kernel has to communicate with system controller via MU
> (message unit) IPC to set/get RTC time and other alarm functions,
> since the RTC set time needs to be done in secure EL3 mode (required
> by system controller firmware) and alarm functions needs to be done
> with general MU IRQ handle, these depend on other components which
> are NOT ready, so this patch ONLY enables the RTC time read.
>
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
> ChangeLog since V4:
> - Add dependency on IMX_SCU to avoid compile error when IMX_SCU is NOT enabled;
> - Use dev_err instead of pr_err;
> - Remove unneccssary different errors check in imx_scu_get_handle which is already done in API.
> ---
> drivers/rtc/Kconfig | 7 ++++
> drivers/rtc/Makefile | 1 +
> drivers/rtc/rtc-imx-sc.c | 91 ++++++++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 99 insertions(+)
> create mode 100644 drivers/rtc/rtc-imx-sc.c
>
Applied, thanks.
--
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2018-12-21 9:24 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-20 8:55 [PATCH V5 0/4] Add i.MX system controller RTC driver Anson Huang
2018-12-20 8:55 ` Anson Huang
2018-12-20 8:56 ` [PATCH V5 1/4] dt-bindings: fsl: scu: add rtc binding Anson Huang
2018-12-20 8:56 ` Anson Huang
2018-12-20 8:56 ` Anson Huang
2018-12-21 9:24 ` Alexandre Belloni
2018-12-21 9:24 ` Alexandre Belloni
2018-12-21 9:24 ` Alexandre Belloni
2018-12-20 8:56 ` [PATCH V5 2/4] rtc: add i.MX system controller RTC support Anson Huang
2018-12-20 8:56 ` Anson Huang
2018-12-20 8:56 ` Anson Huang
2018-12-21 9:24 ` Alexandre Belloni [this message]
2018-12-21 9:24 ` Alexandre Belloni
2018-12-21 9:24 ` Alexandre Belloni
2018-12-20 8:56 ` [PATCH V5 3/4] defconfig: arm64: " Anson Huang
2018-12-20 8:56 ` Anson Huang
2018-12-20 8:56 ` Anson Huang
2019-01-14 1:43 ` Shawn Guo
2019-01-14 1:43 ` Shawn Guo
2019-01-14 1:43 ` Shawn Guo
2018-12-20 8:56 ` [PATCH V5 4/4] ARM64: dts: imx: add i.MX8QXP " Anson Huang
2018-12-20 8:56 ` Anson Huang
2018-12-20 8:56 ` Anson Huang
2019-01-14 1:50 ` Shawn Guo
2019-01-14 1:50 ` Shawn Guo
2019-01-14 1:50 ` Shawn Guo
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=20181221092447.GM2188@piout.net \
--to=alexandre.belloni@bootlin.com \
--cc=a.zummo@towertech.it \
--cc=aisheng.dong@nxp.com \
--cc=amit.kucheria@linaro.org \
--cc=andy.gross@linaro.org \
--cc=anson.huang@nxp.com \
--cc=arnd@arndb.de \
--cc=bjorn.andersson@linaro.org \
--cc=catalin.marinas@arm.com \
--cc=devicetree@vger.kernel.org \
--cc=enric.balletbo@collabora.com \
--cc=ezequiel@collabora.com \
--cc=heiko@sntech.de \
--cc=horms+renesas@verge.net.au \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=olof@lixom.net \
--cc=robh+dt@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=will.deacon@arm.com \
/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.