All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V3 3/4] clk: support clk tree dump
Date: Fri, 23 Aug 2019 14:48:59 -0700	[thread overview]
Message-ID: <CAPnjgZ2G-CR=TuLXVcNTRRMT=b1zQUZ6yYaDAaGSw788qNcLNA@mail.gmail.com> (raw)
In-Reply-To: <20190821135056.27052-3-peng.fan@nxp.com>

Hi Peng,

On Wed, 21 Aug 2019 at 07:35, Peng Fan <peng.fan@nxp.com> wrote:
>
> The previous code only dump the clk list. This patch is
> to support clk tree dump, and also dump the enable_cnt.
>
> The code used in patch is similar to dm_dump_all, but
> the code here only filter out the UCLASS_CLK devices.
>
> On i.MX8MM, Partial output:
> u-boot=> clk dump
>  Rate               Usecnt      Name
> ------------------------------------------
>  24000000             0        |-- clock-osc-24m
>  24000000             0        |   |-- dram_pll_ref_sel
>  750000000            0        |   |   `-- dram_pll
>  750000000            0        |   |       `-- dram_pll_bypass
>  750000000            0        |   |           `-- dram_pll_out
>  24000000             0        |   |-- arm_pll_ref_sel
>  1200000000           0        |   |   `-- arm_pll
>  1200000000           0        |   |       `-- arm_pll_bypass
>  1200000000           0        |   |           `-- arm_pll_out
>  1200000000           0        |   |               `-- arm_a53_src
>  1200000000           0        |   |                   `-- arm_a53_cg
>  1200000000           0        |   |                       `-- arm_a53_div
>  24000000             4        |   |-- sys_pll1_ref_sel
>  800000000            4        |   |   `-- sys_pll1
>  800000000            4        |   |       `-- sys_pll1_bypass
>  800000000            4        |   |           `-- sys_pll1_out
>  40000000             0        |   |               |-- sys_pll1_40m
>
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> ---
>
> V3:
>  Fix build break for some platforms
> V2:
>  Improve commit log
>
>  cmd/clk.c | 79 +++++++++++++++++++++++++++++++++++++++------------------------
>  1 file changed, 49 insertions(+), 30 deletions(-)

Can we get a sandbox test for this?

Regards,
Simon

  reply	other threads:[~2019-08-23 21:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-21 13:35 [U-Boot] [PATCH V3 1/4] clk: introduce enable_count Peng Fan
2019-08-21 13:35 ` [U-Boot] [PATCH V3 2/4] clk: prograte clk enable/disable to parent Peng Fan
2019-08-21 13:35 ` [U-Boot] [PATCH V3 3/4] clk: support clk tree dump Peng Fan
2019-08-23 21:48   ` Simon Glass [this message]
2019-08-26  1:08     ` Peng Fan
2019-08-21 13:35 ` [U-Boot] [PATCH V3 4/4] sandbox: clk: add clk enable/disable test code Peng Fan
2019-08-23 21:49   ` Simon Glass
2019-08-23 21:48 ` [U-Boot] [PATCH V3 1/4] clk: introduce enable_count Simon Glass
2019-08-26  1:08   ` Peng Fan

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='CAPnjgZ2G-CR=TuLXVcNTRRMT=b1zQUZ6yYaDAaGSw788qNcLNA@mail.gmail.com' \
    --to=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /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 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.