qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Cédric Le Goater" <clg@kaod.org>
To: Steven Lee <steven_lee@aspeedtech.com>,
	Peter Maydell <peter.maydell@linaro.org>,
	Andrew Jeffery <andrew@aj.id.au>, Joel Stanley <joel@jms.id.au>,
	"open list:ASPEED BMCs" <qemu-arm@nongnu.org>,
	"open list:All patches CC here" <qemu-devel@nongnu.org>
Cc: troy_lee@aspeedtech.com, jamin_lin@aspeedtech.com
Subject: Re: [PATCH v2 0/2] hw: aspeed_scu: Add AST2600 hpll calculation function
Date: Tue, 15 Mar 2022 09:59:34 +0100	[thread overview]
Message-ID: <5310d336-2267-f505-3d09-e9e16c91b211@kaod.org> (raw)
In-Reply-To: <20220315075753.8591-1-steven_lee@aspeedtech.com>

On 3/15/22 08:57, Steven Lee wrote:
> AST2600's HPLL register offset and bit definition are different from AST2500.
> The patch series adds a hpll calculation function for ast2600 and modify apb frequency
> calculation function based on SCU200 register description and note in ast2600v11.pdf.
> 
> Changes since v1:
> - introduce ast2400 and ast2600 get_apb_freq class handlers.
> - introduce clkin_25Mhz attribute.
> 

Looks good. They are queued for QEMU 7.1.

Something I never had time to look at is the clock hierarchy in QEMU
Aspeed machines :

   https://qemu.readthedocs.io/en/latest/devel/clocks.html

It would be very useful to start the tree with clkin and the obvious
derived clocks.

Thanks,

C.

# cat  /sys/kernel/debug/clk/clk_summary
                                  enable  prepare  protect                                duty  hardware
    clock                          count    count    count        rate   accuracy phase  cycle    enable
-------------------------------------------------------------------------------------------------------
  fsiclk-gate                          1        1        0           0          0     0  50000         Y
  i3cclk-gate                          0        0        0           0          0     0  50000         N
  emmcclk-gate                         1        1        0           0          0     0  50000         Y
  sdclk-gate                           1        1        0           0          0     0  50000         Y
  rvasclk-gate                         0        0        0           0          0     0  50000         N
  rsaclk-gate                          0        0        0           0          0     0  50000         N
  usb-port2-gate                       1        1        0           0          0     0  50000         Y
  usb-port1-gate                       1        1        0           0          0     0  50000         Y
  usb-uhci-gate                        1        1        0           0          0     0  50000         Y
  espiclk-gate                         0        0        0           0          0     0  50000         N
  yclk-gate                            0        0        0           0          0     0  50000         N
  lclk-gate                            0        0        0           0          0     0  50000         N
  dclk-gate                            1        1        0           0          0     0  50000         Y
  vclk-gate                            0        0        0           0          0     0  50000         N
  gclk-gate                            0        0        0           0          0     0  50000         N
  eclk                                 0        0        0           0          0     0  50000         Y
     eclk-gate                         0        0        0           0          0     0  50000         N
  uartx                                0        0        0     1846153          0     0  50000         Y
     uart13clk-gate                    0        0        0     1846153          0     0  50000         N
     uart12clk-gate                    0        0        0     1846153          0     0  50000         N
     uart11clk-gate                    0        0        0     1846153          0     0  50000         N
     uart10clk-gate                    0        0        0     1846153          0     0  50000         N
     uart9clk-gate                     0        0        0     1846153          0     0  50000         N
     uart8clk-gate                     0        0        0     1846153          0     0  50000         N
     uart7clk-gate                     0        0        0     1846153          0     0  50000         N
     uart6clk-gate                     0        0        0     1846153          0     0  50000         N
  uart                                 1        1        0    24000000          0     0  50000         Y
     uart5clk-gate                     1        1        0    24000000          0     0  50000         Y
     uart4clk-gate                     0        0        0    24000000          0     0  50000         N
     uart3clk-gate                     0        0        0    24000000          0     0  50000         N
     uart2clk-gate                     0        0        0    24000000          0     0  50000         N
     uart1clk-gate                     0        0        0    24000000          0     0  50000         N
  usb-phy-40m                          0        0        0    40000000          0     0  50000         Y
  clkin                                4        4        0    25000000          0     0  50000         Y
     ref1clk-gate                      1        1        0    25000000          0     0  50000         Y
     ref0clk-gate                      1        1        0    25000000          0     0  50000         Y
     apll                              0        0        0   800000000          0     0  50000         Y
     epll                              0        0        0  1000000000          0     0  50000         Y
     dpll                              0        0        0    50000000          0     0  50000         Y
        vclk                           0        0        0    50000000          0     0  50000         Y
     mpll                              2        2        0   400000000          0     0  50000         Y
        mclk-gate                      1        1        0   400000000          0     0  50000         Y
        emmc_extclk_mux                1        1        0   400000000          0     0  50000         Y
           emmc_extclk_gate            1        1        0   400000000          0     0  50000         Y
              emmc_extclk              1        1        0   200000000          0     0  50000         Y
     hpll                              4        4        0  1200000000          0     0  50000         Y
        bclk                           1        1        0   150000000          0     0  50000         Y
           bclk-gate                   1        1        0   150000000          0     0  50000         Y
        lhclk                          0        0        0   150000000          0     0  50000         Y
           lhclk-gate                  0        0        0   150000000          0     0  50000         N
        mac34                          2        2        0   300000000          0     0  50000         Y
           mac4clk-gate                1        1        0   300000000          0     0  50000         Y
           mac3clk-gate                1        1        0   300000000          0     0  50000         Y
        mac12                          2        2        0   200000000          0     0  50000         Y
           mac2clk-gate                1        1        0   200000000          0     0  50000         Y
           mac1clk-gate                1        1        0   200000000          0     0  50000         Y
        mac12rclk                      0        0        0    50000000          0     0  50000         Y
           mac2rclk                    0        0        0    50000000          0     0  50000         N
           mac1rclk                    0        0        0    50000000          0     0  50000         N
        sd_extclk_gate                 0        0        0  1200000000          0     0  50000         N
           sd_extclk                   0        0        0   150000000          0     0  50000         Y
        emmc_extclk_hpll_in            0        0        0   600000000          0     0  50000         Y
        apb1                           0        0        0    37500000          0     0  50000         Y
        ahb                            3        3        0   200000000          0     0  50000         Y
           i3cclk                      0        0        0   200000000          0     0  50000         Y
              i3c6clk-gate             0        0        0   200000000          0     0  50000         N
              i3c5clk-gate             0        0        0   200000000          0     0  50000         N
              i3c4clk-gate             0        0        0   200000000          0     0  50000         N
              i3c3clk-gate             0        0        0   200000000          0     0  50000         N
              i3c2clk-gate             0        0        0   200000000          0     0  50000         N
              i3c1clk-gate             0        0        0   200000000          0     0  50000         N
              i3c0clk-gate             0        0        0   200000000          0     0  50000         N
           apb2                        0        0        0   100000000          0     0  50000         Y
  d1clk                                0        0        0           0          0     0  50000         Y
     d1clk-gate                        0        0        0           0          0     0  50000         N
  mac34rclk                            0        0        0           0          0     0  50000         Y
     mac4rclk                          0        0        0    50000000          0     0  50000         N
     mac3rclk                          0        0        0    50000000          0     0  50000         N



      parent reply	other threads:[~2022-03-15  9:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-15  7:57 [PATCH v2 0/2] hw: aspeed_scu: Add AST2600 hpll calculation function Steven Lee
2022-03-15  7:57 ` [PATCH v2 1/2] hw: aspeed_scu: Add AST2600 apb_freq and " Steven Lee
2022-03-15  8:45   ` Cédric Le Goater
2022-03-15  7:57 ` [PATCH v2 2/2] hw: aspeed_scu: Introduce clkin_25Mhz attribute Steven Lee
2022-03-15  8:46   ` Cédric Le Goater
2022-03-15  8:59 ` Cédric Le Goater [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=5310d336-2267-f505-3d09-e9e16c91b211@kaod.org \
    --to=clg@kaod.org \
    --cc=andrew@aj.id.au \
    --cc=jamin_lin@aspeedtech.com \
    --cc=joel@jms.id.au \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=steven_lee@aspeedtech.com \
    --cc=troy_lee@aspeedtech.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).