All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 11/15] clk: rockchip: rk3576: Fix trivial clock configuration errors
@ 2026-08-17  9:16 pcb
  0 siblings, 0 replies; 3+ messages in thread
From: pcb @ 2026-08-17  9:16 UTC (permalink / raw)
  To: u-boot@lists.u-boot-project.org

Hi Jonas, Quentin, 

We are an embedded design house building products on the RK3576, and this series lines up with several clock-related issues we have hit during our own U-Boot bring-up. 
Thanks for putting it together ― and for the honest note that some of these fixes are only compile-tested. That is exactly the gap we can help close. 
On the RK3576 side specifically, the fixes in patch 11 that matter most to us in production are the VPLL mode register correction (we rely on VPLL for display clocks) 
and the PPLL base fix from PMU domain to PHP domain (PPLL feeds the DRAM controller, so a wrong register window here is the kind of thing that only shows up as intermittent instability rather than a clean failure). 

Happy to share more concrete observations if useful. On Quentin's point about RK3576_MODE_CON0 being incorrect for PPLL but masked by ROCKCHIP_PLL_FIXED_MODE: I agree a new macro is the right long-term direction, 
and I would add one more angle ― the same latent hazard exists in the RK3588 PPLL entry, so whatever we settle on should be applied to both drivers in the same series. 
In the meantime, a compile-time assertion in the PLL() macro (e.g. BUILD_BUG_ON when FIXED_MODE is set but a mode register is still required) would prevent future contributors from silently reintroducing the wrong address.
If useful, we can draft that as a follow-up patch. Finally, if a v2 is not already in flight: we would be happy to test patches 4, 5, and 11 on our RK3576 reference hardware (DDR init, VPLL/display bring-up, and I2C parent selection are all exercised during our regular boot testing) and provide Tested-by tags plus any rate mismatches we observe. Best regards,

Owen
Boardcon Embedded Design Limited
https://www.boardcon.com




^ permalink raw reply	[flat|nested] 3+ messages in thread
* [PATCH 00/15] rockchip: Miscellaneous RK35xx clock fixes
@ 2026-07-30 14:12 Jonas Karlman
  2026-07-30 14:13 ` [PATCH 11/15] clk: rockchip: rk3576: Fix trivial clock configuration errors Jonas Karlman
  0 siblings, 1 reply; 3+ messages in thread
From: Jonas Karlman @ 2026-07-30 14:12 UTC (permalink / raw)
  To: Quentin Schulz, Kever Yang, Tom Rini, Ilias Apalodimas
  Cc: Simon Glass, Lukasz Majewski, u-boot, Jonas Karlman

This series fixes a few trivial copy-paste mistakes and other misc clock
issues for RK35xx SoCs.

Patch 1-3 fixes minor and very unlikely issues for plls
Patch 4 fixes PPLL mode handling on RK3588/RK3576
Patch 5 disable 'special pll handling' for RK3576 plls
Patch 6-7,11-13 fixes trivial clock configuration errors
Patch 8-9 fixes less trivial clock configuration errors
Patch 14-15 remove unused GRF syscon lookups

Some of these fixes has only been compile tested as it involves clocks
or rates that is rarely used in U-Boot.

The 'special pll handling' should ideally be moved into clk_rk3588
driver, something that can be done in a future follow-up series.

Jonas Karlman (15):
  clk: rockchip: pll: Fix double use of postdiv1
  clk: rockchip: pll: Always write the dsmpd flag
  clk: rockchip: pll: Always write the k param
  clk: rockchip: pll: Use PLL_FIXED_MODE flag on rk3588/rk3576 plls
  clk: rockchip: pll: Limit special rk3588_pll handling to RK3588
  clk: rockchip: rk3568: Fix trivial clock configuration errors
  clk: rockchip: rk3588: Fix trivial clock configuration errors
  clk: rockchip: rk3588: Fix possible divide by zero
  clk: rockchip: rk3588: Fix ACLK_BUS_ROOT rate set during probe
  clk: rockchip: rk3588: Use SPLL_HZ constant
  clk: rockchip: rk3576: Fix trivial clock configuration errors
  clk: rockchip: rk3528: Fix trivial clock configuration errors
  clk: rockchip: rk3506: Fix trivial clock configuration errors
  clk: rockchip: rk3568: Drop unused GRF syscon lookup
  clk: rockchip: rk3588: Drop unused GRF syscon lookup

 .../include/asm/arch-rockchip/cru_rk3568.h    |  1 -
 .../include/asm/arch-rockchip/cru_rk3576.h    |  5 +-
 .../include/asm/arch-rockchip/cru_rk3588.h    |  6 +-
 drivers/clk/rockchip/clk_pll.c                | 56 ++++++++++---------
 drivers/clk/rockchip/clk_rk3506.c             |  2 +
 drivers/clk/rockchip/clk_rk3528.c             |  7 ++-
 drivers/clk/rockchip/clk_rk3568.c             | 12 ++--
 drivers/clk/rockchip/clk_rk3576.c             | 26 ++++-----
 drivers/clk/rockchip/clk_rk3588.c             | 39 ++++++-------
 9 files changed, 72 insertions(+), 82 deletions(-)

-- 
2.54.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-08-17 13:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-17  9:16 [PATCH 11/15] clk: rockchip: rk3576: Fix trivial clock configuration errors pcb
  -- strict thread matches above, loose matches on Subject: below --
2026-07-30 14:12 [PATCH 00/15] rockchip: Miscellaneous RK35xx clock fixes Jonas Karlman
2026-07-30 14:13 ` [PATCH 11/15] clk: rockchip: rk3576: Fix trivial clock configuration errors Jonas Karlman
2026-08-07 16:04   ` Quentin Schulz via U-Boot

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.