From: Shawn Guo <shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> To: Steffen Trumtrar <s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> Cc: Alessandro Zummo <a.zummo-BfzFCNDTiLLj+vYz1yj4TQ@public.gmane.org>, rtc-linux-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, Juergen Beisert <jbe-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>, kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org Subject: Re: [PATCH 2/9] MXS/i.MX28: add the possibility to define the external RTC crystal Date: Thu, 7 Mar 2013 14:33:40 +0800 [thread overview] Message-ID: <20130307063337.GB5372@S2101-09.ap.freescale.net> (raw) In-Reply-To: <1362405948-12992-3-git-send-email-s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> On Mon, Mar 04, 2013 at 03:05:41PM +0100, Steffen Trumtrar wrote: > From: Juergen Beisert <jbe-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> > > Signed-off-by: Juergen Beisert <jbe-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> You should have your SoB added here. > --- > arch/arm/boot/dts/imx28.dtsi | 6 ++++++ > drivers/clk/mxs/clk-imx28.c | 4 +++- > 2 files changed, 9 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/imx28.dtsi b/arch/arm/boot/dts/imx28.dtsi > index 958bd10..dcd0844 100644 > --- a/arch/arm/boot/dts/imx28.dtsi > +++ b/arch/arm/boot/dts/imx28.dtsi > @@ -41,6 +41,12 @@ > #address-cells = <1>; > #size-cells = <0>; > > + osc32k: rtc_oscillator { Please use "-" than "_" in node name. > + compatible = "fsl,mxs-rtc", "fixed-clock"; I would suggest drop "fsl,mxs-rtc" here, and ... > + #clock-cells = <0>; > + clock-frequency = <0>; > + }; > + > osc24m: system_oscillator { > compatible = "fsl,mxs-system", "fixed-clock"; > #clock-cells = <0>; > diff --git a/drivers/clk/mxs/clk-imx28.c b/drivers/clk/mxs/clk-imx28.c > index 01048b5..a910d72 100644 > --- a/drivers/clk/mxs/clk-imx28.c > +++ b/drivers/clk/mxs/clk-imx28.c > @@ -141,7 +141,7 @@ enum imx28_clk { > clk32k_div, rtc, lradc, spdif_div, clk32k, pwm, uart, ssp0, > ssp1, ssp2, ssp3, gpmi, spdif, emi, saif0, saif1, lcdif, etm, > fec, can0, can1, usb0, usb1, usb0_phy, usb1_phy, enet_out, > - clk_max > + rtc_32k, clk_max Number it in binding doc. > }; > > static struct clk *clks[clk_max]; > @@ -167,6 +167,8 @@ int __init mx28_clocks_init(void) > > if (of_device_is_compatible(np, "fsl,mxs-system")) > clks[ref_xtal] = mxs_clk_fixed("ref_xtal", rate); > + else if (of_device_is_compatible(np, "fsl,mxs-rtc")) ... use node name to match, so that we can save a custom compatible. Shawn > + clks[rtc_32k] = mxs_clk_fixed("rtc32k", rate); > } > > /* if not set, guess their frequency */ > -- > 1.7.10.4 >
WARNING: multiple messages have this Message-ID (diff)
From: shawn.guo@linaro.org (Shawn Guo) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/9] MXS/i.MX28: add the possibility to define the external RTC crystal Date: Thu, 7 Mar 2013 14:33:40 +0800 [thread overview] Message-ID: <20130307063337.GB5372@S2101-09.ap.freescale.net> (raw) In-Reply-To: <1362405948-12992-3-git-send-email-s.trumtrar@pengutronix.de> On Mon, Mar 04, 2013 at 03:05:41PM +0100, Steffen Trumtrar wrote: > From: Juergen Beisert <jbe@pengutronix.de> > > Signed-off-by: Juergen Beisert <jbe@pengutronix.de> You should have your SoB added here. > --- > arch/arm/boot/dts/imx28.dtsi | 6 ++++++ > drivers/clk/mxs/clk-imx28.c | 4 +++- > 2 files changed, 9 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/imx28.dtsi b/arch/arm/boot/dts/imx28.dtsi > index 958bd10..dcd0844 100644 > --- a/arch/arm/boot/dts/imx28.dtsi > +++ b/arch/arm/boot/dts/imx28.dtsi > @@ -41,6 +41,12 @@ > #address-cells = <1>; > #size-cells = <0>; > > + osc32k: rtc_oscillator { Please use "-" than "_" in node name. > + compatible = "fsl,mxs-rtc", "fixed-clock"; I would suggest drop "fsl,mxs-rtc" here, and ... > + #clock-cells = <0>; > + clock-frequency = <0>; > + }; > + > osc24m: system_oscillator { > compatible = "fsl,mxs-system", "fixed-clock"; > #clock-cells = <0>; > diff --git a/drivers/clk/mxs/clk-imx28.c b/drivers/clk/mxs/clk-imx28.c > index 01048b5..a910d72 100644 > --- a/drivers/clk/mxs/clk-imx28.c > +++ b/drivers/clk/mxs/clk-imx28.c > @@ -141,7 +141,7 @@ enum imx28_clk { > clk32k_div, rtc, lradc, spdif_div, clk32k, pwm, uart, ssp0, > ssp1, ssp2, ssp3, gpmi, spdif, emi, saif0, saif1, lcdif, etm, > fec, can0, can1, usb0, usb1, usb0_phy, usb1_phy, enet_out, > - clk_max > + rtc_32k, clk_max Number it in binding doc. > }; > > static struct clk *clks[clk_max]; > @@ -167,6 +167,8 @@ int __init mx28_clocks_init(void) > > if (of_device_is_compatible(np, "fsl,mxs-system")) > clks[ref_xtal] = mxs_clk_fixed("ref_xtal", rate); > + else if (of_device_is_compatible(np, "fsl,mxs-rtc")) ... use node name to match, so that we can save a custom compatible. Shawn > + clks[rtc_32k] = mxs_clk_fixed("rtc32k", rate); > } > > /* if not set, guess their frequency */ > -- > 1.7.10.4 >
next prev parent reply other threads:[~2013-03-07 6:33 UTC|newest] Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-03-04 14:05 [PATCH 0/9] rtc: stmp3xxx: DT bindings and wakealarm Steffen Trumtrar 2013-03-04 14:05 ` Steffen Trumtrar [not found] ` <1362405948-12992-1-git-send-email-s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> 2013-03-04 14:05 ` [PATCH 1/9] MXS/i.MX28: add the possibility to define the used crystals via device tree Steffen Trumtrar 2013-03-04 14:05 ` Steffen Trumtrar [not found] ` <1362405948-12992-2-git-send-email-s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> 2013-03-07 6:17 ` Shawn Guo 2013-03-07 6:17 ` Shawn Guo 2013-03-04 14:05 ` [PATCH 2/9] MXS/i.MX28: add the possibility to define the external RTC crystal Steffen Trumtrar 2013-03-04 14:05 ` Steffen Trumtrar [not found] ` <1362405948-12992-3-git-send-email-s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> 2013-03-07 6:33 ` Shawn Guo [this message] 2013-03-07 6:33 ` Shawn Guo 2013-03-04 14:05 ` [PATCH 3/9] MXS/i.MX28: prepare different clocking of the built-in RTC Steffen Trumtrar 2013-03-04 14:05 ` Steffen Trumtrar [not found] ` <1362405948-12992-4-git-send-email-s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> 2013-03-07 6:40 ` Shawn Guo 2013-03-07 6:40 ` Shawn Guo 2013-03-04 14:05 ` [PATCH 4/9] MXS/i.MX28: there is more than one way to clock the RTC Steffen Trumtrar 2013-03-04 14:05 ` Steffen Trumtrar [not found] ` <1362405948-12992-5-git-send-email-s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> 2013-03-07 6:48 ` Shawn Guo 2013-03-07 6:48 ` Shawn Guo [not found] ` <20130307064824.GD5372-rvtDTF3kK1ictlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org> 2013-03-07 8:19 ` Steffen Trumtrar 2013-03-07 8:19 ` Steffen Trumtrar 2013-03-04 14:05 ` [PATCH 5/9] MXS/i.MX28: enable RTC to wakeup the system Steffen Trumtrar 2013-03-04 14:05 ` Steffen Trumtrar 2013-03-04 14:05 ` [PATCH 6/9] rtc: stmp3xxx: add sysfs entries for persistent regs Steffen Trumtrar 2013-03-04 14:05 ` Steffen Trumtrar [not found] ` <1362405948-12992-7-git-send-email-s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> 2013-03-04 15:14 ` Grant Likely 2013-03-04 15:14 ` Grant Likely [not found] ` <CACxGe6swW-UDH1cUw1D8P+gyhDC8nDZur-A_m_NBfeRUxcg9Jw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2013-03-05 8:02 ` Steffen Trumtrar 2013-03-05 8:02 ` Steffen Trumtrar [not found] ` <20130305080252.GA7042-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> 2013-03-06 13:27 ` Steffen Trumtrar 2013-03-06 13:27 ` Steffen Trumtrar 2013-03-04 14:05 ` [PATCH 7/9] rtc: stmp3xxx: Re-enable active alarm Steffen Trumtrar 2013-03-04 14:05 ` Steffen Trumtrar 2013-03-04 14:05 ` [PATCH 8/9] rtc: stmp3xxx: Check copy controller state Steffen Trumtrar 2013-03-04 14:05 ` Steffen Trumtrar 2013-03-04 14:05 ` [PATCH 9/9] rtc: stmp3xxx: Replace wait_time function Steffen Trumtrar 2013-03-04 14:05 ` Steffen Trumtrar
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=20130307063337.GB5372@S2101-09.ap.freescale.net \ --to=shawn.guo-qsej5fyqhm4dnm+yrofe0a@public.gmane.org \ --cc=a.zummo-BfzFCNDTiLLj+vYz1yj4TQ@public.gmane.org \ --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \ --cc=jbe-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org \ --cc=kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org \ --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \ --cc=rtc-linux-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \ --cc=s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.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: linkBe 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.