From: Conor Dooley <conor@kernel.org>
To: Drew Fustini <dfustini@tenstorrent.com>
Cc: Jisheng Zhang <jszhang@kernel.org>, Guo Ren <guoren@kernel.org>,
Fu Wei <wefu@redhat.com>, Yangtao Li <frank.li@vivo.com>,
Thomas Bonnefille <thomas.bonnefille@bootlin.com>,
Emil Renner Berthing <emil.renner.berthing@canonical.com>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Paul Walmsley <paul.walmsley@sifive.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
linux-riscv@lists.infradead.org, linux-clk@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/6] clk: thead: Add support for TH1520 AP_SUBSYS clock controller
Date: Thu, 20 Jun 2024 17:30:12 +0100 [thread overview]
Message-ID: <20240620-pregame-statute-2b43c0547064@spud> (raw)
In-Reply-To: <ZnMgKs/dUcYXiisk@x1>
[-- Attachment #1: Type: text/plain, Size: 1649 bytes --]
On Wed, Jun 19, 2024 at 11:15:06AM -0700, Drew Fustini wrote:
> On Wed, Jun 19, 2024 at 12:12:30PM +0100, Conor Dooley wrote:
> > On Sat, Jun 15, 2024 at 06:54:29PM -0700, Drew Fustini wrote:
> > > This series adds support for the AP sub-system clock controller in the
> > > T-Head TH1520 [1]. Yangtao Li originally submitted this series in May
> > > 2023 [2]. Jisheng made additional improvements and then passed on the
> > > work in progress to me.
> >
> > One thing I noticed on the dts side is that the GPIO controllers have no
> > clocks provided. Does the AP sub-system clock controller provide their
> > clocks too?
>
> Good question. I see that dwapb_get_clks() in drivers/gpio/gpio-dwapb.c
> does call devm_clk_bulk_get_optional() for "bus" and "db". There doesn't
> seem to be to many in-tree examples of clocks being defined for gpio
> controllers with compatible "snps,dw-apb-gpio", but I do see that
> k210.dtsi defines K210_CLK_APB0 for "bus" and K210_CLK_GPIO for "db".
>
> From the TH1520 System User Manual, I do see the gpio related clocks in
> Section 4.4.2.2 AP_SUBSYS. The peripheral clock gate control register
> (PERI_CLK_CFG) has:
>
> Bit 20: GPIO3_CLK_EN
> Bit 8: GPIO0_CLK_EN
> Bit 7: GPIO1_CLK_EN
> Bit 6: GPIO2_CLK_EN
>
> I will add these gates to the clk-th1520-ap.c and reference them from
> the gpio controller nodes.
>
> Since each gpio controller will only have one clock, do you think I can
> omit the clock-names property?
Sure, thanks for looking into this.
>
> Thanks,
> Drew
>
> Link: https://git.beagleboard.org/beaglev-ahead/beaglev-ahead/-/tree/main/docs
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
prev parent reply other threads:[~2024-06-20 16:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-16 1:54 [PATCH 0/6] clk: thead: Add support for TH1520 AP_SUBSYS clock controller Drew Fustini
2024-06-16 1:54 ` [PATCH 1/6] dt-bindings: clock: Document T-Head TH1520 AP_SUBSYS controller Drew Fustini
2024-06-16 18:38 ` Conor Dooley
2024-06-16 1:54 ` [PATCH 2/6] clk: thead: Add support for T-Head TH1520 AP_SUBSYS clocks Drew Fustini
2024-06-16 1:54 ` [PATCH 3/6] riscv: dts: thead: Add TH1520 AP_SUBSYS clock controller Drew Fustini
2024-06-16 1:54 ` [PATCH 4/6] riscv: dts: thead: change TH1520 uart nodes to use " Drew Fustini
2024-06-16 1:54 ` [PATCH 5/6] riscv: dts: thead: change TH1520 mmc " Drew Fustini
2024-06-16 1:54 ` [PATCH 6/6] riscv: dts: thead: update TH1520 dma and timer " Drew Fustini
2024-06-19 11:12 ` [PATCH 0/6] clk: thead: Add support for TH1520 AP_SUBSYS " Conor Dooley
2024-06-19 18:15 ` Drew Fustini
2024-06-20 16:30 ` Conor Dooley [this message]
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=20240620-pregame-statute-2b43c0547064@spud \
--to=conor@kernel.org \
--cc=aou@eecs.berkeley.edu \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dfustini@tenstorrent.com \
--cc=emil.renner.berthing@canonical.com \
--cc=frank.li@vivo.com \
--cc=guoren@kernel.org \
--cc=jszhang@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=mturquette@baylibre.com \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=thomas.bonnefille@bootlin.com \
--cc=wefu@redhat.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 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).