From: maxime.ripard@free-electrons.com (Maxime Ripard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 5/7] ARM: sun8i: Add clock indices
Date: Wed, 19 Aug 2015 11:15:00 +0200 [thread overview]
Message-ID: <20150819091500.GC30520@lukather> (raw)
In-Reply-To: <CAGb2v64nvA1K=Ya7_99-2G1LtFjcuj+qQbO1GJaqsL+yPF+Xdw@mail.gmail.com>
Hi Chen-Yu,
On Sat, Aug 08, 2015 at 12:21:17AM +0800, Chen-Yu Tsai wrote:
> On Sat, Aug 1, 2015 at 1:46 AM, Maxime Ripard
> <maxime.ripard@free-electrons.com> wrote:
> > The A23 and A33 gates have a non continuous set of clock IDs that are
> > valid. Add the clock-indices property to the DT to express this.
> >
> > Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
> > ---
> > arch/arm/boot/dts/sun8i-a23-a33.dtsi | 15 +++++++++++++++
> > 1 file changed, 15 insertions(+)
> >
> > diff --git a/arch/arm/boot/dts/sun8i-a23-a33.dtsi b/arch/arm/boot/dts/sun8i-a23-a33.dtsi
> > index 7abd0ae3143d..c318c770b6c1 100644
> > --- a/arch/arm/boot/dts/sun8i-a23-a33.dtsi
> > +++ b/arch/arm/boot/dts/sun8i-a23-a33.dtsi
> > @@ -180,6 +180,15 @@
> > compatible = "allwinner,sun8i-a23-ahb1-gates-clk";
> > reg = <0x01c20060 0x8>;
> > clocks = <&ahb1>;
> > + clock-indices = <1>, <6>,
>
> Turns out the A33 (and I assume the same with the A23) has
> an ahb1 clock gate for the Security System at clock-index <5>.
>
> This is found in the updated A33 user manual.
>
> > + <8>, <9>, <10>,
> > + <13>, <14>,
> > + <19>, <20>,
> > + <21>, <24>, <26>,
> > + <29>, <32>, <36>,
> > + <40>, <44>, <46>,
> > + <52>, <54>,
>
> <53> is ahb1 clock gate for msgbox, again found in A33 manual.
>
> > + <57>;
>
> <58> is ahb1 clock gate for SAT, which seems to be part of the
> display pipeline.
>
> > clock-output-names = "ahb1_mipidsi", "ahb1_dma",
> > "ahb1_mmc0", "ahb1_mmc1", "ahb1_mmc2",
> > "ahb1_nand", "ahb1_sdram",
> > @@ -196,6 +205,8 @@
> > compatible = "allwinner,sun8i-a23-apb1-gates-clk";
> > reg = <0x01c20068 0x4>;
> > clocks = <&apb1>;
> > + clock-indices = <0>, <5>,
> > + <12>, <13>;
> > clock-output-names = "apb1_codec", "apb1_pio",
> > "apb1_daudio0", "apb1_daudio1";
> > };
> > @@ -213,6 +224,10 @@
> > compatible = "allwinner,sun8i-a23-apb2-gates-clk";
> > reg = <0x01c2006c 0x4>;
> > clocks = <&apb2>;
> > + clock-indices = <0>, <1>,
> > + <2>, <16>,
> > + <17>, <18>,
> > + <19>, <20>;
> > clock-output-names = "apb2_i2c0", "apb2_i2c1",
> > "apb2_i2c2", "apb2_uart0",
> > "apb2_uart1", "apb2_uart2",
> > --
> > 2.4.6
> >
>
> Not sure if you want to add the clocks I mentioned together
> in this patch, or do a separate patch.
>
> The rest look good.
Thanks for your input, I'll send some new patches to deal with this.
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150819/a2f3d6ad/attachment-0001.sig>
next prev parent reply other threads:[~2015-08-19 9:15 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-31 17:46 [PATCH v2 0/7] ARM: sunxi: Switch to clock indices Maxime Ripard
2015-07-31 17:46 ` [PATCH v2 1/7] ARM: sun4i: Add " Maxime Ripard
2015-07-31 17:46 ` [PATCH v2 2/7] ARM: sun5i: " Maxime Ripard
2015-07-31 17:46 ` [PATCH v2 3/7] ARM: sun6i: " Maxime Ripard
2015-07-31 17:46 ` [PATCH v2 4/7] ARM: sun7i: " Maxime Ripard
2015-07-31 17:46 ` [PATCH v2 5/7] ARM: sun8i: " Maxime Ripard
2015-08-07 16:21 ` Chen-Yu Tsai
2015-08-11 4:49 ` Chen-Yu Tsai
2015-08-11 17:50 ` Michael Turquette
2015-08-12 3:17 ` Chen-Yu Tsai
2015-08-19 9:15 ` Maxime Ripard [this message]
2015-07-31 17:46 ` [PATCH v2 6/7] ARM: sun9i: Wrap the clock-indices Maxime Ripard
2015-07-31 17:46 ` [PATCH v2 7/7] clk: sunxi: Add a simple gates driver Maxime Ripard
2015-08-11 23:19 ` Michael Turquette
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=20150819091500.GC30520@lukather \
--to=maxime.ripard@free-electrons.com \
--cc=linux-arm-kernel@lists.infradead.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).