Article View: linux.kernel.netdev
Article #15233Re: [PATCH v7 6/8] clk: sunxi-ng: a733: Add mod clocks support
From: Chen-Yu Tsai
Date: Thu, 12 Nov 2026 14:58
Date: Thu, 12 Nov 2026 14:58
73 lines
12229 bytes
12229 bytes
Hi, On Thu, Nov 12, 2026 at 4:15 PM Junhui Liu <junhui.liu@pigmoral.tech> wrote: > > Add the module clocks found in the Allwinner A733 SoC, including video, > storage, interfaces and others. While most of these clocks are similar > to those in the A523 SoC, this implementation accounts for changes in > register offsets and introduces support for new modules. > > Tested-by: Jerome Brunet <jbrunet@baylibre.com> > Tested-by: Vinicius Pedrosa <vinicius.eduardo.pedrosa@gmail.com> > Signed-off-by: Junhui Liu <junhui.liu@pigmoral.tech> > --- > drivers/clk/sunxi-ng/ccu-sun60i-a733.c | 1087 ++++++++++++++++++++++++++++++++ > 1 file changed, 1087 insertions(+) > > diff --git a/drivers/clk/sunxi-ng/ccu-sun60i-a733.c b/drivers/clk/sunxi-ng/ccu-sun60i-a733.c > index 8bc603393f5a..5ea65bf5b5e0 100644 > --- a/drivers/clk/sunxi-ng/ccu-sun60i-a733.c > +++ b/drivers/clk/sunxi-ng/ccu-sun60i-a733.c [...] > +static SUNXI_CCU_M_HW_WITH_MUX_GATE(i2spcm2_asrc_clk, "i2spcm2_asrc", i2spcm2_asrc_parents, 0x1224, This and the csi master clocks later have an underscore in the clk name string. They should have hyphens instead. I will fix it when I apply the patches. No need to resend just for this. > +static SUNXI_CCU_DUALDIV_MUX_GATE(csi_master0_clk, "csi_master0", csi_master_parents, 0x1800, This one. > + 0, 5, /* M */ > + 8, 5, /* N */ > + 24, 3, /* mux */ > + BIT(31), /* gate */ > + 0); > +static SUNXI_CCU_DUALDIV_MUX_GATE(csi_master1_clk, "csi_master1", csi_master_parents, 0x1804, This one. > + 0, 5, /* M */ > + 8, 5, /* N */ > + 24, 3, /* mux */ > + BIT(31), /* gate */ > + 0); > +static SUNXI_CCU_DUALDIV_MUX_GATE(csi_master2_clk, "csi_master2", csi_master_parents, 0x1808, And this one. > + 0, 5, /* M */ > + 8, 5, /* N */ > + 24, 3, /* mux */ > + BIT(31), /* gate */ > + 0); These were flagged by a review agent comparing the driver against the datasheet and BSP code. ChenYu
Technical Details
Message-ID:
<CAGb2v64Ye4wEiE3y2msoFh1P5Cs7dvXQ_vESmVFEJ=qhkp9PVQ@mail.gmail.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361959-linux-kernel-netdev=dewy.ruReferences:
<20261112-a733-clk-v7-0-db7c5451ffa2@pigmoral.tech> <20261112-a733-clk-v7-6-db7c5451ffa2@pigmoral.tech>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361959-linux-kernel-netdev=dewy.ru
From: wens@kernel.org (Chen-Yu Tsai)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v7 6/8] clk: sunxi-ng: a733: Add mod clocks support
Date: Thu, 12 Nov 2026 23:58:33 +0900
Organization: Usenet Network
Message-ID: <CAGb2v64Ye4wEiE3y2msoFh1P5Cs7dvXQ_vESmVFEJ=qhkp9PVQ@mail.gmail.com>
References: <20261112-a733-clk-v7-0-db7c5451ffa2@pigmoral.tech> <20261112-a733-clk-v7-6-db7c5451ffa2@pigmoral.tech>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="1112284"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:3F3tzteBO20ZUjTLIoAW/G4wv2k= sha256:a1b6WDhL5MfqtOyuA2WJXPxCnSO3rNd+yDvlufhNXLM=
sha1:DJ1uwOGjz3ie+pzeeX+atWJ3RC4= sha256:/lAQQtGEanU4JCtWHnZxgAvDW57wm+jUoE/pyJ6C/tc=
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 2DFE11142B0; Thu, 12 Nov 2026 18:07:26 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=kernel.org
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 a4mYSG84JeLp;
Thu, 12 Nov 2026 18:07:22 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-361959-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id 9F6AD1142A8; Thu, 12 Nov 2026 18:07:13 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id 0517B107779; Thu, 12 Nov 2026 14:58:53 +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=1794495529;
b=nOGzmjN91bu3xhiHYdU3cBrkkMNNf13JUVHAUDlpMHYtERqAjt7221Pc4BACXqbq9MMp
I9He7WgVvb5RfI4fMPA4S3IWCkburJfoMDnFp0aT6igD6wEEkFc+KcROBCuxVbl5tq1/r
b97i2jt3TKzRgr+KO0D8v6Bh4Xoa9V4n3jFkyFcqNb2AHFuKK65ASJ6j3QZYEXlnHHSJ4
Tc1a+LAHfTwaaa0Rq+2MD8f4nAWqP3mbjj2cXHFL0GSCv7JthgXhBbhQOfIKNYIIO/B8v
e3ju43OQh+9Dq69KJZ0hLbNmf8hUJr7ms6AsCGw/4iFFVeQtGCBdo5uHRyxfiaZPfpw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794495529;
h=X-Original-To:Received:Received:DKIM-Signature:Received:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:X-Mailing-List:
List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
List-Owner:Precedence:MIME-Version:References:In-Reply-To:Reply-To:
From:Date:X-Gmail-Original-Message-ID:X-Gm-Features:Message-ID:
Subject:To:Cc:Content-Type:Content-Transfer-Encoding;
bh=Ahp2R8XXPiuO6iEjfb6UKUnsMrVVlx0bOA5QMiN/SCg=;
b=xcRpr/dYPPGj1h0beGF6dlT99iy7izNYj6VSv7yHVTfspokF3dUvv2aT2brz27/hG5ng
73ForODLvZNU/0yEkDQte0+IWd1ZNUfFwjxcNLaRlv/3SIKYV4XewckObMtOfqdQCy3Iw
nA/BDGOtnQtDgwlOyUfzOeDyMGGn9JcRzYodlQCYqZOREsSZu40RkBQmV3+oQ4DFVELjG
xpbNNh5tIoeUt1VNKjPU0siieiertm7tlkNokJrYK8p7wmk8fayfTUy6PREyxSyeRy22x
v7QrrpmMLQ94YnvxEhjuMdghzZ66oEhf9EyAIatunbcR2zyrVc2TQRGFB2cygGXbORg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=evi7clWU;
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 B14C7606A33B;
Thu, 12 Nov 2026 14:58:49 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=evi7clWU
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1794495528;
b=TmFsXlT4psAQiilDEt535yyUy36XesqUy4UsC/usd8ibataPyms3cD7HofJbzE1VcxXq
RNxmAOVuFc4kccVhnkLc3FurO/va+Lqma0T3IddsZHlM92ASUAgB29PKhcvyDxkrApDdF
xbRgBi91euuL6HAyCqhtWM6ckrrD8yGxoCkC6Nuput05y3vIRKcrP4jfK1a/KpJubITtH
R6TUHoPuLyO6euhfxvGEeAIiMKDAe0yfXQhZT77tdCguycIgG6vGvYLMSxtwOrAKGnWq9
EypGc3v2RmdDiec3CHgPEaouUuG2FeW1/Da46T8nmmtO8rWtkYBXUaxrRsG/knwy1Cw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794495528;
h=Received:DKIM-Signature:Received:X-Forwarded-Encrypted:
X-Gm-Message-State:X-Received:MIME-Version:References:In-Reply-To:
Reply-To:From:Date:X-Gmail-Original-Message-ID:X-Gm-Features:
Message-ID:Subject:To:Cc:Content-Type:Content-Transfer-Encoding;
bh=Ahp2R8XXPiuO6iEjfb6UKUnsMrVVlx0bOA5QMiN/SCg=;
b=ghx8vJW3rtRnjUEx+9GrgXy6nqbO8GEnJgrnu5Uy3hqTDj92/hFxuIJdMKMt5Sk8hJa2
vn16d+CnqPspJ3GqSx9OvrrTgDw2qos5fbhkOQbSlPMUTw1VYOtqfr+95eL3agyTpSLEB
r57MhRf9czc4MBDoHxn5L9/iEZFMdb4k6JgBjRzLDoanSvtmP6W6HyFfh96jxdMuv8iak
IjcSqoCp0n3yMEQ38YVYeOxrfZ3YunjoJVqcAYSXOAw0RfKYBGwa4Nb8KcoFghUFvg1/j
1IGQ7RQydoiYb0EDP4pYykzjhKd6hK0u5UZsE7V1hRgZMwJUIr4VxiCGownL6sG3rSg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=evi7clWU;
arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (prime256v1))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id CDDB5606A32E
for <netdev@vger.kernel.org>; Thu, 12 Nov 2026 14:58:48 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B29E1F00A10
for <netdev@vger.kernel.org>; Thu, 12 Nov 2026 14:58:48 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
s=k20260515; t=1794495528;
bh=Ahp2R8XXPiuO6iEjfb6UKUnsMrVVlx0bOA5QMiN/SCg=;
h=References:In-Reply-To:Reply-To:From:Date:Subject:To:Cc;
b=evi7clWUqzfu5IwbwBr1JJlISMJDxPDhvh6uAAOyCg4ZnCnklbxu8+ZjPmsyAJp/0
aP8kAcEIz52VuMwJki7SyO4fuxYHvB3MavOJRR03w0bl2i7fAv32f91k/+09mGMrj3
iWt4HXcH3d0ZZxsnA6Rm9vsEqznM4YC0+n0a6kqqns3tv22HaO3JdV6Q+ZvJtYkBfF
h9guIvmInAtJSD2Thdtkqr1TC4gRLGYeJpVypaDuYlIneKDv92USZioY1YD+c92ZTM
GNRqYI1l0LabEgiidIKy/Ghen9POAU1/k4/CNgnT6u71WupklB+95qmRViP8rE0x3t
oi8M7RhZ7wVeQ==
X-Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-3ab3b29a298so36358301fa.3
for <netdev@vger.kernel.org>; Thu, 12 Nov 2026 06:58:48 -0800 (PST)
X-Forwarded-Encrypted: i=1; AL+hErHdIeElWa7F8Nm3uzUk/bZKw8HlgAwYqQESS2xFSYosh+hczKxGUVD9c9aNuDXRneEPCQT68CE=@vger.kernel.org
X-Gm-Message-State: APuU4Z83YqQvrIquFQofvMoJOMAJYg2cSWwYOBVTJ7TktQwYBMX3WKNG
bCRf6+q9HCUeVJ87/NBBPfZ7ieSZmK/AGyRQkBUneOHDpd+FpaJ1CDXM3CurqXUQdE4J5nEj3ab
tC+/4RdX0ze0JryRpoq+ieCDSGfAPID4=
X-Received: by 2002:a05:651c:e0c4:10b0:3ae:25db:795 with SMTP id
38308e7fff4ca-3ae25db0827mr3381781fa.12.1794495527049; Thu, 12 Nov 2026
06:58:47 -0800 (PST)
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-In-Reply-To: <20261112-a733-clk-v7-6-db7c5451ffa2@pigmoral.tech>
X-Reply-To: wens@kernel.org
X-Gmail-Original-Message-ID: <CAGb2v64Ye4wEiE3y2msoFh1P5Cs7dvXQ_vESmVFEJ=qhkp9PVQ@mail.gmail.com>
X-Gm-Features: AclHuK-IX9I87FO9BVEBpEeLaHk1PETWtM0mWihOigloFLp60Bd_bejTc7ChEns
X-Cc: Stephen Boyd <sboyd@kernel.org>, Brian Masney <bmasney+clk@redhat.com>,
Jerome Brunet <jbrunet+clk@baylibre.com>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>,
Jernej Skrabec <jernej.skrabec@gmail.com>, Samuel Holland <samuel@sholland.org>,
Philipp Zabel <p.zabel@pengutronix.de>, Paul Walmsley <pjw@kernel.org>,
Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>, Richard Cochran <richardcochran@gmail.com>, linux-clk@vger.kernel.org,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org,
linux-riscv@lists.infradead.org, netdev@vger.kernel.org,
Jerome Brunet <jbrunet@baylibre.com>, Enzo Adriano <enzo.adriano.code@gmail.com>,
Andre Przywara <andre.przywara@arm.com>, Norman Herms <dockseed@proton.me>,
Vinicius Pedrosa <vinicius.eduardo.pedrosa@gmail.com>