Re: [PATCH v4 2/8] clk: sunxi-ng: sdm: Add dual patterns support

From: Chen-Yu Tsai

Date: Mon Sep 21 2026 - 12:02:21 EST


On Mon, Sep 21, 2026 at 11:39 PM Junhui Liu <junhui.liu@xxxxxxxxxxxxx> wrote:
>
> On newer Allwinner platforms like the A733, the Sigma-Delta Modulation
> (SDM) control logic is more complex. The SDM enable bit, which was
> previously located in the PLL register, is now moved to a second
> pattern register (PATTERN1).
>
> To support this, rename the existing "tuning" members to "pattern0" to
> align with the datasheet, and introduce the _SUNXI_CCU_SDM_DUAL_PAT
> macro to provide pattern1 register support. Related operations are also
> updated.
>
> Tested-by: Jerome Brunet <jbrunet@xxxxxxxxxxxx>
> Signed-off-by: Junhui Liu <junhui.liu@xxxxxxxxxxxxx>

Reviewed-by: Chen-Yu Tsai <wens@xxxxxxxxxx>