From: Priit Laes <plaes-q/aMd4JkU83YtjvyW6yDsg@public.gmane.org>
To: emilio-0Z03zUJReD5OxF6Tv1QG9Q@public.gmane.org
Cc: Michael Turquette
<mturquette-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>,
Stephen Boyd <sboyd-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>,
Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
Maxime Ripard
<maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>,
Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>,
Russell King <linux-I+IVW8TIWO2tmTQ+vhA3Yw@public.gmane.org>,
Icenowy Zheng <icenowy-ymACFijhrKM@public.gmane.org>,
linux-clk-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: [PATCH 3/4] ARM: sun7i: Convert to CCU
Date: Wed, 01 Mar 2017 21:41:55 +0200 [thread overview]
Message-ID: <1488397315.29650.1.camel@plaes.org> (raw)
In-Reply-To: <bca96944-bd58-5011-5eb9-01c4a1440fe2-0Z03zUJReD5OxF6Tv1QG9Q@public.gmane.org>
On Tue, 2017-02-28 at 14:01 -0300, Emilio López wrote:
> Hi,
>
> I spotted a couple of things here on a quick look, see below
>
> El 27/02/17 a las 18:09, Priit Laes escribió:
> > Convert sun7i-a20.dtsi to new CCU driver.
> >
> > > > Signed-off-by: Priit Laes <plaes-q/aMd4JkU83YtjvyW6yDsg@public.gmane.org>
> > ---
> > arch/arm/boot/dts/sun7i-a20.dtsi | 719 +++++----------------------------------
> > 1 file changed, 86 insertions(+), 633 deletions(-)
> >
> > diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi
> > index 04c9977..6f80cb8 100644
> > --- a/arch/arm/boot/dts/sun7i-a20.dtsi
> > +++ b/arch/arm/boot/dts/sun7i-a20.dtsi
> > @@ -47,7 +47,8 @@
> > #include <dt-bindings/interrupt-controller/arm-gic.h>
> > #include <dt-bindings/thermal/thermal.h>
> >
> > -#include <dt-bindings/clock/sun4i-a10-pll2.h>
> > +#include <dt-bindings/clock/sun7i-ccu.h>
> > +#include <dt-bindings/reset/sun7i-ccu.h>
> > #include <dt-bindings/dma/sun4i-a10.h>
> > #include <dt-bindings/pinctrl/sun4i-a10.h>
> >
> > @@ -67,19 +68,19 @@
> > > > compatible = "allwinner,simple-framebuffer",
> > > > "simple-framebuffer";
> > > > allwinner,pipeline = "de_be0-lcd0-hdmi";
> > > > - clocks = <&ahb_gates 36>, <&ahb_gates 43>,
> > > > - <&ahb_gates 44>, <&de_be0_clk>,
> > > > - <&tcon0_ch1_clk>, <&dram_gates 26>;
> > > > + clocks = <&ccu CLK_AHB_LCD0>, <&ccu CLK_AHB_HDMI1>,
> > > > + <&ccu CLK_AHB_DE_BE0>, <&ccu CLK_DE_BE0>,
> > > > + <&ccu CLK_TCON0_CH1>, <&ccu CLK_DRAM_DE_BE0>;
> > > > status = "disabled";
> > > > };
> >
> > > > - framebuffer@1 {
> > + framebuffer@0 {
>
> This looks like an unrelated change
Yup, that 's leftover from changes made during initial debugging. Will
fix in v2.
>
> > @@ -184,21 +185,11 @@
> >
> > > > > > osc24M: clk@01c20050 {
> > > > #clock-cells = <0>;
> > > > - compatible = "allwinner,sun4i-a10-osc-clk";
> > > > - reg = <0x01c20050 0x4>;
> > > > + compatible = "fixed-clock";
> > > > clock-frequency = <24000000>;
> > > > clock-output-names = "osc24M";
> > };
>
> allwinner,sun4i-a10-osc-clk implements a gate apart from a fixed clock,
> is the feature loss intended?
This is how most of the existing drivers handle it (A13, A31, A33) so I
didn't want to do anything fancy..
Besides, the code for clock actually configures gate:
static SUNXI_CCU_GATE(hosc_clk, "hosc", "osc24M", 0x050, BIT(0), 0);
Päikest,
Priit
--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
next prev parent reply other threads:[~2017-03-01 19:41 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-27 21:09 [PATCH 0/4] ARM: sun7i: Convert sun7i SoC to sunxi-ng Priit Laes
[not found] ` <20170227210914.18954-1-plaes-q/aMd4JkU83YtjvyW6yDsg@public.gmane.org>
2017-02-27 21:09 ` [PATCH 1/4] clk: sunxi-ng: Add clocks and reset indices for sun7i-a20 SoC Priit Laes
2017-02-28 9:27 ` Emmanuel Vadot
2017-02-27 21:09 ` [PATCH 2/4] clk: sunxi-ng: Add sun7i-a20 CCU driver Priit Laes
[not found] ` <20170227210914.18954-3-plaes-q/aMd4JkU83YtjvyW6yDsg@public.gmane.org>
2017-02-28 8:21 ` Maxime Ripard
2017-03-01 21:38 ` Priit Laes
[not found] ` <1488404294.29650.3.camel-q/aMd4JkU83YtjvyW6yDsg@public.gmane.org>
2017-03-02 14:21 ` Maxime Ripard
2017-03-02 15:05 ` Chen-Yu Tsai
2017-02-27 21:09 ` [PATCH 3/4] ARM: sun7i: Convert to CCU Priit Laes
[not found] ` <20170227210914.18954-4-plaes-q/aMd4JkU83YtjvyW6yDsg@public.gmane.org>
2017-02-28 17:01 ` Emilio López
[not found] ` <bca96944-bd58-5011-5eb9-01c4a1440fe2-0Z03zUJReD5OxF6Tv1QG9Q@public.gmane.org>
2017-03-01 19:41 ` Priit Laes [this message]
2017-02-27 21:09 ` [PATCH 4/4] dt-bindings: List devicetree binding for the CCU of Allwinner A20 Priit Laes
[not found] ` <20170227210914.18954-5-plaes-q/aMd4JkU83YtjvyW6yDsg@public.gmane.org>
2017-03-03 6:20 ` Rob Herring
2017-02-28 7:52 ` [PATCH 0/4] ARM: sun7i: Convert sun7i SoC to sunxi-ng Maxime Ripard
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=1488397315.29650.1.camel@plaes.org \
--to=plaes-q/amd4jku83ytjvyw6ydsg@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=emilio-0Z03zUJReD5OxF6Tv1QG9Q@public.gmane.org \
--cc=icenowy-ymACFijhrKM@public.gmane.org \
--cc=linux-I+IVW8TIWO2tmTQ+vhA3Yw@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-clk-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org \
--cc=mturquette-rdvid1DuHRBWk0Htik3J/w@public.gmane.org \
--cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=sboyd-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
--cc=wens-jdAy2FN1RRM@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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).