πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #7847

Re: [PATCH v4 2/4] clk: rockchip: Add internal support for 24-bit fractional dividers

#7847
From: Shawn Lin
Date: Tue, 27 Oct 2026 10:11
482 lines
24518 bytes
在 2026/10/27 星期二 18:04, Cunhao Lu via B4 Relay 写道:
> From: Elaine Zhang <zhangqing@rock-chips.com>
> 
> Some Rockchip clocks split each 24-bit numerator and denominator between
> a low register containing 16 bits of each value and a high register
> containing the remaining 8 bits.
> 
> Add an internal Rockchip fractional-divider helper and clock branch type
> for this register layout. This provides the support needed by the RK3572
> audio fractional clocks.
> 
> Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
> 
> - Adapted the rate callback to determine_rate().
> - Made the registration interface internal to the Rockchip clock driver.
> - Rejected compensated ratios exceeding the field widths before
>    multiplication or register writes.
> 

All your patches look strange regarding to this kind of commit msg and
SOB chains. I guess you are describing what you changed against the
original patch from Elaine. But this is not how it works. You don't
need to mention it.

> Co-developed-by: Cunhao Lu <1579567540@qq.com>
> Signed-off-by: Cunhao Lu <1579567540@qq.com>
> ---
> Changes in v3:
> - Reject compensated ratios that exceed the actual field widths before
>    multiplication or register writes.
> ---
>   drivers/clk/rockchip/Makefile                    |   1 +
>   drivers/clk/rockchip/clk-fractional-divider-v2.c | 354 +++++++++++++++++++++++
>   drivers/clk/rockchip/clk.c                       |  10 +
>   drivers/clk/rockchip/clk.h                       |  25 ++
>   4 files changed, 390 insertions(+)
> 
> diff --git a/drivers/clk/rockchip/Makefile b/drivers/clk/rockchip/Makefile
> index 554b7eb83dc91..91d4ea4837e3e 100644
> --- a/drivers/clk/rockchip/Makefile
> +++ b/drivers/clk/rockchip/Makefile
> @@ -10,6 +10,7 @@ clk-rockchip-y += clk-pll.o
>   clk-rockchip-y += clk-cpu.o
>   clk-rockchip-y += clk-gate-grf.o
>   clk-rockchip-y += clk-half-divider.o
> +clk-rockchip-y += clk-fractional-divider-v2.o
>   clk-rockchip-y += clk-inverter.o
>   clk-rockchip-y += clk-mmc-phase.o
>   clk-rockchip-y += clk-muxgrf.o
> diff --git a/drivers/clk/rockchip/clk-fractional-divider-v2.c b/drivers/clk/rockchip/clk-fractional-divider-v2.c
> new file mode 100644
> index 0000000000000..102e03f9d6e60
> --- /dev/null
> +++ b/drivers/clk/rockchip/clk-fractional-divider-v2.c
> @@ -0,0 +1,354 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * Copyright (c) 2024 Rockchip Electronics Co., Ltd.
> + *
> + * Adjustable fractional divider clock implementation.
> + * Uses rational best approximation algorithm.
> + *
> + * Output is calculated as
> + *
> + *	rate = (m / n) * parent_rate				(1)
> + *
> + * This is useful when we have a prescaler block which asks for
> + * m (numerator) and n (denominator) values to be provided to satisfy
> + * the (1) as much as possible.
> + *
> + * Since m and n have the limitation by a range, e.g.
> + *
> + *	n >= 1, n < N_width, where N_width = 2^nwidth		(2)
> + *
> + * for some cases the output may be saturated. Hence, from (1) and (2),
> + * assuming the worst case when m = 1, the inequality
> + *
> + *	floor(log2(parent_rate / rate)) <= nwidth		(3)
> + *
> + * may be derived. Thus, in cases when
> + *
> + *	(parent_rate / rate) >> N_width				(4)
> + *
> + * we might scale up the rate by 2^scale (see the description of
> + * CLK_FRAC_DIVIDER_POWER_OF_TWO_PS for additional information), where
> + *
> + *	scale = floor(log2(parent_rate / rate)) - nwidth	(5)
> + *
> + * and assume that the IP, that needs m and n, has also its own
> + * prescaler, which is capable to divide by 2^scale. In this way
> + * we get the denominator to satisfy the desired range (2) and
> + * at the same time a much better result of m and n than simple
> + * saturated values.
> + */
> +
> +#include <linux/clk-provider.h>
> +#include <linux/io.h>
> +#include <linux/device.h>
> +#include <linux/slab.h>
> +#include <linux/rational.h>
> +#include "clk.h"
> +
> +struct clk_fractional_divider_v2 {
> +	struct clk_hw	hw;
> +	void __iomem	*reg;
> +	void __iomem	*high_reg;
> +	u8		mshift;
> +	u8		mwidth;
> +	u32		mmask;
> +	u8		nshift;
> +	u8		nwidth;
> +	u32		nmask;
> +	u8		high_mshift;
> +	u8		high_mwidth;
> +	u32		high_mmask;
> +	u8		high_nshift;
> +	u8		high_nwidth;
> +	u32		high_nmask;
> +	u8		flags;
> +	void		(*approximation)(struct clk_hw *hw,
> +					 unsigned long rate,
> +					 unsigned long *parent_rate,
> +					 unsigned long *m, unsigned long *n);
> +	spinlock_t	*lock; /* Protects the low and high register pair. */
> +};
> +
> +#define to_clk_fd_v2(_hw) container_of(_hw, struct clk_fractional_divider_v2, hw)
> +
> +static inline u32 clk_fd_v2_readl(struct clk_fractional_divider_v2 *fd,
> +				  void __iomem *reg)
> +{
> +	return readl(reg);
> +}
> +
> +static inline void clk_fd_v2_writel(struct clk_fractional_divider_v2 *fd,
> +				    void __iomem *reg, u32 val)
> +{
> +	writel(val, reg);
> +}
> +
> +static unsigned long clk_fd_v2_recalc_rate(struct clk_hw *hw,
> +					   unsigned long parent_rate)
> +{
> +	struct clk_fractional_divider_v2 *fd = to_clk_fd_v2(hw);
> +	unsigned long flags = 0;
> +	unsigned long m_low, n_low, m_high, n_high, m, n;
> +	u32 val_low, val_high;
> +	u64 ret;
> +
> +	if (fd->lock)
> +		spin_lock_irqsave(fd->lock, flags);
> +	else
> +		__acquire(fd->lock);
> +
> +	val_low = clk_fd_v2_readl(fd, fd->reg);
> +	val_high = clk_fd_v2_readl(fd, fd->high_reg);
> +
> +	if (fd->lock)
> +		spin_unlock_irqrestore(fd->lock, flags);
> +	else
> +		__release(fd->lock);
> +
> +	m_low = (val_low & fd->mmask) >> fd->mshift;
> +	n_low = (val_low & fd->nmask) >> fd->nshift;
> +	m_high = (val_high & fd->high_mmask) >> fd->high_mshift;
> +	n_high = (val_high & fd->high_nmask) >> fd->high_nshift;
> +	m = (m_high << 16) | m_low;
> +	n = (n_high << 16) | n_low;
> +
> +	if (fd->flags & CLK_FRAC_DIVIDER_ZERO_BASED) {
> +		m++;
> +		n++;
> +	}
> +
> +	if (!n || !m)
> +		return parent_rate;
> +
> +	ret = (u64)parent_rate * m;
> +	do_div(ret, n);
> +
> +	return ret;
> +}
> +
> +static void clk_fractional_divider_general_approximation_v2(struct clk_hw *hw,
> +							    unsigned long rate,
> +							    unsigned long *parent_rate,
> +							    unsigned long *m, unsigned long *n)
> +{
> +	struct clk_fractional_divider_v2 *fd = to_clk_fd_v2(hw);
> +	unsigned long scale;
> +
> +	/*
> +	 * Get rate closer to *parent_rate to guarantee there is no overflow
> +	 * for m and n. In the result it will be the nearest rate left shifted
> +	 * by (scale - fd->nwidth) bits.
> +	 *
> +	 * For the detailed explanation see the top comment in this file.
> +	 */
> +	scale = fls_long(*parent_rate / rate - 1);
> +	if (scale > fd->nwidth)
> +		rate <<= scale - fd->nwidth;
> +
> +	rational_best_approximation(rate, *parent_rate,
> +				    GENMASK(fd->mwidth - 1, 0),
> +				    GENMASK(fd->nwidth - 1, 0),
> +				    m, n);
> +}
> +
> +static int clk_fd_v2_get_divider(struct clk_hw *hw, unsigned long rate,
> +				 unsigned long parent_rate,
> +				 unsigned long *m, unsigned long *n)
> +{
> +	struct clk_fractional_divider_v2 *fd = to_clk_fd_v2(hw);
> +	u32 factor;
> +
> +	rational_best_approximation(rate, parent_rate,
> +				    GENMASK(fd->mwidth - 1, 0),
> +				    GENMASK(fd->nwidth - 1, 0),
> +				    m, n);
> +
> +	if (fd->flags & CLK_FRAC_DIVIDER_ZERO_BASED) {
> +		(*m)--;
> +		(*n)--;
> +	}
> +	/*
> +	 * When compensation the fractional divider,
> +	 * the [1:0] bits of the numerator register are omitted,
> +	 * which will lead to a large deviation in the result.
> +	 * Therefore, it is required that the numerator must
> +	 * be at least 4.
> +	 *
> +	 * Note that there are some exceptions here:
> +	 * If there is an even frac div, we need to keep the original
> +	 * numerator(<4) and denominator. Otherwise, it may cause the
> +	 * issue that the duty ratio is not 50%.
> +	 */
> +	if (*m < 4 && *m != 0) {
> +		if (*n % 2 == 0)
> +			factor = 1;
> +		else
> +			factor = DIV_ROUND_UP(4, *m);
> +
> +		if (*m > GENMASK(fd->mwidth - 1, 0) / factor ||
> +		    *n > GENMASK(fd->nwidth - 1, 0) / factor)
> +			return -EINVAL;
> +
> +		*n *= factor;
> +		*m *= factor;
> +	}
> +
> +	return 0;
> +}
> +
> +static int clk_fd_v2_determine_rate(struct clk_hw *hw,
> +				    struct clk_rate_request *req)
> +{
> +	struct clk_fractional_divider_v2 *fd = to_clk_fd_v2(hw);
> +	unsigned long m, n;
> +	u64 ret;
> +
> +	if (!req->rate || req->rate >= req->best_parent_rate) {
> +		req->rate = req->best_parent_rate;
> +		return 0;
> +	}
> +
> +	if (fd->approximation)
> +		fd->approximation(hw, req->rate, &req->best_parent_rate, &m, &n);
> +	else
> +		clk_fractional_divider_general_approximation_v2(hw, req->rate,
> +								&req->best_parent_rate,
> +								&m, &n);
> +
> +	ret = (u64)req->best_parent_rate * m;
> +	do_div(ret, n);
> +	req->rate = ret;
> +
> +	/* Validate the rounded rate that set_rate() will receive. */
> +	return clk_fd_v2_get_divider(hw, req->rate, req->best_parent_rate, &m, &n);
> +}
> +
> +static int clk_fd_v2_set_rate(struct clk_hw *hw, unsigned long rate,
> +			      unsigned long parent_rate)
> +{
> +	struct clk_fractional_divider_v2 *fd = to_clk_fd_v2(hw);
> +	unsigned long flags = 0;
> +	unsigned long m, n, m_low, n_low, m_high, n_high;
> +	u32 val, val_high;
> +	int ret;
> +
> +	ret = clk_fd_v2_get_divider(hw, rate, parent_rate, &m, &n);
> +	if (ret)
> +		return ret;
> +
> +	if (fd->lock)
> +		spin_lock_irqsave(fd->lock, flags);
> +	else
> +		__acquire(fd->lock);
> +
> +	m_low = m & fd->nmask;
> +	n_low = n & fd->nmask;
> +	m_high = (m & GENMASK(fd->mwidth - 1, (fd->mwidth - fd->high_mwidth))) >>
> +		 (fd->mwidth - fd->high_mwidth);
> +	n_high = (n & GENMASK(fd->nwidth - 1, (fd->nwidth - fd->high_nwidth))) >>
> +		 (fd->nwidth - fd->high_nwidth);
> +
> +	val_high = clk_fd_v2_readl(fd, fd->high_reg);
> +	val_high &= ~(fd->high_mmask | fd->high_nmask);
> +	val_high |= (m_high << fd->high_mshift) | (n_high << fd->high_nshift);
> +
> +	clk_fd_v2_writel(fd, fd->high_reg, val_high);
> +
> +	val = clk_fd_v2_readl(fd, fd->reg);
> +	val &= ~(fd->mmask | fd->nmask);
> +	val |= (m_low << fd->mshift) | (n_low << fd->nshift);
> +	clk_fd_v2_writel(fd, fd->reg, val);
> +
> +	if (fd->lock)
> +		spin_unlock_irqrestore(fd->lock, flags);
> +	else
> +		__release(fd->lock);
> +
> +	return 0;
> +}
> +
> +static const struct clk_ops clk_fractional_divider_ops_v2 = {
> +	.recalc_rate = clk_fd_v2_recalc_rate,
> +	.determine_rate = clk_fd_v2_determine_rate,
> +	.set_rate = clk_fd_v2_set_rate,
> +};
> +
> +static struct clk_hw *clk_hw_register_fractional_divider_v2(struct device *dev,
> +							    const char *name,
> +							    const char *parent_name,
> +							    unsigned long flags,
> +							    void __iomem *reg,
> +							    u8 mshift, u8 mwidth,
> +							    u8 nshift, u8 nwidth,
> +							    void __iomem *high_reg,
> +							    u8 high_mshift, u8 high_mwidth,
> +							    u8 high_nshift, u8 high_nwidth,
> +							    u8 clk_divider_flags,
> +							    spinlock_t *lock)
> +{
> +	struct clk_fractional_divider_v2 *fd;
> +	struct clk_init_data init;
> +	struct clk_hw *hw;
> +	int ret;
> +
> +	fd = kzalloc_obj(*fd);
> +	if (!fd)
> +		return ERR_PTR(-ENOMEM);
> +
> +	init.name = name;
> +	init.ops = &clk_fractional_divider_ops_v2;
> +	init.flags = flags;
> +	init.parent_names = parent_name ? &parent_name : NULL;
> +	init.num_parents = parent_name ? 1 : 0;
> +
> +	fd->reg = reg;
> +	fd->mshift = mshift;
> +	fd->mwidth = mwidth + high_mwidth;
> +	fd->mmask = GENMASK(mwidth - 1, 0) << mshift;
> +	fd->nshift = nshift;
> +	fd->nwidth = nwidth + high_nwidth;
> +	fd->nmask = GENMASK(nwidth - 1, 0) << nshift;
> +	fd->high_reg = high_reg;
> +	fd->high_mshift = high_mshift;
> +	fd->high_mwidth = high_mwidth;
> +	fd->high_mmask = GENMASK(high_mwidth - 1, 0) << high_mshift;
> +	fd->high_nshift = high_nshift;
> +	fd->high_nwidth = high_nwidth;
> +	fd->high_nmask = GENMASK(high_nwidth - 1, 0) << high_nshift;
> +	fd->flags = clk_divider_flags;
> +	fd->lock = lock;
> +	fd->hw.init = &init;
> +
> +	hw = &fd->hw;
> +	ret = clk_hw_register(dev, hw);
> +	if (ret) {
> +		kfree(fd);
> +		hw = ERR_PTR(ret);
> +	}
> +
> +	return hw;
> +}
> +
> +struct clk *rockchip_clk_register_frac_v2(struct device *dev,
> +					  const char *name,
> +					  const char *parent_name,
> +					  unsigned long flags,
> +					  void __iomem *reg,
> +					  u8 mshift, u8 width,
> +					  void __iomem *high_reg,
> +					  u8 high_mshift, u8 high_width,
> +					  u8 clk_divider_flags,
> +					  spinlock_t *lock)
> +{
> +	struct clk_hw *hw;
> +
> +	hw = clk_hw_register_fractional_divider_v2(dev, name, parent_name, flags,
> +						   reg, mshift, width, 0, width,
> +						   high_reg, high_mshift, high_width,
> +						   0, high_width,
> +						   clk_divider_flags,
> +						   lock);
> +	if (IS_ERR(hw))
> +		return ERR_CAST(hw);
> +	return hw->clk;
> +}
> diff --git a/drivers/clk/rockchip/clk.c b/drivers/clk/rockchip/clk.c
> index ee8c79b938d3c..0646a2e6af0a8 100644
> --- a/drivers/clk/rockchip/clk.c
> +++ b/drivers/clk/rockchip/clk.c
> @@ -589,6 +589,16 @@ void rockchip_clk_register_branches(struct rockchip_clk_provider *ctx,
>   				list->gate_flags, flags, list->child,
>   				&ctx->lock);
>   			break;
> +		case branch_fraction_divider_v2:
> +			clk = rockchip_clk_register_frac_v2(NULL, list->name,
> +							    list->parent_names[0], flags,
> +							    ctx->reg_base + list->muxdiv_offset,
> +							    list->mux_shift, list->mux_width,
> +							    ctx->reg_base + list->div_offset,
> +							    list->div_shift, list->div_width,
> +							    list->div_flags,
> +							    &ctx->lock);
> +			break;
>   		case branch_half_divider:
>   			clk = rockchip_clk_register_halfdiv(list->name,
>   				list->parent_names, list->num_parents,
> diff --git a/drivers/clk/rockchip/clk.h b/drivers/clk/rockchip/clk.h
> index 72b36bba31523..dce4db3f67b04 100644
> --- a/drivers/clk/rockchip/clk.h
> +++ b/drivers/clk/rockchip/clk.h
> @@ -781,6 +781,13 @@ struct clk *rockchip_clk_register_ddrclk(const char *name, int flags,
>   					 int ddr_flags, void __iomem *reg_base,
>   					 spinlock_t *lock);
>   
> +struct clk *rockchip_clk_register_frac_v2(struct device *dev,
> +					  const char *name, const char *parent_name,
> +					  unsigned long flags, void __iomem *reg,
> +					  u8 mshift, u8 width,
> +					  void __iomem *high_reg, u8 high_mshift, u8 high_width,
> +					  u8 clk_divider_flags, spinlock_t *lock);
> +
>   #define ROCKCHIP_INVERTER_HIWORD_MASK	BIT(0)
>   
>   struct clk *rockchip_clk_register_inverter(const char *name,
> @@ -806,6 +813,7 @@ enum rockchip_clk_branch_type {
>   	branch_grf_mux,
>   	branch_divider,
>   	branch_fraction_divider,
> +	branch_fraction_divider_v2,
>   	branch_gate,
>   	branch_grf_gate,
>   	branch_linked_gate,
> @@ -1014,6 +1022,23 @@ struct rockchip_clk_branch {
>   		.child		= ch,				\
>   	}
>   
> +#define COMPOSITE_FRAC_V2(_id, cname, pname, f, mo, ms, mw, do, ds, dw, df)\
> +	{							\
> +		.id		= _id,				\
> +		.branch_type	= branch_fraction_divider_v2,	\
> +		.name		= cname,			\
> +		.parent_names	= (const char *[]){ pname },	\
> +		.num_parents	= 1,				\
> +		.flags		= f,				\
> +		.muxdiv_offset	= mo,				\
> +		.mux_shift	= ms,				\
> +		.mux_width	= mw,				\
> +		.div_offset	= do,				\
> +		.div_shift	= ds,				\
> +		.div_width	= dw,				\
> +		.div_flags	= df,				\
> +	}
> +
>   #define COMPOSITE_FRACMUX_NOGATE(_id, cname, pname, f, mo, df, ch) \
>   	{							\
>   		.id		= _id,				\
> 
Technical Details
Message-ID: <f9068153-0d6c-471f-a08b-41cff51ff748@rock-chips.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352352-linux-kernel-netdev=dewy.ru
References: <20261027-add-board-ok3572-c-clk-v4-0-d4152b4fedaa@qq.com> <20261027-add-board-ok3572-c-clk-v4-2-d4152b4fedaa@qq.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352352-linux-kernel-netdev=dewy.ru
From: shawn.lin@rock-chips.com (Shawn Lin)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v4 2/4] clk: rockchip: Add internal support for 24-bit
 fractional dividers
Date: Tue, 27 Oct 2026 18:11:45 +0800
Organization: Usenet Network
Message-ID: <f9068153-0d6c-471f-a08b-41cff51ff748@rock-chips.com>
References: <20261027-add-board-ok3572-c-clk-v4-0-d4152b4fedaa@qq.com>
 <20261027-add-board-ok3572-c-clk-v4-2-d4152b4fedaa@qq.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1510349"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:zijeTulIhIRtF2w7iMCcJnhioT4= sha256:PBO7VVmpiynau4PhGKC/hlHGMGjFutCEvOXsxFPXZLY=
	sha1:9ib7K2QY57LSeoMPEmmdAKXQuTY= sha256:jkAORwmVCE58LtayTXbXIK7/A290Y2JqTVhMxjJxmjo=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 2FE51125BE8; Tue, 27 Oct 2026 13:12:28 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.049
X-Spam-Status: No, score=-2.049 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=rock-chips.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id OvqjhhLO_80K;
	Tue, 27 Oct 2026 13:12:24 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-352352-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=rock-chips.com
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 76A9D125BE6; Tue, 27 Oct 2026 13:12:16 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id C85A8601FF1; Tue, 27 Oct 2026 10:12:08 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793095927;
	b=EVysmBFrbDdkru4SfRlG/J6JtvnP72G0lRSr6T8SNbzTSaFyR47Nd4ccUh4lkTAeM4tT
	 7Bhq3Py9GPpJHENz4XsF8CqCeziitaP3xYl5wy1+aw9qEdhcgLO/dwAcIunWPFnGaZSb/
	 Czx28GUyfGkL5e/Ou40W+NS7e27OEeW4zh4QG65KZewyl6ev99rjQ7QiR5+3m4mDGa7bP
	 R0WtADLma0ZU3EcLO749zdkFb7zzLMq3RVZN3e3bvquamCHM0ncvCf6SaeIxFHsxhvlnx
	 9sN4fQ4g4zHiMgOXa9cQQIcD6DA7Spdj16AdQLUV1NMjrDy/GFsjMF2V95Myo1E7k9A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793095927;
	h=X-Original-To:Received:DMARC-Filter:Received:Message-ID:Date:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:User-Agent:Cc:
	 Subject:To:References:From:In-Reply-To:Content-Type:
	 Content-Transfer-Encoding:X-HM-Tid:X-HM-MType:X-HM-Spam-Status:
	 DKIM-Signature;
	bh=CxsgGjcrOJING+VboYxz/UP6+uNmJqV4esD6EZmV10Q=;
	b=QR+NC8H4nb8dDFTjMNGTG/JgIQUow8ZN+NHlQ8x1kek621gDpPPcZJjPGiL+hN+TZ8RT
	 a9c23myMcsbAQrLMbjbnUI5iFviIbcuV4aQY8DYAq/W6PaYp19OoVvSCVdXNMjFnAFSpW
	 cO1etgDzecgeSYe9YpCBm4r499wODeU49SfUn/IhsY7Em25WVjoRS5tLIqbC2BMX8+Npw
	 bdG0Pcu1zMEVEijFW8LvLxtf//6typiRu3NyW22NVriio/diFQ0pJJdcQY38AWyVYFrMb
	 CVSt3vMIDfyRIIN8vJhcdN98ywr4TDIJmKMLq/VuMUKRiQ7s9Gmh2E/Rr1BIa9CPAYw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=rock-chips.com header.i=@rock-chips.com header.a=rsa-sha256 header.s=default header.b=NtHg7Z2J;
	dmarc=pass header.from=rock-chips.com;
	spf=pass smtp.mailfrom=rock-chips.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 3FF58606A324;
	Tue, 27 Oct 2026 10:12:07 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key, unprotected) header.d=rock-chips.com header.i=@rock-chips.com header.a=rsa-sha256 header.s=default header.b=NtHg7Z2J
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=220.197.32.122
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793095921;
	b=MYfh1poZ/Y+EQgp5vYQG/ekmTWsShJRq5E9/CMB2OrmoTnxSEhziIgY/tQlhho9XqBHJ
	 b7idNL8H4a1BCFFf3opOlM8zrajAZxVDlmQuF4d7GM1IlkEYJQ9Sh89zt7SUrnMAHVsUh
	 xPPbzib6Kheorss+yrkGFYIRjsPcW6Hn/JjecpslZTb06kNmMiMGA/p6TMbBPjvGz4d+/
	 0wv8qZ7ZjuNy9ZCfbFajQmKHy8IoSbQjHJjZ5ZWkLzsCRvsEMxTiIiV/EVJi1m4ADzqRU
	 THQxB5g8dMcBW9Y4RZxn62iI5v49ZflXA7+nLQz5MgGFt8TVQhRuHRw0OHX3QCKEKVw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793095921;
	h=DMARC-Filter:Received:Message-ID:Date:MIME-Version:User-Agent:Cc:
	 Subject:To:References:From:In-Reply-To:Content-Type:
	 Content-Transfer-Encoding:X-HM-Tid:X-HM-MType:X-HM-Spam-Status:
	 DKIM-Signature;
	bh=CxsgGjcrOJING+VboYxz/UP6+uNmJqV4esD6EZmV10Q=;
	b=GD+nCUVOkis1fkGDSGUL0dVABuUT1TxMfBuw4zx2KIcgnXVBJiPvepqJ4UK0YHyXsh7z
	 IJLQrrKkPjpzpTf8yIHeCCXkIBzBk1yMbDwq/hLeu94pORjOelIPRFzoSusMUzcn2Kpqj
	 kCNEkpHCXZuL4mMtrZGrTffdUt42ZshOjN7pzI679KUjyHmSgUisUsVpoanIqCvKdfHCq
	 HwoNd0Gp18u5wFtzwasy7hYp+U+pxe4FQ0PL/y1ORHXjIGyMu3UJyvDpgNV3y/nEgDGqC
	 IGey0fAd9oGSZtYTxvgAgu83VE48k/80RiXjilV+0g6uRYgAKM/Pys/s3NJzEAkKlkQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=rock-chips.com;
	spf=pass smtp.mailfrom=rock-chips.com;
	dkim=pass header.d=rock-chips.com header.i=@rock-chips.com header.a=rsa-sha256 header.s=default header.b=NtHg7Z2J;
	arc=none smtp.remote-ip=220.197.32.122
X-Received: from mail-m32122.qiye.163.com (mail-m32122.qiye.163.com [220.197.32.122])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B3F3606A31A;
	Tue, 27 Oct 2026 10:11:56 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8B3F3606A31A
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rock-chips.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rock-chips.com
X-Received: from [172.16.12.48] (unknown [61.154.14.86])
	by smtp.qiye.163.com (Hmail) with ESMTP id 52830be90;
	Tue, 27 Oct 2026 18:11:47 +0800 (GMT+08:00)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-User-Agent: Mozilla Thunderbird
X-Cc: shawn.lin@rock-chips.com, linux-clk@vger.kernel.org,
 devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
 linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
 netdev@vger.kernel.org
X-In-Reply-To: <20261027-add-board-ok3572-c-clk-v4-2-d4152b4fedaa@qq.com>
X-HM-Tid: 0aa17cd8387e03a4kunm9044f8144d03f1
X-HM-MType: 1
X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly
	tZV1koWUFITzdXWRgWCB1ZQUpXWS1ZQUlXWQ8JGhUIEh9ZQVkaQhoeVkIeHxhMGU0ZHx9PQ1YVFA
	kWGhdVEwETFhoSFyQUDg9ZV1kYEgtZQVlNSlVKTk9VSk9VQ01ZV1kWGg8SFR0UWUFZT0tIVUpLSU
	9PT0hVSktLVUpCS0tZBg++
X-DKIM-Signature: a=rsa-sha256;
	b=NtHg7Z2JEyFqKWS/PIIS7ybGEl9gLaVhjg5mSiFPdWpDK2cMLXbATodhmSFjgUA7WwiHiahhC1PMUbYghCo3nRy2oDq13TXn0Y7lgmDaKU8objlGLXsMj7ERiXryHSGFFNOkTrQQH3Z8NMB4sXnSXxRYBJsIt/2MFOfhJlP0KOI=; c=relaxed/relaxed; s=default; d=rock-chips.com; v=1;
	bh=CxsgGjcrOJING+VboYxz/UP6+uNmJqV4esD6EZmV10Q=;
	h=date:mime-version:subject:message-id:from;