[PATCH 02/12] clk: thead: th1520-ap: add support for MISC subsys clocks
Drew Fustini
fustini at kernel.org
Mon Aug 17 16:52:34 PDT 2026
On Mon, Aug 17, 2026 at 12:24:26PM +0800, Icenowy Zheng wrote:
> 在 2026-08-16日的 11:12 -0700,Drew Fustini写道:
> > On Tue, Jun 09, 2026 at 09:33:22PM -0700, Drew Fustini wrote:
> > > On Mon, Jun 08, 2026 at 11:15:39PM -0700, Drew Fustini wrote:
> > > > On Tue, Jun 09, 2026 at 02:01:43PM +0800, Icenowy Zheng wrote:
> > > > > 在 2026-06-08一的 23:00 -0700,Drew Fustini写道:
> > > > > > On Thu, May 07, 2026 at 04:17:00PM +0800, Icenowy Zheng
> > > > > > wrote:
> > > > > > > The TH1520 SoC contains a MISC_SUBSYS clock controller,
> > > > > > > which
> > > > > > > allows
> > > > > > > controlling of USB related clocks and MMC/SD controller AHB
> > > > > > > bus
> > > > > > > clocks.
> > > > > > >
> > > > > > > Add support for this clock controller, in order to enable
> > > > > > > USB
> > > > > > > support.
> > > > > > >
> > > > > > > Signed-off-by: Icenowy Zheng <zhengxingda at iscas.ac.cn>
> > > > > > > ---
> > > > > > > drivers/clk/thead/clk-th1520-ap.c | 64
> > > > > > > +++++++++++++++++++++++++++++++
> > > > > > > 1 file changed, 64 insertions(+)
> > > > > > >
> > > > > > > diff --git a/drivers/clk/thead/clk-th1520-ap.c
> > > > > > > b/drivers/clk/thead/clk-th1520-ap.c
> > > > > > > index 3a6847f1c950f..24f785f0b329a 100644
> > > > > > > --- a/drivers/clk/thead/clk-th1520-ap.c
> > > > > > > +++ b/drivers/clk/thead/clk-th1520-ap.c
> > > > > > [...]
> > > > > > > @@ -1609,6 +1663,12 @@ static int th1520_clk_probe(struct
> > > > > > > platform_device *pdev)
> > > > > > > return ret;
> > > > > > > }
> > > > > > >
> > > > > > > + if (plat_data == &th1520_ap_platdata) {
> > > > > > > + ret = devm_clk_hw_register(dev,
> > > > > > > &usb_suspend_div_clk.hw);
> > > > > > > + if (ret)
> > > > > > > + return ret;
> > > > > > > + }
> > > > > >
> > > > > > Should usb_suspend_div_clk.hw instead be registered under
> > > > > > 'if (plat_data == &th1520_ap_platdata)'?
> > > > >
> > > > > Do you mean misc_platdata?
> > > > >
> > > > > Yes, this is an copy-n-paste error that deserves a fix.
> > > >
> > > > Hah, yes, I also had a typo :)
> > >
> > > Assuming that gets fixed in the next rev:
> > >
> > > Reviewed-by: Drew Fusini <fustini at kernel.org>
> >
> > I will fixup the typo and apply to thead-clk-for-next once 7.3-rc1 is
> > released.
>
> BTW I think the binding patch should go through your tree too.
Yes, I will plan to take patch 1 and 2 through thead-clk-for-next and
patch 3 through thead-dt-for-next.
Thanks,
Drew
More information about the linux-riscv
mailing list