From patchwork Fri Nov 13 22:33:27 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Han Gao via B4 Relay X-Patchwork-Id: 4077 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mxe881.netcup.net (Postfix) with ESMTPS id 189671C58F7 for ; Fri, 13 Nov 2026 23:33:42 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=kernel.org; spf=pass (sender IP is 172.234.253.10) smtp.mailfrom=linux-sunxi+bounces-27594-noreply=patchwork.local@lists.linux.dev smtp.helo=sea.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.234.253.10 as permitted sender) client-ip=172.234.253.10; envelope-from=linux-sunxi+bounces-27594-noreply=patchwork.local@lists.linux.dev; helo=sea.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id F0D0443137 for ; Fri, 13 Nov 2026 22:33:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609214; b=FX4spdmWTz0cAIc+741NeCFBycV6WhoKnRwpIK1qeuBQh1nxWK8KAeLcB9XDxYkX9tJC CesiHHKqePIg30wSHfB1O8Dldl/2GhTwEOtLpzff78aq2KhTdSqb5381YNWQTSYFb7Iuo Yo4yYJIQdKMgQv440aTzoR+AnRUmo2X9ttqUE1GI7sUjmhr3vt4P+KOepbibjQ6CDgQH1 0Gx7Q9INUcT2y94jwtlvO9dssBSm59ylVitFwNLkPpPP6ONfc2zurKzr99+2AZKByg4Yn Q+sb5zw+RpkZij8JVlIOnfN4KMx9rXJFNwuwJaQLzmIrKZhfA4WLuKOLdqgp1aIjdfQ== ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609214; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=HyiTVbeXPQu8fkPfhfD3gHjXLJEZSVzM7qOeO91NGRg=; b=eVfpAq2d4mlKOmZohb3Pvxrzhd5e0QC3UMgYKzBC2tvCIzdAXOcnjLgvlic96QRQbHB3 vmyC+Aot7QDE+Y89T5My8Ax1p6LbCGNjcJaxxVojCUZMgcat550hB38xcNc7UKngHiCJx rB0m2DKkrYQjneFIlHCa0h1UnFfKzaeLyPJig+wUM9qOCHr3X8wgNzrI7r7F+HSTEXikD mayaOXtjMyGnfGGHKxib5xF/dj9bWO7A3GBknKz6pPQIDVEIcbt1SsNea2c4ti/lryo4B b5bmWtk/dhYVqDnRSKg3k6bCGtUVK9Ess0othLDcZ+eKdpSAtzs15OUqgbWULc0rG6w== ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=UtZMtRuy; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81A3E606A8A3; Fri, 13 Nov 2026 22:33:34 +0000 (UTC) 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=UtZMtRuy X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609214; b=SFgrQN8DknnmdLxHPdghslYeaPHne7dEhb2Oip0zZE7K+8ZTT030rF8+eOEk2ZuYR54I j01C7iLSRnHta9J3HZR7jEOuvNHIePmZq4bfQy1PDn9xViXwPYQwQOiFMD5v3b/ZOibt3 DN7QTLMYwtKNXhkN1+t6hFuAsxFzWY+gF9wJAn3aIZdz/l7XFMOf9TRuFF7NYdHjpj7Lu hOjqgukh5SIoWNWK15f+LKkQtfTEqtw+NMZ4gxxCS9lGd5RtOmu5UHDbxoJoH0MmVmEwK 5dgfcHglpg4TC5cdHTiFB0+vYqSozFOpgPQllAmVwFmPfLW7xudGLuKG+jr+D8DALqw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609214; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=HyiTVbeXPQu8fkPfhfD3gHjXLJEZSVzM7qOeO91NGRg=; b=ko5hGJ61DsjZ77irB5L/IeGWmi6m6wus3oYCu4Dh6lWouwMl/PaxzRzKg7TbjEUy77fc ZrnKqMnTiUOQktp/Zxmf1hI4XmF6/LUPRqzHXw8EcrDi/ulG4W/7x8eTmKa/n/SY+czhK MrKIS7g6KOM3qgwOG0vta+613riN3M/TcBt7KT3vnzG/R2DuLkiktjRVPhk+L++T67aQE xfY2EKdkLIlMbSixuC9q59IgmgjnEqGOEiglCrkcfC0HMhTwvgr90HIICmsVreA2OUoEv l8SYPesk69K0jGIGxvdpLSijN7hk2x/zCBeUZyvZfNzQsQSNpaq8WYnT+AqmAIl6iLQ== 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=UtZMtRuy; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 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 5262C606A883; Fri, 13 Nov 2026 22:33:34 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1794609213; b=rx6seLmVjtfP07fRicajwW4gcx5wTTRbDzYT/2gEVSZRGbyPFLYvc4JlMdzz9wPMVm1a o4Wuma0RFECZuk23+K6yj7gf8Gz4WLeCKlH9CFfJRe/GPpNr7vJAr2eg1TMTpEDUpRwtP Za15H9KpVjHzMgQf/1l1/k7d+3haLKmyom/SUlFVrTA2UVxDndp5dK0N95zUePAVTdB/S V1VBxMJkp8/OknttbjsfI6FY2z2RxQXnPDWU95byeomE+1lRfskkZn5dAWF4SYPIJ77Zg 0Vx41wCqd0Q+oY5pTh1jUq4nKJ6Q2NJDfYwYRZyIFRbk9Opx9y7y/aqdldWRRIir2Mw== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1794609213; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=HyiTVbeXPQu8fkPfhfD3gHjXLJEZSVzM7qOeO91NGRg=; b=VWI/WkEdcF2Xlv6G3k41B0/FezxAS/CfJTmpL2XNORrf1xYrtNvDP1vaZnlCf1iqvuKY scjDd2YAE39vLXSGev5jkdeMhGTU7sQvOTxr6OgIFyJV+vO4L5PBb7s2Ly8ozZVSDcYlO otUPDdpbO8cuphtgIPD9st5EG0kcXb3XghlZ6Mc0FpjXYjXMzOFS69zUeCsL+yFZHpvo2 mes6Lea+P/yUQT5WV4GlpqlTenXCVCLSQArjsIoo+Bf1J67BEdQUMhug6NZwxixaHzrhu IIgylUwAxaEqud62qoLY5JfYgGpECXS3FlMHizW6NqYEQwSDENqmBfSs2Z+SFxiCReQ== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (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.kernel.org (Postfix) with ESMTPS id 314461F000C4; Fri, 13 Nov 2026 22:33:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794609213; bh=HyiTVbeXPQu8fkPfhfD3gHjXLJEZSVzM7qOeO91NGRg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=UtZMtRuy2RreIXnt6Vk6e1sTpBtQ42hqFvY/BLiBEfGCx4AjqmVAkYmV1ALjqjy9F VGgIrQa6TV9iILRc4ZtrjGqseyIhml3nkASLmeYP36fJvdWR9LL9EBW+VzRgV3yO3x jq2yE/dyD/YyOHwxa4uhfZ4X1693xNj+zD3+JrYHaY1Fm8ztHfdJ8/60mc6XnXjYCu K0aeGfZZd7k9Qbb2illPSJSUWJ5vfFBIl6K07SLfMHdo1VKv17IiphIZoIWI+kxZK3 8UlXv/aS3/U+0yePxo51ddZFjPOJPCuM4iGO8axqUf3gSXu9ph6wYw8O7tc5eDeV7I wK9bQSwv3aBVA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 9E3E349B58; Fri, 13 Nov 2026 22:33:32 +0000 (UTC) From: Han Gao via B4 Relay Date: Sat, 14 Nov 2026 06:33:27 +0800 Subject: [PATCH 01/19] riscv: sunxi: describe the wider Allwinner SoC family X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261114-v861-v1-1-eb71ec3ee523@iscas.ac.cn> References: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> In-Reply-To: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guo Ren , Thomas Gleixner , Radu Rendec , Samuel Holland , Daniel Lezcano , Anup Patel , Han Gao , Stephen Boyd , Brian Masney , Jerome Brunet , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Philipp Zabel , Alexandre Belloni , Maxime Ripard , Linus Walleij , Andre Przywara Cc: Han Gao , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Conor Dooley , devicetree@vger.kernel.org, linux-csky@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, linux-gpio@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794609209; l=987; i=gaohan@iscas.ac.cn; s=20261021; h=from:subject:message-id; bh=iIMXHW4ncH9rYCfV6gqeS1VFiDJbleuDtC++QacYRuM=; b=1qagKD3rCKA24HqW1EY7WOksbBJolj6tNk+/fSKplFvFfQFmuICjc/3HRPonNK6YXjTtHCQMd k+l2SiI9Az4DbHj5RDb1WJdE+MlgzAKOR89f9hwcRwjPTczallY0Cjt X-Developer-Key: i=gaohan@iscas.ac.cn; a=ed25519; pk=J8WHEK3filS86QaCaIHDGafqhxKyQ4K7+vFgRirTIiY= X-Endpoint-Received: by B4 Relay for gaohan@iscas.ac.cn/20261021 with auth_id=1262 X-Original-From: Han Gao Reply-To: gaohan@iscas.ac.cn X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [3.31 / 15.00]; RBL_SENDERSCORE(2.00)[172.234.253.10:from]; SUSPICIOUS_RECIPS(1.50)[]; MAILLIST(-0.18)[generic]; BAD_REP_POLICIES(0.10)[]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; TAGGED_RCPT(0.00)[dt,clk]; R_DKIM_ALLOW(0.00)[kernel.org:s=k20260515]; FROM_HAS_DN(0.00)[]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; HAS_REPLYTO(0.00)[gaohan@iscas.ac.cn]; DBL_BLOCKED_OPENRESOLVER(0.00)[sea.lore.kernel.org:helo,sea.lore.kernel.org:rdns]; RCPT_COUNT_TWELVE(0.00)[38]; FORGED_SENDER_MAILLIST(0.00)[]; FREEMAIL_CC(0.00)[gmail.com,lists.infradead.org,vger.kernel.org,sifive.com,kernel.org,lists.linux.dev]; RCVD_COUNT_FIVE(0.00)[6]; FROM_NEQ_ENVFROM(0.00)[devnull@kernel.org,linux-sunxi@lists.linux.dev]; TAGGED_FROM(0.00)[bounces-27594-noreply=patchwork.local,gaohan.iscas.ac.cn]; R_SPF_ALLOW(0.00)[+ip4:172.234.253.10]; DKIM_TRACE(0.00)[kernel.org:+]; TO_DN_SOME(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.77.114.92:received,100.103.45.18:received,100.80.115.77:received]; ARC_ALLOW(0.00)[kernel.org:s=arc20260519:i=3]; DMARC_POLICY_ALLOW(0.00)[kernel.org,quarantine]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; ASN(0.00)[asn:63949, ipnet:172.234.224.0/19, country:SG]; FREEMAIL_TO(0.00)[kernel.org,dabbelt.com,eecs.berkeley.edu,ghiti.fr,rendec.net,sifive.com,brainfault.org,iscas.ac.cn,redhat.com,baylibre.com,gmail.com,sholland.org,pengutronix.de,bootlin.com,arm.com]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.234.253.10:from] X-Rspamd-Queue-Id: 189671C58F7 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX From: Han Gao ARCH_SUNXI is about to cover the V861 as well. Update its prompt and help text instead of adding another option. Signed-off-by: Han Gao Acked-by: Conor Dooley Acked-by: Paul Walmsley # arch/riscv --- arch/riscv/Kconfig.socs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs index cecbce0c4983..4cf3b24467e8 100644 --- a/arch/riscv/Kconfig.socs +++ b/arch/riscv/Kconfig.socs @@ -61,13 +61,13 @@ config SOC_STARFIVE This enables support for StarFive SoC platform hardware. config ARCH_SUNXI - bool "Allwinner sun20i SoCs" + bool "Allwinner SoCs" depends on MMU select ERRATA_THEAD select SUN4I_TIMER help - This enables support for Allwinner sun20i platform hardware, - including boards based on the D1 and D1s SoCs. + This enables support for Allwinner SoC platform hardware, + including boards based on the D1, D1s and V861 SoCs. config ARCH_TENSTORRENT bool "Tenstorrent SoCs" From patchwork Fri Nov 13 22:33:28 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Han Gao via B4 Relay X-Patchwork-Id: 4076 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mxe881.netcup.net (Postfix) with ESMTPS id 189041C556C for ; Fri, 13 Nov 2026 23:33:42 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=kernel.org; spf=pass (sender IP is 172.234.253.10) smtp.mailfrom=linux-sunxi+bounces-27595-noreply=patchwork.local@lists.linux.dev smtp.helo=sea.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.234.253.10 as permitted sender) client-ip=172.234.253.10; envelope-from=linux-sunxi+bounces-27595-noreply=patchwork.local@lists.linux.dev; helo=sea.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 054C880398 for ; Fri, 13 Nov 2026 22:33:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609214; b=vO3GcDmp1v3gWVC7Sc7+kuLmgdFxOopafHxwCyOLychij2I4awHcLI6DVaorAhOfREfC S4w9yEGu0TaUAwHSOmjiL0Jv4G/HIpy+N3EHCQjdiyv77WxhSaekbfMU5Y4MjgdmWWAJh moxw0C223QxRV1/DZYs9w0TXhYl7yC3ccrXUObL+mubTHR0aMePZiar5rQO8wlngNM00l GfQhahsJwMpqhPoTtwsy5VuTBxfJecuaKe6IbA1TfcSpAJO4EqEGtaQPVindMzEd8smFd p7dreOdhjCc9dIhCvCggs06Yeicymy/Y6K5+4tHWirjqT5OgXy+anUt6C77Xe8laFhA== ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609214; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=TOlclL4YMcO1403e1qiCF3GU/nuLdoHldjlrv0LH3a8=; b=t8+QJFKm+9DwvG2Y3IL1Wk3cPC10Q6KnhDMa5bfiAZ4e1BuMw8lGrlh5NFJroDSpSqnP b37/poHdJ2IsZxGLtQchKMEm0w4SpDUrUq4/x7rVrEMOUKp8uUG0WyJiKlNTxBXGa6mYj 1uS9Um6tzZhoNsk4o+Q/zXdMEK/jPfw8HekNN+JQIivmQq6Qa78lDcJY+aITgxM6e6vzU ic/wv0YqnidaYCR4J+sApOxfh7ejUZul3iHZF2B2unsqZnXLph5mD8fyTuUgM/gRdQq5O L1u6MYXXL7/s9gNlZBIRM46CzaaeQ45ZN9JFLi+eLwKNDZVVr/6NPGq2yhDlWKR/BJg== ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=NkfHNVQ2; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ADD92606A8AB; Fri, 13 Nov 2026 22:33:34 +0000 (UTC) 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=NkfHNVQ2 X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609214; b=i2H7mwS1p7sa34lKw1gp0mvonhmk2tz3XcoEdJ8cLhYvrmxnA6kJyhENPiDju1n2BibI gHRErpWglcdQbkktnANUpdJwK0X2YWpieQaO9nyBK/3hjcAQ5mjMny9sVP7Vnb6xLMIF/ UvGNxZyeDdxfVyLChrtfqGYzvjMvNgbip+xKZzWA7S3/dkWvT68b4XyHExBFEsGcvklqE 3YzVq8x09L8g6BsawDdwDkYwuTaHG4sPq47yvv1FmP1j1mo0sso43k+kjkLTaLLu5+Po7 VQk/uutCioOdR1813Df/KlXMthxfEvunG++ya6cfKJmRs9xH7XtwCCMbrJ6MoKRJGSw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609214; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=TOlclL4YMcO1403e1qiCF3GU/nuLdoHldjlrv0LH3a8=; b=3dSc/hKeQJt0YGZiJr0PBmtIhfYw9JejBoNHp6F5jee1qRhtd+QXP0lowRqBa4xfMbQL psPo+W1jktEJb6imM+TijXt0OuyGtMfxi4R9/UDih94A3IVDrHtF+ugPRoxNsd3PH5lNr db/K6wu47YUBNyl1pnvg+J3c3ddWIdm8Iy//JWwXj2Lna5QPUInqmUZpaFhDkdyBx5hna 6dTeq950BwgC1GMzdyhaz4EUQS3YHiJBixqklLi61zq5a4Dyi3W0JIvbFh+d/P8GOjiTO j29sEwDU6ZYiwEelssd46byqIrpQRlaqexDdMX6HBmlRFLP7evWlJQm0c/av70fGedA== 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=NkfHNVQ2; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 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 87150606A8A4; Fri, 13 Nov 2026 22:33:34 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1794609214; b=X7Nk/tZ7GonNx2KBw/8y4OaHJ5i7FCx8F7Vj1hsZFRhpxGtoYW59w76uQgBX493EgOCd mD87NDzx6MTRA9HakTlPL0MpVUgtKBofSunRxLAkVv4BVHyryv3IAFgmQ2aiauMZjMmqK B1oAgi/gO0Jn5zoQkb5hxY/EUVZ3J/H/lAcwYFr/dHkG5tcr0yRCTrlAyEM1Nj2o+sjiL GRADLAPwSr70itdqlRIQilL0GFehQ1QnDQefOA+0FdMsGuHh7baLdd5fGisnmsorRd/AR +lBLlGDJP/nJXSYptVvEr2aCOOfOtUyz9l9Vpwf08x5O1AL+WYEsvrdQkfzSSkRQCBA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1794609214; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=TOlclL4YMcO1403e1qiCF3GU/nuLdoHldjlrv0LH3a8=; b=d0GE6jupYk62y2sKYS/5FpGJDkn42D0xd7bDk5SFe65Vv4ghP6InG7lhVSEBgjaaVVaK /1vcSRm5xlZvFjRi5dzKWUuUYOYUqn1DA15py6vxIxD+fm+mfL85lHj7hP4+gH7Rj32rG oUq6qz/I8ffNvPbgiQyYImr94+tbK4tigRXWAM3aDCJXfN3EuiPIsUzSzM2AlEDc6TqRg W1/dMSKvKdcl2vVmpteLEVFzGzip4NwKtomYPir7B48thsIMPAh/mCb9aHkgbMAslElBO nr4VKmdPJUvInZc2GBIs90JF+tPCcxbqPkjUMCuj77yUmgRC3rqg3xFPPIoyovmlxIg== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (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.kernel.org (Postfix) with ESMTPS id 3286A1F000C5; Fri, 13 Nov 2026 22:33:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794609214; bh=TOlclL4YMcO1403e1qiCF3GU/nuLdoHldjlrv0LH3a8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=NkfHNVQ2TMvbmMXE6fHwvBl9xcmpq9ky0p9rvXKU8tCScCglkZl3L/h/IS23zeIgj 4WlapfQCcG63cdRxJkgHoUa5ta94XtV1YB0VFKL9QwsIp5QJ+dERlhTaFOxLamvr7G +6DTAQpTDl4xbvdR9Ts/X3fBIEtNJRg6CVdQDuGSuuKUHOFj6sbeUk8caDwbC/65Cd JGsdB/alXmyDqQpNl5OphsA9VvGmaJ+qZiAcBKqCQkRTOvNC6MdY6FWiI8N+N6Hhhb J10jihh2o7g0l0tzyewbVoYhZEyQh9DqYYNC6DHFWtEhFNQxipo7I7UdmqmJz9D0Vz S2OJKXYUweEzg== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id B1FFB49B5C; Fri, 13 Nov 2026 22:33:32 +0000 (UTC) From: Han Gao via B4 Relay Date: Sat, 14 Nov 2026 06:33:28 +0800 Subject: [PATCH 02/19] dt-bindings: riscv: cpus: add the XuanTie C907 X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261114-v861-v1-2-eb71ec3ee523@iscas.ac.cn> References: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> In-Reply-To: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guo Ren , Thomas Gleixner , Radu Rendec , Samuel Holland , Daniel Lezcano , Anup Patel , Han Gao , Stephen Boyd , Brian Masney , Jerome Brunet , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Philipp Zabel , Alexandre Belloni , Maxime Ripard , Linus Walleij , Andre Przywara Cc: Han Gao , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Conor Dooley , devicetree@vger.kernel.org, linux-csky@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, linux-gpio@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794609209; l=986; i=gaohan@iscas.ac.cn; s=20261021; h=from:subject:message-id; bh=Cm+aoOEvEdfEXFBW81kE8hGffN29ckzRUH816nQCB7k=; b=mWoK/d3s7E1yljsgEDG5AOvjeGoZNBwoSoucC5cXcDHH1Ezvl8ge/m6Rc2ZMX+fXR9/JUk6Cd sgDp+kyX4ikACJQQaTT68CWvbDPAa7lgh8Bv3nSSLDGn7sHbxhQnbqQ X-Developer-Key: i=gaohan@iscas.ac.cn; a=ed25519; pk=J8WHEK3filS86QaCaIHDGafqhxKyQ4K7+vFgRirTIiY= X-Endpoint-Received: by B4 Relay for gaohan@iscas.ac.cn/20261021 with auth_id=1262 X-Original-From: Han Gao Reply-To: gaohan@iscas.ac.cn X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [3.31 / 15.00]; RBL_SENDERSCORE(2.00)[172.234.253.10:from]; SUSPICIOUS_RECIPS(1.50)[]; MAILLIST(-0.18)[generic]; BAD_REP_POLICIES(0.10)[]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; TAGGED_RCPT(0.00)[dt,clk]; R_DKIM_ALLOW(0.00)[kernel.org:s=k20260515]; FROM_HAS_DN(0.00)[]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; HAS_REPLYTO(0.00)[gaohan@iscas.ac.cn]; DBL_BLOCKED_OPENRESOLVER(0.00)[sea.lore.kernel.org:helo,sea.lore.kernel.org:rdns,jedec.org:url,iscas.ac.cn:replyto,iscas.ac.cn:email]; RCPT_COUNT_TWELVE(0.00)[38]; FORGED_SENDER_MAILLIST(0.00)[]; FREEMAIL_CC(0.00)[gmail.com,lists.infradead.org,vger.kernel.org,sifive.com,kernel.org,lists.linux.dev]; RCVD_COUNT_FIVE(0.00)[6]; FROM_NEQ_ENVFROM(0.00)[devnull@kernel.org,linux-sunxi@lists.linux.dev]; TAGGED_FROM(0.00)[bounces-27595-noreply=patchwork.local,gaohan.iscas.ac.cn]; R_SPF_ALLOW(0.00)[+ip4:172.234.253.10]; DKIM_TRACE(0.00)[kernel.org:+]; TO_DN_SOME(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.80.115.77:received,100.77.114.92:received,100.103.45.18:received]; ARC_ALLOW(0.00)[kernel.org:s=arc20260519:i=3]; DMARC_POLICY_ALLOW(0.00)[kernel.org,quarantine]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; ASN(0.00)[asn:63949, ipnet:172.234.224.0/19, country:SG]; FREEMAIL_TO(0.00)[kernel.org,dabbelt.com,eecs.berkeley.edu,ghiti.fr,rendec.net,sifive.com,brainfault.org,iscas.ac.cn,redhat.com,baylibre.com,gmail.com,sholland.org,pengutronix.de,bootlin.com,arm.com]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.234.253.10:from] X-Rspamd-Queue-Id: 189041C556C X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX From: Han Gao Add the XuanTie C907, used in the Allwinner V861. XuanTie is a brand of C-SKY Microsystems [1], whose JEP106 ID 0x5b7 [2] is what the C907 reports in mvendorid, so use the csky prefix rather than thead. [1] https://www.xrvm.com/declaration [2] https://www.jedec.org/standards-documents/docs/jep-106ab Signed-off-by: Han Gao Reviewed-by: GUO Ren (XuanTie) Acked-by: Conor Dooley --- Documentation/devicetree/bindings/riscv/cpus.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/riscv/cpus.yaml b/Documentation/devicetree/bindings/riscv/cpus.yaml index 0da219ae6769..bdb119ab8ee0 100644 --- a/Documentation/devicetree/bindings/riscv/cpus.yaml +++ b/Documentation/devicetree/bindings/riscv/cpus.yaml @@ -48,6 +48,7 @@ properties: - amd,mbv64 - andestech,ax45mp - canaan,k210 + - csky,c907 - nuclei,ux900 - sifive,bullet0 - sifive,e5 From patchwork Fri Nov 13 22:33:29 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Han Gao via B4 Relay X-Patchwork-Id: 4078 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mxe881.netcup.net (Postfix) with ESMTPS id 4A65B1C50BD for ; Fri, 13 Nov 2026 23:33:45 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=kernel.org; spf=pass (sender IP is 172.105.105.114) smtp.mailfrom=linux-sunxi+bounces-27597-noreply=patchwork.local@lists.linux.dev smtp.helo=tor.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.105.105.114 as permitted sender) client-ip=172.105.105.114; envelope-from=linux-sunxi+bounces-27597-noreply=patchwork.local@lists.linux.dev; helo=tor.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 89A1A48377 for ; Fri, 13 Nov 2026 22:33:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609215; b=vzIpzCoqzyMC0P7lG6lBK1v3Mgx1X9kKMwdt3z+5kwEF1R/mJZinhrszqa/CECXmhVJZ MOeVGNx8eRi07gqIE0R5c/Ba5oKhtbWmuhH03oH6gbDMLQTWWkwN9YF1VsC5N8V4N/lWJ 0NTky+pxr3+O/3qaiupVvda3fvDN9wa9lOUu5TRDm/L7x9wN7rdqNvRxJwqfMwUTNzCIb qtAJnsyLl+50FUD9Yg37n9AEjr1s53DgBs4K1ME3Iqgi5Cm7z/UC3DYs6VZ40XGNO1jBf b2o8mfUXb1gDafHGWGlFOvYGSBuGlB0aluviNTfAEGBFpKKEy9x/fx50ToxJWriz6dA== ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609215; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=SVUoyJCmjOfWaoa4/ZIG/PW30Z2w09I5kCJhkQJiNH4=; b=JZAf3t0bhPG1hjKsk9rH7v6fJ1iIZ7QjaAG0F+z1m9EnRQEc63LpErtLPNNfjFc7QdMY rFINznA4zvvM5nKnH1apQucBn69mmz2X6y3kF7bhMK2Hc+XpGlrfSWSz1BvOFYn/uLCGe fRCcwbUj7Lmy5hX+PyfkIFp8Pq8yDpezhepa/FXVjdQ3THvWxGrktK+AddWvDkMK16M3K 4HLqSn+xB3VzFk3fsbJDp4N5AJCqi0EZpvJ6RG4/A9b6Ohm5gQZKguPwcPK/AyPWyCqtc kIYm+i6KxfOHb0s9EyIPOYq2/p70YCIw+99aX05XCP6VY8vRt8BaBkSZahb41eKP0Fw== ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Uz3Gf3IO; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB847606A8B8; Fri, 13 Nov 2026 22:33:34 +0000 (UTC) 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=Uz3Gf3IO X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609214; b=uqtVXyKs32IoWoFzCRCH8YTuFlyNlR1zCmxBhzG6khbQQB6fwhad2idMmlHevBn2J+/W KdKWO1MiErtgM8S+EgDHFhjUVs9cxUIWWXYoRyBdAjD4sVoO+ySMF2EnYHveRjMQeXiJz Gs/JgUwNTKD0gZ++TcxRJgpGXuul5hebqdXEyXEauBwbJm2fVHzOYBuotA6RmQ61QCyI1 Qy0WvZJDd9i2eBleZBb7oPEXl+95j/Fm3LI/NosHHqLikJoQT1tnqxkcXjBVcmnUBMXoG Q7JlOtDGYtQRr35NnW7Wi5qXrCHabWgSIDZU7y2Zyc0hrsFOXsaj1CeuZSpY6aukXgw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609214; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=SVUoyJCmjOfWaoa4/ZIG/PW30Z2w09I5kCJhkQJiNH4=; b=g2xqJ7pzSBtZbSy493g6ad9d5Uiobzs1oGf7YhBs9hLg7MysrzH/Zth/A7rOEEzO0bAT +TeaZCnaKjDLIlgN+UkU5ue7s16IfzD8nK6qo8bvfZauhcKdW37VtbAxRQgUb0bUX/Lbs 7JGCaS8Ok/ZX7CgUKRCoSKwhp08nTx56WvSjUlo+P/gANC3B3DiVCW1kmKO7IC7QuCtyz ylDF/hM/w349S9pJRwv+uJZH9Mvonyj/ezis3xbHG4oNZlCupbs+rrYtTkQfI+E1s0odm Ryk9uqbX0HaOGzUpRU0+hMRAzF37zRk5DPslNKpAWD29QDe9N21uiaF1hdUrK89Fjnw== 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=Uz3Gf3IO; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 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 B7CF4606A8B2; Fri, 13 Nov 2026 22:33:34 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1794609214; b=f1AsNJRCs4doNRyApKQvZhVKnCBInawI7GNr7S1NWhOtencxJrCq04OL6n58VXy/FHOa Hrs4VgZRrrNRLEWT3H3/+ivImqecNK/OtOHs4TxrxiCEtdYx+CbDJxV2KkLQkTxuOJgDb NnJtpZQB9ujbNnlL2X0IL7A1Xn88EdfpwUQ+88Gr69gZcS5JOM45iatW89nz/0g3yHxjr t52+5nd6zC2FoyvcCeUH+3iwaUpKNi/nfmK7QzCIti8qy3Q0/ofOC+u9Qq5B49sOjbfRv S8xcbPHrzOrL07er9+2Ez+MuZryJ6Vr27OjkZYogIyFLayhxAnECqIV7+3IYKhbp2XA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1794609214; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=SVUoyJCmjOfWaoa4/ZIG/PW30Z2w09I5kCJhkQJiNH4=; b=11C6K67yUaccJLUD9wIQ4lylCgGspnmCielY/w9ClpfhXtzdPxBKNXS9GiQUL18hoVR6 C2z93CEyYaoTHf7bw/+PHhFg9yfvxa7SW+kbAVJZVVz1rx9vwfsJ4DY+PDY8hDUG6HLWZ Lx2b7lcN/ezgZrSgq0EOXUsHo1g0NKZ9EmokHSKfEnCt3D9GfAXcIj8mvht2Z+f3XA29P AjIdq+sei+yahJANaFkItj16ecooRMtVgJSs8+l39031SSwFVioqr0OALcX4e0TK83a0I JA+PpbLkgeA2FZJRjUgNbcaRQW40xPFTeCxxIPZ1Ni7599R0/wPgMP8NROQtGKBxHtQ== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (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.kernel.org (Postfix) with ESMTPS id 457661F000C7; Fri, 13 Nov 2026 22:33:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794609214; bh=SVUoyJCmjOfWaoa4/ZIG/PW30Z2w09I5kCJhkQJiNH4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=Uz3Gf3IOKNKbUDyvkF5yaDg8wQsDqi0rMBuduIekeoCD/6A9UioyqL7rVKrZWmlU8 FPl/GU+zv7gx4EJSnDFcwHjbqhaOClEIgUe2nWh4h2pM5ac6BUYUWEOwFaWQnzBs1p A/+U8KCS3QGNcuu3eBCtdPxGnKIvHYH0lXJyPEdqPGCefT4Vgx6gAZ2/kpl/yRUg8b FmdzAGoGQ2de11gM7oYElfJWc3dwWStWBbjj5PwezeDNoX1qx71pACm1jKbjLXNBcL aFWX3O2lNarTBWsEsFRxgKhMrXWyoqyp/MNRbpaZ8xOMohCJOC1TFF1CbUo8wNpLA0 EL/bAMhFVWQFA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id C646149B60; Fri, 13 Nov 2026 22:33:32 +0000 (UTC) From: Han Gao via B4 Relay Date: Sat, 14 Nov 2026 06:33:29 +0800 Subject: [PATCH 03/19] dt-bindings: interrupt-controller: add the Allwinner V861 PLIC X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261114-v861-v1-3-eb71ec3ee523@iscas.ac.cn> References: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> In-Reply-To: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guo Ren , Thomas Gleixner , Radu Rendec , Samuel Holland , Daniel Lezcano , Anup Patel , Han Gao , Stephen Boyd , Brian Masney , Jerome Brunet , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Philipp Zabel , Alexandre Belloni , Maxime Ripard , Linus Walleij , Andre Przywara Cc: Han Gao , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Conor Dooley , devicetree@vger.kernel.org, linux-csky@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, linux-gpio@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794609209; l=972; i=gaohan@iscas.ac.cn; s=20261021; h=from:subject:message-id; bh=cSnoa1dpGjZSXjdnCsHi40WSrs62RIT7HSiX9HoaPgc=; b=iUCPT/4oCEjTnz7lZ0cOcZBIisCUgfbo9jK2u2Xc9FyQvXvPzQoULCXlDT0a+Q1dNOOOi9xgL MKKxhwkgxw9CXLKvgiG+vXeQx0tfqqYzy1tVyBu4gG6x4SKQKLVJ3ZW X-Developer-Key: i=gaohan@iscas.ac.cn; a=ed25519; pk=J8WHEK3filS86QaCaIHDGafqhxKyQ4K7+vFgRirTIiY= X-Endpoint-Received: by B4 Relay for gaohan@iscas.ac.cn/20261021 with auth_id=1262 X-Original-From: Han Gao Reply-To: gaohan@iscas.ac.cn X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [3.31 / 15.00]; RBL_SENDERSCORE(2.00)[172.105.105.114:from]; SUSPICIOUS_RECIPS(1.50)[]; MAILLIST(-0.18)[generic]; BAD_REP_POLICIES(0.10)[]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; TAGGED_RCPT(0.00)[dt,clk]; HAS_REPLYTO(0.00)[gaohan@iscas.ac.cn]; DBL_BLOCKED_OPENRESOLVER(0.00)[tor.lore.kernel.org:helo,tor.lore.kernel.org:rdns,iscas.ac.cn:replyto,iscas.ac.cn:email]; RCPT_COUNT_TWELVE(0.00)[38]; FORGED_SENDER_MAILLIST(0.00)[]; FREEMAIL_CC(0.00)[gmail.com,lists.infradead.org,vger.kernel.org,sifive.com,kernel.org,lists.linux.dev]; R_DKIM_ALLOW(0.00)[kernel.org:s=k20260515]; FROM_NEQ_ENVFROM(0.00)[devnull@kernel.org,linux-sunxi@lists.linux.dev]; TAGGED_FROM(0.00)[bounces-27597-noreply=patchwork.local,gaohan.iscas.ac.cn]; R_SPF_ALLOW(0.00)[+ip4:172.105.105.114]; DKIM_TRACE(0.00)[kernel.org:+]; TO_DN_SOME(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.103.45.18:received,100.77.114.92:received,100.80.115.77:received]; ARC_ALLOW(0.00)[subspace.kernel.org:s=arc20261015:i=3]; DMARC_POLICY_ALLOW(0.00)[kernel.org,quarantine]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; ASN(0.00)[asn:63949, ipnet:172.105.96.0/20, country:SG]; FREEMAIL_TO(0.00)[kernel.org,dabbelt.com,eecs.berkeley.edu,ghiti.fr,rendec.net,sifive.com,brainfault.org,iscas.ac.cn,redhat.com,baylibre.com,gmail.com,sholland.org,pengutronix.de,bootlin.com,arm.com]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.105.105.114:from] X-Rspamd-Queue-Id: 4A65B1C50BD X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX From: Han Gao The V861 uses the XuanTie C900 PLIC implementation, like the D1. Add an SoC-specific compatible with "thead,c900-plic" as the fallback. Signed-off-by: Han Gao Reviewed-by: GUO Ren (XuanTie) Acked-by: Conor Dooley --- .../devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml b/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml index cde4bb691897..6178fea9bbdc 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml +++ b/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml @@ -72,6 +72,7 @@ properties: - items: - enum: - allwinner,sun20i-d1-plic + - allwinner,sun252i-v861-plic - canaan,k230-plic - sophgo,cv1800b-plic - sophgo,cv1812h-plic From patchwork Fri Nov 13 22:33:30 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Han Gao via B4 Relay X-Patchwork-Id: 4079 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mxe881.netcup.net (Postfix) with ESMTPS id 1BC821C556C for ; Fri, 13 Nov 2026 23:33:48 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=kernel.org; spf=pass (sender IP is 172.232.135.74) smtp.mailfrom=linux-sunxi+bounces-27596-noreply=patchwork.local@lists.linux.dev smtp.helo=sto.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.232.135.74 as permitted sender) client-ip=172.232.135.74; envelope-from=linux-sunxi+bounces-27596-noreply=patchwork.local@lists.linux.dev; helo=sto.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id A890A61A399 for ; Fri, 13 Nov 2026 22:33:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609214; b=qxBJdyxDELQF+7vjpDn6Rg3JqECqAXt2YSNDHyHDqaURR1FexzN8rnFASt0DoJNgP1JQ 4xw50Zqw1w4zxOATrxmy9q2aiadkoQkyHMBANZHMhAH44yHV0Os+pfTBD662BZ0/ZmsGM bXvPwn3tu1Cr/NkwFPPIK8UNjhe666bnDCSaHim7L/38ERvJfp95sYs8VLqRI7fDSqs5I /wsp6xWg/PaGSK/Mcl3l/wI0lZinDuIzHBK/BiSpGhMBgDXNCfPGs+1HlRg3ySxvZKbw3 FuujIzLszSwQDn+itplci12n/zQ5nSbV/0NEX3ddaIysAGBecfkevIcUNS0p1iLTQCQ== ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609214; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=FXnRXapR/ACmXvl74Zn9qZ1hKnmDl0TJQLKYWII0Hho=; b=a6/t737UWxzSx+0lQQsV4HAgWI/PyLdnmgIvR6tKfuDu4nmGLbn2kX8tHY5AIQtm2ahJ 5WvNZMleJLHFcMPVM7cN7uTarFBVh3hCnlKvqSMBmRtQJuTvRPRxso0FEx0W4u2hz1/2L n3Akk4otwDQbbq4yU3zQRMKho33WKuA86ZNB8auKn636d7dD6cQ6kQLuL5pTigtVpvyBU 2MEOb2sOE/1Hdi8bMkF9wt8UmETBqTyy1G3m+6n5fviP14Y+tTbKYib9VZf4z3KxH6Aa8 TXA/+lkc6maKit3AMAoNnhK461rXkV31qP4yk3nuitoZUv3JE8Iw+N+/Bqa/pPVlVQg== ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ZSaWrleZ; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C2874606A8B0; Fri, 13 Nov 2026 22:33:34 +0000 (UTC) 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=ZSaWrleZ X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609214; b=zApcL6RJseDJQrcgRcXRGPzR26TPZioQCGWjd7/Hem2JU0UCaqq3ABss5ZNA2jIaiigR OUKDaZ3KV73PVNsHLLv5xacUcsrsU4mCMr/j4lDOFEJB+8kuRpvZP7YShwlly6aZPkCp4 Io93raMUK03pziHy4qATY1U7h7EiKYFLHEtib76aQtjl8c2GJnii5wNdrNtBImrj3/Qc8 91LHhPwTSLDilsAFwKbCKorXh7182LmsnpI9+4SkBs6PvulM2KnJpq+swRasNCz+R+hgU e7ohaSn+keDLiaR3egSAQxp+mG1aN4TTP7j5gEVBzxyEfrNCYkGfQ1gUUBD927aVOGw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609214; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=FXnRXapR/ACmXvl74Zn9qZ1hKnmDl0TJQLKYWII0Hho=; b=m+kJqpE27Wu64G5T22u6CWz8JaXtWgnM3QufBkLSRggMD8CzlMaSKETV7F7coPp3cuX+ t8uaaFzvoPdOo27rMQ4blXviX0UfIOewrr7CuveNnSswTGc7rHfuv3B8SFE1HUrMrMXys TTLvTUiko1Q20TyUd3tIrpMrFt2qtAHJPlDA4hvOmqWIHZ3624i45mUMto8uJxelLYAap BQqsc9VqEot/Sr+WvEEHehJ1lM7Hyfe2js9d0bq9HiSr57qsxS2hIeYIFxwK+R/szXVog UnkrE3M1tXGaYjs5G/wY/07Xy7XO3iADtnmvCt3W4Q+OXNzj2YHdkXoPCUiYUtSUpyw== 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=ZSaWrleZ; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 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 90A0A606A33E; Fri, 13 Nov 2026 22:33:34 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1794609214; b=LL0+xU0Hk49TYqE4mSK30ED674Aappii5XdoxNd5rLsVfhaCXZUYZS3xFG7emavqEdqF xT1WZuiSzmimQgdSlClnCxIzMxAXkNj56qTCShi5wsFZqz10/upy+QguU8AkljfTgAFJC /gojXZSjWYZWRzauL4GjR7bwdu72YKNAgyWLny0ii8LOTqApZSWd2QxY9wkSqlBF+pWfG a7KvP8dBet/eCjoQjuVKaayMRLgQs/6Dfr0uMLCAf/87yzE/gC0Y9B+v+06TDGzdeJqWe z2l501+UaJkUAXLOwBSxwtmI5PCmlZt5Ev5mte9uPlCCb23gbpDw4lEkzg4jraKVX/A== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1794609214; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=FXnRXapR/ACmXvl74Zn9qZ1hKnmDl0TJQLKYWII0Hho=; b=h6DMezUrutDfvBx8t9bJ9CZ8bn2Llq3Q7R7TuJtQ/B557PnOhCPr5i14W+x//Sb0XxT7 aKd6q1FE7/PjbHLeh8t+PamSjPB1sC8984dXNe5uUAQaVF7aKb2Sxjiykv8+LkvmIr/G2 uf+87ivg3z79ciwmxG5gWlc3QFPfk8ULmcXEHhLxJj5pW20wgWTrMWpN1HDFo9wzFJHnJ adexuAOWx/zy94dAZq3upX+0rT3pJ7wZz8ktKfP2I1QMeDXRkHtRkcTWitReioYvlua6s W2pLmiSkYZtdPi2XL1xirKz63e4cavmou+xUJ1KadpfjlexP39iDZO2Cf1vLKLodKyg== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (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.kernel.org (Postfix) with ESMTPS id 5B5901F000C8; Fri, 13 Nov 2026 22:33:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794609214; bh=FXnRXapR/ACmXvl74Zn9qZ1hKnmDl0TJQLKYWII0Hho=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=ZSaWrleZdP2TClBBvnSdSUTj9K12e2hyxGRYW/o6fsHOcrxu9E6XbfBPf+zug17/A S0pLc74kJ02cXFo6IlUCeHhjweS5hBe661tAz8eBRnRmHk0YbqQUMb3XZGnd8W0DYV Z72LYyYLFvHWos/KHbL5iLoKQHk8ptf1Sf8TWMnK+EHYeAdJcS5Vo+M+0QcAyVGw8p 8CY4tgEGRQ8ds6NyL6g4aEKHHfSRIQiF1QqFdMFoIBAvZVDwSb//XoUWMgd9ZIWSxB 0D6arjUiTfghJ8NS5yV2Zxb3r/IZdZYquDNwnJ1cOMk11UbhuDVcY0cJ7Li03Ne3cs Pm8jDZbeqE5BA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id DB27949B64; Fri, 13 Nov 2026 22:33:32 +0000 (UTC) From: Han Gao via B4 Relay Date: Sat, 14 Nov 2026 06:33:30 +0800 Subject: [PATCH 04/19] dt-bindings: timer: add the Allwinner V861 CLINT X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261114-v861-v1-4-eb71ec3ee523@iscas.ac.cn> References: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> In-Reply-To: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guo Ren , Thomas Gleixner , Radu Rendec , Samuel Holland , Daniel Lezcano , Anup Patel , Han Gao , Stephen Boyd , Brian Masney , Jerome Brunet , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Philipp Zabel , Alexandre Belloni , Maxime Ripard , Linus Walleij , Andre Przywara Cc: Han Gao , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Conor Dooley , devicetree@vger.kernel.org, linux-csky@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, linux-gpio@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794609209; l=884; i=gaohan@iscas.ac.cn; s=20261021; h=from:subject:message-id; bh=OLe62R4yWCrvtAQgr9InOXGE/QFfhE/9P80Dh0A9I2g=; b=Xvqr8a2EJZbnFzLuvqkhI3hzv9a9jGyJfrPeld/SLx1941Dk4yoln97G7R4RW2n8k8QP2TjYY Im7cRBo3xgcC9HCqAUBv0mALJbyrgCjcRxKx3XGE9mZSwGgfteZZi6B X-Developer-Key: i=gaohan@iscas.ac.cn; a=ed25519; pk=J8WHEK3filS86QaCaIHDGafqhxKyQ4K7+vFgRirTIiY= X-Endpoint-Received: by B4 Relay for gaohan@iscas.ac.cn/20261021 with auth_id=1262 X-Original-From: Han Gao Reply-To: gaohan@iscas.ac.cn X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [3.31 / 15.00]; RBL_SENDERSCORE(2.00)[172.232.135.74:from]; SUSPICIOUS_RECIPS(1.50)[]; MAILLIST(-0.18)[generic]; BAD_REP_POLICIES(0.10)[]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; R_DKIM_ALLOW(0.00)[kernel.org:s=k20260515]; FROM_HAS_DN(0.00)[]; TAGGED_RCPT(0.00)[dt,clk]; HAS_REPLYTO(0.00)[gaohan@iscas.ac.cn]; DBL_BLOCKED_OPENRESOLVER(0.00)[sto.lore.kernel.org:helo,sto.lore.kernel.org:rdns,iscas.ac.cn:replyto,iscas.ac.cn:email]; RCPT_COUNT_TWELVE(0.00)[38]; FORGED_SENDER_MAILLIST(0.00)[]; FREEMAIL_CC(0.00)[gmail.com,lists.infradead.org,vger.kernel.org,sifive.com,kernel.org,lists.linux.dev]; RCVD_COUNT_FIVE(0.00)[6]; FROM_NEQ_ENVFROM(0.00)[devnull@kernel.org,linux-sunxi@lists.linux.dev]; TAGGED_FROM(0.00)[bounces-27596-noreply=patchwork.local,gaohan.iscas.ac.cn]; R_SPF_ALLOW(0.00)[+ip4:172.232.135.74]; DKIM_TRACE(0.00)[kernel.org:+]; TO_DN_SOME(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.103.45.18:received,100.77.114.92:received,100.80.115.77:received]; ARC_ALLOW(0.00)[kernel.org:s=arc20260519:i=3]; DMARC_POLICY_ALLOW(0.00)[kernel.org,quarantine]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; ASN(0.00)[asn:63949, ipnet:172.232.128.0/19, country:SG]; FREEMAIL_TO(0.00)[kernel.org,dabbelt.com,eecs.berkeley.edu,ghiti.fr,rendec.net,sifive.com,brainfault.org,iscas.ac.cn,redhat.com,baylibre.com,gmail.com,sholland.org,pengutronix.de,bootlin.com,arm.com]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.232.135.74:from] X-Rspamd-Queue-Id: 1BC821C556C X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX From: Han Gao The V861 uses the XuanTie C900 CLINT implementation, like the D1. Add an SoC-specific compatible with "thead,c900-clint" as the fallback. Signed-off-by: Han Gao Reviewed-by: GUO Ren (XuanTie) Acked-by: Conor Dooley --- Documentation/devicetree/bindings/timer/sifive,clint.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.yaml b/Documentation/devicetree/bindings/timer/sifive,clint.yaml index d53f52e80d88..313fb39bd453 100644 --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml @@ -49,6 +49,7 @@ properties: - items: - enum: - allwinner,sun20i-d1-clint + - allwinner,sun252i-v861-clint - canaan,k230-clint - sophgo,cv1800b-clint - sophgo,cv1812h-clint From patchwork Fri Nov 13 22:33:31 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Han Gao via B4 Relay X-Patchwork-Id: 4086 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mxe881.netcup.net (Postfix) with ESMTPS id F29D91C50BD for ; Fri, 13 Nov 2026 23:34:13 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=kernel.org; spf=pass (sender IP is 172.234.253.10) smtp.mailfrom=linux-sunxi+bounces-27603-noreply=patchwork.local@lists.linux.dev smtp.helo=sea.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.234.253.10 as permitted sender) client-ip=172.234.253.10; envelope-from=linux-sunxi+bounces-27603-noreply=patchwork.local@lists.linux.dev; helo=sea.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 40E04E14AB for ; Fri, 13 Nov 2026 22:33:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609219; b=3KvjpRdhqOdvMaGerA1SnoSZm0QXalKLaXJ5AAjqGUY8Mw/2GaQcG4xT3QuDbnrok3Bu /jIgXCTAMmwq6INg6bxB60vEPvSoUI4md7JGXGJcVC9Y5gVwjFOLFQHUgL/YDIaNuz+Zf 0y3rqLLLqodCPdO4bIiff5eLrLSdNORDK+Klj0olkPJtMoyng+kKhyJ3JAXAnWXpqrxA5 U47GBG3mfyFnpbVvmjY8mRGrYuPIL7lVnJO+hHmPZ7G1GwiKH5IXGvtLqU4Hq401WjibF 6UhaTXo1WV1xRgG5nJzRE8kvGamCzWG5eq9uGzhgUU6FwrWSyZxv9yNTj8qyA9mOsIw== ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609219; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=rKQV6wNlpREwEitqJapxhj1pAkJAxquiEMOdwZxP5Fw=; b=MfVfaW1g9bYazKkBmO2ezMpdtPzqM6s/ioJAzKVWYsOmiyZBVhU1Oyn98VYwg+zImvKK KXm8wKFfnvX2DvFVTQSYt4Y1vlNK/wiQ71UoKhUXL2Gym8fqqlV0fAok5rWgG3ECainn/ f85RAEFHw1kUxLqM+3Fsh4HVrnRHU4s9YSh8aXBEMXbIgVJvk8S/nsDmeojg6pzlYsAS4 ZAXfXn3HyFLETkC2m0rALhzPkwfKC2uC79N7Lip+SVafxOWhf3cMflo48NMFnCVLWsjMZ Oh1q/3N+vVdxjLbCujNcNQD2O8g86N55K18c2DJcyDYv3HqUep5zVHq+AALI8C96Eug== ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=eDSgqPyL; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 02D4F60A3822; Fri, 13 Nov 2026 22:33:39 +0000 (UTC) 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=eDSgqPyL X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609218; b=oK/WpIFLC6vpLMjudGHvCGtxLfqWX01Fbja8aM0/MQp7cvkSgP8owvwF7VPoHbWUlejV 8XRrcgAkzyS7/YS7nID5J8BCGXinAtg+J6LdGkASBA7wKBgG7furP4S0zUxon8X73uQk/ vuCVBsSY2q0E1aY58u5RmgMXfrQgnyVJ3/9hhaOKQN7QGNRmg7LZfUEK6wKBfoGeDIJKZ 5MIIRvsRA67UwVzOFRzqUBMAeaIgsWWsKt992Kst0wf+0SVRRyAwZcHtAa1ySBzyndoJZ uz72F31RhtH3PH7PTYH17Iix8BKujZLQBL0hEUtLQP5M/1NUD0op5m2LoF4quIgAWhg== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609218; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=rKQV6wNlpREwEitqJapxhj1pAkJAxquiEMOdwZxP5Fw=; b=GRHx614jxQgnDmEyiL6Cvlsk/RKQcXY2Tmfc+TdvtZJ/hDCbo49wZP5oifWGHVHkoAai 4Vtvcp2rfWZ+9RY4+vXX6NCI8zX5tnp8MEQKnZ9whcF/EujXfM55jQNSzJ88Jlm5QGWVv CgS5ORdL9cxTTt9PmcBo+/Ex3p6EEyeT1Wa8QldnaadYa88fQ8hTHTY0sL5HLBPBZjfKO sxW5R+X9lmQEJRhX/fdGvMAGFmOsNjcBxi/JZxFiplTNHRwLxskR6kWXpzl9YtI6AmIME TjWpJbBgIhi2b5QdX5TKNacnq1PW3BFJUTEoEHSjMqJ1Lo1ZUiENw2UGnUwsNA/aV2w== 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=eDSgqPyL; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 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 CCD19606A8B1; Fri, 13 Nov 2026 22:33:38 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1794609218; b=cLLb3o4KW7YQpCrMWuo2BIWDXi3Ej0fbYUWlJ9t/NY8HBszssql2zeX/TVM4VIQKbxRD Fk7IfB4oD/FrLE8hiaR3Jl7wnMVu+SqRDeTcXxMg8tr5puJtGX8rSNJ1BLF94VDGWpYMv JDESoNlT/b51FxB6iEpaM6MHZNlnVS+6UGtxmO+aN/bPug+lHpiZB5r0/CsiJxx9cXtFq DXWBRdKkJyuYGWZ9iSbnhAGNAmXfcxHe+pd0LQz3s9S0S5Gp/x4U1pOp5anYHnZXyTZe/ 6f9Su+XT6fe7iIwFNbSg/6SYN9eaK/fCxwO8DZQaixan5gQkD68T0NyJRDVBpgzK9QQ== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1794609218; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=rKQV6wNlpREwEitqJapxhj1pAkJAxquiEMOdwZxP5Fw=; b=H6Qz75yyzYmy3MMLIo21SHtxMpl5uoK7vNknikUotYXrnG7lpYCiaKvWpPurZQ+Rgkwh CqsZqzcvoxOYvuQz2NDRTRvhE88VMHUYIn76TxX9iQs6p46TNx2csVDsN/JVUP3XCJ+Px TEbYYtJL/31shhOheDcfiUpX9wP74HTGS8BgMt2pmiHlZAPvQafcmxBRkomWBr8CzP44i 2oxdwU3NqMsKO8yWesp6gyZvIbrq8y2Sepuurw+WZvrtuLCxpzEvB8C7WClAAJQ+IsPua p6tMdXq13JdyEBwO2kIpfZjUa6IxKM7FtOYDUxuGduslZ+MRZSof5L2cCt3zy67G0NQ== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (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.kernel.org (Postfix) with ESMTPS id 5FFA41F000C9; Fri, 13 Nov 2026 22:33:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794609218; bh=rKQV6wNlpREwEitqJapxhj1pAkJAxquiEMOdwZxP5Fw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=eDSgqPyLmU1PjZQR32Ql4yqTdvmE6Hwi23uwU2IoU5bjbxo1FjhSCn1CVJIkoaIby OKZDW9/A2X5mKvD7F+DY4BIQn0Vl1NFpe42/14UpWMeohXdsyCTNwVmjPL75CnljwR xuXKf/qcHoqz/NV9HuZFVIX6yqbMKjGbtN4z9Koc+lG6m3iTc7TP+PW4vhq75/XNcH T+fWq+Yp06L60MxPo5wyORET29j2Scx8fIP5FFHUBdFYB+jU7wB9O0ZnAxXxyt8xjI CC5rn91s+VjP3Z5rkl05RZaYPOQuUK0ohQEMfYhY3kppwfPyodCD6KaMgwNtDUrzVo 4Xao4iorwOnmA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id EFCE049B68; Fri, 13 Nov 2026 22:33:32 +0000 (UTC) From: Han Gao via B4 Relay Date: Sat, 14 Nov 2026 06:33:31 +0800 Subject: [PATCH 05/19] dt-bindings: clock: sunxi-ng: document the Allwinner V861 CCUs X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261114-v861-v1-5-eb71ec3ee523@iscas.ac.cn> References: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> In-Reply-To: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guo Ren , Thomas Gleixner , Radu Rendec , Samuel Holland , Daniel Lezcano , Anup Patel , Han Gao , Stephen Boyd , Brian Masney , Jerome Brunet , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Philipp Zabel , Alexandre Belloni , Maxime Ripard , Linus Walleij , Andre Przywara Cc: Han Gao , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Conor Dooley , devicetree@vger.kernel.org, linux-csky@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, linux-gpio@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794609209; l=9862; i=gaohan@iscas.ac.cn; s=20261021; h=from:subject:message-id; bh=X6amVifX6wTJABP+6L3zVQlUeUCCFovpXLSux1h5A9k=; b=LmCm9nqfiu9N0qGbfs5+yqm7KNaE4hFFBfHVT4pJugGV8Tb151nx/LUh7lGpNUtcFLazVJaUp cD2aVCDe+XeBYGOj6NKiIBvccDWYy9a/NnL1UWTJKCx5OQ19DB9CtWR X-Developer-Key: i=gaohan@iscas.ac.cn; a=ed25519; pk=J8WHEK3filS86QaCaIHDGafqhxKyQ4K7+vFgRirTIiY= X-Endpoint-Received: by B4 Relay for gaohan@iscas.ac.cn/20261021 with auth_id=1262 X-Original-From: Han Gao Reply-To: gaohan@iscas.ac.cn X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [3.31 / 15.00]; RBL_SENDERSCORE(2.00)[172.234.253.10:from]; SUSPICIOUS_RECIPS(1.50)[]; MAILLIST(-0.18)[generic]; BAD_REP_POLICIES(0.10)[]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; FROM_HAS_DN(0.00)[]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; TAGGED_RCPT(0.00)[dt,clk]; DBL_PROHIBIT(0.00)[0.30.136.104:email]; RCPT_COUNT_TWELVE(0.00)[38]; FORGED_SENDER_MAILLIST(0.00)[]; R_DKIM_ALLOW(0.00)[kernel.org:s=k20260515]; FREEMAIL_CC(0.00)[gmail.com,lists.infradead.org,vger.kernel.org,sifive.com,kernel.org,lists.linux.dev]; DBL_BLOCKED_OPENRESOLVER(0.00)[sea.lore.kernel.org:helo,sea.lore.kernel.org:rdns,iscas.ac.cn:replyto,iscas.ac.cn:email,devicetree.org:url]; HAS_REPLYTO(0.00)[gaohan@iscas.ac.cn]; RCVD_COUNT_FIVE(0.00)[6]; ARC_ALLOW(0.00)[kernel.org:s=arc20260519:i=3]; DKIM_TRACE(0.00)[kernel.org:+]; DMARC_POLICY_ALLOW(0.00)[kernel.org,quarantine]; R_SPF_ALLOW(0.00)[+ip4:172.234.253.10]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.77.114.92:received,100.103.45.18:received,100.80.115.77:received]; TO_DN_SOME(0.00)[]; FROM_NEQ_ENVFROM(0.00)[devnull@kernel.org,linux-sunxi@lists.linux.dev]; FREEMAIL_TO(0.00)[kernel.org,dabbelt.com,eecs.berkeley.edu,ghiti.fr,rendec.net,sifive.com,brainfault.org,iscas.ac.cn,redhat.com,baylibre.com,gmail.com,sholland.org,pengutronix.de,bootlin.com,arm.com]; MIME_TRACE(0.00)[0:+]; TAGGED_FROM(0.00)[bounces-27603-noreply=patchwork.local,gaohan.iscas.ac.cn]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; ASN(0.00)[asn:63949, ipnet:172.234.224.0/19, country:SG]; RCVD_TLS_LAST(0.00)[]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.234.253.10:from] X-Rspamd-Queue-Id: F29D91C50BD X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX From: Han Gao The V861 has a main CCU and a PRCM CCU. Add the binding and the clock and reset indices for both. Signed-off-by: Han Gao --- .../bindings/clock/allwinner,sun252i-v861-ccu.yaml | 99 ++++++++++++++++ include/dt-bindings/clock/sun252i-v861-ccu.h | 127 +++++++++++++++++++++ include/dt-bindings/clock/sun252i-v861-r-ccu.h | 14 +++ include/dt-bindings/reset/sun252i-v861-ccu.h | 55 +++++++++ include/dt-bindings/reset/sun252i-v861-r-ccu.h | 12 ++ 5 files changed, 307 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/allwinner,sun252i-v861-ccu.yaml b/Documentation/devicetree/bindings/clock/allwinner,sun252i-v861-ccu.yaml new file mode 100644 index 000000000000..29fc23ab2401 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/allwinner,sun252i-v861-ccu.yaml @@ -0,0 +1,99 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/allwinner,sun252i-v861-ccu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner V861 Clock Control Unit + +maintainers: + - Han Gao + +properties: + "#clock-cells": + const: 1 + + "#reset-cells": + const: 1 + + compatible: + enum: + - allwinner,sun252i-v861-ccu + - allwinner,sun252i-v861-r-ccu + + reg: + maxItems: 1 + + clocks: + minItems: 3 + maxItems: 4 + + clock-names: + minItems: 3 + maxItems: 4 + +required: + - "#clock-cells" + - "#reset-cells" + - compatible + - reg + - clocks + - clock-names + +allOf: + - if: + properties: + compatible: + enum: + - allwinner,sun252i-v861-ccu + + then: + properties: + clocks: + items: + - description: High Frequency Oscillator (usually at 24MHz) + - description: Low Frequency Oscillator (usually at 32kHz) + - description: Internal Oscillator + + clock-names: + items: + - const: hosc + - const: losc + - const: iosc + + - if: + properties: + compatible: + enum: + - allwinner,sun252i-v861-r-ccu + + then: + properties: + clocks: + items: + - description: High Frequency Oscillator (usually at 24MHz) + - description: Low Frequency Oscillator (usually at 32kHz) + - description: Internal Oscillator + - description: Peripherals PLL (200 MHz output) + + clock-names: + items: + - const: hosc + - const: losc + - const: iosc + - const: pll-periph + +additionalProperties: false + +examples: + - | + clock-controller@2001000 { + compatible = "allwinner,sun252i-v861-ccu"; + reg = <0x02001000 0x1000>; + clocks = <&osc24M>, <&rtc 0>, <&rtc 2>; + clock-names = "hosc", "losc", "iosc"; + #clock-cells = <1>; + #reset-cells = <1>; + }; + +... diff --git a/include/dt-bindings/clock/sun252i-v861-ccu.h b/include/dt-bindings/clock/sun252i-v861-ccu.h new file mode 100644 index 000000000000..1123b894a493 --- /dev/null +++ b/include/dt-bindings/clock/sun252i-v861-ccu.h @@ -0,0 +1,127 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */ +/* + * Copyright (c) 2026 Han Gao + */ + +#ifndef _DT_BINDINGS_CLK_SUN252I_V861_CCU_H_ +#define _DT_BINDINGS_CLK_SUN252I_V861_CCU_H_ + +#define CLK_PLL_DDR 0 +#define CLK_PLL_PERIPH0_4X 1 +#define CLK_PLL_PERIPH0_2X 2 +#define CLK_PLL_PERIPH0_800M 3 +#define CLK_PLL_PERIPH0_480M 4 +#define CLK_PLL_PERIPH0_600M 5 +#define CLK_PLL_PERIPH0_400M 6 +#define CLK_PLL_PERIPH0_300M 7 +#define CLK_PLL_PERIPH0_200M 8 +#define CLK_PLL_PERIPH0_160M 9 +#define CLK_PLL_PERIPH0_150M 10 +#define CLK_PLL_VIDEO_8X 11 +#define CLK_PLL_VIDEO_4X 12 +#define CLK_PLL_VIDEO_2X 13 +#define CLK_PLL_VIDEO_1X 14 +#define CLK_PLL_CSI_8X 15 +#define CLK_PLL_CSI_4X 16 +#define CLK_PLL_CSI_2X 17 +#define CLK_PLL_CSI_1X 18 +#define CLK_PLL_AUDIO 19 +#define CLK_PLL_AUDIO_DIV2 20 +#define CLK_PLL_AUDIO_DIV3 21 +#define CLK_PLL_AUDIO_DIV5 22 +#define CLK_PLL_AUDIO_4X 23 +#define CLK_PLL_AUDIO_1X 24 +#define CLK_PLL_NPU_8X 25 +#define CLK_PLL_NPU_4X 26 +#define CLK_PLL_NPU_2X 27 +#define CLK_PLL_NPU_1X 28 +#define CLK_AHB 29 +#define CLK_APB0 30 +#define CLK_APB1 31 +#define CLK_APB_UART 32 +#define CLK_DE 33 +#define CLK_BUS_DE 34 +#define CLK_G2D 35 +#define CLK_BUS_G2D 36 +#define CLK_CE 37 +#define CLK_BUS_CE 38 +#define CLK_BUS_CE_SYS 39 +#define CLK_VE 40 +#define CLK_BUS_VE 41 +#define CLK_NPU 42 +#define CLK_BUS_NPU 43 +#define CLK_BUS_SGDMA 44 +#define CLK_BUS_NDMA 45 +#define CLK_BUS_MSGBOX0 46 +#define CLK_BUS_MSGBOX1 47 +#define CLK_BUS_SPINLOCK 48 +#define CLK_BUS_HSTIMER 49 +#define CLK_AVS 50 +#define CLK_BUS_TIMER 51 +#define CLK_BUS_DBG 52 +#define CLK_BUS_PWM 53 +#define CLK_DRAM 54 +#define CLK_MBUS 55 +#define CLK_MBUS_DMA 56 +#define CLK_MBUS_VE 57 +#define CLK_MBUS_CE 58 +#define CLK_MBUS_CSI 59 +#define CLK_MBUS_ISP 60 +#define CLK_MBUS_G2D 61 +#define CLK_BUS_DRAM 62 +#define CLK_MMC0 63 +#define CLK_MMC1 64 +#define CLK_MMC2 65 +#define CLK_BUS_MMC0 66 +#define CLK_BUS_MMC1 67 +#define CLK_BUS_MMC2 68 +#define CLK_PSRAM 69 +#define CLK_BUS_PSRAM 70 +#define CLK_BUS_UART0 71 +#define CLK_BUS_UART1 72 +#define CLK_BUS_UART2 73 +#define CLK_BUS_UART3 74 +#define CLK_BUS_I2C0 75 +#define CLK_BUS_I2C1 76 +#define CLK_BUS_I2C2 77 +#define CLK_BUS_I2C3 78 +#define CLK_SPI0 79 +#define CLK_SPI1 80 +#define CLK_SPI2 81 +#define CLK_SPIF 82 +#define CLK_BUS_SPI0 83 +#define CLK_BUS_SPI1 84 +#define CLK_BUS_SPI2 85 +#define CLK_BUS_SPIF 86 +#define CLK_GMAC_25M 87 +#define CLK_BUS_GMAC 88 +#define CLK_BUS_GPADC 89 +#define CLK_BUS_THS 90 +#define CLK_I2S0 91 +#define CLK_BUS_I2S0 92 +#define CLK_AUDIO_CODEC_DAC 93 +#define CLK_AUDIO_CODEC_ADC 94 +#define CLK_BUS_AUDIO_CODEC 95 +#define CLK_USB_OHCI0 96 +#define CLK_BUS_OHCI0 97 +#define CLK_BUS_EHCI0 98 +#define CLK_BUS_OTG 99 +#define CLK_BUS_DPSS_TOP 100 +#define CLK_TCON_LCD 101 +#define CLK_BUS_TCON_LCD 102 +#define CLK_CSI 103 +#define CLK_CSI_MCLK0 104 +#define CLK_CSI_MCLK1 105 +#define CLK_CSI_MCLK2 106 +#define CLK_BUS_CSI 107 +#define CLK_FANOUT_24M 108 +#define CLK_FANOUT_12M 109 +#define CLK_FANOUT_16M 110 +#define CLK_FANOUT_25M 111 +#define CLK_FANOUT_27M 112 +#define CLK_FANOUT_PCLK 113 +#define CLK_FANOUT0 114 +#define CLK_FANOUT1 115 +#define CLK_FANOUT2 116 + +#endif /* _DT_BINDINGS_CLK_SUN252I_V861_CCU_H_ */ diff --git a/include/dt-bindings/clock/sun252i-v861-r-ccu.h b/include/dt-bindings/clock/sun252i-v861-r-ccu.h new file mode 100644 index 000000000000..41eaf8aab2c0 --- /dev/null +++ b/include/dt-bindings/clock/sun252i-v861-r-ccu.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */ +/* + * Copyright (c) 2026 Han Gao + */ + +#ifndef _DT_BINDINGS_CLK_SUN252I_V861_R_CCU_H_ +#define _DT_BINDINGS_CLK_SUN252I_V861_R_CCU_H_ + +#define CLK_R_AHB 0 +#define CLK_R_APB0 1 +#define CLK_BUS_R_PPU 2 +#define CLK_BUS_R_RTC 3 + +#endif /* _DT_BINDINGS_CLK_SUN252I_V861_R_CCU_H_ */ diff --git a/include/dt-bindings/reset/sun252i-v861-ccu.h b/include/dt-bindings/reset/sun252i-v861-ccu.h new file mode 100644 index 000000000000..4e0245c6c99a --- /dev/null +++ b/include/dt-bindings/reset/sun252i-v861-ccu.h @@ -0,0 +1,55 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */ +/* + * Copyright (c) 2026 Han Gao + */ + +#ifndef _DT_BINDINGS_RST_SUN252I_V861_CCU_H_ +#define _DT_BINDINGS_RST_SUN252I_V861_CCU_H_ + +#define RST_MBUS 0 +#define RST_BUS_DE 1 +#define RST_BUS_G2D 2 +#define RST_BUS_CE 3 +#define RST_BUS_CE_SYS 4 +#define RST_BUS_VE 5 +#define RST_BUS_NPU 6 +#define RST_BUS_SGDMA 7 +#define RST_BUS_NDMA 8 +#define RST_BUS_MSGBOX0 9 +#define RST_BUS_MSGBOX1 10 +#define RST_BUS_SPINLOCK 11 +#define RST_BUS_HSTIMER 12 +#define RST_BUS_TIMER 13 +#define RST_BUS_DBG 14 +#define RST_BUS_PWM 15 +#define RST_BUS_DRAM 16 +#define RST_BUS_MMC0 17 +#define RST_BUS_MMC1 18 +#define RST_BUS_MMC2 19 +#define RST_BUS_PSRAM 20 +#define RST_BUS_UART0 21 +#define RST_BUS_UART1 22 +#define RST_BUS_UART2 23 +#define RST_BUS_UART3 24 +#define RST_BUS_I2C0 25 +#define RST_BUS_I2C1 26 +#define RST_BUS_I2C2 27 +#define RST_BUS_I2C3 28 +#define RST_BUS_SPI0 29 +#define RST_BUS_SPI1 30 +#define RST_BUS_SPI2 31 +#define RST_BUS_SPIF 32 +#define RST_BUS_GMAC 33 +#define RST_BUS_GPADC 34 +#define RST_BUS_THS 35 +#define RST_BUS_I2S0 36 +#define RST_BUS_AUDIO_CODEC 37 +#define RST_USB_PHY0 38 +#define RST_BUS_OHCI0 39 +#define RST_BUS_EHCI0 40 +#define RST_BUS_OTG 41 +#define RST_BUS_DPSS_TOP 42 +#define RST_BUS_TCON_LCD 43 +#define RST_BUS_CSI 44 + +#endif /* _DT_BINDINGS_RST_SUN252I_V861_CCU_H_ */ diff --git a/include/dt-bindings/reset/sun252i-v861-r-ccu.h b/include/dt-bindings/reset/sun252i-v861-r-ccu.h new file mode 100644 index 000000000000..ed0f3063df49 --- /dev/null +++ b/include/dt-bindings/reset/sun252i-v861-r-ccu.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */ +/* + * Copyright (c) 2026 Han Gao + */ + +#ifndef _DT_BINDINGS_RST_SUN252I_V861_R_CCU_H_ +#define _DT_BINDINGS_RST_SUN252I_V861_R_CCU_H_ + +#define RST_BUS_R_PPU 0 +#define RST_BUS_R_RTC 1 + +#endif /* _DT_BINDINGS_RST_SUN252I_V861_R_CCU_H_ */ From patchwork Fri Nov 13 22:33:32 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Han Gao via B4 Relay X-Patchwork-Id: 4093 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mxe881.netcup.net (Postfix) with ESMTPS id 824351C50BD for ; Fri, 13 Nov 2026 23:35:19 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=kernel.org; spf=pass (sender IP is 172.234.253.10) smtp.mailfrom=linux-sunxi+bounces-27612-noreply=patchwork.local@lists.linux.dev smtp.helo=sea.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.234.253.10 as permitted sender) client-ip=172.234.253.10; envelope-from=linux-sunxi+bounces-27612-noreply=patchwork.local@lists.linux.dev; helo=sea.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id D75EF838EE for ; Fri, 13 Nov 2026 22:34:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609225; b=Y9zPMR43pYLCy7xaEl2pUIB7uP4Vc4vVE3jKpScd/VCArSFJDHGX9LwVSot63hF9FUHq Cz3+ha9SMVuzM3gYsktK63VBjE/W6CbuOodHHZA5QpJEmHqUBhmiNknds8cXg2ukUE6N8 y+cJ9M/m8sw56Ba9iO5nmwFfwGzB89NWdjXwY5jBdI3Uhjbq37EsCYXiUaMZ+YcMs0t8n AoM0qc4buX+CeC0rRxzjfbd5bbvhRM7NSWKAQPZSMSOM2J6n7mjugdyp5v5idDGzYZqEp 9hrb/DxITXl3LvDTDprDwnM4SrvswF5NcUIxbMQyYE7fSkCQ57WUye3Ww5cCs0/I6YQ== ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609225; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=QArYaOiixsm43ALK1zVSeOOXJsNgqwGn+DsLvnurYEw=; b=inaWvLcOKpcvRzamFsomZ4exmIwGsHfUlRxFu5cFLCPOVtoBIotvHYFXdM0+gN0Li0br 0Wz81RYBFTSAmuID9oFtVlXVW12C/Xz4B9bNiBRhlxxqUhi7tS57bi9WhZSPa5ACph1YY x79iU593LO5Txr83fRRokHM5VPFmn3rcYDsT37CTIHMVRw08SAYJ4N9REN+wHeImKUw5x NiRhqr/8US68UUPwNO4ZqKpjJqAlylZZ3d9bEkC33YylJV8Mggj9NFwdTtuUPxXf3He2u +a8gDx78d84AaolU3YKgYm1wIIq214nR1KG4JFYlKHCBkw0E+0HcmWnVHk0SVKYlAOA== ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=EPYQFZL1; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3AE91606B7AB; Fri, 13 Nov 2026 22:33:45 +0000 (UTC) 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=EPYQFZL1 X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609225; b=XtC3LhO+WsGgeUIERbpNjWCrt0QwpObYE8Ol996NfY6xbOfHHwSFx56fXSALQ8hIIxQc bu0hxr+mBmTaY1gpAacVzSQ0HdPu5jj9ln/hGhbpHiHqjiDp1U3Rbzp4IdF7MaSF2rzBA e+fbibBYhsf/3ly2NvQW9TcaYnWk18WfQ6mqWE3HHV1AbB99AYN/YZld0CiSp5c8C9j5M mycgC7nLlOrd5jWxIFv99DgTM5Mm78o/+XuDtQOzqW5vkOmxlQkQZrUgzr1uh1nJG1Ruj evZ2bHIS/7CaePrnD8wyw+VDb3RSiqavvxF/nv5NKo9gpdqv4UzOFt0tFy1ptYl7s5Q== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609225; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=QArYaOiixsm43ALK1zVSeOOXJsNgqwGn+DsLvnurYEw=; b=n76k0ykzC1qCAQaE4sw6RcuDr9vBfaXRH04Xkx6V9N0mcUYAXdSUkHbnBUqFMLlZEe39 /i5/eXoduoZBZ3aWlBR69vqm4KC7F8vRBShUs6FWfzvdJZDgLlDVMqzMIbvgqn6IQMFRg IRdrcuN42vRv2f+UzhqGpNpc+rGjYt2ZAx9HE5dMJNkU87HJ2r53XItZeoMtB8jrFG0Nc NbR4hvMqm7jt/t0fUNn5phBp+vq1oTKvq9PyJ7/ATGYrrK7525X3NxKX5cb9KuUd1Lpdo D/18McXrRgUcVEwAR9gl8o9fUFn4ctt209bqD/2Vg6gmmRYOqTYbndhd8dXaQiltk8g== 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=EPYQFZL1; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 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 148B1606B7A6; Fri, 13 Nov 2026 22:33:45 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1794609224; b=cPJIsBJlgcMHXAgyNCSrpGahxqYrePk3ebUe7h/ds9g2d3xT2kZAWcKsn32Jmce0juqq K48aqWv+MHO0BtDAPX6j+aNA+7PxECXY9v2uxTn5XaQjovuvBb2hDzOtPUUSETG8z4EqG Grm7jbJ7wJzclqZ0x3YveYeWu4DP/NJqHgYgr3+kPMy5mfRufXrd79FKzo49hHaWhw6s9 tMAg4Dkh1KtZkcERKQxKq0zzhyBoJyr+Pz1oc8VQe8/oYQEU8wcVtS6YCFuqKepwRRrVl Bj7vemBB5mc4rfBbdrLZKwjQFq6iZEF/eFDc5S0JIS4VnZBlmMMmCBk+rU1DzemV1mQ== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1794609224; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=QArYaOiixsm43ALK1zVSeOOXJsNgqwGn+DsLvnurYEw=; b=F9YW8Q3REBjdgKf1MQniQB9lbmJXoelN9hAYE15mGJCTGvWbbkv+Qu4KyhzABhy1FnPQ B2Faux5g/AMDoMGosvbohh64PAGrkpAtV1X60sesMEc35KQVASoucLRHSsPLuS2QhMRKq IecWE3clZJSqoDYWS5hQaQAVmbrENGOCE7Z8x396+OpCmeZ1nlhVvA2XrKEXSyrsfj+EN Ua4z+nVXUv3/EPJaCujNClw+r9pg5Pa3iEttZZR035MiN9Uw3F1cv+cXGNkL1YOWBqREU Y/zofrBwNJ28OOyaMHVDA/qiL4sFcgLEUg3sTPD089qFo8hjLxi7wM4cjyr8VwJN3ag== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (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.kernel.org (Postfix) with ESMTPS id 6818F1F000CA; Fri, 13 Nov 2026 22:33:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794609224; bh=QArYaOiixsm43ALK1zVSeOOXJsNgqwGn+DsLvnurYEw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=EPYQFZL1mUUEA2101dncFJLnX2AMaZoZy0vOy+luKM/yxwbbtdDk95rPKxwyWSgIF zmUjJVv4VHKXNcyWeyx0gG2kDP2Gmwf8NuIKXQXNmPkvA9xGcKp1Y2NbQ9Qdu+Q8Wi WeUOZWHBvpG06tU1bhc7cYiCMpdhOPf2nPZtPLciuGZphwbM95txMJSeivWEw17qGO 2YGzZP62zzlM4bbP2ShE6vrG179D2UDTBv6ELBTIB0eoX8wkmRdvmeCldaCUfrMgIB LhpoQ1sU3Onti52G1ZWRSyU/9onv5ILdUA6RbOkKkWR3hwBQgfI0rXysHrWA3xrxUr dC3wQ+eoHs86A== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 1102049B6C; Fri, 13 Nov 2026 22:33:33 +0000 (UTC) From: Han Gao via B4 Relay Date: Sat, 14 Nov 2026 06:33:32 +0800 Subject: [PATCH 06/19] clk: sunxi-ng: add support for the Allwinner V861 CCU X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261114-v861-v1-6-eb71ec3ee523@iscas.ac.cn> References: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> In-Reply-To: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guo Ren , Thomas Gleixner , Radu Rendec , Samuel Holland , Daniel Lezcano , Anup Patel , Han Gao , Stephen Boyd , Brian Masney , Jerome Brunet , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Philipp Zabel , Alexandre Belloni , Maxime Ripard , Linus Walleij , Andre Przywara Cc: Han Gao , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Conor Dooley , devicetree@vger.kernel.org, linux-csky@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, linux-gpio@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794609209; l=40575; i=gaohan@iscas.ac.cn; s=20261021; h=from:subject:message-id; bh=dtTYHwD/NSgUZl2+pqcjUUVqCnZO4oVurJlbYdUoimw=; b=bTWi8/5SKNMyM0Yx0UE3OlwHMFjbcnyPUpHjVWk9XqehAer5hJHe13eBHb/htFZhbOFGmDPi1 GItybp26AXKCUk1iMxqn0owL8HEkU+V3pPPJ21LCcaayAKPfLlgazC9 X-Developer-Key: i=gaohan@iscas.ac.cn; a=ed25519; pk=J8WHEK3filS86QaCaIHDGafqhxKyQ4K7+vFgRirTIiY= X-Endpoint-Received: by B4 Relay for gaohan@iscas.ac.cn/20261021 with auth_id=1262 X-Original-From: Han Gao Reply-To: gaohan@iscas.ac.cn X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [3.31 / 15.00]; RBL_SENDERSCORE(2.00)[172.234.253.10:from]; SUSPICIOUS_RECIPS(1.50)[]; MAILLIST(-0.18)[generic]; BAD_REP_POLICIES(0.10)[]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; TAGGED_RCPT(0.00)[dt,clk]; R_DKIM_ALLOW(0.00)[kernel.org:s=k20260515]; FROM_HAS_DN(0.00)[]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; HAS_REPLYTO(0.00)[gaohan@iscas.ac.cn]; DBL_BLOCKED_OPENRESOLVER(0.00)[sea.lore.kernel.org:helo,sea.lore.kernel.org:rdns,iscas.ac.cn:replyto,iscas.ac.cn:email]; RCPT_COUNT_TWELVE(0.00)[38]; FORGED_SENDER_MAILLIST(0.00)[]; FREEMAIL_CC(0.00)[gmail.com,lists.infradead.org,vger.kernel.org,sifive.com,kernel.org,lists.linux.dev]; RCVD_COUNT_FIVE(0.00)[6]; FROM_NEQ_ENVFROM(0.00)[devnull@kernel.org,linux-sunxi@lists.linux.dev]; TAGGED_FROM(0.00)[bounces-27612-noreply=patchwork.local,gaohan.iscas.ac.cn]; R_SPF_ALLOW(0.00)[+ip4:172.234.253.10]; DKIM_TRACE(0.00)[kernel.org:+]; TO_DN_SOME(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.103.45.18:received,100.80.115.77:received,100.77.114.92:received]; ARC_ALLOW(0.00)[kernel.org:s=arc20260519:i=3]; DMARC_POLICY_ALLOW(0.00)[kernel.org,quarantine]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; ASN(0.00)[asn:63949, ipnet:172.234.224.0/19, country:SG]; FREEMAIL_TO(0.00)[kernel.org,dabbelt.com,eecs.berkeley.edu,ghiti.fr,rendec.net,sifive.com,brainfault.org,iscas.ac.cn,redhat.com,baylibre.com,gmail.com,sholland.org,pengutronix.de,bootlin.com,arm.com]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.234.253.10:from] X-Rspamd-Queue-Id: 824351C50BD X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX From: Han Gao Add the main CCU driver for the V861, based on the A523 one. The CPU PLL, the CPU subsystem clocks and the E907 clocks are left to the firmware. Unlike on the A523, the second divider of the 27 MHz output is a power of two. pll-audio-4x does not pass rate changes up, as its parent also feeds the UART clock mux. Signed-off-by: Han Gao --- drivers/clk/sunxi-ng/Kconfig | 10 + drivers/clk/sunxi-ng/Makefile | 2 + drivers/clk/sunxi-ng/ccu-sun252i-v861.c | 1117 +++++++++++++++++++++++++++++++ 3 files changed, 1129 insertions(+) diff --git a/drivers/clk/sunxi-ng/Kconfig b/drivers/clk/sunxi-ng/Kconfig index 6af2d020e03e..890a0cbb45b6 100644 --- a/drivers/clk/sunxi-ng/Kconfig +++ b/drivers/clk/sunxi-ng/Kconfig @@ -22,6 +22,16 @@ config SUN20I_D1_R_CCU default ARCH_SUNXI depends on MACH_SUN8I || RISCV || COMPILE_TEST +config SUN252I_V861_CCU + tristate "Support for the Allwinner V861 CCU" + default ARCH_SUNXI + depends on RISCV || COMPILE_TEST + help + Support for the main clock control unit of the Allwinner V861 + SoC. It provides the PLLs, the bus and module clocks and the + reset lines of most peripherals, so it is required on boards + based on this SoC. + config SUN50I_A64_CCU tristate "Support for the Allwinner A64 CCU" default ARCH_SUNXI diff --git a/drivers/clk/sunxi-ng/Makefile b/drivers/clk/sunxi-ng/Makefile index a1c4087d7241..01869330dc4e 100644 --- a/drivers/clk/sunxi-ng/Makefile +++ b/drivers/clk/sunxi-ng/Makefile @@ -27,6 +27,7 @@ sunxi-ccu-y += ccu_mp.o obj-$(CONFIG_SUNIV_F1C100S_CCU) += suniv-f1c100s-ccu.o obj-$(CONFIG_SUN20I_D1_CCU) += sun20i-d1-ccu.o obj-$(CONFIG_SUN20I_D1_R_CCU) += sun20i-d1-r-ccu.o +obj-$(CONFIG_SUN252I_V861_CCU) += sun252i-v861-ccu.o obj-$(CONFIG_SUN50I_A64_CCU) += sun50i-a64-ccu.o obj-$(CONFIG_SUN50I_A100_CCU) += sun50i-a100-ccu.o obj-$(CONFIG_SUN50I_A100_R_CCU) += sun50i-a100-r-ccu.o @@ -55,6 +56,7 @@ obj-$(CONFIG_SUN9I_A80_CCU) += sun9i-a80-usb-ccu.o suniv-f1c100s-ccu-y += ccu-suniv-f1c100s.o sun20i-d1-ccu-y += ccu-sun20i-d1.o sun20i-d1-r-ccu-y += ccu-sun20i-d1-r.o +sun252i-v861-ccu-y += ccu-sun252i-v861.o sun50i-a64-ccu-y += ccu-sun50i-a64.o sun50i-a100-ccu-y += ccu-sun50i-a100.o sun50i-a100-r-ccu-y += ccu-sun50i-a100-r.o diff --git a/drivers/clk/sunxi-ng/ccu-sun252i-v861.c b/drivers/clk/sunxi-ng/ccu-sun252i-v861.c new file mode 100644 index 000000000000..af84c49fbaf1 --- /dev/null +++ b/drivers/clk/sunxi-ng/ccu-sun252i-v861.c @@ -0,0 +1,1117 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (c) 2026 Han Gao + * + * Based on the A523 CCU driver: + * Copyright (C) 2023-2024 Arm Ltd. + */ + +#include +#include +#include +#include + +#include +#include + +#include "ccu_common.h" +#include "ccu_reset.h" + +#include "ccu_div.h" +#include "ccu_gate.h" +#include "ccu_mp.h" +#include "ccu_mux.h" +#include "ccu_nkmp.h" +#include "ccu_nm.h" + +static const struct clk_parent_data osc24M[] = { + { .fw_name = "hosc" } +}; + +/************************************************************************** + * PLLs * + **************************************************************************/ + +/* The CPU PLL at 0x000 is left to the firmware. */ + +#define SUN252I_V861_PLL_DDR_REG 0x010 +static struct ccu_nkmp pll_ddr_clk = { + .enable = BIT(27), + .lock = BIT(28), + .n = _SUNXI_CCU_MULT_MIN(8, 8, 11), + .m = _SUNXI_CCU_DIV(1, 1), /* input divider */ + .p = _SUNXI_CCU_DIV(0, 1), /* output divider */ + .common = { + .reg = SUN252I_V861_PLL_DDR_REG, + .hw.init = CLK_HW_INIT_PARENTS_DATA("pll-ddr", osc24M, + &ccu_nkmp_ops, + CLK_SET_RATE_GATE | + CLK_IS_CRITICAL), + }, +}; + +/* + * There is no clock output at the VCO rate (2.4 GHz). The outputs have their + * own dividers, so model them as divider clocks of the VCO. + */ +#define SUN252I_V861_PLL_PERIPH0_REG 0x020 +static struct ccu_nm pll_periph0_4x_clk = { + .enable = BIT(27), + .lock = BIT(28), + .n = _SUNXI_CCU_MULT_MIN(8, 8, 11), + .m = _SUNXI_CCU_DIV(1, 1), /* input divider */ + .common = { + .reg = SUN252I_V861_PLL_PERIPH0_REG, + .hw.init = CLK_HW_INIT_PARENTS_DATA("pll-periph0-4x", + osc24M, &ccu_nm_ops, + CLK_SET_RATE_GATE), + }, +}; + +static const struct clk_hw *pll_periph0_4x_hws[] = { + &pll_periph0_4x_clk.common.hw +}; + +static SUNXI_CCU_M_HWS(pll_periph0_2x_clk, "pll-periph0-2x", + pll_periph0_4x_hws, 0x020, 16, 3, 0); +static const struct clk_hw *pll_periph0_2x_hws[] = { + &pll_periph0_2x_clk.common.hw +}; + +static SUNXI_CCU_M_HWS(pll_periph0_800M_clk, "pll-periph0-800M", + pll_periph0_4x_hws, 0x020, 20, 3, 0); +static SUNXI_CCU_M_HWS(pll_periph0_480M_clk, "pll-periph0-480M", + pll_periph0_4x_hws, 0x020, 2, 3, 0); +static const struct clk_hw *pll_periph0_480M_hws[] = { + &pll_periph0_480M_clk.common.hw +}; + +static CLK_FIXED_FACTOR_HWS(pll_periph0_600M_clk, "pll-periph0-600M", + pll_periph0_2x_hws, 2, 1, 0); +static CLK_FIXED_FACTOR_HWS(pll_periph0_400M_clk, "pll-periph0-400M", + pll_periph0_2x_hws, 3, 1, 0); +static const struct clk_hw *pll_periph0_400M_hws[] = { + &pll_periph0_400M_clk.hw +}; + +static CLK_FIXED_FACTOR_HWS(pll_periph0_300M_clk, "pll-periph0-300M", + pll_periph0_2x_hws, 4, 1, 0); +static const struct clk_hw *pll_periph0_300M_hws[] = { + &pll_periph0_300M_clk.hw +}; + +static CLK_FIXED_FACTOR_HWS(pll_periph0_200M_clk, "pll-periph0-200M", + pll_periph0_400M_hws, 2, 1, 0); +static CLK_FIXED_FACTOR_HWS(pll_periph0_150M_clk, "pll-periph0-150M", + pll_periph0_300M_hws, 2, 1, 0); +static const struct clk_hw *pll_periph0_150M_hws[] = { + &pll_periph0_150M_clk.hw +}; + +static CLK_FIXED_FACTOR_HWS(pll_periph0_160M_clk, "pll-periph0-160M", + pll_periph0_480M_hws, 3, 1, 0); +static const struct clk_hw *pll_periph0_160M_hws[] = { + &pll_periph0_160M_clk.hw +}; + +/* + * The video, CSI and NPU PLLs share one layout: the 4x output divides the + * VCO by one or two, while the 2x and 1x outputs divide it by two and four. + */ +#define SUN252I_V861_PLL_VIDEO_REG 0x040 +static struct ccu_nm pll_video_8x_clk = { + .enable = BIT(27), + .lock = BIT(28), + .n = _SUNXI_CCU_MULT_MIN(8, 8, 11), + .m = _SUNXI_CCU_DIV(1, 1), /* input divider */ + .common = { + .reg = SUN252I_V861_PLL_VIDEO_REG, + .hw.init = CLK_HW_INIT_PARENTS_DATA("pll-video-8x", + osc24M, &ccu_nm_ops, + CLK_SET_RATE_GATE), + }, +}; + +static const struct clk_hw *pll_video_8x_hws[] = { + &pll_video_8x_clk.common.hw +}; + +static SUNXI_CCU_M_HWS(pll_video_4x_clk, "pll-video-4x", + pll_video_8x_hws, 0x040, 0, 1, 0); +static CLK_FIXED_FACTOR_HWS(pll_video_2x_clk, "pll-video-2x", + pll_video_8x_hws, 2, 1, 0); +static CLK_FIXED_FACTOR_HWS(pll_video_1x_clk, "pll-video-1x", + pll_video_8x_hws, 4, 1, 0); + +#define SUN252I_V861_PLL_CSI_REG 0x048 +static struct ccu_nm pll_csi_8x_clk = { + .enable = BIT(27), + .lock = BIT(28), + .n = _SUNXI_CCU_MULT_MIN(8, 8, 11), + .m = _SUNXI_CCU_DIV(1, 1), /* input divider */ + .common = { + .reg = SUN252I_V861_PLL_CSI_REG, + .hw.init = CLK_HW_INIT_PARENTS_DATA("pll-csi-8x", + osc24M, &ccu_nm_ops, + CLK_SET_RATE_GATE), + }, +}; + +static const struct clk_hw *pll_csi_8x_hws[] = { + &pll_csi_8x_clk.common.hw +}; + +static SUNXI_CCU_M_HWS(pll_csi_4x_clk, "pll-csi-4x", + pll_csi_8x_hws, 0x048, 0, 1, 0); +static CLK_FIXED_FACTOR_HWS(pll_csi_2x_clk, "pll-csi-2x", + pll_csi_8x_hws, 2, 1, 0); +static CLK_FIXED_FACTOR_HWS(pll_csi_1x_clk, "pll-csi-1x", + pll_csi_8x_hws, 4, 1, 0); + +/* + * The audio PLL VCO feeds three output dividers. Two further dividers, in + * the pre-divider register at 0xe00, derive the 4x and 1x audio clocks. + * Their alternative fractional dividers are not used, see the probe function. + */ +#define SUN252I_V861_PLL_AUDIO_REG 0x078 +static struct ccu_nm pll_audio_clk = { + .enable = BIT(27), + .lock = BIT(28), + .n = _SUNXI_CCU_MULT_MIN(8, 8, 11), + .m = _SUNXI_CCU_DIV(1, 1), /* input divider */ + .common = { + .reg = SUN252I_V861_PLL_AUDIO_REG, + .hw.init = CLK_HW_INIT_PARENTS_DATA("pll-audio", + osc24M, &ccu_nm_ops, + CLK_SET_RATE_GATE), + }, +}; + +static const struct clk_hw *pll_audio_hws[] = { + &pll_audio_clk.common.hw +}; + +static SUNXI_CCU_M_HWS(pll_audio_div2_clk, "pll-audio-div2", + pll_audio_hws, 0x078, 16, 3, 0); +static SUNXI_CCU_M_HWS(pll_audio_div3_clk, "pll-audio-div3", + pll_audio_hws, 0x078, 20, 3, 0); +static SUNXI_CCU_M_HWS(pll_audio_div5_clk, "pll-audio-div5", + pll_audio_hws, 0x078, 2, 3, 0); +static const struct clk_hw *pll_audio_div2_hws[] = { + &pll_audio_div2_clk.common.hw +}; + +static const struct clk_hw *pll_audio_div5_hws[] = { + &pll_audio_div5_clk.common.hw +}; + +/* + * The audio PLL P0 divider also feeds the UART bus clock mux, so keep audio + * rate changes from propagating to it. + */ +#define SUN252I_V861_PLL_AUDIO_PRE_DIV_REG 0xe00 +static SUNXI_CCU_M_HWS(pll_audio_4x_clk, "pll-audio-4x", + pll_audio_div2_hws, 0xe00, 5, 5, 0); +static SUNXI_CCU_M_HWS(pll_audio_1x_clk, "pll-audio-1x", + pll_audio_div5_hws, 0xe00, 0, 5, CLK_SET_RATE_PARENT); + +#define SUN252I_V861_PLL_NPU_REG 0x080 +static struct ccu_nm pll_npu_8x_clk = { + .enable = BIT(27), + .lock = BIT(28), + .n = _SUNXI_CCU_MULT_MIN(8, 8, 11), + .m = _SUNXI_CCU_DIV(1, 1), /* input divider */ + .common = { + .reg = SUN252I_V861_PLL_NPU_REG, + .hw.init = CLK_HW_INIT_PARENTS_DATA("pll-npu-8x", + osc24M, &ccu_nm_ops, + CLK_SET_RATE_GATE), + }, +}; + +static const struct clk_hw *pll_npu_8x_hws[] = { + &pll_npu_8x_clk.common.hw +}; + +static SUNXI_CCU_M_HWS(pll_npu_4x_clk, "pll-npu-4x", + pll_npu_8x_hws, 0x080, 0, 1, 0); +static CLK_FIXED_FACTOR_HWS(pll_npu_2x_clk, "pll-npu-2x", + pll_npu_8x_hws, 2, 1, 0); +static CLK_FIXED_FACTOR_HWS(pll_npu_1x_clk, "pll-npu-1x", + pll_npu_8x_hws, 4, 1, 0); + +/************************************************************************** + * bus clocks * + **************************************************************************/ + +/* + * The CPU subsystem clocks between 0x4fc and 0x50c, including the IPMC used + * for CPU power management, are left to the firmware. + */ + +static const struct clk_parent_data ahb_apb_parents[] = { + { .fw_name = "hosc" }, + { .fw_name = "losc" }, + { .fw_name = "iosc" }, + { .hw = &pll_periph0_600M_clk.hw }, +}; + +static SUNXI_CCU_MP_DATA_WITH_MUX(ahb_clk, "ahb", ahb_apb_parents, 0x510, + 0, 5, /* M */ + 8, 2, /* P */ + 24, 2, /* mux */ + CLK_IS_CRITICAL); +static const struct clk_hw *ahb_hws[] = { &ahb_clk.common.hw }; + +static SUNXI_CCU_MP_DATA_WITH_MUX(apb0_clk, "apb0", ahb_apb_parents, 0x520, + 0, 5, /* M */ + 8, 2, /* P */ + 24, 2, /* mux */ + 0); +static const struct clk_hw *apb0_hws[] = { &apb0_clk.common.hw }; + +static SUNXI_CCU_MP_DATA_WITH_MUX(apb1_clk, "apb1", ahb_apb_parents, 0x524, + 0, 5, /* M */ + 8, 2, /* P */ + 24, 2, /* mux */ + 0); +static const struct clk_hw *apb1_hws[] = { &apb1_clk.common.hw }; + +static const struct clk_parent_data apb_uart_parents[] = { + { .fw_name = "hosc" }, + { .fw_name = "losc" }, + { .fw_name = "iosc" }, + { .hw = &pll_periph0_600M_clk.hw }, + { .hw = &pll_audio_div2_clk.common.hw }, +}; + +static SUNXI_CCU_MP_DATA_WITH_MUX(apb_uart_clk, "apb-uart", apb_uart_parents, + 0x528, + 0, 5, /* M */ + 8, 2, /* P */ + 24, 3, /* mux */ + 0); +static const struct clk_hw *apb_uart_hws[] = { &apb_uart_clk.common.hw }; + +/************************************************************************** + * mod clocks with gates * + **************************************************************************/ + +static const struct clk_hw *de_g2d_parents[] = { + &pll_periph0_300M_clk.hw, + &pll_video_1x_clk.hw, +}; + +static SUNXI_CCU_M_HW_WITH_MUX_GATE(de_clk, "de", de_g2d_parents, 0x600, + 0, 5, /* M */ + 24, 1, /* mux */ + BIT(31), /* gate */ + 0); + +static SUNXI_CCU_GATE_HWS(bus_de_clk, "bus-de", ahb_hws, 0x60c, BIT(0), 0); + +static SUNXI_CCU_M_HW_WITH_MUX_GATE(g2d_clk, "g2d", de_g2d_parents, 0x630, + 0, 5, /* M */ + 24, 1, /* mux */ + BIT(31), /* gate */ + 0); + +static SUNXI_CCU_GATE_HWS(bus_g2d_clk, "bus-g2d", ahb_hws, 0x63c, BIT(0), 0); + +static const struct clk_parent_data ce_parents[] = { + { .fw_name = "hosc" }, + { .hw = &pll_periph0_400M_clk.hw }, + { .hw = &pll_periph0_300M_clk.hw }, +}; + +static SUNXI_CCU_M_DATA_WITH_MUX_GATE(ce_clk, "ce", ce_parents, 0x680, + 0, 4, /* M */ + 24, 3, /* mux */ + BIT(31), /* gate */ + 0); + +static SUNXI_CCU_GATE_HWS(bus_ce_clk, "bus-ce", ahb_hws, 0x68c, BIT(0), 0); +static SUNXI_CCU_GATE_HWS(bus_ce_sys_clk, "bus-ce-sys", ahb_hws, 0x68c, + BIT(1), 0); + +static const struct clk_hw *ve_parents[] = { + &pll_periph0_300M_clk.hw, + &pll_periph0_400M_clk.hw, + &pll_periph0_480M_clk.common.hw, + &pll_periph0_600M_clk.hw, + &pll_video_4x_clk.common.hw, + &pll_csi_4x_clk.common.hw, + &pll_audio_div3_clk.common.hw, +}; + +static SUNXI_CCU_M_HW_WITH_MUX_GATE(ve_clk, "ve", ve_parents, 0x690, + 0, 5, /* M */ + 24, 3, /* mux */ + BIT(31), /* gate */ + 0); + +static SUNXI_CCU_GATE_HWS(bus_ve_clk, "bus-ve", ahb_hws, 0x69c, BIT(0), 0); + +static const struct clk_hw *npu_parents[] = { + &pll_periph0_800M_clk.common.hw, + &pll_periph0_600M_clk.hw, + &pll_npu_4x_clk.common.hw, +}; + +static SUNXI_CCU_M_HW_WITH_MUX_GATE(npu_clk, "npu", npu_parents, 0x6e0, + 0, 5, /* M */ + 24, 2, /* mux */ + BIT(31), /* gate */ + 0); + +static SUNXI_CCU_GATE_HWS(bus_npu_clk, "bus-npu", ahb_hws, 0x6ec, BIT(0), 0); + +static SUNXI_CCU_GATE_HWS(bus_sgdma_clk, "bus-sgdma", ahb_hws, 0x70c, + BIT(0), 0); +static SUNXI_CCU_GATE_HWS(bus_ndma_clk, "bus-ndma", ahb_hws, 0x70c, + BIT(1), 0); + +static SUNXI_CCU_GATE_HWS(bus_msgbox0_clk, "bus-msgbox0", ahb_hws, 0x71c, + BIT(0), 0); +static SUNXI_CCU_GATE_HWS(bus_msgbox1_clk, "bus-msgbox1", ahb_hws, 0x71c, + BIT(1), 0); + +static SUNXI_CCU_GATE_HWS(bus_spinlock_clk, "bus-spinlock", ahb_hws, 0x72c, + BIT(0), 0); + +static SUNXI_CCU_GATE_HWS(bus_hstimer_clk, "bus-hstimer", ahb_hws, 0x73c, + BIT(0), 0); + +static SUNXI_CCU_GATE_DATA(avs_clk, "avs", osc24M, 0x740, BIT(31), 0); + +/* The timer bus clock gate has its own register, apart from the reset. */ +static SUNXI_CCU_GATE_HWS(bus_timer_clk, "bus-timer", apb0_hws, 0x744, + BIT(31), 0); + +static SUNXI_CCU_GATE_HWS(bus_dbg_clk, "bus-dbg", ahb_hws, 0x78c, BIT(0), 0); + +static SUNXI_CCU_GATE_HWS(bus_pwm_clk, "bus-pwm", apb0_hws, 0x7ac, BIT(0), 0); + +static const struct clk_parent_data dram_parents[] = { + { .fw_name = "hosc" }, + { .hw = &pll_ddr_clk.common.hw }, + { .hw = &pll_periph0_2x_clk.common.hw }, + { .hw = &pll_periph0_800M_clk.common.hw }, +}; + +static SUNXI_CCU_MP_DATA_WITH_MUX_GATE_FEAT(dram_clk, "dram", dram_parents, + 0x800, + 0, 5, /* M */ + 8, 2, /* P */ + 24, 3, /* mux */ + BIT(31), /* gate */ + CLK_IS_CRITICAL, + CCU_FEATURE_UPDATE_BIT); + +/* MBUS runs at a quarter of the DRAM clock. */ +static CLK_FIXED_FACTOR_HW(mbus_clk, "mbus", &dram_clk.common.hw, 4, 1, 0); +static const struct clk_hw *mbus_hws[] = { &mbus_clk.hw }; + +static SUNXI_CCU_GATE_HWS(mbus_dma_clk, "mbus-dma", mbus_hws, + 0x804, BIT(0), 0); +static SUNXI_CCU_GATE_HWS(mbus_ve_clk, "mbus-ve", mbus_hws, + 0x804, BIT(1), 0); +static SUNXI_CCU_GATE_HWS(mbus_ce_clk, "mbus-ce", mbus_hws, + 0x804, BIT(2), 0); +static SUNXI_CCU_GATE_HWS(mbus_csi_clk, "mbus-csi", mbus_hws, + 0x804, BIT(8), 0); +static SUNXI_CCU_GATE_HWS(mbus_isp_clk, "mbus-isp", mbus_hws, + 0x804, BIT(9), 0); +static SUNXI_CCU_GATE_HWS(mbus_g2d_clk, "mbus-g2d", mbus_hws, + 0x804, BIT(10), 0); + +static SUNXI_CCU_GATE_HWS(bus_dram_clk, "bus-dram", ahb_hws, 0x80c, + BIT(0), CLK_IS_CRITICAL); + +/* + * The MMC controllers use timing mode 1, in which the card clock is half + * of the module clock, so model that with a fixed post-divider. + */ +static const struct clk_parent_data mmc0_mmc1_parents[] = { + { .fw_name = "hosc" }, + { .hw = &pll_periph0_400M_clk.hw }, + { .hw = &pll_periph0_300M_clk.hw }, + { .hw = &pll_video_4x_clk.common.hw }, + { .hw = &pll_ddr_clk.common.hw }, +}; + +static SUNXI_CCU_MP_DATA_WITH_MUX_GATE_POSTDIV(mmc0_clk, "mmc0", + mmc0_mmc1_parents, 0x830, + 0, 4, /* M */ + 8, 2, /* P */ + 24, 3, /* mux */ + BIT(31), /* gate */ + 2, /* post-div */ + 0); + +static SUNXI_CCU_MP_DATA_WITH_MUX_GATE_POSTDIV(mmc1_clk, "mmc1", + mmc0_mmc1_parents, 0x834, + 0, 4, /* M */ + 8, 2, /* P */ + 24, 3, /* mux */ + BIT(31), /* gate */ + 2, /* post-div */ + 0); + +static const struct clk_parent_data mmc2_parents[] = { + { .fw_name = "hosc" }, + { .hw = &pll_periph0_600M_clk.hw }, + { .hw = &pll_periph0_800M_clk.common.hw }, + { .hw = &pll_video_4x_clk.common.hw }, + { .hw = &pll_ddr_clk.common.hw }, +}; + +static SUNXI_CCU_MP_DATA_WITH_MUX_GATE_POSTDIV(mmc2_clk, "mmc2", + mmc2_parents, 0x838, + 0, 4, /* M */ + 8, 2, /* P */ + 24, 3, /* mux */ + BIT(31), /* gate */ + 2, /* post-div */ + 0); + +static SUNXI_CCU_GATE_HWS(bus_mmc0_clk, "bus-mmc0", ahb_hws, 0x84c, BIT(0), 0); +static SUNXI_CCU_GATE_HWS(bus_mmc1_clk, "bus-mmc1", ahb_hws, 0x84c, BIT(1), 0); +static SUNXI_CCU_GATE_HWS(bus_mmc2_clk, "bus-mmc2", ahb_hws, 0x84c, BIT(2), 0); + +static const struct clk_parent_data psram_parents[] = { + { .fw_name = "hosc" }, + { .hw = &pll_periph0_480M_clk.common.hw }, + { .hw = &pll_periph0_400M_clk.hw }, + { .hw = &pll_periph0_300M_clk.hw }, +}; + +static SUNXI_CCU_M_DATA_WITH_MUX_GATE(psram_clk, "psram", psram_parents, 0x850, + 0, 5, /* M */ + 24, 3, /* mux */ + BIT(31), /* gate */ + 0); + +static SUNXI_CCU_GATE_HWS(bus_psram_clk, "bus-psram", ahb_hws, 0x85c, + BIT(0), 0); + +static SUNXI_CCU_GATE_HWS(bus_uart0_clk, "bus-uart0", apb_uart_hws, 0x90c, + BIT(0), 0); +static SUNXI_CCU_GATE_HWS(bus_uart1_clk, "bus-uart1", apb_uart_hws, 0x90c, + BIT(1), 0); +static SUNXI_CCU_GATE_HWS(bus_uart2_clk, "bus-uart2", apb_uart_hws, 0x90c, + BIT(2), 0); +static SUNXI_CCU_GATE_HWS(bus_uart3_clk, "bus-uart3", apb_uart_hws, 0x90c, + BIT(3), 0); + +static SUNXI_CCU_GATE_HWS(bus_i2c0_clk, "bus-i2c0", apb1_hws, 0x91c, + BIT(0), 0); +static SUNXI_CCU_GATE_HWS(bus_i2c1_clk, "bus-i2c1", apb1_hws, 0x91c, + BIT(1), 0); +static SUNXI_CCU_GATE_HWS(bus_i2c2_clk, "bus-i2c2", apb1_hws, 0x91c, + BIT(2), 0); +static SUNXI_CCU_GATE_HWS(bus_i2c3_clk, "bus-i2c3", apb1_hws, 0x91c, + BIT(3), 0); + +static const struct clk_parent_data spi_parents[] = { + { .fw_name = "hosc" }, + { .hw = &pll_periph0_300M_clk.hw }, + { .hw = &pll_periph0_200M_clk.hw }, +}; + +static SUNXI_CCU_MP_DATA_WITH_MUX_GATE(spi0_clk, "spi0", spi_parents, 0x940, + 0, 4, /* M */ + 8, 2, /* P */ + 24, 3, /* mux */ + BIT(31), /* gate */ + 0); +static SUNXI_CCU_MP_DATA_WITH_MUX_GATE(spi1_clk, "spi1", spi_parents, 0x944, + 0, 4, /* M */ + 8, 2, /* P */ + 24, 3, /* mux */ + BIT(31), /* gate */ + 0); +static SUNXI_CCU_MP_DATA_WITH_MUX_GATE(spi2_clk, "spi2", spi_parents, 0x948, + 0, 4, /* M */ + 8, 2, /* P */ + 24, 3, /* mux */ + BIT(31), /* gate */ + 0); + +static const struct clk_parent_data spif_parents[] = { + { .fw_name = "hosc" }, + { .hw = &pll_periph0_400M_clk.hw }, + { .hw = &pll_periph0_300M_clk.hw }, +}; + +static SUNXI_CCU_MP_DATA_WITH_MUX_GATE(spif_clk, "spif", spif_parents, 0x950, + 0, 4, /* M */ + 8, 2, /* P */ + 24, 3, /* mux */ + BIT(31), /* gate */ + 0); + +static SUNXI_CCU_GATE_HWS(bus_spi0_clk, "bus-spi0", ahb_hws, 0x96c, BIT(0), 0); +static SUNXI_CCU_GATE_HWS(bus_spi1_clk, "bus-spi1", ahb_hws, 0x96c, BIT(1), 0); +static SUNXI_CCU_GATE_HWS(bus_spi2_clk, "bus-spi2", ahb_hws, 0x96c, BIT(2), 0); +static SUNXI_CCU_GATE_HWS(bus_spif_clk, "bus-spif", ahb_hws, 0x96c, BIT(4), 0); + +static SUNXI_CCU_GATE_HWS_WITH_PREDIV(gmac_25M_clk, "gmac-25M", + pll_periph0_150M_hws, + 0x970, BIT(31) | BIT(30), 6, 0); +static SUNXI_CCU_GATE_HWS(bus_gmac_clk, "bus-gmac", ahb_hws, 0x97c, + BIT(0), 0); + +static SUNXI_CCU_GATE_HWS(bus_gpadc_clk, "bus-gpadc", apb0_hws, 0x9ec, + BIT(0), 0); + +static SUNXI_CCU_GATE_HWS(bus_ths_clk, "bus-ths", apb0_hws, 0x9fc, BIT(0), 0); + +static const struct clk_hw *audio_parents[] = { + &pll_audio_1x_clk.common.hw, + &pll_audio_4x_clk.common.hw, +}; + +static SUNXI_CCU_M_HW_WITH_MUX_GATE(i2s0_clk, "i2s0", audio_parents, 0xa10, + 0, 4, /* M */ + 24, 1, /* mux */ + BIT(31), /* gate */ + CLK_SET_RATE_PARENT); + +static SUNXI_CCU_GATE_HWS(bus_i2s0_clk, "bus-i2s0", apb0_hws, 0xa2c, + BIT(0), 0); + +static SUNXI_CCU_M_HW_WITH_MUX_GATE(audio_codec_dac_clk, "audio-codec-dac", + audio_parents, 0xa50, + 0, 4, /* M */ + 24, 1, /* mux */ + BIT(31), /* gate */ + CLK_SET_RATE_PARENT); + +static SUNXI_CCU_M_HW_WITH_MUX_GATE(audio_codec_adc_clk, "audio-codec-adc", + audio_parents, 0xa54, + 0, 4, /* M */ + 24, 1, /* mux */ + BIT(31), /* gate */ + CLK_SET_RATE_PARENT); + +static SUNXI_CCU_GATE_HWS(bus_audio_codec_clk, "bus-audio-codec", apb0_hws, + 0xa5c, BIT(0), 0); + +/* + * The first two parents provide 12 MHz, from a 48 MHz clock synchronized by + * pll-periph0 and from the 24 MHz oscillator. + */ +static const struct clk_parent_data usb_ohci_parents[] = { + { .hw = &pll_periph0_4x_clk.common.hw }, + { .fw_name = "hosc" }, + { .fw_name = "losc" }, + { .fw_name = "iosc" }, +}; + +static const struct ccu_mux_fixed_prediv usb_ohci_predivs[] = { + { .index = 0, .div = 200 }, + { .index = 1, .div = 2 }, +}; + +static struct ccu_mux usb_ohci0_clk = { + .enable = BIT(31), + .mux = { + .shift = 24, + .width = 2, + .fixed_predivs = usb_ohci_predivs, + .n_predivs = ARRAY_SIZE(usb_ohci_predivs), + }, + .common = { + .reg = 0xa70, + .features = CCU_FEATURE_FIXED_PREDIV, + .hw.init = CLK_HW_INIT_PARENTS_DATA("usb-ohci0", + usb_ohci_parents, + &ccu_mux_ops, + 0), + }, +}; + +static SUNXI_CCU_GATE_HWS(bus_ohci0_clk, "bus-ohci0", ahb_hws, 0xa8c, + BIT(0), 0); +static SUNXI_CCU_GATE_HWS(bus_ehci0_clk, "bus-ehci0", ahb_hws, 0xa8c, + BIT(4), 0); +static SUNXI_CCU_GATE_HWS(bus_otg_clk, "bus-otg", ahb_hws, 0xa8c, BIT(8), 0); + +static SUNXI_CCU_GATE_HWS(bus_dpss_top_clk, "bus-dpss-top", ahb_hws, 0xabc, + BIT(0), 0); + +static const struct clk_hw *tcon_lcd_parents[] = { + &pll_video_4x_clk.common.hw, + &pll_periph0_2x_clk.common.hw, + &pll_csi_4x_clk.common.hw, +}; + +static SUNXI_CCU_MP_HW_WITH_MUX_GATE(tcon_lcd_clk, "tcon-lcd", + tcon_lcd_parents, 0xb60, + 0, 4, /* M */ + 8, 2, /* P */ + 24, 3, /* mux */ + BIT(31), /* gate */ + CLK_SET_RATE_PARENT); + +static SUNXI_CCU_GATE_HWS(bus_tcon_lcd_clk, "bus-tcon-lcd", ahb_hws, 0xb7c, + BIT(0), 0); + +static const struct clk_hw *csi_parents[] = { + &pll_periph0_300M_clk.hw, + &pll_periph0_400M_clk.hw, + &pll_video_4x_clk.common.hw, + &pll_csi_4x_clk.common.hw, +}; + +static SUNXI_CCU_M_HW_WITH_MUX_GATE(csi_clk, "csi", csi_parents, 0xc04, + 0, 5, /* M */ + 24, 3, /* mux */ + BIT(31), /* gate */ + 0); + +static const struct clk_parent_data csi_mclk_parents[] = { + { .fw_name = "hosc" }, + { .hw = &pll_csi_4x_clk.common.hw }, + { .hw = &pll_video_4x_clk.common.hw }, + { .hw = &pll_periph0_2x_clk.common.hw }, +}; + +static SUNXI_CCU_MP_DATA_WITH_MUX_GATE(csi_mclk0_clk, "csi-mclk0", + csi_mclk_parents, 0xc08, + 0, 5, /* M */ + 8, 2, /* P */ + 24, 3, /* mux */ + BIT(31), /* gate */ + 0); +static SUNXI_CCU_MP_DATA_WITH_MUX_GATE(csi_mclk1_clk, "csi-mclk1", + csi_mclk_parents, 0xc0c, + 0, 5, /* M */ + 8, 2, /* P */ + 24, 3, /* mux */ + BIT(31), /* gate */ + 0); +static SUNXI_CCU_MP_DATA_WITH_MUX_GATE(csi_mclk2_clk, "csi-mclk2", + csi_mclk_parents, 0xc10, + 0, 5, /* M */ + 8, 2, /* P */ + 24, 3, /* mux */ + BIT(31), /* gate */ + 0); + +static SUNXI_CCU_GATE_HWS(bus_csi_clk, "bus-csi", ahb_hws, 0xc2c, BIT(0), 0); + +/* The E907 clocks between 0xd00 and 0xd0c are left to the firmware. */ + +static SUNXI_CCU_GATE_DATA(fanout_24M_clk, "fanout-24M", osc24M, + 0xf30, BIT(0), 0); +static SUNXI_CCU_GATE_DATA_WITH_PREDIV(fanout_12M_clk, "fanout-12M", osc24M, + 0xf30, BIT(1), 2, 0); + +static SUNXI_CCU_GATE_HWS_WITH_PREDIV(fanout_16M_clk, "fanout-16M", + pll_periph0_160M_hws, + 0xf30, BIT(2), 10, 0); +static SUNXI_CCU_GATE_HWS_WITH_PREDIV(fanout_25M_clk, "fanout-25M", + pll_periph0_150M_hws, + 0xf30, BIT(3), 6, 0); + +static const struct clk_parent_data fanout_27M_parents[] = { + { .hw = &pll_video_1x_clk.hw }, + { .hw = &pll_csi_1x_clk.hw }, + { .hw = &pll_periph0_300M_clk.hw }, +}; + +/* Unlike in the A523, the second divider is a power of two. */ +static SUNXI_CCU_MP_DATA_WITH_MUX_GATE(fanout_27M_clk, "fanout-27M", + fanout_27M_parents, 0xf34, + 0, 5, /* M */ + 8, 2, /* P */ + 24, 2, /* mux */ + BIT(31), /* gate */ + 0); + +static const struct clk_parent_data fanout_pclk_parents[] = { + { .hw = &apb0_clk.common.hw } +}; + +static SUNXI_CCU_DUALDIV_MUX_GATE(fanout_pclk_clk, "fanout-pclk", + fanout_pclk_parents, 0xf38, + 0, 5, /* div0 */ + 5, 5, /* div1 */ + 0, 0, /* mux */ + BIT(31), /* gate */ + 0); + +static const struct clk_parent_data fanout_parents[] = { + { .fw_name = "losc" }, + { .hw = &fanout_12M_clk.common.hw, }, + { .hw = &fanout_16M_clk.common.hw, }, + { .hw = &fanout_24M_clk.common.hw, }, + { .hw = &fanout_25M_clk.common.hw, }, + { .hw = &fanout_27M_clk.common.hw, }, + { .hw = &fanout_pclk_clk.common.hw, }, +}; + +static SUNXI_CCU_MUX_DATA_WITH_GATE(fanout0_clk, "fanout0", fanout_parents, + 0xf3c, + 0, 3, /* mux */ + BIT(21), /* gate */ + 0); +static SUNXI_CCU_MUX_DATA_WITH_GATE(fanout1_clk, "fanout1", fanout_parents, + 0xf3c, + 3, 3, /* mux */ + BIT(22), /* gate */ + 0); +static SUNXI_CCU_MUX_DATA_WITH_GATE(fanout2_clk, "fanout2", fanout_parents, + 0xf3c, + 6, 3, /* mux */ + BIT(23), /* gate */ + 0); + +static struct ccu_common *sun252i_v861_ccu_clks[] = { + &pll_ddr_clk.common, + &pll_periph0_4x_clk.common, + &pll_periph0_2x_clk.common, + &pll_periph0_800M_clk.common, + &pll_periph0_480M_clk.common, + &pll_video_8x_clk.common, + &pll_video_4x_clk.common, + &pll_csi_8x_clk.common, + &pll_csi_4x_clk.common, + &pll_audio_clk.common, + &pll_audio_div2_clk.common, + &pll_audio_div3_clk.common, + &pll_audio_div5_clk.common, + &pll_audio_4x_clk.common, + &pll_audio_1x_clk.common, + &pll_npu_8x_clk.common, + &pll_npu_4x_clk.common, + &ahb_clk.common, + &apb0_clk.common, + &apb1_clk.common, + &apb_uart_clk.common, + &de_clk.common, + &bus_de_clk.common, + &g2d_clk.common, + &bus_g2d_clk.common, + &ce_clk.common, + &bus_ce_clk.common, + &bus_ce_sys_clk.common, + &ve_clk.common, + &bus_ve_clk.common, + &npu_clk.common, + &bus_npu_clk.common, + &bus_sgdma_clk.common, + &bus_ndma_clk.common, + &bus_msgbox0_clk.common, + &bus_msgbox1_clk.common, + &bus_spinlock_clk.common, + &bus_hstimer_clk.common, + &avs_clk.common, + &bus_timer_clk.common, + &bus_dbg_clk.common, + &bus_pwm_clk.common, + &dram_clk.common, + &mbus_dma_clk.common, + &mbus_ve_clk.common, + &mbus_ce_clk.common, + &mbus_csi_clk.common, + &mbus_isp_clk.common, + &mbus_g2d_clk.common, + &bus_dram_clk.common, + &mmc0_clk.common, + &mmc1_clk.common, + &mmc2_clk.common, + &bus_mmc0_clk.common, + &bus_mmc1_clk.common, + &bus_mmc2_clk.common, + &psram_clk.common, + &bus_psram_clk.common, + &bus_uart0_clk.common, + &bus_uart1_clk.common, + &bus_uart2_clk.common, + &bus_uart3_clk.common, + &bus_i2c0_clk.common, + &bus_i2c1_clk.common, + &bus_i2c2_clk.common, + &bus_i2c3_clk.common, + &spi0_clk.common, + &spi1_clk.common, + &spi2_clk.common, + &spif_clk.common, + &bus_spi0_clk.common, + &bus_spi1_clk.common, + &bus_spi2_clk.common, + &bus_spif_clk.common, + &gmac_25M_clk.common, + &bus_gmac_clk.common, + &bus_gpadc_clk.common, + &bus_ths_clk.common, + &i2s0_clk.common, + &bus_i2s0_clk.common, + &audio_codec_dac_clk.common, + &audio_codec_adc_clk.common, + &bus_audio_codec_clk.common, + &usb_ohci0_clk.common, + &bus_ohci0_clk.common, + &bus_ehci0_clk.common, + &bus_otg_clk.common, + &bus_dpss_top_clk.common, + &tcon_lcd_clk.common, + &bus_tcon_lcd_clk.common, + &csi_clk.common, + &csi_mclk0_clk.common, + &csi_mclk1_clk.common, + &csi_mclk2_clk.common, + &bus_csi_clk.common, + &fanout_24M_clk.common, + &fanout_12M_clk.common, + &fanout_16M_clk.common, + &fanout_25M_clk.common, + &fanout_27M_clk.common, + &fanout_pclk_clk.common, + &fanout0_clk.common, + &fanout1_clk.common, + &fanout2_clk.common, +}; + +static struct clk_hw_onecell_data sun252i_v861_hw_clks = { + .num = CLK_FANOUT2 + 1, + .hws = { + [CLK_PLL_DDR] = &pll_ddr_clk.common.hw, + [CLK_PLL_PERIPH0_4X] = &pll_periph0_4x_clk.common.hw, + [CLK_PLL_PERIPH0_2X] = &pll_periph0_2x_clk.common.hw, + [CLK_PLL_PERIPH0_800M] = &pll_periph0_800M_clk.common.hw, + [CLK_PLL_PERIPH0_480M] = &pll_periph0_480M_clk.common.hw, + [CLK_PLL_PERIPH0_600M] = &pll_periph0_600M_clk.hw, + [CLK_PLL_PERIPH0_400M] = &pll_periph0_400M_clk.hw, + [CLK_PLL_PERIPH0_300M] = &pll_periph0_300M_clk.hw, + [CLK_PLL_PERIPH0_200M] = &pll_periph0_200M_clk.hw, + [CLK_PLL_PERIPH0_160M] = &pll_periph0_160M_clk.hw, + [CLK_PLL_PERIPH0_150M] = &pll_periph0_150M_clk.hw, + [CLK_PLL_VIDEO_8X] = &pll_video_8x_clk.common.hw, + [CLK_PLL_VIDEO_4X] = &pll_video_4x_clk.common.hw, + [CLK_PLL_VIDEO_2X] = &pll_video_2x_clk.hw, + [CLK_PLL_VIDEO_1X] = &pll_video_1x_clk.hw, + [CLK_PLL_CSI_8X] = &pll_csi_8x_clk.common.hw, + [CLK_PLL_CSI_4X] = &pll_csi_4x_clk.common.hw, + [CLK_PLL_CSI_2X] = &pll_csi_2x_clk.hw, + [CLK_PLL_CSI_1X] = &pll_csi_1x_clk.hw, + [CLK_PLL_AUDIO] = &pll_audio_clk.common.hw, + [CLK_PLL_AUDIO_DIV2] = &pll_audio_div2_clk.common.hw, + [CLK_PLL_AUDIO_DIV3] = &pll_audio_div3_clk.common.hw, + [CLK_PLL_AUDIO_DIV5] = &pll_audio_div5_clk.common.hw, + [CLK_PLL_AUDIO_4X] = &pll_audio_4x_clk.common.hw, + [CLK_PLL_AUDIO_1X] = &pll_audio_1x_clk.common.hw, + [CLK_PLL_NPU_8X] = &pll_npu_8x_clk.common.hw, + [CLK_PLL_NPU_4X] = &pll_npu_4x_clk.common.hw, + [CLK_PLL_NPU_2X] = &pll_npu_2x_clk.hw, + [CLK_PLL_NPU_1X] = &pll_npu_1x_clk.hw, + [CLK_AHB] = &ahb_clk.common.hw, + [CLK_APB0] = &apb0_clk.common.hw, + [CLK_APB1] = &apb1_clk.common.hw, + [CLK_APB_UART] = &apb_uart_clk.common.hw, + [CLK_DE] = &de_clk.common.hw, + [CLK_BUS_DE] = &bus_de_clk.common.hw, + [CLK_G2D] = &g2d_clk.common.hw, + [CLK_BUS_G2D] = &bus_g2d_clk.common.hw, + [CLK_CE] = &ce_clk.common.hw, + [CLK_BUS_CE] = &bus_ce_clk.common.hw, + [CLK_BUS_CE_SYS] = &bus_ce_sys_clk.common.hw, + [CLK_VE] = &ve_clk.common.hw, + [CLK_BUS_VE] = &bus_ve_clk.common.hw, + [CLK_NPU] = &npu_clk.common.hw, + [CLK_BUS_NPU] = &bus_npu_clk.common.hw, + [CLK_BUS_SGDMA] = &bus_sgdma_clk.common.hw, + [CLK_BUS_NDMA] = &bus_ndma_clk.common.hw, + [CLK_BUS_MSGBOX0] = &bus_msgbox0_clk.common.hw, + [CLK_BUS_MSGBOX1] = &bus_msgbox1_clk.common.hw, + [CLK_BUS_SPINLOCK] = &bus_spinlock_clk.common.hw, + [CLK_BUS_HSTIMER] = &bus_hstimer_clk.common.hw, + [CLK_AVS] = &avs_clk.common.hw, + [CLK_BUS_TIMER] = &bus_timer_clk.common.hw, + [CLK_BUS_DBG] = &bus_dbg_clk.common.hw, + [CLK_BUS_PWM] = &bus_pwm_clk.common.hw, + [CLK_DRAM] = &dram_clk.common.hw, + [CLK_MBUS] = &mbus_clk.hw, + [CLK_MBUS_DMA] = &mbus_dma_clk.common.hw, + [CLK_MBUS_VE] = &mbus_ve_clk.common.hw, + [CLK_MBUS_CE] = &mbus_ce_clk.common.hw, + [CLK_MBUS_CSI] = &mbus_csi_clk.common.hw, + [CLK_MBUS_ISP] = &mbus_isp_clk.common.hw, + [CLK_MBUS_G2D] = &mbus_g2d_clk.common.hw, + [CLK_BUS_DRAM] = &bus_dram_clk.common.hw, + [CLK_MMC0] = &mmc0_clk.common.hw, + [CLK_MMC1] = &mmc1_clk.common.hw, + [CLK_MMC2] = &mmc2_clk.common.hw, + [CLK_BUS_MMC0] = &bus_mmc0_clk.common.hw, + [CLK_BUS_MMC1] = &bus_mmc1_clk.common.hw, + [CLK_BUS_MMC2] = &bus_mmc2_clk.common.hw, + [CLK_PSRAM] = &psram_clk.common.hw, + [CLK_BUS_PSRAM] = &bus_psram_clk.common.hw, + [CLK_BUS_UART0] = &bus_uart0_clk.common.hw, + [CLK_BUS_UART1] = &bus_uart1_clk.common.hw, + [CLK_BUS_UART2] = &bus_uart2_clk.common.hw, + [CLK_BUS_UART3] = &bus_uart3_clk.common.hw, + [CLK_BUS_I2C0] = &bus_i2c0_clk.common.hw, + [CLK_BUS_I2C1] = &bus_i2c1_clk.common.hw, + [CLK_BUS_I2C2] = &bus_i2c2_clk.common.hw, + [CLK_BUS_I2C3] = &bus_i2c3_clk.common.hw, + [CLK_SPI0] = &spi0_clk.common.hw, + [CLK_SPI1] = &spi1_clk.common.hw, + [CLK_SPI2] = &spi2_clk.common.hw, + [CLK_SPIF] = &spif_clk.common.hw, + [CLK_BUS_SPI0] = &bus_spi0_clk.common.hw, + [CLK_BUS_SPI1] = &bus_spi1_clk.common.hw, + [CLK_BUS_SPI2] = &bus_spi2_clk.common.hw, + [CLK_BUS_SPIF] = &bus_spif_clk.common.hw, + [CLK_GMAC_25M] = &gmac_25M_clk.common.hw, + [CLK_BUS_GMAC] = &bus_gmac_clk.common.hw, + [CLK_BUS_GPADC] = &bus_gpadc_clk.common.hw, + [CLK_BUS_THS] = &bus_ths_clk.common.hw, + [CLK_I2S0] = &i2s0_clk.common.hw, + [CLK_BUS_I2S0] = &bus_i2s0_clk.common.hw, + [CLK_AUDIO_CODEC_DAC] = &audio_codec_dac_clk.common.hw, + [CLK_AUDIO_CODEC_ADC] = &audio_codec_adc_clk.common.hw, + [CLK_BUS_AUDIO_CODEC] = &bus_audio_codec_clk.common.hw, + [CLK_USB_OHCI0] = &usb_ohci0_clk.common.hw, + [CLK_BUS_OHCI0] = &bus_ohci0_clk.common.hw, + [CLK_BUS_EHCI0] = &bus_ehci0_clk.common.hw, + [CLK_BUS_OTG] = &bus_otg_clk.common.hw, + [CLK_BUS_DPSS_TOP] = &bus_dpss_top_clk.common.hw, + [CLK_TCON_LCD] = &tcon_lcd_clk.common.hw, + [CLK_BUS_TCON_LCD] = &bus_tcon_lcd_clk.common.hw, + [CLK_CSI] = &csi_clk.common.hw, + [CLK_CSI_MCLK0] = &csi_mclk0_clk.common.hw, + [CLK_CSI_MCLK1] = &csi_mclk1_clk.common.hw, + [CLK_CSI_MCLK2] = &csi_mclk2_clk.common.hw, + [CLK_BUS_CSI] = &bus_csi_clk.common.hw, + [CLK_FANOUT_24M] = &fanout_24M_clk.common.hw, + [CLK_FANOUT_12M] = &fanout_12M_clk.common.hw, + [CLK_FANOUT_16M] = &fanout_16M_clk.common.hw, + [CLK_FANOUT_25M] = &fanout_25M_clk.common.hw, + [CLK_FANOUT_27M] = &fanout_27M_clk.common.hw, + [CLK_FANOUT_PCLK] = &fanout_pclk_clk.common.hw, + [CLK_FANOUT0] = &fanout0_clk.common.hw, + [CLK_FANOUT1] = &fanout1_clk.common.hw, + [CLK_FANOUT2] = &fanout2_clk.common.hw, + }, +}; + +static const struct ccu_reset_map sun252i_v861_ccu_resets[] = { + [RST_MBUS] = { 0x540, BIT(30) }, + [RST_BUS_DE] = { 0x60c, BIT(16) }, + [RST_BUS_G2D] = { 0x63c, BIT(16) }, + [RST_BUS_CE] = { 0x68c, BIT(16) }, + [RST_BUS_CE_SYS] = { 0x68c, BIT(17) }, + [RST_BUS_VE] = { 0x69c, BIT(16) }, + [RST_BUS_NPU] = { 0x6ec, BIT(16) }, + [RST_BUS_SGDMA] = { 0x70c, BIT(16) }, + [RST_BUS_NDMA] = { 0x70c, BIT(17) }, + [RST_BUS_MSGBOX0] = { 0x71c, BIT(16) }, + [RST_BUS_MSGBOX1] = { 0x71c, BIT(17) }, + [RST_BUS_SPINLOCK] = { 0x72c, BIT(16) }, + [RST_BUS_HSTIMER] = { 0x73c, BIT(16) }, + [RST_BUS_TIMER] = { 0x74c, BIT(16) }, + [RST_BUS_DBG] = { 0x78c, BIT(16) }, + [RST_BUS_PWM] = { 0x7ac, BIT(16) }, + [RST_BUS_DRAM] = { 0x80c, BIT(16) }, + [RST_BUS_MMC0] = { 0x84c, BIT(16) }, + [RST_BUS_MMC1] = { 0x84c, BIT(17) }, + [RST_BUS_MMC2] = { 0x84c, BIT(18) }, + [RST_BUS_PSRAM] = { 0x85c, BIT(16) }, + [RST_BUS_UART0] = { 0x90c, BIT(16) }, + [RST_BUS_UART1] = { 0x90c, BIT(17) }, + [RST_BUS_UART2] = { 0x90c, BIT(18) }, + [RST_BUS_UART3] = { 0x90c, BIT(19) }, + [RST_BUS_I2C0] = { 0x91c, BIT(16) }, + [RST_BUS_I2C1] = { 0x91c, BIT(17) }, + [RST_BUS_I2C2] = { 0x91c, BIT(18) }, + [RST_BUS_I2C3] = { 0x91c, BIT(19) }, + [RST_BUS_SPI0] = { 0x96c, BIT(16) }, + [RST_BUS_SPI1] = { 0x96c, BIT(17) }, + [RST_BUS_SPI2] = { 0x96c, BIT(18) }, + [RST_BUS_SPIF] = { 0x96c, BIT(20) }, + [RST_BUS_GMAC] = { 0x97c, BIT(16) }, + [RST_BUS_GPADC] = { 0x9ec, BIT(16) }, + [RST_BUS_THS] = { 0x9fc, BIT(16) }, + [RST_BUS_I2S0] = { 0xa2c, BIT(16) }, + [RST_BUS_AUDIO_CODEC] = { 0xa5c, BIT(16) }, + [RST_USB_PHY0] = { 0xa70, BIT(30) }, + [RST_BUS_OHCI0] = { 0xa8c, BIT(16) }, + [RST_BUS_EHCI0] = { 0xa8c, BIT(20) }, + [RST_BUS_OTG] = { 0xa8c, BIT(24) }, + [RST_BUS_DPSS_TOP] = { 0xabc, BIT(16) }, + [RST_BUS_TCON_LCD] = { 0xb7c, BIT(16) }, + [RST_BUS_CSI] = { 0xc2c, BIT(16) }, +}; + +static const struct sunxi_ccu_desc sun252i_v861_ccu_desc = { + .ccu_clks = sun252i_v861_ccu_clks, + .num_ccu_clks = ARRAY_SIZE(sun252i_v861_ccu_clks), + + .hw_clks = &sun252i_v861_hw_clks, + + .resets = sun252i_v861_ccu_resets, + .num_resets = ARRAY_SIZE(sun252i_v861_ccu_resets), +}; + +static const u32 pll_regs[] = { + SUN252I_V861_PLL_DDR_REG, + SUN252I_V861_PLL_PERIPH0_REG, + SUN252I_V861_PLL_VIDEO_REG, + SUN252I_V861_PLL_CSI_REG, + SUN252I_V861_PLL_AUDIO_REG, + SUN252I_V861_PLL_NPU_REG, +}; + +static int sun252i_v861_ccu_probe(struct platform_device *pdev) +{ + void __iomem *reg; + u32 val; + int i; + + reg = devm_platform_ioremap_resource(pdev, 0); + if (IS_ERR(reg)) + return PTR_ERR(reg); + + /* + * The PLL clock code does not model all bits, for instance it does + * not support a separate enable and gate bit. We present the + * gate bit(27) as the enable bit, but then have to set the + * PLL Enable, LDO Enable, and Lock Enable bits on all PLLs here. + */ + for (i = 0; i < ARRAY_SIZE(pll_regs); i++) { + val = readl(reg + pll_regs[i]); + val |= BIT(31) | BIT(30) | BIT(29); + writel(val, reg + pll_regs[i]); + } + + /* Derive the 4x and 1x audio clocks from the integer PLL outputs. */ + val = readl(reg + SUN252I_V861_PLL_AUDIO_PRE_DIV_REG); + val &= ~(BIT(28) | BIT(24)); + writel(val, reg + SUN252I_V861_PLL_AUDIO_PRE_DIV_REG); + + return devm_sunxi_ccu_probe(&pdev->dev, reg, &sun252i_v861_ccu_desc); +} + +static const struct of_device_id sun252i_v861_ccu_ids[] = { + { .compatible = "allwinner,sun252i-v861-ccu" }, + { } +}; +MODULE_DEVICE_TABLE(of, sun252i_v861_ccu_ids); + +static struct platform_driver sun252i_v861_ccu_driver = { + .probe = sun252i_v861_ccu_probe, + .driver = { + .name = "sun252i-v861-ccu", + .suppress_bind_attrs = true, + .of_match_table = sun252i_v861_ccu_ids, + }, +}; +module_platform_driver(sun252i_v861_ccu_driver); + +MODULE_IMPORT_NS("SUNXI_CCU"); +MODULE_DESCRIPTION("Support for the Allwinner V861 CCU"); +MODULE_LICENSE("GPL"); From patchwork Fri Nov 13 22:33:33 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Han Gao via B4 Relay X-Patchwork-Id: 4084 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mxe881.netcup.net (Postfix) with ESMTPS id 44ABA1C556C for ; Fri, 13 Nov 2026 23:34:08 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=kernel.org; spf=pass (sender IP is 172.234.253.10) smtp.mailfrom=linux-sunxi+bounces-27605-noreply=patchwork.local@lists.linux.dev smtp.helo=sea.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.234.253.10 as permitted sender) client-ip=172.234.253.10; envelope-from=linux-sunxi+bounces-27605-noreply=patchwork.local@lists.linux.dev; helo=sea.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 360ADE1C47 for ; Fri, 13 Nov 2026 22:34:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609220; b=GftT8Si/a5VVPvvxy1W+ORY/W1cjbHqNuucmIO1UgHSAgGi89FRo9DEJ63OxAUiRFk/v PKDbN7kbNCNmvSaNSMR/sw6JY3eeKvTdF/NfwVkMcM1M/op+YqiBMRp2S6VBqTsNSU7/1 JW0eBvCvPffX/fxjyMaVWUea5kpI3N+d/hijdGr6IH7bXfUvZJh6TnQ8WlHpauYtBlOm1 jHQs1jP6TkexGCFOCw61Cvdwvb5IWwhCPxnf0HuT3wuhaUD/PRHiIYgO2jU6ZqbxkSV+a HDFtQ4ncxCx4VTEcd0mCvK5Mk1kB4/03OzcAoS012Hdyl6DJxOVYWMPXgJwHRfWtNcw== ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609220; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=EgUvpuSxsCb2CVpHCi5y8cb6KO60R3POtoPlWNrlOYE=; b=oP9Qha4LqteaJbiX4dYpQK5ZD8If6C7WOcaJRPyHsZl+/ndQMcBHWohTsJy4rIKk1nkw NHxcCl6oy6V0taXqYnExvvaPVOQBGxE2IvV6DUKh4XNgUTG5kA9jJ/n2FRP3FIRUF3xDZ E221QDW/XUcYg6gxdShfcCIrmGQlSbB7WX6I1Kx6XYQybSYGkg80gBmv+XUT++Gf6JTt6 iUVghk939GM0n/hFrz8fH5+5vEw4569qiOuOY5+9QtBFNd8N6sG3eYaG5JJaGvJcBejvV 7/FWZGLn9Pon5G++gAb6XsVtHNyUG67PP13dF1c1Mwm8Q/vkmjcsaYxKur6xjZMLglg== ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="ivEX/fHO"; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C1C960A5BC0; Fri, 13 Nov 2026 22:33:40 +0000 (UTC) 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=ivEX/fHO X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609219; b=I6dqtygWSm52sZmnRuPisB9fUeP9nBjUt6P2RetSs6XRUrNZYpfGEMjsbXVKQp/BzZ4e p+3Np1JjXMI5x69fu231i/Soi8tp9pY8uWKQe3cgVvUqv/woO0rw7iUpb+fl7JPeQCWeY vWhY6ReDT6X2G5bJnmTpMHwbktI6EjCEJGvyN1irC48OwKzYPPlcZMAwKmANyXtl6LGwC KgGygjrFP5kA+V6WWCQ4mvXZmbd1fQXlv5LbwkqRryAfrGY4aQDRdEnfHSPv7f4J/p3hq l2Gt+qTAvWGlyPFbwWU8mgq/IOeauaWcZnB8owpvPqbEBaSLcfQcjBCJrrSom7R2wVg== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609219; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=EgUvpuSxsCb2CVpHCi5y8cb6KO60R3POtoPlWNrlOYE=; b=VV5f0Slyb4sgFhl/qVEUHRoQKrW5h/bFwcKDTclcJKo88Kg7KXSv9+dE3OZdN07+xBcT hBZwHgw5LCFuycKKH+8ES0ImzkFw8PMNuRLwVnSnHZr1f8bm+kkOIWs0/3GS8HW9h7aMQ iBMiGCWYxBbk0TXaWHtvT2GrZRxLvYxQ4/MYORdkuZYjWat4uRVqpo3UalExP+kEwdGpW R/5XMlgl4KsFMpc2DX7GIXxlLy3sDXUd3L6RDUbgIN/sW6XDxt8gGqeweiYMLUmUg1ZNr YABCYY63ywCdtgFxWiBei4FX5zXSxIfH48XwX7AsYI32juPo03buwHsCkiDusAl4pXA== 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="ivEX/fHO"; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 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 DE4D460A3835; Fri, 13 Nov 2026 22:33:39 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1794609219; b=Ijm9WCd+janV06o+3FG+qeipfIrOUuPSs4HDrU96MNmoG6azproJ4DTN2LbVOXTXIlO3 r233Uq2iwXtCMk3NHkyMLVTdOPP3gU7PHILie5v64MSmsgysbkCJ8Ad+unzf81eiLF5NK 60xrY/TD+saSlzKlA06cTPILsITgZFiIvg7sa9SVyjkGqjh3X9XWhg8zs672gTXpFZmKy R1msmwjC4YAhM/9ruEK7O8O6Tjqhcq0GU2tYoa5pQBsZaoFXh0vm57M9SyFiGXJgTAG+M Bslcx6Z8+CnsI1leWRVlnC+NeyxLhPU/HQORIZ+VDtsAhbKrdcLslSTjg6yzCQfoVMw== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1794609219; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=EgUvpuSxsCb2CVpHCi5y8cb6KO60R3POtoPlWNrlOYE=; b=l91O3aYTxkKM3r6G5zYrTqBI8e9XX8j4eLNgSOQFiTRhkrsgdEgYvoegA6BqeZHDZBmW n3A/p3FREQPeLHFsmBHq5lhAZ8msPWyrw8SVrzdNLNs+aG3C7SqggE5hZYRaAAf6T9GqL VOCJchzF6/75e5OabtBRaZHXvaiGB1KjIiMjbCPqosBWqH24AOCyqPIueGWZVbwR8EUkJ NtiCdLueuejLB5oZXMEOl8KAeMZ/d3XJ9U3v1gE1d2Iw8rMVZtof0h3kC58T4/a518XDe JGFVuOuc6P6GURlrcrw9ntCiDqmxzRIN3WBYdgjsxF5b30v9/lQtYFF5eUoaz0lGscA== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (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.kernel.org (Postfix) with ESMTPS id EB8601F000CB; Fri, 13 Nov 2026 22:33:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794609219; bh=EgUvpuSxsCb2CVpHCi5y8cb6KO60R3POtoPlWNrlOYE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=ivEX/fHOyPQQRW4Azf26Wlui4mcCo9kqNUY2/xrZITdvvTclojv6QHsHj9s88uS5Q bgCT/QN7oNUZWa7Jxb6VRpkPrOyPE+vC5WtD6QAallvf7tMgHnt4dusmGJLQ0b+jjz Q9E/FwTwHcmEYoum0feeWmFBzYkM58b1JK8OGG6BXu4JGWchAf2kag3EpaObZ3FaZI l+GBGCRet3aj7MCKftdA/EIlHUHspSvdAKwkKWHBeSz99WpxwN+qGZNzRcpIJItWxG Fo2CRusM2R/HYZX1oVz22EzTNyTr4AIrrKQoq5n4tBsUG/Hk3TbhFb5ip53AGObelv he1Z9ZEVqCaSA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 2828449B70; Fri, 13 Nov 2026 22:33:33 +0000 (UTC) From: Han Gao via B4 Relay Date: Sat, 14 Nov 2026 06:33:33 +0800 Subject: [PATCH 07/19] clk: sunxi-ng: add support for the Allwinner V861 PRCM CCU X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261114-v861-v1-7-eb71ec3ee523@iscas.ac.cn> References: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> In-Reply-To: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guo Ren , Thomas Gleixner , Radu Rendec , Samuel Holland , Daniel Lezcano , Anup Patel , Han Gao , Stephen Boyd , Brian Masney , Jerome Brunet , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Philipp Zabel , Alexandre Belloni , Maxime Ripard , Linus Walleij , Andre Przywara Cc: Han Gao , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Conor Dooley , devicetree@vger.kernel.org, linux-csky@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, linux-gpio@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794609209; l=5653; i=gaohan@iscas.ac.cn; s=20261021; h=from:subject:message-id; bh=8ySeNhscsjE5lze4jiyfha0KHf5aua/JAy1/q0k9bZM=; b=TUadDnW1nSz95FL9u8UFpESvcvkyAkDXY799PTWKc+MXz3CL2hJ0MgSfa4fzi/wKzEafTyb2z 1/aDVehaxXpD1nxwJWLfn2Jd/OTURblJG5gI4w8XxFdtTqbkeAH1XjH X-Developer-Key: i=gaohan@iscas.ac.cn; a=ed25519; pk=J8WHEK3filS86QaCaIHDGafqhxKyQ4K7+vFgRirTIiY= X-Endpoint-Received: by B4 Relay for gaohan@iscas.ac.cn/20261021 with auth_id=1262 X-Original-From: Han Gao Reply-To: gaohan@iscas.ac.cn X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [3.31 / 15.00]; RBL_SENDERSCORE(2.00)[172.234.253.10:from]; SUSPICIOUS_RECIPS(1.50)[]; MAILLIST(-0.18)[generic]; BAD_REP_POLICIES(0.10)[]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; TAGGED_RCPT(0.00)[dt,clk]; HAS_REPLYTO(0.00)[gaohan@iscas.ac.cn]; DBL_BLOCKED_OPENRESOLVER(0.00)[sea.lore.kernel.org:helo,sea.lore.kernel.org:rdns,iscas.ac.cn:replyto,iscas.ac.cn:email]; RCPT_COUNT_TWELVE(0.00)[38]; FORGED_SENDER_MAILLIST(0.00)[]; FREEMAIL_CC(0.00)[gmail.com,lists.infradead.org,vger.kernel.org,sifive.com,kernel.org,lists.linux.dev]; R_DKIM_ALLOW(0.00)[kernel.org:s=k20260515]; FROM_NEQ_ENVFROM(0.00)[devnull@kernel.org,linux-sunxi@lists.linux.dev]; TAGGED_FROM(0.00)[bounces-27605-noreply=patchwork.local,gaohan.iscas.ac.cn]; R_SPF_ALLOW(0.00)[+ip4:172.234.253.10]; DKIM_TRACE(0.00)[kernel.org:+]; TO_DN_SOME(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.77.114.92:received,100.80.115.77:received,100.103.45.18:received]; ARC_ALLOW(0.00)[subspace.kernel.org:s=arc20261015:i=3]; DMARC_POLICY_ALLOW(0.00)[kernel.org,quarantine]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; ASN(0.00)[asn:63949, ipnet:172.234.224.0/19, country:SG]; FREEMAIL_TO(0.00)[kernel.org,dabbelt.com,eecs.berkeley.edu,ghiti.fr,rendec.net,sifive.com,brainfault.org,iscas.ac.cn,redhat.com,baylibre.com,gmail.com,sholland.org,pengutronix.de,bootlin.com,arm.com]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.234.253.10:from] X-Rspamd-Queue-Id: 44ABA1C556C X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX From: Han Gao Add the PRCM CCU driver for the V861. It provides the R-AHB and R-APB0 bus clocks and the PPU and RTC gates and resets. Signed-off-by: Han Gao --- drivers/clk/sunxi-ng/Kconfig | 10 +++ drivers/clk/sunxi-ng/Makefile | 2 + drivers/clk/sunxi-ng/ccu-sun252i-v861-r.c | 110 ++++++++++++++++++++++++++++++ 3 files changed, 122 insertions(+) diff --git a/drivers/clk/sunxi-ng/Kconfig b/drivers/clk/sunxi-ng/Kconfig index 890a0cbb45b6..0c591b24f085 100644 --- a/drivers/clk/sunxi-ng/Kconfig +++ b/drivers/clk/sunxi-ng/Kconfig @@ -32,6 +32,16 @@ config SUN252I_V861_CCU reset lines of most peripherals, so it is required on boards based on this SoC. +config SUN252I_V861_R_CCU + tristate "Support for the Allwinner V861 PRCM CCU" + default ARCH_SUNXI + depends on RISCV || COMPILE_TEST + help + Support for the PRCM clock control unit of the Allwinner V861 + SoC. It provides the bus clocks and reset lines of the always-on + blocks, such as the RTC and the power management unit, so it is + required on boards based on this SoC. + config SUN50I_A64_CCU tristate "Support for the Allwinner A64 CCU" default ARCH_SUNXI diff --git a/drivers/clk/sunxi-ng/Makefile b/drivers/clk/sunxi-ng/Makefile index 01869330dc4e..851c5ae6dc21 100644 --- a/drivers/clk/sunxi-ng/Makefile +++ b/drivers/clk/sunxi-ng/Makefile @@ -28,6 +28,7 @@ obj-$(CONFIG_SUNIV_F1C100S_CCU) += suniv-f1c100s-ccu.o obj-$(CONFIG_SUN20I_D1_CCU) += sun20i-d1-ccu.o obj-$(CONFIG_SUN20I_D1_R_CCU) += sun20i-d1-r-ccu.o obj-$(CONFIG_SUN252I_V861_CCU) += sun252i-v861-ccu.o +obj-$(CONFIG_SUN252I_V861_R_CCU) += sun252i-v861-r-ccu.o obj-$(CONFIG_SUN50I_A64_CCU) += sun50i-a64-ccu.o obj-$(CONFIG_SUN50I_A100_CCU) += sun50i-a100-ccu.o obj-$(CONFIG_SUN50I_A100_R_CCU) += sun50i-a100-r-ccu.o @@ -57,6 +58,7 @@ suniv-f1c100s-ccu-y += ccu-suniv-f1c100s.o sun20i-d1-ccu-y += ccu-sun20i-d1.o sun20i-d1-r-ccu-y += ccu-sun20i-d1-r.o sun252i-v861-ccu-y += ccu-sun252i-v861.o +sun252i-v861-r-ccu-y += ccu-sun252i-v861-r.o sun50i-a64-ccu-y += ccu-sun50i-a64.o sun50i-a100-ccu-y += ccu-sun50i-a100.o sun50i-a100-r-ccu-y += ccu-sun50i-a100-r.o diff --git a/drivers/clk/sunxi-ng/ccu-sun252i-v861-r.c b/drivers/clk/sunxi-ng/ccu-sun252i-v861-r.c new file mode 100644 index 000000000000..9c8de9643722 --- /dev/null +++ b/drivers/clk/sunxi-ng/ccu-sun252i-v861-r.c @@ -0,0 +1,110 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (c) 2026 Han Gao + * + * Based on the A523 PRCM CCU driver: + * Copyright (C) 2024 Arm Ltd. + */ + +#include +#include +#include + +#include +#include + +#include "ccu_common.h" +#include "ccu_reset.h" + +#include "ccu_gate.h" +#include "ccu_mp.h" + +static const struct clk_parent_data r_ahb_apb_parents[] = { + { .fw_name = "hosc" }, + { .fw_name = "losc" }, + { .fw_name = "iosc" }, + { .fw_name = "pll-periph" }, +}; + +static SUNXI_CCU_MP_DATA_WITH_MUX(r_ahb_clk, "r-ahb", r_ahb_apb_parents, 0x000, + 0, 5, /* M */ + 8, 2, /* P */ + 24, 3, /* mux */ + 0); +static const struct clk_hw *r_ahb_hws[] = { &r_ahb_clk.common.hw }; + +static SUNXI_CCU_MP_DATA_WITH_MUX(r_apb0_clk, "r-apb0", r_ahb_apb_parents, + 0x00c, + 0, 5, /* M */ + 8, 2, /* P */ + 24, 3, /* mux */ + 0); +static const struct clk_hw *r_apb0_hws[] = { &r_apb0_clk.common.hw }; + +static SUNXI_CCU_GATE_HWS(bus_r_ppu_clk, "bus-r-ppu", r_apb0_hws, 0x1ac, + BIT(0), 0); +static SUNXI_CCU_GATE_HWS(bus_r_rtc_clk, "bus-r-rtc", r_ahb_hws, 0x20c, + BIT(0), 0); + +static struct ccu_common *sun252i_v861_r_ccu_clks[] = { + &r_ahb_clk.common, + &r_apb0_clk.common, + &bus_r_ppu_clk.common, + &bus_r_rtc_clk.common, +}; + +static struct clk_hw_onecell_data sun252i_v861_r_hw_clks = { + .num = CLK_BUS_R_RTC + 1, + .hws = { + [CLK_R_AHB] = &r_ahb_clk.common.hw, + [CLK_R_APB0] = &r_apb0_clk.common.hw, + [CLK_BUS_R_PPU] = &bus_r_ppu_clk.common.hw, + [CLK_BUS_R_RTC] = &bus_r_rtc_clk.common.hw, + }, +}; + +static const struct ccu_reset_map sun252i_v861_r_ccu_resets[] = { + [RST_BUS_R_PPU] = { 0x1ac, BIT(16) }, + [RST_BUS_R_RTC] = { 0x20c, BIT(16) }, +}; + +static const struct sunxi_ccu_desc sun252i_v861_r_ccu_desc = { + .ccu_clks = sun252i_v861_r_ccu_clks, + .num_ccu_clks = ARRAY_SIZE(sun252i_v861_r_ccu_clks), + + .hw_clks = &sun252i_v861_r_hw_clks, + + .resets = sun252i_v861_r_ccu_resets, + .num_resets = ARRAY_SIZE(sun252i_v861_r_ccu_resets), +}; + +static int sun252i_v861_r_ccu_probe(struct platform_device *pdev) +{ + void __iomem *reg; + + reg = devm_platform_ioremap_resource(pdev, 0); + if (IS_ERR(reg)) + return PTR_ERR(reg); + + return devm_sunxi_ccu_probe(&pdev->dev, reg, &sun252i_v861_r_ccu_desc); +} + +static const struct of_device_id sun252i_v861_r_ccu_ids[] = { + { .compatible = "allwinner,sun252i-v861-r-ccu" }, + { } +}; +MODULE_DEVICE_TABLE(of, sun252i_v861_r_ccu_ids); + +static struct platform_driver sun252i_v861_r_ccu_driver = { + .probe = sun252i_v861_r_ccu_probe, + .driver = { + .name = "sun252i-v861-r-ccu", + .suppress_bind_attrs = true, + .of_match_table = sun252i_v861_r_ccu_ids, + }, +}; +module_platform_driver(sun252i_v861_r_ccu_driver); + +MODULE_IMPORT_NS("SUNXI_CCU"); +MODULE_DESCRIPTION("Support for the Allwinner V861 PRCM CCU"); +MODULE_LICENSE("GPL"); From patchwork Fri Nov 13 22:33:34 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Han Gao via B4 Relay X-Patchwork-Id: 4089 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mxe881.netcup.net (Postfix) with ESMTPS id 7AD5A1C50BD for ; Fri, 13 Nov 2026 23:34:46 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=kernel.org; spf=pass (sender IP is 172.232.135.74) smtp.mailfrom=linux-sunxi+bounces-27610-noreply=patchwork.local@lists.linux.dev smtp.helo=sto.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.232.135.74 as permitted sender) client-ip=172.232.135.74; envelope-from=linux-sunxi+bounces-27610-noreply=patchwork.local@lists.linux.dev; helo=sto.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 9F8CA61C8FC for ; Fri, 13 Nov 2026 22:34:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609223; b=crKqvH+WCfgA2vHOltcIWwpypB/FsvjIVLToWxsTbvNCI1BES3z3SdqlsaQ8wfIJv+gK DKGiRA1DBMbJdYNju4U1X6t4d2/v6ufNeWaDC66giONQpKxMOVsyu1gt7jf+vR7GIINyU zOOYz00FLWxilKE6VNZBEBD2/Pfgnw8dvUHWegOz8eSZS556lsdTVzRGhix9ug9l8eEKA swYiqdLQ/mUqePluc2esGa+kDPJJqMo2FqCEi4Miyt/1pqsLsdxI9F7zgy3c02E8D+9s5 NHDYmLsLg08cSd8SPpfUJ8EpR3+yeWPKzVByo7VZLApqPET6l91KubY/yiAfIFS1fRg== ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609223; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=JwFqOKP20g0aC7yp0dMF04OjCxUKgcRvU9TaC/BzR80=; b=1jCqr3Q1ctT2x47Xc1hZhu2L2hPQi0do/79lDSDzDLiscxd/xPDVebEaYHfGrJ/EQP7m 2XjCUwj3W+UbxeG70TdvBcVt17GuF0T+E8CLzhK33jvPAgZMKZvTyAJX5z6gjZPUtiQqf odEJJak51TFMY15IUadaYF7qfqupTGeICs69CkdaEhFn/5YQgxXzUVnZFPfE8GORjs6BI /o4so4KZXrGVCezH5tIp8k7Fg8NcEpBkGLPgGJSrOrT9uq6kB/hsVCP0EFY+MWJWEt43u 8Aez7nhyP7p+LGwLZYrF3l4LQyL8lWD/Ak+/8lFaC1qjqGBz8rqN+d0/WlzJ7CYuuFQ== ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BCXHdLRw; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B883B606AF3D; Fri, 13 Nov 2026 22:33:43 +0000 (UTC) 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=BCXHdLRw X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609223; b=W+dBprnsq0GHhG3rGuUjM2nXzeMGWq0AB19kyiNk053Ly+h9NN/Fc01jPo618XNRgmYE 7566skbvaxPGdiBWRSkNASWL3Kl6yzLkWBg1uecDUwPPB6P47RzzTtrKg5P8N4oD4MhlR 2wp92eoKe8SUI3v0P8/an0MrPURjWWpLJU/+sfDiByAA1hy+CojmAKRscL0KTygYhI/b3 BbyPAX07XIuqaNt9C5qIGZe13vTCKmXsX8E23lm5bbi1iPzZUDyVBXSDmzIpnifAaJX++ nIIuUwIPkXySgBAzEh411reEs6h7Qn/cKU49KKHrnAqKufIi+RcKykx9GcIUafaQE4Q== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609223; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=JwFqOKP20g0aC7yp0dMF04OjCxUKgcRvU9TaC/BzR80=; b=TmEQEo7akcQWL8/yOGhWKA7oUm6wrO2Ck57sPkyOl3/ASVzWY38a2NHAvDMqhnuyIVEn BC4t6xdyy7URtWg1jm3Dan5D1WJHIoswcvVnTc/QAu2IU/Fb60spRU5RWrE1W+gaaYk1Z mel7uP9umKBRuFztAL3X+vzalQXcNJuyOD0/wq8DfnuJ/VrdkKFUdm3v5tfmZ69fmFFbs FD0USks66NfJHrq/kzz7dKYQfEdrFyrKjd6tjrBItYJSSdOTqAHMzajwI/+qRAlh0it8Q iBuPgZ+7h/Q1UDjmSivK3h2stV+74ypagiqI0qNs/6FbczzvZUNhMdegkRWaOZXxm0Q== 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=BCXHdLRw; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 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 962D7606AF37; Fri, 13 Nov 2026 22:33:43 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1794609223; b=Cfqnq+VgQvnXxMtuSt2tP8cGIX+dAfsjkA2Srd1L0c9wTNZNchp7vYjf0oTMIapor+3X b8g2rgiL2bBEnbo7pm0DcbjF5akbOYiU4IaaIj0sPqJaVXJ/xaNf9va9439IgkLurTfbg 7mBR8Hf/Z2Pdn9GerIE8P7YVkpgEF1DNmWok4HUTDLetogwlsqNGJrDzW3DpLlwH0ptvy HWiLg9qRwJk5FL+2UxI6hrO0KwwwVgbf5tw29e11BrbFQ8DuqqspoV19ZYTtIyNAoLJ4D tzdtsc0nwY7UzigQ9ppcLFywWr1qDtQ2wYXKZSw1elXLqSc17gfC6rOfX+bNOgB2DxA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1794609223; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=JwFqOKP20g0aC7yp0dMF04OjCxUKgcRvU9TaC/BzR80=; b=Ilq0WS7++QBMXINskeTfkv1BRozYHiKek1828s4fG8AcLv5qg8vmGx7zQiVXEN98MPOP Fn72XvMfU2c6MoLfUez+idaHWqO+VgYLIVdt1Sp3Oghb+V4pl6nP/y/AB+799bEz2UwLo gV9qDq2vej2g1//Q5IwWjVQ2ctM3xeEeX4YpA6fNHSrGxbFqvX7TeTfbRk6MZnNA7uPT/ yuSSEBOuwWNBaHzGQCujCN19WHzPY36Ef631xviA9rFNx8a2OyReq8ccinlOnbOH95LCB A1QyYWrckhCUAc8zmE7AIaLzivxdWVyc3G+MQpuAwC8bpY0mr7MrL0d/RptavreXd2w== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (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.kernel.org (Postfix) with ESMTPS id F2B8E1F000C5; Fri, 13 Nov 2026 22:33:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794609223; bh=JwFqOKP20g0aC7yp0dMF04OjCxUKgcRvU9TaC/BzR80=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=BCXHdLRwmqWlF/2aUfKDVB12YsuvDfKHRE1C18YiVLHjVW/+mmHRU6orZ74ECnR1U lxq1xB9k9rl8Eg9BpLEPGXr+KoquFd3OK33orrD5XGQjXWhD7ayucjBywtP3TTYfRT Ry14g4FmqpBrgWegX9nEyANQQ+29wTQyk0knFG3gqAu+20/ANUmenv1tSjZmV94ZgW jKRaMOAmiRUso0ZreHUn1Tzp+JzWhDgbYPs0DL77Xa5Yv0JLpMereIiLvThLAyiT+B njE//EK8LLvTXrXgk5e615fUqRnsy4OcQG5vyeiGEmzYI02j3ErU92yk6sOEVyObim Q0hVAGjWIg8iw== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 3E14A49B74; Fri, 13 Nov 2026 22:33:33 +0000 (UTC) From: Han Gao via B4 Relay Date: Sat, 14 Nov 2026 06:33:34 +0800 Subject: [PATCH 08/19] dt-bindings: rtc: sun6i: add the Allwinner V861 RTC X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261114-v861-v1-8-eb71ec3ee523@iscas.ac.cn> References: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> In-Reply-To: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guo Ren , Thomas Gleixner , Radu Rendec , Samuel Holland , Daniel Lezcano , Anup Patel , Han Gao , Stephen Boyd , Brian Masney , Jerome Brunet , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Philipp Zabel , Alexandre Belloni , Maxime Ripard , Linus Walleij , Andre Przywara Cc: Han Gao , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Conor Dooley , devicetree@vger.kernel.org, linux-csky@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, linux-gpio@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794609209; l=902; i=gaohan@iscas.ac.cn; s=20261021; h=from:subject:message-id; bh=F1GNhVpodsXAYlEoyOMPo+2vHXQnhpYEkGTEEAeJ24U=; b=r31usjU0JpNBnyAaJ6yw0tFh3sM1hAcG8U6aEklPoM93eVC8D7WYOsDVfP5Z8K5DzDKgfP/GZ KiiBLhKjRvSDJAPRwJ137YPvrIo1pzy5Oun+vZaS+OGZA1VItVeH/QU X-Developer-Key: i=gaohan@iscas.ac.cn; a=ed25519; pk=J8WHEK3filS86QaCaIHDGafqhxKyQ4K7+vFgRirTIiY= X-Endpoint-Received: by B4 Relay for gaohan@iscas.ac.cn/20261021 with auth_id=1262 X-Original-From: Han Gao Reply-To: gaohan@iscas.ac.cn X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX From: Han Gao The V861 RTC is compatible with the R329 one. Add a compatible with the R329 one as fallback. Signed-off-by: Han Gao --- Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml b/Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml index ebe35f893f8c..9d05b61acedd 100644 --- a/Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml +++ b/Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml @@ -33,6 +33,7 @@ properties: - items: - enum: - allwinner,sun20i-d1-rtc + - allwinner,sun252i-v861-rtc - allwinner,sun55i-a523-rtc - allwinner,sun60i-a733-rtc - const: allwinner,sun50i-r329-rtc From patchwork Fri Nov 13 22:33:35 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Han Gao via B4 Relay X-Patchwork-Id: 4082 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mxe881.netcup.net (Postfix) with ESMTPS id 9F2651C58F7 for ; Fri, 13 Nov 2026 23:34:05 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=kernel.org; spf=pass (sender IP is 172.234.253.10) smtp.mailfrom=linux-sunxi+bounces-27599-noreply=patchwork.local@lists.linux.dev smtp.helo=sea.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.234.253.10 as permitted sender) client-ip=172.234.253.10; envelope-from=linux-sunxi+bounces-27599-noreply=patchwork.local@lists.linux.dev; helo=sea.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 5EAA383696 for ; Fri, 13 Nov 2026 22:33:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609217; b=cD+p5A98j/gpDiCkORcFiyI2/uZeqMLhkjcxuvvcsg5l1TKAHmMpjuGeeJf+uEntTnHx RvWHP8G1/2+KHoqj4UMTDRbvRu/vRX7IjplPOp6RT/KEKabmPe/8c+cbkx7xoUEjYbi0b +MlUv9nwXB6KL0TbTqlYhGHjHbJvHvKk5QzIWKCcZMRDAek6oA8ziuzsIwEkXaffMRlVb DQPhXkwXWsfSdATSPEo37XPXMXGJztkzm5kbN9QU1nGzSJGIG6CWtQWzQZdL9eU3bhhcx H/2v0wcX88yMCnXG6Hb0Wuc2OGhiSl+aXhv1fMTu/uNKx4BO6tMn3ZIz529OSMUS0fA== ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609217; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=+LYiK/955nfnWYhkJP54cSbyAVpIlwPTqmzMMmypLBQ=; b=fyiagV48FnvlGVQtp9KRR9aqyQwE+ttSu0uIs/gbDUJqbAeW0CetdICUX4T4ILLKKsKg MHpLkts4SMNiPEYiUsw5WtVL4dKINCbn0EFW7jA2s22D9zXNAPHe4jXlhwJhbbXyf5jv2 HguGxoqd6zXsjj8CIaEtOOuanoiQTHrnHfHpGmtEB91brvHPxshD4j133ftxiOgZEE7YD QlusbcfLdNjuixiw8S86tuKDJLoAWG6DKrfgRufMGpyH3fDoJpzgHjPWyze9hDIQJPAEi yGrrVpqLPdWZ7H3gQduNqol9hx2YFnBSoRpuHxZJ6h6vovL+/A/vRe47btMCd10aYrg== ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Nbs63U4M; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7DE4C60A262D; Fri, 13 Nov 2026 22:33:37 +0000 (UTC) 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=Nbs63U4M X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609217; b=F4cFxz3eGUd34ObldWEdzV5PKzo8P4eN7maFVvYTd5zCqJMnrBaA6cEmmkdixK+4nLH7 g52EapZBCaTgp3IZzDP5JBMeF5kEcq3P7II40+y3oCZIFEhhH9LFpbDR6T0uFo7lEu2TP TVztf1qg+Lw1UcEK5h2Y7sUgfKt00zwIrhrrTddoueo0jFj3QUh3MOsT4m+2XQsyIBs2H p9O/A4+zQ1BZ9mA9ZSJ3LeubMsdqBXaZuU1T+dWhZDNb+bYpDPFdMAdwEutumiGJCcR1o BLZeu0K9yfN6rh4pxsh5H1T3AsSGkfrv/aVx66fJZPXzRlhk2wVPu6DhhIxDTcC57Ug== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609217; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=+LYiK/955nfnWYhkJP54cSbyAVpIlwPTqmzMMmypLBQ=; b=YaXATm5I6Yq29RNqwdWTSCU6pqw4gVybdT/PRI7VF7fZhO96EeaIHBgavuOYFfhSkPN2 ySBxCszG2t9Q9HngShMrDrwPwVS+Mn301PfQRMBfhVtliziVRgz0g6apmmUshBNf9U0as XgOT6W6RQ0CN40Om0Q922q7b9zx8kJGX2ZMRyIZUD6A+5OxJGS3Zk2w2gvUTtjmRz4eBD qpJTPl+pqIfSvTh8smqXHcTN1bdmt7mygspcWOL5x8LKTbvpWqafOth/nLhZ7ZBsOlVm0 W6cY5L1eiazCzjmW7fnpf5iSFhefMDqnxNvZO1XnR7ab2pL2RpsLrBNMIzZsxsGAK2A== 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=Nbs63U4M; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 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 58DF8606A88F; Fri, 13 Nov 2026 22:33:37 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1794609217; b=rm3gq3VaqNmbUVDuF6cC3EJdz+5iPw78YnNODPIdvKPJGsDnhPRRI5dWUlxf0Tv8On8O BsyTMBZ2/aBJUu54xUb1G05pW0sUIZ4ABvvzp3HLo28T0cz4mohIS3ZYH8BE3tlKJErhB 1SzryVarflM/qo/MtIBjRnedVaULams3hWNDJ3KJqPpLA9E8trX576LitMPDhDXPNEaWe m/StjAP88Hy0oJu9vR6F9iF1lNie4YfyRkx8AVq2fxDD4t+RF+SMUXxZLoIngBVon8Zhy UJpIIQrRE2rOhHI9qfDk7004Ucqkq3FsDB0mOId9AdxlgNlX6JSh7qrGCkI2lmqHHPA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1794609217; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=+LYiK/955nfnWYhkJP54cSbyAVpIlwPTqmzMMmypLBQ=; b=hYy+2mRa69+MNmWzlv/k3vZZCWLKqB4d72cbQEng7EFtT8976hKztYLpnbkuw8wNI2eR W648pndhdJEpHXj1PKLYuuHnLqo9Z8GmZdzD3TUahuUcuu2bjLyUe6KM1jLN+VymgBvkt pF2OmKwmDZ344ApoO/p/2n04+sNOmNucYeIZwR2i6PgXiDVJpD1myN83Ew7lw0rFSBlV7 k9epVYe4Grl05DPD7QIr6/z1vnDrFvzDWKP0bqwrKBO45lI9vh2GTNOSC+4or647RMilG Xowe0W60L4gnIP9b1aHA/h4CSA7zsZMtCevZm0LVNQArxcoDt3H3CMce5tZ72kpP7SA== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (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.kernel.org (Postfix) with ESMTPS id 035961F000C8; Fri, 13 Nov 2026 22:33:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794609217; bh=+LYiK/955nfnWYhkJP54cSbyAVpIlwPTqmzMMmypLBQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=Nbs63U4MikP4u7GXTWu/Yh05G7PSpAOzdZ2YwMuL/uvPyy1bnfrGQGlkhz1B375bt Lok75LO1oo5DXupGOvpeHeBeSb8aSFKEawx3QGQj32wdywbMIAmy/W9Mbt2fMqcFNB IYH5bpflUx9C2xWueOSonWLM3YV0Lfe66fsx/IUUnPwXvUpN+OHrwHwZDcOz4czthQ ErmXMQKFt58/G0Y2Cr8Rsx0IQrMq9ueYf3g/F8osAT0i0OKNDP/GlIqToQA/Av/ZIk 53DM960oWCTAwUPKQuY8cJ77+2hxDM0YqSYw4UWKMZalr81YkBvlpZQjH8qrGuZD7u uptEuZlat6ncA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 5352949B78; Fri, 13 Nov 2026 22:33:33 +0000 (UTC) From: Han Gao via B4 Relay Date: Sat, 14 Nov 2026 06:33:35 +0800 Subject: [PATCH 09/19] clk: sunxi-ng: sun6i-rtc: allow variants without a 32k fanout mux X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261114-v861-v1-9-eb71ec3ee523@iscas.ac.cn> References: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> In-Reply-To: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guo Ren , Thomas Gleixner , Radu Rendec , Samuel Holland , Daniel Lezcano , Anup Patel , Han Gao , Stephen Boyd , Brian Masney , Jerome Brunet , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Philipp Zabel , Alexandre Belloni , Maxime Ripard , Linus Walleij , Andre Przywara Cc: Han Gao , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Conor Dooley , devicetree@vger.kernel.org, linux-csky@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, linux-gpio@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794609209; l=1175; i=gaohan@iscas.ac.cn; s=20261021; h=from:subject:message-id; bh=IjLpSZK52EbD2RXTMonjExKRJ8v5cc72rNy+1BJSluw=; b=u4Lz8S44b3ToLaBsujWDUTqNOl1o4PgdcDpKDa/XwGcMxJt8sFC/p1XpwLiV3n6qI2MWpZyKs moCFg0R6xxABDqHcZkHiY1smc7VBl2uZEKHM2N3ESxOzRNNPALUPA2A X-Developer-Key: i=gaohan@iscas.ac.cn; a=ed25519; pk=J8WHEK3filS86QaCaIHDGafqhxKyQ4K7+vFgRirTIiY= X-Endpoint-Received: by B4 Relay for gaohan@iscas.ac.cn/20261021 with auth_id=1262 X-Original-From: Han Gao Reply-To: gaohan@iscas.ac.cn X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [3.31 / 15.00]; RBL_SENDERSCORE(2.00)[172.234.253.10:from]; SUSPICIOUS_RECIPS(1.50)[]; MAILLIST(-0.18)[generic]; BAD_REP_POLICIES(0.10)[]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; TAGGED_RCPT(0.00)[dt,clk]; R_DKIM_ALLOW(0.00)[kernel.org:s=k20260515]; FROM_HAS_DN(0.00)[]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; HAS_REPLYTO(0.00)[gaohan@iscas.ac.cn]; DBL_BLOCKED_OPENRESOLVER(0.00)[sea.lore.kernel.org:helo,sea.lore.kernel.org:rdns,iscas.ac.cn:replyto,iscas.ac.cn:email]; RCPT_COUNT_TWELVE(0.00)[38]; FORGED_SENDER_MAILLIST(0.00)[]; FREEMAIL_CC(0.00)[gmail.com,lists.infradead.org,vger.kernel.org,sifive.com,kernel.org,lists.linux.dev]; RCVD_COUNT_FIVE(0.00)[6]; FROM_NEQ_ENVFROM(0.00)[devnull@kernel.org,linux-sunxi@lists.linux.dev]; TAGGED_FROM(0.00)[bounces-27599-noreply=patchwork.local,gaohan.iscas.ac.cn]; R_SPF_ALLOW(0.00)[+ip4:172.234.253.10]; DKIM_TRACE(0.00)[kernel.org:+]; TO_DN_SOME(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.103.45.18:received,100.80.115.77:received,100.77.114.92:received]; ARC_ALLOW(0.00)[kernel.org:s=arc20260519:i=3]; DMARC_POLICY_ALLOW(0.00)[kernel.org,quarantine]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; ASN(0.00)[asn:63949, ipnet:172.234.224.0/19, country:SG]; FREEMAIL_TO(0.00)[kernel.org,dabbelt.com,eecs.berkeley.edu,ghiti.fr,rendec.net,sifive.com,brainfault.org,iscas.ac.cn,redhat.com,baylibre.com,gmail.com,sholland.org,pengutronix.de,bootlin.com,arm.com]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.234.253.10:from] X-Rspamd-Queue-Id: 9F2651C58F7 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX From: Han Gao Some RTC clock blocks have no 32 kHz fanout mux. Do not register the fanout clock for variants whose match data lists no fanout parents. Signed-off-by: Han Gao --- drivers/clk/sunxi-ng/ccu-sun6i-rtc.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun6i-rtc.c b/drivers/clk/sunxi-ng/ccu-sun6i-rtc.c index 98ae10307f43..0e40fd5fa624 100644 --- a/drivers/clk/sunxi-ng/ccu-sun6i-rtc.c +++ b/drivers/clk/sunxi-ng/ccu-sun6i-rtc.c @@ -436,8 +436,12 @@ int sun6i_rtc_ccu_probe(struct device *dev, void __iomem *reg) if (data->rtc_32k_single_parent) rtc_32k_init_data.num_parents = 1; - osc32k_fanout_init_data.parent_data = data->osc32k_fanout_parents; - osc32k_fanout_init_data.num_parents = data->osc32k_fanout_nparents; + if (data->osc32k_fanout_nparents) { + osc32k_fanout_init_data.parent_data = data->osc32k_fanout_parents; + osc32k_fanout_init_data.num_parents = data->osc32k_fanout_nparents; + } else { + sun6i_rtc_ccu_hw_clks.hws[CLK_OSC32K_FANOUT] = NULL; + } if (data->have_dcxo_status) sun6i_rtc_ccu_hw_clks.hws[CLK_OSC24M_32K_DIV] = From patchwork Fri Nov 13 22:33:36 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Han Gao via B4 Relay X-Patchwork-Id: 4090 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mxe881.netcup.net (Postfix) with ESMTPS id 7E1761C556C for ; Fri, 13 Nov 2026 23:34:50 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=kernel.org; spf=pass (sender IP is 172.234.253.10) smtp.mailfrom=linux-sunxi+bounces-27600-noreply=patchwork.local@lists.linux.dev smtp.helo=sea.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.234.253.10 as permitted sender) client-ip=172.234.253.10; envelope-from=linux-sunxi+bounces-27600-noreply=patchwork.local@lists.linux.dev; helo=sea.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id CFA46E3271 for ; Fri, 13 Nov 2026 22:34:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609217; b=cjzfVgxHOp14KX6DSRbmYlHmRPqJ6r6sRms7LV5XxFePsmPJMadIHi7i8SiDwwo2V7pP pO3OOMMvJZWk+WUwvcaN4h9lAIRw/CCcGKEJ2Y7wUs3uAEPB1xo+ZVS3TUGgH3nlLzlYz +mVHvZObgp4gbWjBY3nVZgWZSK0mqtveXgkg5SZ2ZKvUTqcQWAXdvhfFZghXheZaSl/2k km/GfJiSDmD+7oaZDrY4sQY0yf3sBHNMkNLA7B5RuRElIh7kphdkP8DUzLxy2TEi05wtT 3dMvV1Z12pM7vChGo6brhuXXoS6iS3AffFAcJa1E4YHSKzQQp6NPWAlKbwC2pKCIIWA== ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609217; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=ayF6vBRvkksclTHjPSyWasOw4KoXplwINp671BmeISE=; b=y8RC3lXHRn+pEuIeLabjdH8oLMM9HUK1mjf75tyuXCctk5xaAJeWg7rGYzD9L55OBbDl MQxNVRmnLhvcza7U4rjkeARKVNxzf3FMwUqvTJf2T/zWw+DLPEweVy9tWG3RGby9J3XiQ kTntYCW69BTnYVVlw/UVoSnhLJauiv+aLfU97/vHxrt9B7HaWHvJN1qFTncoIs/kPYfZv RjhCKr2XpQ16Pv1Zef2+tRpJ0Omr7wa8Qgv5GkK0nBCviQ4BCewB2lzDm16Ddy5N5sx1t VY0GSyHvc/b+GJBoP27xiybudzTlZfB4pfbEGLCPjJdaILPfZ6EYOEkIHgK1YObTTQw== ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="PCk/d6YQ"; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB9C460A263A; Fri, 13 Nov 2026 22:33:37 +0000 (UTC) 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=PCk/d6YQ X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609217; b=0kx6Ab854GLVxOEshPm/V1z5bLCLx0G2BkFdvzOeK3NIDxC7yB6+ZHMlDp/sLp/qG1Bu UNRyAroe5gUv4JA0BnaMDARCs1nh309geEpNEIbIU1wiZ9sTk1cJpXGzj78MEV2mAZVbo 8V25IxytG/Ek8qWBtxpKwoKmsf5n3GrkU0cpQi+d8i8NmDxG4+w2WWhymnotRyNA6bEIs TvCVhAeynN0DtX4qUxd+yc6Dy0YlYFJq4rZuG2NzS0d+hi0A5WVOtn/fC4mSgxcaoYdYx Os+5kxEIz4Hi0GVrZoC5errjgqbzOaqAPz0GjelxPByKHM+WKZrQH0Xn+UbidT74JzA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609217; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=ayF6vBRvkksclTHjPSyWasOw4KoXplwINp671BmeISE=; b=5J32xeo0VumzPTbNnTtpzxbsaWKab1oAtBLKgKFuBdSYOqNsjzkBD0jxSGQM+wePZKIf ouqnQT+MFA7LPQ7XMYNLAN9NaEg+dF9bBEuGR3p3JbhyArNwWgw0+NzpMUPNLA+XK6+WP uU1G0qqM6vWESwtnUoCg55eRrwGk5e2Ljth3v3SH7FSV8P321KmCBTDqaf+imNorcjaVZ w8iz+lT3Knpii1i67Afjka47WFqHeNGZsfNvjEjFyvFnizcT0e7Va5bUBI+4sBf4f0SC0 xMzNHfrmcJ34ArOQTvkJMncJ7ujAznS8x7M+V8NfQOLlwqU3OR1usktXQH8KR4XjWnw== 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="PCk/d6YQ"; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 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 B762060A260B; Fri, 13 Nov 2026 22:33:37 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1794609217; b=Lw80/v2VkspQrval8nmgEQp22tTaecaFR5kKpDMuV0O59LxmBfOXTCmBbknzoocMcovy OkMv617+ZDJYtTgD9UbPG8X4f5DvbbfjHpmjkFLGmCW11yI3H+0UggCflDWQ7vNYsMaC2 JAkDI4iSOg94iM1WaKvLZ8veIYClW5JpoVw4aCxDk2ogXDohRMZSWcaY9dALRgPPYlVXz KiLRu1Thvz0Y0aVL0NJ+BTmI/BqL088iRolvTrXEWPC0QGEfQRIdkvOFnt+ssLbncQfZ0 agQ1goGuYzrhDSFXW/rf0Kmd4/rR7ZmrY/8/q9WClEYwfLqFM8pnZL8i4OV7nEWLwjA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1794609217; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=ayF6vBRvkksclTHjPSyWasOw4KoXplwINp671BmeISE=; b=V4GUySn69WcZUh7ubDZKaYOhzfL2yQi6ocyS7OO2kNzg7fWEb4kVjH/Gtgg6RgnMG1j2 JwCQz80fQb9lplCTnGFkzVA6D+do7ddI8hkazKFuB43EaV7JaEoSaW1o/S5zp9W3o7Lht hL2kf0UTUyURKlTj5eYZTQ1hChHJCkgG+TZZ8hCC98Fd2hPmtGtiAb7ThakbV5dqPz5VK 0UktpfaTOWwiKVhWZklFNiWcCdfjsPC21tl5PsFH38i1zwre5c6I2o3/pgK/wOgRYDq5Z gSvCsmY7Bc1eWMxUI5A+x02/aLmtovF7EZv88DQPyKO6DfWeJzh0cCpfP79Q+dRoJRw== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (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.kernel.org (Postfix) with ESMTPS id 0614E1F000CD; Fri, 13 Nov 2026 22:33:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794609217; bh=ayF6vBRvkksclTHjPSyWasOw4KoXplwINp671BmeISE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=PCk/d6YQSWF7We7dBRL29c+DHY1FupE7tjodyOmNBtMaXeqmb0k8QnARUpuTPDw2d ybjOiX2SX7n743zJaikT//Ojxp3GlQ1eH6jRIdYAYvMbHaODrsvQlnLn5tfECjjB+k ypnvCitXhCID3LYzsyDfHvCHnd0b1qfdKvOjW+BpbtgC4yJ6NaU03s1Gao1nd6PZAg 3Ez7P9HyXAGTFO7hLTLSaUajMowr+xXZLzHDoSinpevqLttNWsmmbdmew1MIU3g/0A h76EowCWGQZTkURZU+vkEXrp8GfanBwt3aFDA6eVyAbStCiTMwX6TivGXe+I0ztd/c SKIN9bCMyoNsQ== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 689E449B7C; Fri, 13 Nov 2026 22:33:33 +0000 (UTC) From: Han Gao via B4 Relay Date: Sat, 14 Nov 2026 06:33:36 +0800 Subject: [PATCH 10/19] clk: sunxi-ng: sun6i-rtc: allow another 24 MHz to 32k divider ratio X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261114-v861-v1-10-eb71ec3ee523@iscas.ac.cn> References: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> In-Reply-To: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guo Ren , Thomas Gleixner , Radu Rendec , Samuel Holland , Daniel Lezcano , Anup Patel , Han Gao , Stephen Boyd , Brian Masney , Jerome Brunet , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Philipp Zabel , Alexandre Belloni , Maxime Ripard , Linus Walleij , Andre Przywara Cc: Han Gao , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Conor Dooley , devicetree@vger.kernel.org, linux-csky@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, linux-gpio@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794609209; l=1317; i=gaohan@iscas.ac.cn; s=20261021; h=from:subject:message-id; bh=4J4UFeD/eghp455M83eHVDqg8JSEWGJn1Ho+53uK9kw=; b=bxWPhg/JyaODgEHvYWbpaZH47om1EuJoYhcMyIKsswhKOxOfeMIeHT2Vc0XRwXRU3X7LU3/uc m6Q1MIe7JxADYv5O0YTn0lRP85QuG5yZexTgEa7RBlOQGEcBUeb3z0M X-Developer-Key: i=gaohan@iscas.ac.cn; a=ed25519; pk=J8WHEK3filS86QaCaIHDGafqhxKyQ4K7+vFgRirTIiY= X-Endpoint-Received: by B4 Relay for gaohan@iscas.ac.cn/20261021 with auth_id=1262 X-Original-From: Han Gao Reply-To: gaohan@iscas.ac.cn X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [3.31 / 15.00]; RBL_SENDERSCORE(2.00)[172.234.253.10:from]; SUSPICIOUS_RECIPS(1.50)[]; MAILLIST(-0.18)[generic]; BAD_REP_POLICIES(0.10)[]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; TAGGED_RCPT(0.00)[dt,clk]; R_DKIM_ALLOW(0.00)[kernel.org:s=k20260515]; FROM_HAS_DN(0.00)[]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; HAS_REPLYTO(0.00)[gaohan@iscas.ac.cn]; DBL_BLOCKED_OPENRESOLVER(0.00)[iscas.ac.cn:replyto,iscas.ac.cn:email,sea.lore.kernel.org:helo,sea.lore.kernel.org:rdns]; RCPT_COUNT_TWELVE(0.00)[38]; FORGED_SENDER_MAILLIST(0.00)[]; FREEMAIL_CC(0.00)[gmail.com,lists.infradead.org,vger.kernel.org,sifive.com,kernel.org,lists.linux.dev]; RCVD_COUNT_FIVE(0.00)[6]; FROM_NEQ_ENVFROM(0.00)[devnull@kernel.org,linux-sunxi@lists.linux.dev]; TAGGED_FROM(0.00)[bounces-27600-noreply=patchwork.local,gaohan.iscas.ac.cn]; R_SPF_ALLOW(0.00)[+ip4:172.234.253.10]; DKIM_TRACE(0.00)[kernel.org:+]; TO_DN_SOME(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.77.114.92:received,100.80.115.77:received,100.103.45.18:received]; ARC_ALLOW(0.00)[kernel.org:s=arc20260519:i=3]; DMARC_POLICY_ALLOW(0.00)[kernel.org,quarantine]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; ASN(0.00)[asn:63949, ipnet:172.234.224.0/19, country:SG]; FREEMAIL_TO(0.00)[kernel.org,dabbelt.com,eecs.berkeley.edu,ghiti.fr,rendec.net,sifive.com,brainfault.org,iscas.ac.cn,redhat.com,baylibre.com,gmail.com,sholland.org,pengutronix.de,bootlin.com,arm.com]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.234.253.10:from] X-Rspamd-Queue-Id: 7E1761C556C X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX From: Han Gao The fixed 24 MHz to 32 kHz divider does not divide by 750 on all variants. Allow the match data to override its multiplier and divider. Signed-off-by: Han Gao --- drivers/clk/sunxi-ng/ccu-sun6i-rtc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/clk/sunxi-ng/ccu-sun6i-rtc.c b/drivers/clk/sunxi-ng/ccu-sun6i-rtc.c index 0e40fd5fa624..b3619222fef0 100644 --- a/drivers/clk/sunxi-ng/ccu-sun6i-rtc.c +++ b/drivers/clk/sunxi-ng/ccu-sun6i-rtc.c @@ -54,6 +54,8 @@ struct sun6i_rtc_match_data { bool have_dcxo_status : 1; bool have_phy_ref_gates : 1; bool rtc_32k_single_parent : 1; + unsigned int osc24M_32k_mult; + unsigned int osc24M_32k_div; const struct clk_parent_data *osc32k_fanout_parents; u8 osc32k_fanout_nparents; }; @@ -436,6 +438,11 @@ int sun6i_rtc_ccu_probe(struct device *dev, void __iomem *reg) if (data->rtc_32k_single_parent) rtc_32k_init_data.num_parents = 1; + if (data->osc24M_32k_div) { + osc24M_32k_div_clk.mult = data->osc24M_32k_mult; + osc24M_32k_div_clk.div = data->osc24M_32k_div; + } + if (data->osc32k_fanout_nparents) { osc32k_fanout_init_data.parent_data = data->osc32k_fanout_parents; osc32k_fanout_init_data.num_parents = data->osc32k_fanout_nparents; From patchwork Fri Nov 13 22:33:37 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Han Gao via B4 Relay X-Patchwork-Id: 4083 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mxe881.netcup.net (Postfix) with ESMTPS id C4F171C50BD for ; Fri, 13 Nov 2026 23:34:06 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=kernel.org; spf=pass (sender IP is 172.234.253.10) smtp.mailfrom=linux-sunxi+bounces-27604-noreply=patchwork.local@lists.linux.dev smtp.helo=sea.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.234.253.10 as permitted sender) client-ip=172.234.253.10; envelope-from=linux-sunxi+bounces-27604-noreply=patchwork.local@lists.linux.dev; helo=sea.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 3D2D6E079C for ; Fri, 13 Nov 2026 22:33:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609219; b=tn2r47Fdsz5JzgjgeeXxigoETnxGE7qMQaiqPZxsY5C4Vyhi4DEQeJ0r7a7Knr1JRIQ/ egixXkpdIp/KRPUZWsR+ui6chi3IEMFVqZb2WhFGCPeL26D3xWHJXdsC9FsmzLbgmuv/z wYp61kPDVNmxystn8ZFaOyVnEG2rRWDJk9DIGLtFrhm3KvxPmeU3RDmT7Dc6Aje7PmfpC vODc36hVHSjlD85wLqDG+KT+QVO+sxirEV+jRXGOlcsOI1MbzjDc/b1VmbmgL9fYvQUAF wrwIkUWc5D0DmW3UN0ldsQKHA6OA24pG5EbQX+GkzD6qHMUgyPMO1TvAZc3/2oR7JHg== ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609219; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=4mMY5cZaKx3ZCVEMaMmatdBt7ktTZ1OwhWVfuPFcows=; b=fc+BxAwe+EpfMiX22RNq1QLiZ4aflIy8P/iA+YjljylXQQLD8KXinBPLa+2Rq6xuIoHs SAGWUTH9CMFILhtK4T1C3Qk3CNjVMmjIFSQAyxWLgECtsPyiPlt6GHTTnvVQAaqd61VkX bm1tihHsqNRQJW6KbUCG0nImQ2H1piaWAE8UxDB9HxjbvoySOF/zVwO4ruM7fjcOvwog1 1PYbN2nPvZ6uHVhPhzC6dSonrb0la0SpE6yKDpZDWE+e2PBj8/xGT2MZcqHmMLL2WCv7Q PU9NV7CK9OEQKrRhBPjIa7UeGVBXzls0OFzvpqhuInJbnJaU3ICKdWH1fBufjfUKaMA== ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=IigouBQH; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B02DB60A382E; Fri, 13 Nov 2026 22:33:39 +0000 (UTC) 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=IigouBQH X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609219; b=QdIIRTUx0NsOONMaeLjJxpLXWyWSDPOb+oDNgO7V0H2yvdAGqm/jJH7Es5uXubzQ1FmW M26AEOpk7jus4KET/c26tSImG0pcLinFtMNAwZOglUUdVThq31loKR+uJm4g6CqxQ8Ym1 p+129C/vXsbbrEhZ/Pvv7FGIZBd8ynmEhKVS5FWLgsrNfoX37pyCB5+vympm51cVxwUfV ICnEeSwDwIl9cblpsmBBYHDt7reWQfpoV0uVmGwWEaafUC4SlR3AaFGdmSHExkhK13KIi f/JCaVN4I9W4Lwgmr1EETk8Vq92SQJVSVCME/7K7s54J5kKS9wHSGsdN2h39hMSiciQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609219; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=4mMY5cZaKx3ZCVEMaMmatdBt7ktTZ1OwhWVfuPFcows=; b=2wdES6BMp32M8Qi0xYf8hf4jFBrVj2swoaeYulw12Dkkh4mPo26iSKE3Dddux8yl366L h2iZmip2dNzKsX0fnkl+uZRVFx0hyWluKz0l9X2jjQEJlW7lirf5uj+6aqu84TydIWpQy n0Rc1ARpuELRc8pEpz5gEV9cajpuTousG8rU3K/o9x3Q4nGV5j4zGM+0lNkjP4WTvWpfX KsmjuE/kb7E1E+zmBFV4ESEtCCIisfsJMrPoBldOlf0UrBGl3kEydbLhampJhIDiEQDXV ihnRgWaF2vWSWju20eosS/2FvYn4jP1JK3dyvHBNpPgnDxzrX7VoVoSW5AGj3UWDpaQ== 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=IigouBQH; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 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 8DD5560A3827; Fri, 13 Nov 2026 22:33:39 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1794609219; b=AK91dPpd1Gkrn3J41qz2CWYf1laPPWxIrSBfZlfgFim4yJisYmmr/lxoSIaywDN7nEiy PlQKdyKxsK+wK4UTWAGSPcmLlc5yPC9/TleWiPLEBcRgMY2iXiORqjbAMhQiUxUZqQnuH z5UdN0gBZZo73uACwxuejHe7Uno4gSRSjkzimP7+itRf+RgJoFIUwNDwQ/+M9SfsBeW6q /pzFEc+cwFbNFnS46TqbhvFi4GBLb9nFfajgZxFjF4AGlxAKH4K0hCLweDuLE9AhngU8P 2xRJB5p2ls9JpGx1b0tPpivPeC7ugaUitzX6k0Ka4uyt0qwCaXzDBWetQP+c7oLzIrw== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1794609219; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=4mMY5cZaKx3ZCVEMaMmatdBt7ktTZ1OwhWVfuPFcows=; b=2ptx1L6tcz9IB4GXAz0l18G6BNZT4lyA1V4FWo7G4FqmBuwt5Zh93ylzNL2zpKQzAuZl 9IfYzSnBIN3VayWIXI/ZYurNl0wBxfSjn4RwNh+HyCYNdDzLJl6R+KWduwmwbZd/KhmD0 Ir4wYzdSqa3+5PkLm89UOiyEUJj9/WsGaBA7vCV/+esAMEsDB1Lj6C9QSJ5YrxYED5rSd GgyLNMNOrQyHD5ov80rvLCHZv4elykQ+y3Z9c1eQYCYb6PB5wvx4sqTy2Gh69XeLH/KgW OIAZ3gkbG/UcGCIfRDZfxfuLBsbKBnniZazGyT7JvZBii+nhku/MrumI0KG2vyAcUMA== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (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.kernel.org (Postfix) with ESMTPS id 2DA181F000D2; Fri, 13 Nov 2026 22:33:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794609219; bh=4mMY5cZaKx3ZCVEMaMmatdBt7ktTZ1OwhWVfuPFcows=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=IigouBQHREYR6jRjc4A6nZGQczb6EoRkq8nHMkxDPIiQmmozMVzrb42NnHzNzcNro 8xPtW7qZCV4G42LXacr3vytBCuTSYM+xTO03pTFRmw/kpkI/NJPSpBTPUIvCKlOy/x YFcL1FmqZH4pjEYo12xobeFwf5fAF25Hjkvm9MVkN6ZjqW5IiJvoV6gbP8Jp6TSEqr r0UpeMF5QjFTmQifkA0f26pbwcZa1rf0bkVgaKrmW1asF8FYCtooZBViDO27IUhMG8 BYNxJPw8eqUiN/CPyFvhPRl7nccEGGt1s4iFHLBWsQfKdSxsUO0E2T3O5sHqljR88O dyDhP7WZcQk6w== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 7D95F49B80; Fri, 13 Nov 2026 22:33:33 +0000 (UTC) From: Han Gao via B4 Relay Date: Sat, 14 Nov 2026 06:33:37 +0800 Subject: [PATCH 11/19] clk: sunxi-ng: sun6i-rtc: add Allwinner V861 support X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261114-v861-v1-11-eb71ec3ee523@iscas.ac.cn> References: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> In-Reply-To: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guo Ren , Thomas Gleixner , Radu Rendec , Samuel Holland , Daniel Lezcano , Anup Patel , Han Gao , Stephen Boyd , Brian Masney , Jerome Brunet , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Philipp Zabel , Alexandre Belloni , Maxime Ripard , Linus Walleij , Andre Przywara Cc: Han Gao , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Conor Dooley , devicetree@vger.kernel.org, linux-csky@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, linux-gpio@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794609209; l=1736; i=gaohan@iscas.ac.cn; s=20261021; h=from:subject:message-id; bh=FtT3g2BsbPGWBSuneJ0o2oWXhhcqpYTjSs7COAH+YU8=; b=EdbVxEBsgcIrqNXI47Kh+ivqcWZsMI/zxZ4SByBdzlJzw1sOBCXPcRNpv/CWAGJtOwhd6gogI S8IwtXnP/rhCnSIObOMgO5DcL+JYJpzv+qW7cacx0j3ueZZ7G0KvR3A X-Developer-Key: i=gaohan@iscas.ac.cn; a=ed25519; pk=J8WHEK3filS86QaCaIHDGafqhxKyQ4K7+vFgRirTIiY= X-Endpoint-Received: by B4 Relay for gaohan@iscas.ac.cn/20261021 with auth_id=1262 X-Original-From: Han Gao Reply-To: gaohan@iscas.ac.cn X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [3.31 / 15.00]; RBL_SENDERSCORE(2.00)[172.234.253.10:from]; SUSPICIOUS_RECIPS(1.50)[]; MAILLIST(-0.18)[generic]; BAD_REP_POLICIES(0.10)[]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; TAGGED_RCPT(0.00)[dt,clk]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; HAS_REPLYTO(0.00)[gaohan@iscas.ac.cn]; DBL_BLOCKED_OPENRESOLVER(0.00)[sea.lore.kernel.org:helo,sea.lore.kernel.org:rdns,iscas.ac.cn:replyto,iscas.ac.cn:email]; RCPT_COUNT_TWELVE(0.00)[38]; FORGED_SENDER_MAILLIST(0.00)[]; FREEMAIL_CC(0.00)[gmail.com,lists.infradead.org,vger.kernel.org,sifive.com,kernel.org,lists.linux.dev]; R_DKIM_ALLOW(0.00)[kernel.org:s=k20260515]; FROM_NEQ_ENVFROM(0.00)[devnull@kernel.org,linux-sunxi@lists.linux.dev]; TAGGED_FROM(0.00)[bounces-27604-noreply=patchwork.local,gaohan.iscas.ac.cn]; R_SPF_ALLOW(0.00)[+ip4:172.234.253.10]; DKIM_TRACE(0.00)[kernel.org:+]; TO_DN_SOME(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.77.114.92:received,100.80.115.77:received,100.103.45.18:received]; ARC_ALLOW(0.00)[kernel.org:s=arc20260519:i=3]; DMARC_POLICY_ALLOW(0.00)[kernel.org,quarantine]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; ASN(0.00)[asn:63949, ipnet:172.234.224.0/19, country:SG]; FREEMAIL_TO(0.00)[kernel.org,dabbelt.com,eecs.berkeley.edu,ghiti.fr,rendec.net,sifive.com,brainfault.org,iscas.ac.cn,redhat.com,baylibre.com,gmail.com,sholland.org,pengutronix.de,bootlin.com,arm.com]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.234.253.10:from] X-Rspamd-Queue-Id: C4F171C50BD X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX From: Han Gao The V861 RTC clocks are like the A523 ones, without the 32k fanout mux. The 24 MHz to 32k divider ratio is not documented. With the RTC running from it, the RTC kept time with the architectural timer, which uses the same oscillator, to within 5 ppm over 15 minutes. So the divider outputs 32768 Hz, not 24 MHz / 750. Signed-off-by: Han Gao --- drivers/clk/sunxi-ng/ccu-sun6i-rtc.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/clk/sunxi-ng/ccu-sun6i-rtc.c b/drivers/clk/sunxi-ng/ccu-sun6i-rtc.c index b3619222fef0..1abee85271a9 100644 --- a/drivers/clk/sunxi-ng/ccu-sun6i-rtc.c +++ b/drivers/clk/sunxi-ng/ccu-sun6i-rtc.c @@ -392,6 +392,18 @@ static const struct sun6i_rtc_match_data sun60i_a733_rtc_ccu_data = { .osc32k_fanout_nparents = ARRAY_SIZE(sun50i_r329_osc32k_fanout_parents), }; +/* + * The V861 has no 32k fanout mux. Its 24 MHz to 32k divider ratio is not + * documented; measured against the architectural timer, it generates + * 32768 Hz. + */ +static const struct sun6i_rtc_match_data sun252i_v861_rtc_ccu_data = { + .have_ext_osc32k = true, + .have_iosc_calibration = true, + .osc24M_32k_mult = 128, + .osc24M_32k_div = 93750, +}; + static const struct of_device_id sun6i_rtc_ccu_match[] = { { .compatible = "allwinner,sun50i-h616-rtc", @@ -401,6 +413,10 @@ static const struct of_device_id sun6i_rtc_ccu_match[] = { .compatible = "allwinner,sun50i-r329-rtc", .data = &sun50i_r329_rtc_ccu_data, }, + { + .compatible = "allwinner,sun252i-v861-rtc", + .data = &sun252i_v861_rtc_ccu_data, + }, { .compatible = "allwinner,sun55i-a523-rtc", .data = &sun55i_a523_rtc_ccu_data, From patchwork Fri Nov 13 22:33:38 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Han Gao via B4 Relay X-Patchwork-Id: 4081 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mxe881.netcup.net (Postfix) with ESMTPS id 17AF51C556C for ; Fri, 13 Nov 2026 23:33:59 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=kernel.org; spf=pass (sender IP is 172.105.105.114) smtp.mailfrom=linux-sunxi+bounces-27602-noreply=patchwork.local@lists.linux.dev smtp.helo=tor.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.105.105.114 as permitted sender) client-ip=172.105.105.114; envelope-from=linux-sunxi+bounces-27602-noreply=patchwork.local@lists.linux.dev; helo=tor.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id DD04361103 for ; Fri, 13 Nov 2026 22:33:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609218; b=UbkgRvsxLOqx8RtDOPHC9bpG2wNu02RjRQQC0G4rAHL7XpOdmRhfxu5shtBLQi166I5W fTv748hasUD0RegO0TScf1GhDTycWEHuhBdygSxGJzTjufTRKriNV5B9N4OSglmvB02dW pFHDiNxJsqqM4/5qqDZR6UmVl0SGIJr3OGCixiMKrTFeIRLKvYexEpjE3WyMqru7TL4/8 d9+7nG3CJH6ojCkpa/N5zu7EDpeIgVjE2aMjB3McPzOB0mjiO2LNqYJjmbRLZH5URsmYY G7wITx18QhM5CztWnW6J1V1wAAz0G4jwyTkM/iXRheoqaefLsQB5T1w9GARCyDz0sEA== ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609218; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=2hAcwHHxwsuzZBb2Xr9VuIK0jqUogfFZXLMnVu53bds=; b=jQCr9Ffv23PCam5rXMfe2T4WX85C3aD4qvzqWttuRTMMhykWTzR6SkmNbXKAlAuUIu7Y eOgymsJqszusg2Ua9ur5VEqp0T15qVitLkhuWIK0y2uYR4HYnvKBTPTC82c7zQWTEAR/l vfVmh5r1IJ8BsORF3CLBIt+1dim79rDSzXfvfAdOou4BM77v/Pw3DrGQngiX/zz3Mge1g llh7mMUOJKQtybPAsQ03ox0LLQhnBqQUDPBdC0uWlXsoxr2F3nNUcz/cUjYevxF0qdCUh pph4644FO77GwIUnifo3WuoyjclAnFWwKzwCtww6jm9B5HaSFRc7OWyOHevjx486rog== ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=FV2QCBUk; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B0BDB60A3815; Fri, 13 Nov 2026 22:33:38 +0000 (UTC) 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=FV2QCBUk X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609218; b=0IMk1QXYirmxJ5UTO55RngCqjXOVkLSGCpIhAcO5y4CFzNq9HMhBvifBSoA5vR7AXlrL /m5J4pJ6PYVRRMbZOLcwO9v97uJ2tMIvZQpRYfF1CQ0zE6LSuthEec11idRyMDurAe3u5 gH+RxwLTYo+2b2pg8zFo8JhCaNBuxqBXHzZm9MZZBaDxCy4OA1I3PjzcD5ozb1MQ1IczO 0T1jO0xykorksx3MogrqPT87LXCwlBH9MYhjGogde38zGlorEX6N3wP0YR+5eR1tfzy0R rHkFS8gBvYDOD7fuhYKLXqG21gpCutRNZNAWqd3K9/FqcJc2jr8KxxyZlZIlXyLg7dA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609218; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=2hAcwHHxwsuzZBb2Xr9VuIK0jqUogfFZXLMnVu53bds=; b=ATXzmn+C7eS0wwqO70ew0taD35UrF7+WXov1L2faitclmp3NGH06S6ExKb5dZ825P74o y/MoEJnJpnKpRhGWaUjP8EKyf2eO1Y6Sx23XAVKofds25PCZfrL2EnRu4mVxxBXkyac39 PjkdRnVUsdGqozQzByO7v6rL+D1Pp9nL94WCo2PyfWUykX1QCWm/dtBhaTGtwGAlMlWuJ HCKLjr0HWteCKe+XNXkMLU2ADka6Ay697oagl0u5Bz3zK437rgyTqNNJNr6OqPgsEFkW8 ZDafFYBOfv7IcAMZVDRMKyVW7UXVH7+Iv1I6KKfTZ8Zp1jxGPNnmNn9BuK66MN7iBdg== 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=FV2QCBUk; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 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 8D1B8606A33F; Fri, 13 Nov 2026 22:33:38 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1794609218; b=dzzmXe6EOZUnCWCtCyX6KvaZZaIqecjvSw7Ihx+zuBvWbgLp6gh64xyKX8TpcHXvjvw9 v76KpEGQ5KwrM9KjwjFczpr7r9p2d9Bc+rKZY4nuQx86unFW/JG0KQxh76wWozyyw20Bh IBoAzxPvDb8O7C8PnVqBroByWv5+M8CijlDTt8bTke3UpPx0GzRu2TpvLbyAmPWS4r/Au 1LfHnALVFJw925Z6S6z2U//9BtiJ877BBlRqM81JeVHhDGEt6hSN4mbD4YddwsncRNtNN SeXQogDJc8npcvFZvmcbuZR/US9JKdABR6pCL+W5tFUzW+SwMo+7cUMKZbKkaUZ/qmg== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1794609218; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=2hAcwHHxwsuzZBb2Xr9VuIK0jqUogfFZXLMnVu53bds=; b=zkdvl/0ZFb1FpxlIGKUO7fJ149Hb8jHBh3fjEDiS+tlD+6Bm9yVWE0pc+CIAyGAObLHB wkUkfOTEZDjnrUNLLH0VRplDT7PvTkcjp5RByloPTX01PJR63jYuO26QKH0EfBtboSvAL sW5g7GUxkInSp7HUe/Ixhu4AkEOj4/3M+rMBEddznGcKAgGjD5IU5AGlPPNxZcsZUnZt4 vmeVMJD5Z+Fn4YjmTdZnfSHiPsnmXhb7vBE6MYjp4Drgc1lk5JytVbI1KX88QK34Qn7kX 9LiyzDmDKUIur/nZDByJJKecbyn4vGw+VHUV5qCGCTjhhamqLVZKj2Gtb929+g9hDgw== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (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.kernel.org (Postfix) with ESMTPS id 359C41F0089E; Fri, 13 Nov 2026 22:33:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794609218; bh=2hAcwHHxwsuzZBb2Xr9VuIK0jqUogfFZXLMnVu53bds=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=FV2QCBUk2dFIqW9Sn4MhR5LOeAQRxbIE+193UXDCtDilblOtjVZQX+pjVDAu+XwtV 9VgSVlAhu8ZSOkTKE4r4jxC/PuTMcu05YxHbiE/o2xhMHZ8tFFalM5sJJnIsuvMTz2 XlkOYVkefUoz4DukDyaLwYyRI2SvzBUnJD6OfOpfHrhLTZP455+y2WilPeyHpFfANd SZ4MN2BNr+UjHclc+2wsrCMV9wKFVR1cvv5iGkVUT7M43u0hoiZARcjPne5SrlaoGk 4C+0yT60mFBEQyJz5U+rG31MOjFxtqA+odRqx+fQ0GIEARrHcFqISuP40NlsGzrvBD ro/5salgoOc/Q== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 937C549B84; Fri, 13 Nov 2026 22:33:33 +0000 (UTC) From: Han Gao via B4 Relay Date: Sat, 14 Nov 2026 06:33:38 +0800 Subject: [PATCH 12/19] dt-bindings: pinctrl: add the Allwinner V861 pin controllers X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261114-v861-v1-12-eb71ec3ee523@iscas.ac.cn> References: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> In-Reply-To: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guo Ren , Thomas Gleixner , Radu Rendec , Samuel Holland , Daniel Lezcano , Anup Patel , Han Gao , Stephen Boyd , Brian Masney , Jerome Brunet , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Philipp Zabel , Alexandre Belloni , Maxime Ripard , Linus Walleij , Andre Przywara Cc: Han Gao , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Conor Dooley , devicetree@vger.kernel.org, linux-csky@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, linux-gpio@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794609209; l=2426; i=gaohan@iscas.ac.cn; s=20261021; h=from:subject:message-id; bh=OVFVAovojWhCjL1CcvpMpyxRiwB/0HvBnEwl/vSd8Os=; b=I8y5zq/wfjE0lbgnncurtQ07hgFzNrVSMhKq4SHgkIBrpZNMZEux/+meGG5waFVfmHGj730hC i4FabMIA2qFD386KAufZP4MB4on1RyqcbMFigp86/eUPgTrGQwyuMCx X-Developer-Key: i=gaohan@iscas.ac.cn; a=ed25519; pk=J8WHEK3filS86QaCaIHDGafqhxKyQ4K7+vFgRirTIiY= X-Endpoint-Received: by B4 Relay for gaohan@iscas.ac.cn/20261021 with auth_id=1262 X-Original-From: Han Gao Reply-To: gaohan@iscas.ac.cn X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [3.31 / 15.00]; RBL_SENDERSCORE(2.00)[172.105.105.114:from]; SUSPICIOUS_RECIPS(1.50)[]; MAILLIST(-0.18)[generic]; BAD_REP_POLICIES(0.10)[]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; TAGGED_RCPT(0.00)[dt,clk]; R_DKIM_ALLOW(0.00)[kernel.org:s=k20260515]; FROM_HAS_DN(0.00)[]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; HAS_REPLYTO(0.00)[gaohan@iscas.ac.cn]; DBL_BLOCKED_OPENRESOLVER(0.00)[iscas.ac.cn:replyto,iscas.ac.cn:email,arm.com:email,tor.lore.kernel.org:helo,tor.lore.kernel.org:rdns]; RCPT_COUNT_TWELVE(0.00)[38]; FORGED_SENDER_MAILLIST(0.00)[]; FREEMAIL_CC(0.00)[gmail.com,lists.infradead.org,vger.kernel.org,sifive.com,kernel.org,lists.linux.dev]; RCVD_COUNT_FIVE(0.00)[6]; FROM_NEQ_ENVFROM(0.00)[devnull@kernel.org,linux-sunxi@lists.linux.dev]; TAGGED_FROM(0.00)[bounces-27602-noreply=patchwork.local,gaohan.iscas.ac.cn]; R_SPF_ALLOW(0.00)[+ip4:172.105.105.114]; DKIM_TRACE(0.00)[kernel.org:+]; TO_DN_SOME(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.80.115.77:received,100.103.45.18:received,100.77.114.92:received]; ARC_ALLOW(0.00)[kernel.org:s=arc20260519:i=3]; DMARC_POLICY_ALLOW(0.00)[kernel.org,quarantine]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; ASN(0.00)[asn:63949, ipnet:172.105.96.0/20, country:SG]; FREEMAIL_TO(0.00)[kernel.org,dabbelt.com,eecs.berkeley.edu,ghiti.fr,rendec.net,sifive.com,brainfault.org,iscas.ac.cn,redhat.com,baylibre.com,gmail.com,sholland.org,pengutronix.de,bootlin.com,arm.com]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.105.105.114:from] X-Rspamd-Queue-Id: 17AF51C556C X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX From: Han Gao The V861 main and always-on pin controllers follow the A523 binding. The always-on one has a single interrupt bank, so also allow a single debounce value. Signed-off-by: Han Gao Acked-by: Conor Dooley --- .../pinctrl/allwinner,sun55i-a523-pinctrl.yaml | 31 +++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/allwinner,sun55i-a523-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/allwinner,sun55i-a523-pinctrl.yaml index d7d0ba32ced4..3c2924df17b9 100644 --- a/Documentation/devicetree/bindings/pinctrl/allwinner,sun55i-a523-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/allwinner,sun55i-a523-pinctrl.yaml @@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/pinctrl/allwinner,sun55i-a523-pinctrl.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Allwinner A523 & A733 Pin Controller +title: Allwinner A523, A733 & V861 Pin Controller maintainers: - Andre Przywara @@ -26,6 +26,8 @@ properties: compatible: enum: + - allwinner,sun252i-v861-pinctrl + - allwinner,sun252i-v861-r-pinctrl - allwinner,sun55i-a523-pinctrl - allwinner,sun55i-a523-r-pinctrl - allwinner,sun60i-a733-pinctrl @@ -35,7 +37,7 @@ properties: maxItems: 1 interrupts: - minItems: 2 + minItems: 1 maxItems: 11 description: One interrupt per external interrupt bank supported on the @@ -62,7 +64,7 @@ properties: Debouncing periods in microseconds, one period per interrupt bank found in the controller $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 2 + minItems: 1 maxItems: 11 patternProperties: @@ -149,6 +151,29 @@ allOf: minItems: 2 maxItems: 2 + - if: + properties: + compatible: + const: allwinner,sun252i-v861-pinctrl + then: + properties: + interrupts: + minItems: 7 + maxItems: 7 + input-debounce: + maxItems: 7 + + - if: + properties: + compatible: + const: allwinner,sun252i-v861-r-pinctrl + then: + properties: + interrupts: + maxItems: 1 + input-debounce: + maxItems: 1 + additionalProperties: false examples: From patchwork Fri Nov 13 22:33:39 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Han Gao via B4 Relay X-Patchwork-Id: 4080 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mxe881.netcup.net (Postfix) with ESMTPS id 074F11C58FB for ; Fri, 13 Nov 2026 23:34:02 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=kernel.org; spf=pass (sender IP is 172.232.135.74) smtp.mailfrom=linux-sunxi+bounces-27601-noreply=patchwork.local@lists.linux.dev smtp.helo=sto.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.232.135.74 as permitted sender) client-ip=172.232.135.74; envelope-from=linux-sunxi+bounces-27601-noreply=patchwork.local@lists.linux.dev; helo=sto.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 8AE8161AFC3 for ; Fri, 13 Nov 2026 22:33:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609218; b=ds3p3fgSzvAawfh7RHIQbBQfq4sJw6Qe7vwuWACpbM5fZXi5YhoroN8tPNPY0ininh4x piB7t/r6vtWR+nZW1ZsTHSERG0rpj+18pZstVXj1vp1hNi0pceFZGtOoXSK5ZEtUUnm7v /bT/YnojNgfGLfqhL7pmknYWmm/DMKWMJ4EkNq3cTcoQm6iS86VQAf9O9nniAejwQflBB nXv/SGgSt8mw1GIT1gFy/bvJL1Fb/ERtz/rJ4OMVQ48vYRXD56m9fLjW8MQOieVvIz8fR D2IwFSK88OsBkEr7ekDtiisy5WIWzgBWdTYlISN/4aG6ghoHx1nH04ibD3QQWVDgfxg== ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609218; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=wpbbKA4ajLzIsgcmiI1L7FK42JRHT9STO33kEE3TcR8=; b=fpeorVXjNaylQkTNV0AhqiDwzBbkZTknMo+aH/JDa6CGIqk8uEZ7MJLf7K3Tq4VZdoU6 0ByrdMcDhKJ+O1s5sJswktBrTmiHTCSgJYxJOr7nMczhKQr0Pq5O2YUS0Tl/4rvjR5Bx2 bK6ioxuKwe8ohe8GBSCK8y7d/RZu/spQcrSuafJyA17e6lokJ6HZ8U2C6mo9Gv4eBp3P6 OgPH1a9OJJwFApuo3cMmYkkDNUiKXplaqfCSpQyYmLZA2baiAmXx8msSXLexsjCs1DBrZ yvE9eDy+/I0XAa8CQkXRGzJQGvuvMP+mWhxIon5fciLnO95VSTRBeowFJuwI08CvMxQ== ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=oOWJEzdx; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 228C960A3807; Fri, 13 Nov 2026 22:33:38 +0000 (UTC) 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=oOWJEzdx X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609218; b=g4OCjf5BCOVkPdVfHBULnVuk4ap0wbrV6KC9TqGvtmUf/WUTjXKLsLxCHhYfgw6wJ8WB aYKvhWsXlw6J+b9V/8XwHAWnT5dBzjVmNiYZg4iXEImkbY8t689uxGuANuaDzjv6hhDQw 2j0Xky8H3v1J4FwpKMNhHGzfjSKVRfblhLvLLrU55ILW4q9HpFxUC2rqV6IH6qsqO1Fhw hXIaAuGNMAFj/P43UQxhnPnqiaCAk00Ly98dTfPBGY0ocC1MbtWGZ/ZPkDhHOEYz27xY4 sQiqsWRVSWXRiG4tGQpXrauR9mQTnBMXgq35AOyAVxCPmtyvLexJIQ6V23JQOzX+5fQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609218; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=wpbbKA4ajLzIsgcmiI1L7FK42JRHT9STO33kEE3TcR8=; b=adjq/iWoj4ggbZnvzlyRMrTGchWnzmr4yKY24Z1ZDGoX1kwqCXmGPeDBFvH604pPOaP2 tKlxlEy8hrjV1CTyobdukalfRW59Np4cKEOkNTz2Q7NvTGGtoWYBbbXhJQ5sqjg47j1Yn ufWetTYbFON02htRDhVoApV10xhGlAaZ4/RN9DCXam8CQsBYcpuMoRtFjGXT1BPFo+NU4 ElQO7iKqzRxsiC5xswMYIZHd8iKu5KQU+MM2ZYJopGmCmgRfNuFPVwtGyze8FIsm5bmAR bXASifu2hNbS7L811Esm3V/6y96Bi2i6MOG74hipoWg7HbCh9KAD/WhIl1+I4z3IXiA== 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=oOWJEzdx; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 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 EE9AF606A88B; Fri, 13 Nov 2026 22:33:37 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1794609217; b=bCVhZy8HnEYWGbBZH8HNZErHk5Pgj1+7eBZ4XoIB6pRvEN9iCRg3rFFn+00TSr8QAzDm 11XTDwTY0tgHlyUSNajPWWcic2+IQdMQvzwmvz1pKt9Sz7Q92xXWwbBzfFHcNNchePWX9 5ra67SQ2cR6x5ZSRJF5yVajI8rES219E7RwSKi++JXzwpmohjBq4e037liX3Of1fWkZLj n+yBmjr8Mt0kLQPBvZnFj2jqR7OxAtyBCk5sgd5QUmMy1CqydRc35qnSPJDbgWfif59RH jXrtio1njZKs1C4Rrr5X/8rgdNRGdxZdGX6baMvJHQxbeUvEeLRzhe+pzhq68IBVmIg== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1794609217; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=wpbbKA4ajLzIsgcmiI1L7FK42JRHT9STO33kEE3TcR8=; b=xGGJ+yRDLk/vdnDU+pMunghfA3rYoYMV1ULMReHGZyEB0NngMVtVbuuoVhsR47BYxnxr TjJrj/AJvifAxCGeamdsr+xL7MrNQKHI76+xRUB/2uNNvcoJixnGa36IeZ69dvAQq0Mzp uwnKaGyNQu56X8XB5B4kt1T1YW0RqaPA72Fl9AghLlypvW5YHogf1XCsGBWtYvrO6M6dk Uz3Vl8x+2XWNmS21zR5+/YQ69TXpy0fxHIskMsRRfmfkOiNZUi2lIBQ8EdoSGLAcDMgQG DWJDjN2Wc4o2ZmyrSd358xfv0DFlonPVg2WeA3NVPb4ZmAY+DNEqPdHiu8PGAaPXQ+g== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (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.kernel.org (Postfix) with ESMTPS id D5BE71F00932; Fri, 13 Nov 2026 22:33:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794609217; bh=wpbbKA4ajLzIsgcmiI1L7FK42JRHT9STO33kEE3TcR8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=oOWJEzdxtLc85ptJmPiOIx2OlKkXvseUVIqkJZeoV9Kiluiw3t0Ux51rwp9eU8JTw N8qjiHD/HfYvCCVF+Z5z6J+eri2cn62tx+AvpJ5RZZMg9VrW3clYTvEUGAc5tNYNoo 705xgno9SArazNBRzKTjpIdy7Gsd6JzCfX4Gd5dXWlnvMUP48ZESvdArOA+PnYWndc Vudfb23lZ0UjqZh2PLMZGZefDEyLJNmWEpcKfRqylxrboVROo8KuiyB5GG5i9BlMqj T9rr6i5oy+kI7wCuh7I80L+vfIXMOJsUcDzly3ak+CLCvpykl2ze4i8x/M6pIc9gwA 1dTSpjp/GDM8Q== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id A8E7B49B88; Fri, 13 Nov 2026 22:33:33 +0000 (UTC) From: Han Gao via B4 Relay Date: Sat, 14 Nov 2026 06:33:39 +0800 Subject: [PATCH 13/19] pinctrl: sunxi: allow a per-controller IRQ register base X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261114-v861-v1-13-eb71ec3ee523@iscas.ac.cn> References: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> In-Reply-To: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guo Ren , Thomas Gleixner , Radu Rendec , Samuel Holland , Daniel Lezcano , Anup Patel , Han Gao , Stephen Boyd , Brian Masney , Jerome Brunet , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Philipp Zabel , Alexandre Belloni , Maxime Ripard , Linus Walleij , Andre Przywara Cc: Han Gao , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Conor Dooley , devicetree@vger.kernel.org, linux-csky@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, linux-gpio@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794609209; l=1288; i=gaohan@iscas.ac.cn; s=20261021; h=from:subject:message-id; bh=Q5nKbDPfL5bIJRudVipL8eRl+Sf6kVk4l+UGPGRoSrU=; b=grvbJPn/+R2MO+DEgByDUFTZtLVCqIBwHkLAL0ulBtY+dR3+FlP1mIhHsm4whuN7dLMvBp/6p +ihd2LdEuONA/g6geIuOhI8/hEPyOVjToZchKiHiT7GGOnYmqJ2XUOA X-Developer-Key: i=gaohan@iscas.ac.cn; a=ed25519; pk=J8WHEK3filS86QaCaIHDGafqhxKyQ4K7+vFgRirTIiY= X-Endpoint-Received: by B4 Relay for gaohan@iscas.ac.cn/20261021 with auth_id=1262 X-Original-From: Han Gao Reply-To: gaohan@iscas.ac.cn X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [-2.19 / 15.00]; BAYES_HAM(-5.50)[100.00%]; RBL_SENDERSCORE(2.00)[172.232.135.74:from]; SUSPICIOUS_RECIPS(1.50)[]; MAILLIST(-0.18)[generic]; MIME_GOOD(-0.10)[text/plain]; BAD_REP_POLICIES(0.10)[]; HAS_LIST_UNSUB(-0.01)[]; FORGED_SENDER_MAILLIST(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[iscas.ac.cn:replyto,iscas.ac.cn:email,sto.lore.kernel.org:helo,sto.lore.kernel.org:rdns]; FROM_HAS_DN(0.00)[]; FREEMAIL_CC(0.00)[gmail.com,lists.infradead.org,vger.kernel.org,sifive.com,kernel.org,lists.linux.dev]; TAGGED_RCPT(0.00)[dt,clk]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; RCPT_COUNT_TWELVE(0.00)[38]; R_DKIM_ALLOW(0.00)[kernel.org:s=k20260515]; HAS_REPLYTO(0.00)[gaohan@iscas.ac.cn]; RCVD_COUNT_FIVE(0.00)[6]; ARC_ALLOW(0.00)[kernel.org:s=arc20260519:i=3]; DKIM_TRACE(0.00)[kernel.org:+]; DMARC_POLICY_ALLOW(0.00)[kernel.org,quarantine]; R_SPF_ALLOW(0.00)[+ip4:172.232.135.74]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.80.115.77:received,100.77.114.92:received,100.103.45.18:received]; TO_DN_SOME(0.00)[]; FROM_NEQ_ENVFROM(0.00)[devnull@kernel.org,linux-sunxi@lists.linux.dev]; FREEMAIL_TO(0.00)[kernel.org,dabbelt.com,eecs.berkeley.edu,ghiti.fr,rendec.net,sifive.com,brainfault.org,iscas.ac.cn,redhat.com,baylibre.com,gmail.com,sholland.org,pengutronix.de,bootlin.com,arm.com]; MIME_TRACE(0.00)[0:+]; TAGGED_FROM(0.00)[bounces-27601-noreply=patchwork.local,gaohan.iscas.ac.cn]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; ASN(0.00)[asn:63949, ipnet:172.232.128.0/19, country:SG]; RCVD_TLS_LAST(0.00)[]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.232.135.74:from] X-Rspamd-Queue-Id: 074F11C58FB X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX From: Han Gao The V861 always-on pin controller has its interrupt registers at 0x40 instead of 0x200. Let the descriptor override the base. Signed-off-by: Han Gao --- drivers/pinctrl/sunxi/pinctrl-sunxi.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.h b/drivers/pinctrl/sunxi/pinctrl-sunxi.h index 7c2f29e75519..a0f5eac5c914 100644 --- a/drivers/pinctrl/sunxi/pinctrl-sunxi.h +++ b/drivers/pinctrl/sunxi/pinctrl-sunxi.h @@ -152,6 +152,11 @@ struct sunxi_pinctrl_desc { unsigned pin_base; unsigned irq_banks; const unsigned int *irq_bank_map; + /* + * Interrupt register base, where zero selects the traditional 0x200. + * Not used with the NCAT3 register layout. + */ + u32 irq_reg_base; bool irq_read_needs_mux; bool disable_strict_mode; enum sunxi_desc_bias_voltage io_bias_cfg_variant; @@ -261,7 +266,7 @@ static inline u32 sunxi_irq_base_reg(const struct sunxi_pinctrl *pctl, u16 bank) return pctl->bank_offset + bank * pctl->bank_mem_size + A733_IRQ_REGS_OFFSET; - return IRQ_REGS_OFFSET + + return (pctl->desc->irq_reg_base ?: IRQ_REGS_OFFSET) + sunxi_irq_hw_bank_num(pctl->desc, bank) * IRQ_MEM_SIZE; } From patchwork Fri Nov 13 22:33:40 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Han Gao via B4 Relay X-Patchwork-Id: 4087 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mxe881.netcup.net (Postfix) with ESMTPS id 816D51C58FB for ; Fri, 13 Nov 2026 23:34:15 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=kernel.org; spf=pass (sender IP is 172.232.135.74) smtp.mailfrom=linux-sunxi+bounces-27606-noreply=patchwork.local@lists.linux.dev smtp.helo=sto.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.232.135.74 as permitted sender) client-ip=172.232.135.74; envelope-from=linux-sunxi+bounces-27606-noreply=patchwork.local@lists.linux.dev; helo=sto.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 0D80E61C059 for ; Fri, 13 Nov 2026 22:34:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609220; b=Jnu+wc260fPLTWJC05ciXrOVLC73I1KO9e7TXQYEFi1sGH3svy7oHxte06VHVjbSWNBH ozaMgIgI7o7l/biQSScCXMhRGHv7lgix+13W7CRNqqffz5u3Ju+tW4ebKsUWlAsOJu7sx aRdIpK/tvDpeF/ikj0jjzmaOINTRifjwZyd2kBfGX1o9aoWoRGqA1+VpNIYoFFa6NbIKI b5+iKbALibA2y6u4IrjsOGpUN9d/PzPgJMkihP5c0DgLDWqMfYk1NSeUueEslNrw3tFUU FoW5yhxpnLmepR6+6l9VE2m0U97+R2iC83zjnoTIKZXDMmqWBw9e/oQk60GFcEoRCTQ== ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609220; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=uCSBQsnFH1v0qJqLur3HuSvJBaK4cr2cKSQjBjx2zgs=; b=LhoBT2h8/udTtuchWCw/sxZiTGOLm9qobuK6TJOcWM9rCMoZYaXzMp/PNR04SKnXRS13 NQu7JeGOhxNkGlz8q+0yQDK6NxT0QwXUopGIRibGa8eJSpBEwlyyZu7oS4ET05a8gE1qC BEHr4LgL4/A4u/sXVoPXbsMc7sPa0C+MNrs0wQg8ttd1aAm+OPYBUVl5tD0sJHOU15weO 5v2T5orm2BJCV+8w0OmhHFSrJz5YtT/Jvwyw27YTmp1xh4ccETZHrjR5PKWSTEnifV+Qh 2jLzKSN2lGDQ86TomDmv3p2fcm+HoqabOgABsnqk5Jj4e9V33wvwUk/bQX7S7x3OUng== ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ISGi70qh; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D06F160A5BDF; Fri, 13 Nov 2026 22:33:40 +0000 (UTC) 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=ISGi70qh X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609220; b=5rXw3qpgvNhDDSWTLGHeSQ748S7IRaNuebwA+PvLhPDrc/aofZhAR7lZYu67r8oW455q QqfJDAZfTP/eTCr6QVYBYTVLdqLgBmYmcGjp5a5+0YOsxukufKpOfka2GhIlgx4s1tDfP P/AHmQTa2dC/EwBnUCvhYnxRcvuIaa6c5duDRKtiMFIKnyZ0/D0whApAIDk6XE2UjTiM3 kFptgKVU55++zfr4F4dYs3vLIiU0dnRIra+YYIxzmmiYxMRVHsB9O6yayfgRKZqDZy9qM eGdVSGAP7x5eFxhZd3xFxDs0sVg1L9jwK8SP5MAawA8jRj0rPPSrT8u6l0wZDX2vyOg== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609220; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=uCSBQsnFH1v0qJqLur3HuSvJBaK4cr2cKSQjBjx2zgs=; b=1kgZn9NzVWWbcfV7dk1XMTfsUdCoSHtU2xZqxu7HLAvUxHMcxhNp4BqCjlDPAwulXvXK sisLoPNdlkmlFv7rfGxM7TirXVz05WCZMmwe4+rYWzUpET59IDX1OaWugD/iQUisYuGSY Us8KcodFk5NEJpqK6cZ0imEtEZp4KZR3muUw8A+8qymuAK6pmHsXhu6VQvJVpUHn+iK14 0gD9XKo/4LdSzJR8/XQ6wbJIMEk4PBVy4WimYCFn503BzL3BnDLmIysnQFyW3ZEIEI0/f U1bmCubHXb6qPa4CUK2fXuuGryk7vjAfe70H750H2RTj344qLnyKPo82xdlCdktRVlA== 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=ISGi70qh; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 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 AA3DB60A5BD0; Fri, 13 Nov 2026 22:33:40 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1794609220; b=UrDpaTKoAeL32rogoy7KmjT87zEMbdIBFUi8Yqskg6PLc7LFDr/Krw62oWfwlUKO5zx2 OZmHbAUdq4OMuIgr1DKvan1aOxG6cDcUzi1Dwi8qWWYjfXpftheBHW68L81baZspk7n6b 5gL9rvROvTzL334uhWZPHg7SL7gm/lSRG8sKqL7Jh5vQyy3e1Ve2PSy5KR3imaO/bncFL st3F8JbsDP6Pha4XqWVqKtiK55VnkY61wUZRpBdGxED2tZnZB0NQdUXE0TgChkW1ner42 /87zEcxJ2X6Mti+lxfY4iJJvsKsbPEzYEdYvdl4B0pnET7wsBHxe7MPm9Um3LgbvKWg== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1794609220; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=uCSBQsnFH1v0qJqLur3HuSvJBaK4cr2cKSQjBjx2zgs=; b=Y00WgXSs2lycL4GCl9Lu42iSpguhWJbdbbfIQqrQQGLUoq0oEd0b8N2cre9CHj1pRi0Q JGf1gLrIqNNZuWqHZ8Zu+Sgc8C0YdkoY9YAnv+7YoSyXoGF/eFsW6KL2iMgevqmkHgffT Fvv7S/WlRJV6ES57gm1rjGsP9djDokGGr5vlPEDJ403CZ9i6gwpH2NMu1swasADhh3dY2 smwBoDYmBwROuIgWZxR/NgIJSJrPzrjONDY539q+BJEymzloIVY7vNfz8oLNsB9OhYdwU PMzoSyuk+TfmK6G1mGhY7h4YgtZ+rPWfToW53jywtMdeL5mkZLm+arl0MoY5eEZugoQ== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (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.kernel.org (Postfix) with ESMTPS id E0D3E1F00937; Fri, 13 Nov 2026 22:33:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794609220; bh=uCSBQsnFH1v0qJqLur3HuSvJBaK4cr2cKSQjBjx2zgs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=ISGi70qhfAp3wCAhR/HLl33dPfOjD30lG6Awl/KjDKfO7VppU3ysQIY/QCpEMM0IP /v4vlno1rqjj+nWtkK3JMXh/cGWTvR3JjsQnmB4C7MY9vtZnazCUrm2TjkGAHKvLKn UJk0Xv7I5GyyE/b4tUiSpYQU0xe/7BbJ64bUsVEpmdTVkIYkNwjvHksc0gGFuw0rXP R3BKrdf6m3OjAlBkaDMdWrbfhmbyrDwJqfxBO+o7Yg9+H30Z0+BX24XiRCz1u66JDl 3yEFLXZHiMnLE++W1cwkzYDCyfmXSh6P6ahPEtXDoPCqM1u2prMkZYuubRv9/o3DAP 6ifwM67qtqYmQ== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id BEF0C49B8C; Fri, 13 Nov 2026 22:33:33 +0000 (UTC) From: Han Gao via B4 Relay Date: Sat, 14 Nov 2026 06:33:40 +0800 Subject: [PATCH 14/19] pinctrl: sunxi: add support for the Allwinner V861 PIO X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261114-v861-v1-14-eb71ec3ee523@iscas.ac.cn> References: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> In-Reply-To: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guo Ren , Thomas Gleixner , Radu Rendec , Samuel Holland , Daniel Lezcano , Anup Patel , Han Gao , Stephen Boyd , Brian Masney , Jerome Brunet , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Philipp Zabel , Alexandre Belloni , Maxime Ripard , Linus Walleij , Andre Przywara Cc: Han Gao , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Conor Dooley , devicetree@vger.kernel.org, linux-csky@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, linux-gpio@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794609209; l=3631; i=gaohan@iscas.ac.cn; s=20261021; h=from:subject:message-id; bh=dyHeGHv1zlRbsyWinbBdGwEJ5XkzCvJf3cZN/GfUYvk=; b=HNsKo9qWkRP5dIQtqxM+VpZT7emu0epD/ZwzOK2CDJX/49+eucj70g22c8PstYnuPDpuVLwW6 C8J/jc4D4tYDvHgV0PCOxmlDH2E+Huq7coTiH6w6N1oXNtS4dDJKdH1 X-Developer-Key: i=gaohan@iscas.ac.cn; a=ed25519; pk=J8WHEK3filS86QaCaIHDGafqhxKyQ4K7+vFgRirTIiY= X-Endpoint-Received: by B4 Relay for gaohan@iscas.ac.cn/20261021 with auth_id=1262 X-Original-From: Han Gao Reply-To: gaohan@iscas.ac.cn X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX From: Han Gao Add the V861 main pin controller driver, using the DT based function tables. The 1.8 V mode of bank PF is not supported, as none of the existing I/O bias variants handles its control register. Signed-off-by: Han Gao --- drivers/pinctrl/sunxi/Kconfig | 10 ++++++ drivers/pinctrl/sunxi/Makefile | 1 + drivers/pinctrl/sunxi/pinctrl-sun252i-v861.c | 49 ++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+) diff --git a/drivers/pinctrl/sunxi/Kconfig b/drivers/pinctrl/sunxi/Kconfig index 831bb1dc9373..2d5ace1e5f5f 100644 --- a/drivers/pinctrl/sunxi/Kconfig +++ b/drivers/pinctrl/sunxi/Kconfig @@ -86,6 +86,16 @@ config PINCTRL_SUN20I_D1 default MACH_SUN8I || (RISCV && ARCH_SUNXI) select PINCTRL_SUNXI +config PINCTRL_SUN252I_V861 + bool "Support for the Allwinner V861 PIO" + default RISCV && ARCH_SUNXI + select PINCTRL_SUNXI + help + Support for the main pin controller of the Allwinner V861 SoC. + It provides pin multiplexing, GPIOs and GPIO interrupts for the + PA and PC to PH banks, and is required on boards based on this + SoC. + config PINCTRL_SUN50I_A64 bool "Support for the Allwinner A64 PIO" default ARM64 && ARCH_SUNXI diff --git a/drivers/pinctrl/sunxi/Makefile b/drivers/pinctrl/sunxi/Makefile index 3658c9d06b49..dc7559e260e1 100644 --- a/drivers/pinctrl/sunxi/Makefile +++ b/drivers/pinctrl/sunxi/Makefile @@ -22,6 +22,7 @@ obj-$(CONFIG_PINCTRL_SUN8I_H3) += pinctrl-sun8i-h3.o obj-$(CONFIG_PINCTRL_SUN8I_H3_R) += pinctrl-sun8i-h3-r.o obj-$(CONFIG_PINCTRL_SUN8I_V3S) += pinctrl-sun8i-v3s.o obj-$(CONFIG_PINCTRL_SUN20I_D1) += pinctrl-sun20i-d1.o +obj-$(CONFIG_PINCTRL_SUN252I_V861) += pinctrl-sun252i-v861.o obj-$(CONFIG_PINCTRL_SUN50I_H5) += pinctrl-sun50i-h5.o obj-$(CONFIG_PINCTRL_SUN50I_H6) += pinctrl-sun50i-h6.o obj-$(CONFIG_PINCTRL_SUN50I_H6_R) += pinctrl-sun50i-h6-r.o diff --git a/drivers/pinctrl/sunxi/pinctrl-sun252i-v861.c b/drivers/pinctrl/sunxi/pinctrl-sun252i-v861.c new file mode 100644 index 000000000000..742465076d86 --- /dev/null +++ b/drivers/pinctrl/sunxi/pinctrl-sun252i-v861.c @@ -0,0 +1,49 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Allwinner V861 SoC pinctrl driver. + * + * Copyright (c) 2026 Han Gao + */ + +#include +#include +#include + +#include "pinctrl-sunxi.h" + +static const u8 v861_nr_bank_pins[SUNXI_PINCTRL_MAX_BANKS] = +/* PA PB PC PD PE PF PG PH */ + { 22, 0, 12, 23, 18, 7, 8, 16 }; + +static const unsigned int v861_irq_bank_map[] = { 0, 2, 3, 4, 5, 6, 7 }; + +static const u8 v861_irq_bank_muxes[SUNXI_PINCTRL_MAX_BANKS] = +/* PA PB PC PD PE PF PG PH */ + { 14, 0, 14, 14, 14, 14, 14, 14 }; + +static struct sunxi_pinctrl_desc v861_pinctrl_data = { + .irq_banks = ARRAY_SIZE(v861_irq_bank_map), + .irq_bank_map = v861_irq_bank_map, +}; + +static int v861_pinctrl_probe(struct platform_device *pdev) +{ + return sunxi_pinctrl_dt_table_init(pdev, v861_nr_bank_pins, + v861_irq_bank_muxes, + &v861_pinctrl_data, + SUNXI_PINCTRL_NCAT2_REG_LAYOUT); +} + +static const struct of_device_id v861_pinctrl_match[] = { + { .compatible = "allwinner,sun252i-v861-pinctrl", }, + {} +}; + +static struct platform_driver v861_pinctrl_driver = { + .probe = v861_pinctrl_probe, + .driver = { + .name = "sun252i-v861-pinctrl", + .of_match_table = v861_pinctrl_match, + }, +}; +builtin_platform_driver(v861_pinctrl_driver); From patchwork Fri Nov 13 22:33:41 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Han Gao via B4 Relay X-Patchwork-Id: 4092 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mxe881.netcup.net (Postfix) with ESMTPS id C3F621C58FA for ; Fri, 13 Nov 2026 23:35:04 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=kernel.org; spf=pass (sender IP is 172.234.253.10) smtp.mailfrom=linux-sunxi+bounces-27611-noreply=patchwork.local@lists.linux.dev smtp.helo=sea.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.234.253.10 as permitted sender) client-ip=172.234.253.10; envelope-from=linux-sunxi+bounces-27611-noreply=patchwork.local@lists.linux.dev; helo=sea.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 46D9DE5FF1 for ; Fri, 13 Nov 2026 22:34:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609224; b=PR039uHY+cBG0WDEeiACRnt5Jxrd8FE4ZQrvrwm8dvyV0uUPcfLpj9jqxSigyY7XzD3l KuEUMdRfRkltfTytjfcsQWKHtdiMLAIpzF969m/GdFEa9NHti7i8qZzbt9FkWtyWEkc91 9zqayHeWntoJkHb2FLa/ixhYqt+4dwxrWIIoAW2GI7W3Bd9EH+efIPwicgfYGu3gWI7Nn yD1P/tjgbRpF3JsNuIXB2B/+W60adHz8iL5aHvyx80bskja/tzMtClt1aeVLIQ3ycPo3N sJRpLp/QwITiBqiNqs4ZBTwTDDPef8JtmojbyPgGMs5lsKo5NpS0ZT3dIDZTsuaYtyQ== ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609224; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=ymDT2ywdHkV5IDBLyNBgFqkWVxAvYgd6Yg9frSGix/8=; b=omHpbAurY+i3FAvnsVSKoEi3xr0T6psho1Lu24zJw0Q9UKNiqY2CXZvfDD1nSHVhXgcz J/jSN7f9OvQEDia31DUQB2WG/am9jqrhcBfAyg+SZuXsScX7TkVt6MQjczYlyi/kcnQ+H 7v1IYQD0XCQOs48Ak/BO9TO3UQWE/3YvmAX0uniYBsDgVfiqOIBYZBJ3g697UI4W2d506 RM60MgYh1SG9367yEp7uRHZEIaOuaqMnyOpOKnmIE+ZNsw5Jab0+CTAHOHUcn7DnxdkPZ ACA80aKAfziMkyPC6hwOxyrmepteE6gaUV5Womw43ThHPS4eowzzRw5Af5oA94G1/IQ== ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="MMU/ZoQ4"; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 201B5606B78D; Fri, 13 Nov 2026 22:33:44 +0000 (UTC) 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=MMU/ZoQ4 X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609224; b=xEnRy6DWl5cPu/h1v6ch4dcJn+2QgLfBV/8GuC4ELzumqPh1yHtcc7DNoI6lHjR6xfWa gLLIPrZBvYGq0rdsGJSpyN92XvcOl5gd5A+llNB9qsXA/RdAYP6jAEp6DVdMiX7n6b9P4 W1y+mnGoL1J6ppf7xfCQoaEkLE4Er3WMphlDpFZf4uGyeO3cWLrrYs7xnEdNy4rgSTfzs M2T3n/kw/rNwfz8bhZvPquRcV7R3G2m83ab2VdiJ1iv7eOUsuPRyLbQnkRYeho35YediF ICU/nKsVXI27KZCT4h8va9Rvp89w1innQRCoTFBTfX1Amy6KF20vpnYZouGVvdkDuwg== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609224; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=ymDT2ywdHkV5IDBLyNBgFqkWVxAvYgd6Yg9frSGix/8=; b=EpWu+Ve9o51C3EmcLYqvK5IEC47JMi7aTZXehzoxsbOVn57bhOW556fcz6QeCHAYHpvS XO1v6K/BT9fZwM33yJ2LuCppI2erhtZeoCrzV0R+e/Pk28I1CV451w0OTLGgU3vILBolQ AbW/SAitO69BnB9TsHbkgPlGt8iUZS2mmkAPdkIaHXfsXZ4TaDNTXD8tX88gsDCXixPs0 Kx/aaFAwwV+GmuFz3O682A2smRDz48C9itQvptnM7N508zBTMB33ckA52U2dlU8I8U2nN 38dpwemWj/ozCYR4X/ku3ZZVn9rbpZnJR+10vRJnoGAh1IIzYYCmyxOR/rJJR4oJ4jg== 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="MMU/ZoQ4"; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 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 EFD0E606B781; Fri, 13 Nov 2026 22:33:43 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1794609223; b=jpYzcFJTFpiAeRDkzmdIlnLc0B0IVOciXmjW+8jX4jKeDF8JrfXuKbmhtm5B+Ax3q5Hz 0cmjO8IwyVFp0mEazchU0U1PfZWekiyMzfu5xRo5MLY3rgLGVTNY0UOZ5LQbENA7713OA XZoyvnktsoOlS4vQdGAYajsRR21WVX+vNhidXrZrVj4iseZeZWrMrLdVb5pRTByvgvy+v 8cK5jNiBg2NK3PpggPmAvvjmIBgnXVxqDJFWtQk1r3FbV39SQjF03eGMCp1PJKKi4MSed gjf+NwPA3x83I3o8NeZD6aFjkkWQ4oB0BhUegAPms6KtEWsVpWb9ALNwKK9JwtD9PxQ== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1794609223; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=ymDT2ywdHkV5IDBLyNBgFqkWVxAvYgd6Yg9frSGix/8=; b=UUX8Uoxctoimqn9KsvHk59xDPxJ4H0ZnBFrYoh3/mBCJPHCCcNf08wye9lSsl/xpQpHf JOyCha8QeRCmxiZ5z00895xBuveO7+H1TRLuNLtdslqwpzWWxQUpS0sLilBz6Q6QcPCy/ P7ibDHwKzMZ8TB3diX187XyLjxY62zXgxnqPNeZO6JTVXN9oy4BiCvd1KzMqmCGO21l21 +7EsGgZ3bXucdTQfe17NLnOe66d6G+u0Fw+hnMBWzit+rsOMBR82aaQwp8MzKHtoJCEbn SV+tIM4gBCoDBP7WJJHIiGKWZKUm2afMn5Ln+qw04cC+nFEE/O//ixjm4kXephw/uDw== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (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.kernel.org (Postfix) with ESMTPS id CEA591F000C8; Fri, 13 Nov 2026 22:33:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794609223; bh=ymDT2ywdHkV5IDBLyNBgFqkWVxAvYgd6Yg9frSGix/8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=MMU/ZoQ4WLwPRw3M/jWKurzZmRCAmq+WujA+uyjmjlqLsWHNl2R9s8+C9zbb7s8Ij JW4/keGTzGMNul5uYCdiGDQrhoCfkLTTnA4D6ci1PeTKaUt43RBHbyBOQMUuLqTygM hH6N4g16N0Ey26N3jLEtQ+J2XEVQzE6AvZ8tIEfsk80J8EBLqLfYDc6qIpe6d/QbFs DwXbacyQYVHmeqSkCstJgP9akCSH/TiTHw9Z2daxvkGnKE+hSUfiSjbPdF13vQqT13 xaFrOjYtoGGJVgYJF9SZe5kuBhyu3IXGM8zRMs9m4U0trTBZypiwe9RnIOq9Wc5Qnh yo4SMmuaxrIWQ== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id D34D749B8F; Fri, 13 Nov 2026 22:33:33 +0000 (UTC) From: Han Gao via B4 Relay Date: Sat, 14 Nov 2026 06:33:41 +0800 Subject: [PATCH 15/19] pinctrl: sunxi: add support for the Allwinner V861 R-PIO X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261114-v861-v1-15-eb71ec3ee523@iscas.ac.cn> References: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> In-Reply-To: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guo Ren , Thomas Gleixner , Radu Rendec , Samuel Holland , Daniel Lezcano , Anup Patel , Han Gao , Stephen Boyd , Brian Masney , Jerome Brunet , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Philipp Zabel , Alexandre Belloni , Maxime Ripard , Linus Walleij , Andre Przywara Cc: Han Gao , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Conor Dooley , devicetree@vger.kernel.org, linux-csky@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, linux-gpio@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794609209; l=3471; i=gaohan@iscas.ac.cn; s=20261021; h=from:subject:message-id; bh=7xONjG+lp46a2hTV2q5H0YzzfrAGY6ULMHzpssbSP/k=; b=/oFgWs5YN9Op9atdNmxvGndgT/Pdy+xc5IyN8DLmLOkLQ4P2/EExPX6dzuj9XgE8LlgdjUcK8 leKgDoRdJmDCL2FkiNczbYcllswSsNf8Mr4q1HKTVAWfI8lYvws8gnd X-Developer-Key: i=gaohan@iscas.ac.cn; a=ed25519; pk=J8WHEK3filS86QaCaIHDGafqhxKyQ4K7+vFgRirTIiY= X-Endpoint-Received: by B4 Relay for gaohan@iscas.ac.cn/20261021 with auth_id=1262 X-Original-From: Han Gao Reply-To: gaohan@iscas.ac.cn X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX From: Han Gao Add the V861 always-on pin controller driver, using the DT based function tables. The manual calls it RTC_GPIO. Signed-off-by: Han Gao --- drivers/pinctrl/sunxi/Kconfig | 10 ++++++ drivers/pinctrl/sunxi/Makefile | 1 + drivers/pinctrl/sunxi/pinctrl-sun252i-v861-r.c | 48 ++++++++++++++++++++++++++ 3 files changed, 59 insertions(+) diff --git a/drivers/pinctrl/sunxi/Kconfig b/drivers/pinctrl/sunxi/Kconfig index 2d5ace1e5f5f..80a53d3619d4 100644 --- a/drivers/pinctrl/sunxi/Kconfig +++ b/drivers/pinctrl/sunxi/Kconfig @@ -96,6 +96,16 @@ config PINCTRL_SUN252I_V861 PA and PC to PH banks, and is required on boards based on this SoC. +config PINCTRL_SUN252I_V861_R + bool "Support for the Allwinner V861 R-PIO" + default RISCV && ARCH_SUNXI + select PINCTRL_SUNXI + help + Support for the always-on pin controller of the Allwinner V861 + SoC. It provides pin multiplexing, GPIOs and GPIO interrupts for + the PL bank, and is required on boards based on this SoC. + Say Y here if you are building a kernel for such a board. + config PINCTRL_SUN50I_A64 bool "Support for the Allwinner A64 PIO" default ARM64 && ARCH_SUNXI diff --git a/drivers/pinctrl/sunxi/Makefile b/drivers/pinctrl/sunxi/Makefile index dc7559e260e1..f3e601f61ce3 100644 --- a/drivers/pinctrl/sunxi/Makefile +++ b/drivers/pinctrl/sunxi/Makefile @@ -23,6 +23,7 @@ obj-$(CONFIG_PINCTRL_SUN8I_H3_R) += pinctrl-sun8i-h3-r.o obj-$(CONFIG_PINCTRL_SUN8I_V3S) += pinctrl-sun8i-v3s.o obj-$(CONFIG_PINCTRL_SUN20I_D1) += pinctrl-sun20i-d1.o obj-$(CONFIG_PINCTRL_SUN252I_V861) += pinctrl-sun252i-v861.o +obj-$(CONFIG_PINCTRL_SUN252I_V861_R) += pinctrl-sun252i-v861-r.o obj-$(CONFIG_PINCTRL_SUN50I_H5) += pinctrl-sun50i-h5.o obj-$(CONFIG_PINCTRL_SUN50I_H6) += pinctrl-sun50i-h6.o obj-$(CONFIG_PINCTRL_SUN50I_H6_R) += pinctrl-sun50i-h6-r.o diff --git a/drivers/pinctrl/sunxi/pinctrl-sun252i-v861-r.c b/drivers/pinctrl/sunxi/pinctrl-sun252i-v861-r.c new file mode 100644 index 000000000000..fef0ed2e2684 --- /dev/null +++ b/drivers/pinctrl/sunxi/pinctrl-sun252i-v861-r.c @@ -0,0 +1,48 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Allwinner V861 SoC r-pinctrl driver. + * + * Copyright (c) 2026 Han Gao + */ + +#include +#include +#include + +#include "pinctrl-sunxi.h" + +static const u8 v861_r_nr_bank_pins[SUNXI_PINCTRL_MAX_BANKS] = +/* PL */ + { 7 }; + +static const u8 v861_r_irq_bank_muxes[SUNXI_PINCTRL_MAX_BANKS] = +/* PL */ + { 14 }; + +static struct sunxi_pinctrl_desc v861_r_pinctrl_data = { + .irq_banks = 1, + .irq_reg_base = 0x40, /* PL_INT_CFG0 */ + .pin_base = PL_BASE, +}; + +static int v861_r_pinctrl_probe(struct platform_device *pdev) +{ + return sunxi_pinctrl_dt_table_init(pdev, v861_r_nr_bank_pins, + v861_r_irq_bank_muxes, + &v861_r_pinctrl_data, + SUNXI_PINCTRL_NCAT2_REG_LAYOUT); +} + +static const struct of_device_id v861_r_pinctrl_match[] = { + { .compatible = "allwinner,sun252i-v861-r-pinctrl", }, + {} +}; + +static struct platform_driver v861_r_pinctrl_driver = { + .probe = v861_r_pinctrl_probe, + .driver = { + .name = "sun252i-v861-r-pinctrl", + .of_match_table = v861_r_pinctrl_match, + }, +}; +builtin_platform_driver(v861_r_pinctrl_driver); From patchwork Fri Nov 13 22:33:42 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Han Gao via B4 Relay X-Patchwork-Id: 4094 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mxe881.netcup.net (Postfix) with ESMTPS id B9D9A1C50BD for ; Fri, 13 Nov 2026 23:35:35 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=kernel.org; spf=pass (sender IP is 172.234.253.10) smtp.mailfrom=linux-sunxi+bounces-27613-noreply=patchwork.local@lists.linux.dev smtp.helo=sea.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.234.253.10 as permitted sender) client-ip=172.234.253.10; envelope-from=linux-sunxi+bounces-27613-noreply=patchwork.local@lists.linux.dev; helo=sea.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 1ABDDE18AE for ; Fri, 13 Nov 2026 22:34:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609226; b=HbnoillU9LK5bqPZzDZG9iNNLmHZ1DxbtG7vEZIsLq2ZFu8R3uQ0NSRFaTd2MEu6tQ7Q yEG4TLHrnhlrvb8noEsW5wTeBnP61mShyCX+FHtHvh4+3njvNgURBpKEVgzTXh28IQSyU LWKXE+4TT/ZkUyxvF4ET57uldtvRdsLehqQyiP3GHEsNin4O02i6tGLeqp6H08xSIZHWs YxNCfEk12yLSvnJmJbbPxsJtmCs/J7y1a8h8mSj616tYrtA5+oQDoVHfZO77HsTmKM5Wj Tt2Fe95Kq3Zsy9VtPEfP+VD318ex7gW6eZQNP5X2cTW7lkSL3lMb5YFh/w11rLspa0A== ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609226; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=DOxML222XmvL+DQT7TqgyzdlYBmAoo3ZeZbVK+z7caI=; b=mvymgAsYBNWBjxRUkTKvulF0ek4g217m/bZV2TGYZ3+BNDCCJKAyn/wW/zOsEbCQxJpW Tz56ftWrDTInbYOOh5GSSVgjw2b2PQdyGZKBVTt0W2uQHZWCGZoo40RNogpGuO/YptZp2 lG+u61xioQLTtfC4IAKD9x6kR4cRRi4a9EcbTWRhoMiN6TNNkx6x9eNbiyv9yDPRZg78R H2rcB2hGDTVhGTvPlzf5GXMISA5HO0+mTXwIRrxVbmO5hmJ9/v19s+i9Mw/TtZy4XFIMm rIrgiPqgGYuphDzNZ++nSgLeryf0zo98Fu8Id+pbcc5xSQ13kUeizAQ2yrphuGA8LlA== ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Si1YQPIi; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D79B60A260D; Fri, 13 Nov 2026 22:33:46 +0000 (UTC) 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=Si1YQPIi X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609226; b=oCwrW3Ngh1ByUtn/7O6vDMhFhOlK9exikFEcHrr0/OGVWikgOmRh+Y88t3deClHAPaV9 rjymdsWF8WsjzHsfLQNxOYUGcRQbr73d7pdHmvQkE5o3+SWGUUccmPr0vVykQWEjiFM/c PhiOHZ35ddHkdHRDT13eUYD33x47swkVDNH7xx0CLhBO4EcWTsDHqqBcJuYq9fqFRa+AJ jKifFr8Fp8X87/GzDcd2PcuA9tImgKcPDK8KsGy0wxrAbhSG3cDHtNO+97KvO8YnMh/9g heDVyO3IoAY+QJLbPp6DUYwlR/qH41PsqHv2uHUg2ghx4IQ40yqQFU2/nlQNSdRqq0A== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609226; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=DOxML222XmvL+DQT7TqgyzdlYBmAoo3ZeZbVK+z7caI=; b=hR658QStzH3WlG5mxWp1Q42q8ATetQ0ooYlXp2MiKeuRfN9y8DV+Kehx37qqyiSRqeU1 /PLEQF3AQz0g0BoESrd8rtMwcev4cQcybqzp/ZOtHMS702yB7ecI85rOd37O0L7gHC8lI NwHOqONafuVfb/Gho9Ck8pTcwfmXZP6KSn/bWihLR8BbpxeKTGxy8+4XdJM9o2ZhLLsqb yAPUHbZHxy+TTA7DfeFw4tQni/iiMuaQIb0OLUViEEO1ogPT2faAz+S48Ghps5IvD91P1 iShwOBOsxZI9dulVZKafQhdnPzasTwqv//W++MPZTAOiiwMbiahDsr31Fk+O6k4OV1A== 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=Si1YQPIi; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 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 3B6DB606B7BF; Fri, 13 Nov 2026 22:33:46 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1794609226; b=u7WsHHvDdl5qnZDs26Flt1iIg5HOYE1yBSHu6Pc6OUKdRn0/fKVSn7Rn1jdrNr4cxMxH jQ/t9Ft+c7E1Q+lcE1lHmP+91Om5KpSRaGyq/dC9aS0L2XqiGFUwVAoHHOXd6VAYq1a8G vBUEys45q6r3lsM9jQeYPvJdJjXnWbc7YruZvXinlfBjntN/BT0RFczSXCMZuD1ZT2EPW Fszq+52RfBJq24ZnvfME34cMpcu/d6v1hLm6TzNZa/TJWLDLGzHkX57U3moPGTvsQweV2 xn2zIH5PeBC6EbInCnaZ0L7M+zsSjvg5H+Ut0M2f04q0oGNE9//3QhyBni9nyVVIIhg== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1794609226; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=DOxML222XmvL+DQT7TqgyzdlYBmAoo3ZeZbVK+z7caI=; b=FQRuxepSbIC65jGX6U0m2sE34mjW5sKjSWo+lFOYl0qwMEOp7aIbu7wV0p+1GEL1KUl6 peU8M/qy+umHKnQq8DkU5dN8z0DyldSL73kWje3PMn1fq/QQMvBlP+RZi5wmj4CsaN1/t vSESao+4O7/8QBuJiuIxHYjwq0me9BnLUfHY8m9uBDcDH/S15oG+jtDc06/J/b6umQecY HonamVyD6xfz3fJZjriAs2hTsWzR3gNNYYvU0le+yn/A7HDJ4uTCXaUd7SWpCeKAptQyu qHeDY89IBRTk5vUAQsTFC72mjs0Tos3wyzWhGIany4GERyNOg844F7SrbFaQksZYomA== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (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.kernel.org (Postfix) with ESMTPS id E8BDF1F0182C; Fri, 13 Nov 2026 22:33:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794609225; bh=DOxML222XmvL+DQT7TqgyzdlYBmAoo3ZeZbVK+z7caI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=Si1YQPIiFo35Y4t5bymDfMNz84lejIvPobizIkdyRlboRMXCBmVo3l2ed2EQg5wB+ PpFyJKbnjHErVW/Iytdm42aVqpZytIQgUh8QJ33OpMb/4/W7XD6+IcPW6V+BSPuStJ nSP9Plk4Z59vk9LsErhygovdY0lTPUBkJrAZQUQBv1zY0tVG3xaWOr4cAh45l2cCy8 XZ71SrAl6Pl8OcQtJVnujFfCebDGjsYTlmKWhJfiBFYoBf8r0VPlPtTtvWdgFJC0MS FFbBrtDNsXNBIkKzc147UvoR8pfHYpVxttNTV2uQiv4y6raqVJ+TtyVssJxulKcY7M KzSCuUhC7NjaQ== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id E7F9C49B93; Fri, 13 Nov 2026 22:33:33 +0000 (UTC) From: Han Gao via B4 Relay Date: Sat, 14 Nov 2026 06:33:42 +0800 Subject: [PATCH 16/19] riscv: dts: allwinner: add the Allwinner V861 SoC X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261114-v861-v1-16-eb71ec3ee523@iscas.ac.cn> References: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> In-Reply-To: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guo Ren , Thomas Gleixner , Radu Rendec , Samuel Holland , Daniel Lezcano , Anup Patel , Han Gao , Stephen Boyd , Brian Masney , Jerome Brunet , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Philipp Zabel , Alexandre Belloni , Maxime Ripard , Linus Walleij , Andre Przywara Cc: Han Gao , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Conor Dooley , devicetree@vger.kernel.org, linux-csky@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, linux-gpio@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794609209; l=10397; i=gaohan@iscas.ac.cn; s=20261021; h=from:subject:message-id; bh=I8wnVF/DxQ+OwPzKUk/zbleMxuzgspwkeJdPCkKcyAI=; b=XbE5JqKc/+xicVaxMpURs2OAsP30uKgCVuEGNLvpjV1/qMGyJEQsGJqL5Vkjv64UiYtdMrdQk kfuyEydjd9YB+W+cJRNAlUu2rx9g6dTgHRTPm2wELTS4q3j4Bl+DDc0 X-Developer-Key: i=gaohan@iscas.ac.cn; a=ed25519; pk=J8WHEK3filS86QaCaIHDGafqhxKyQ4K7+vFgRirTIiY= X-Endpoint-Received: by B4 Relay for gaohan@iscas.ac.cn/20261021 with auth_id=1262 X-Original-From: Han Gao Reply-To: gaohan@iscas.ac.cn X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [3.31 / 15.00]; RBL_SENDERSCORE(2.00)[172.234.253.10:from]; SUSPICIOUS_RECIPS(1.50)[]; MAILLIST(-0.18)[generic]; MIME_GOOD(-0.10)[text/plain]; BAD_REP_POLICIES(0.10)[]; HAS_LIST_UNSUB(-0.01)[]; FREEMAIL_CC(0.00)[gmail.com,lists.infradead.org,vger.kernel.org,sifive.com,kernel.org,lists.linux.dev]; FORGED_SENDER_MAILLIST(0.00)[]; FROM_HAS_DN(0.00)[]; TAGGED_RCPT(0.00)[dt,clk]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; DBL_BLOCKED_OPENRESOLVER(0.00)[sea.lore.kernel.org:helo,sea.lore.kernel.org:rdns]; RCPT_COUNT_TWELVE(0.00)[38]; HAS_REPLYTO(0.00)[gaohan@iscas.ac.cn]; R_DKIM_ALLOW(0.00)[kernel.org:s=k20260515]; ARC_ALLOW(0.00)[kernel.org:s=arc20260519:i=3]; DKIM_TRACE(0.00)[kernel.org:+]; DMARC_POLICY_ALLOW(0.00)[kernel.org,quarantine]; R_SPF_ALLOW(0.00)[+ip4:172.234.253.10]; TO_DN_SOME(0.00)[]; FROM_NEQ_ENVFROM(0.00)[devnull@kernel.org,linux-sunxi@lists.linux.dev]; FREEMAIL_TO(0.00)[kernel.org,dabbelt.com,eecs.berkeley.edu,ghiti.fr,rendec.net,sifive.com,brainfault.org,iscas.ac.cn,redhat.com,baylibre.com,gmail.com,sholland.org,pengutronix.de,bootlin.com,arm.com]; MIME_TRACE(0.00)[0:+]; TAGGED_FROM(0.00)[bounces-27613-noreply=patchwork.local,gaohan.iscas.ac.cn]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; ASN(0.00)[asn:63949, ipnet:172.234.224.0/19, country:SG]; RCVD_TLS_LAST(0.00)[]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.234.253.10:from] X-Rspamd-Queue-Id: B9D9A1C50BD X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX From: Han Gao Add the V861 SoC with its two C907 harts, PLIC, CLINT, clock controllers, RTC, pin controllers and UART0. The cache geometry and PMU events come from the V861 and C907 manuals. Zcb, Zbkc and Zvfh were also checked to work on the hardware. Signed-off-by: Han Gao Reviewed-by: GUO Ren (XuanTie) --- arch/riscv/boot/dts/allwinner/sun252i-v861.dtsi | 272 ++++++++++++++++++++++++ 1 file changed, 272 insertions(+) diff --git a/arch/riscv/boot/dts/allwinner/sun252i-v861.dtsi b/arch/riscv/boot/dts/allwinner/sun252i-v861.dtsi new file mode 100644 index 000000000000..7a18b973ee32 --- /dev/null +++ b/arch/riscv/boot/dts/allwinner/sun252i-v861.dtsi @@ -0,0 +1,272 @@ +// SPDX-License-Identifier: (GPL-2.0-only OR MIT) +/* Copyright (c) 2026 Han Gao */ + +#include +#include +#include +#include +#include +#include + +/ { + #address-cells = <2>; + #size-cells = <2>; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + timebase-frequency = <24000000>; + + cpu0: cpu@0 { + compatible = "csky,c907", "riscv"; + device_type = "cpu"; + reg = <0>; + d-cache-block-size = <64>; + d-cache-sets = <64>; + d-cache-size = <16384>; + i-cache-block-size = <64>; + i-cache-sets = <64>; + i-cache-size = <16384>; + mmu-type = "riscv,sv39"; + next-level-cache = <&l2_cache>; + riscv,isa-base = "rv64i"; + riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "b", "v", + "zicbom", "zicbop", "zicboz", "zicntr", "zicond", + "zicsr", "zifencei", "zihintntl", "zihintpause", + "zihpm", "zawrs", "zfa", "zfbfmin", "zfh", + "zca", "zcb", "zcd", "zba", "zbb", "zbc", "zbkc", + "zbs", "zkt", "zvfbfmin", "zvfbfwma", "zvfh", + "sscofpmf", "sstc", "svinval", "svnapot", "svpbmt"; + riscv,cbom-block-size = <64>; + riscv,cbop-block-size = <64>; + riscv,cboz-block-size = <64>; + + cpu0_intc: interrupt-controller { + compatible = "riscv,cpu-intc"; + interrupt-controller; + #interrupt-cells = <1>; + }; + }; + + cpu1: cpu@1 { + compatible = "csky,c907", "riscv"; + device_type = "cpu"; + reg = <1>; + d-cache-block-size = <64>; + d-cache-sets = <64>; + d-cache-size = <16384>; + i-cache-block-size = <64>; + i-cache-sets = <64>; + i-cache-size = <16384>; + mmu-type = "riscv,sv39"; + next-level-cache = <&l2_cache>; + riscv,isa-base = "rv64i"; + riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "b", "v", + "zicbom", "zicbop", "zicboz", "zicntr", "zicond", + "zicsr", "zifencei", "zihintntl", "zihintpause", + "zihpm", "zawrs", "zfa", "zfbfmin", "zfh", + "zca", "zcb", "zcd", "zba", "zbb", "zbc", "zbkc", + "zbs", "zkt", "zvfbfmin", "zvfbfwma", "zvfh", + "sscofpmf", "sstc", "svinval", "svnapot", "svpbmt"; + riscv,cbom-block-size = <64>; + riscv,cbop-block-size = <64>; + riscv,cboz-block-size = <64>; + + cpu1_intc: interrupt-controller { + compatible = "riscv,cpu-intc"; + interrupt-controller; + #interrupt-cells = <1>; + }; + }; + + l2_cache: l2-cache { + compatible = "cache"; + cache-block-size = <64>; + cache-level = <2>; + cache-sets = <128>; + cache-size = <131072>; + cache-unified; + }; + }; + + osc24M: osc24M-clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + clock-output-names = "osc24M"; + }; + + pmu { + compatible = "riscv,pmu"; + riscv,event-to-mhpmcounters = + <0x00003 0x00006 0x0007fff8>, + <0x00008 0x00009 0x0007fff8>, + <0x10000 0x10003 0x0007fff8>, + <0x10008 0x10009 0x0007fff8>, + <0x10019 0x10019 0x0007fff8>, + <0x1001b 0x1001b 0x0007fff8>, + <0x10021 0x10021 0x0007fff8>, + <0x10028 0x10029 0x0007fff8>; + riscv,event-to-mhpmevent = + <0x00003 0x00000000 0x000000a5>, + <0x00004 0x00000000 0x000000a6>, + <0x00005 0x00000000 0x00000036>, + <0x00006 0x00000000 0x00000038>, + <0x00008 0x00000000 0x00000027>, + <0x00009 0x00000000 0x00000028>, + <0x10000 0x00000000 0x0000000c>, + <0x10001 0x00000000 0x0000000d>, + <0x10002 0x00000000 0x0000000e>, + <0x10003 0x00000000 0x0000000f>, + <0x10008 0x00000000 0x00000001>, + <0x10009 0x00000000 0x00000002>, + <0x10019 0x00000000 0x000000a4>, + <0x1001b 0x00000000 0x000000a3>, + <0x10021 0x00000000 0x00000003>, + <0x10028 0x00000000 0x00000036>, + <0x10029 0x00000000 0x00000038>; + riscv,raw-event-to-mhpmcounters = + <0x00000000 0x00000001 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x00000002 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x00000003 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x00000005 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x00000006 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x00000007 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x00000008 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x00000009 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x0000000b 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x0000000c 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x0000000d 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x0000000e 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x0000000f 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x00000016 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x0000001b 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x0000001c 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x0000001d 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x0000001f 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x00000020 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x00000021 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x00000023 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x00000025 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x00000027 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x00000028 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x00000029 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x0000002a 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x00000030 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x00000036 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x00000038 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x0000009b 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x0000009c 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x0000009e 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x000000a3 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x000000a4 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x000000a5 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x000000a6 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x000000a7 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x000000a8 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x000000a9 0xffffffff 0xffffffff 0x0007fff8>, + <0x00000000 0x000000aa 0xffffffff 0xffffffff 0x0007fff8>; + }; + + soc { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + interrupt-parent = <&plic>; + ranges; + dma-noncoherent; + + pio: pinctrl@2000000 { + compatible = "allwinner,sun252i-v861-pinctrl"; + reg = <0 0x02000000 0 0x400>; + interrupts = <67 IRQ_TYPE_LEVEL_HIGH>, <71 IRQ_TYPE_LEVEL_HIGH>, + <73 IRQ_TYPE_LEVEL_HIGH>, <75 IRQ_TYPE_LEVEL_HIGH>, + <77 IRQ_TYPE_LEVEL_HIGH>, <79 IRQ_TYPE_LEVEL_HIGH>, + <81 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&ccu CLK_APB0>, <&osc24M>, <&rtc CLK_OSC32K>; + clock-names = "apb", "hosc", "losc"; + gpio-controller; + #gpio-cells = <3>; + interrupt-controller; + #interrupt-cells = <3>; + + uart0_ph_pins: uart0-ph-pins { + pins = "PH9", "PH10"; + function = "uart0"; + allwinner,pinmux = <5>; + bias-pull-up; + }; + }; + + r_pio: pinctrl@2000540 { + compatible = "allwinner,sun252i-v861-r-pinctrl"; + reg = <0 0x02000540 0 0x60>; + interrupts = <85 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&ccu CLK_APB0>, <&osc24M>, <&rtc CLK_OSC32K>; + clock-names = "apb", "hosc", "losc"; + gpio-controller; + #gpio-cells = <3>; + interrupt-controller; + #interrupt-cells = <3>; + }; + + ccu: clock-controller@2001000 { + compatible = "allwinner,sun252i-v861-ccu"; + reg = <0 0x02001000 0 0x1000>; + clocks = <&osc24M>, <&rtc CLK_OSC32K>, <&rtc CLK_IOSC>; + clock-names = "hosc", "losc", "iosc"; + #clock-cells = <1>; + #reset-cells = <1>; + }; + + uart0: serial@2500000 { + compatible = "snps,dw-apb-uart"; + reg = <0 0x02500000 0 0x400>; + interrupts = <2 IRQ_TYPE_LEVEL_HIGH>; + reg-shift = <2>; + reg-io-width = <4>; + clocks = <&ccu CLK_BUS_UART0>; + resets = <&ccu RST_BUS_UART0>; + status = "disabled"; + }; + + r_ccu: clock-controller@7010000 { + compatible = "allwinner,sun252i-v861-r-ccu"; + reg = <0 0x07010000 0 0x400>; + clocks = <&osc24M>, <&rtc CLK_OSC32K>, <&rtc CLK_IOSC>, + <&ccu CLK_PLL_PERIPH0_200M>; + clock-names = "hosc", "losc", "iosc", "pll-periph"; + #clock-cells = <1>; + #reset-cells = <1>; + }; + + rtc: rtc@7090000 { + compatible = "allwinner,sun252i-v861-rtc", + "allwinner,sun50i-r329-rtc"; + reg = <0 0x07090000 0 0x400>; + interrupts = <138 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&r_ccu CLK_BUS_R_RTC>, <&osc24M>, + <&r_ccu CLK_R_AHB>; + clock-names = "bus", "hosc", "ahb"; + #clock-cells = <1>; + }; + + plic: interrupt-controller@30000000 { + compatible = "allwinner,sun252i-v861-plic", "thead,c900-plic"; + reg = <0 0x30000000 0 0x4000000>; + interrupts-extended = <&cpu0_intc 11>, <&cpu0_intc 9>, + <&cpu1_intc 11>, <&cpu1_intc 9>; + riscv,ndev = <150>; + interrupt-controller; + #interrupt-cells = <2>; + #address-cells = <0>; + }; + + clint: timer@34000000 { + compatible = "allwinner,sun252i-v861-clint", "thead,c900-clint"; + reg = <0 0x34000000 0 0x10000>; + interrupts-extended = <&cpu0_intc 3>, <&cpu0_intc 7>, + <&cpu1_intc 3>, <&cpu1_intc 7>; + }; + }; +}; From patchwork Fri Nov 13 22:33:43 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Han Gao via B4 Relay X-Patchwork-Id: 4088 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mxe881.netcup.net (Postfix) with ESMTPS id A7AFF1C50BD for ; Fri, 13 Nov 2026 23:34:33 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=kernel.org; spf=pass (sender IP is 172.105.105.114) smtp.mailfrom=linux-sunxi+bounces-27608-noreply=patchwork.local@lists.linux.dev smtp.helo=tor.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.105.105.114 as permitted sender) client-ip=172.105.105.114; envelope-from=linux-sunxi+bounces-27608-noreply=patchwork.local@lists.linux.dev; helo=tor.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 70B8C61045 for ; Fri, 13 Nov 2026 22:34:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609223; b=t6wSjqh1Hmw+Rd/LLtqt7EjZ0xBiqP/DjB1pvPQhQsvKDI8VSKXNURw5fmGr7YBS07Fk 9SwQU2k4mO1Daz+vJ4WbznYSfuD4zObSCiv5CRxV7lMrvvgnIsEC+uw1xguKQRqx0oQpC sav0WdMUQxyKz2DcZ1KHdMKQYhH7vlzpQSHOpbq6qEoInElT795JzV8/Ug559i728k10N EcwiVvSgup8EjcCNEN2TpE50cjmhR0oTf1wz6KL9p5hTC0+HPrUPdXWBfv1h1bRF0HpNg 504/bVw8IkTYTMvhL5WuXggLYDf6NvCPDTJcDHdWCOxoqoonOjrABGlAPwZlHAUH/+w== ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609223; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=CAFByr2n00H9cjNvqOJZ3pMec76bQwORRhdn9gRTjKE=; b=o4+jtzt8TRxtyLOll2uOPhSBrcRgAbFGlK0K+o2W2CM0yrw20OfpTaj675ykvt7ivdUg U1fkE177hbQNJCHU6ewuWcQ+GVWlZDol+hDxFcSWMskdhrYwmFds+i2lUuE9Yj7ZdZSkd NN0a2xWL0FnKihJR6whAPKpQWouGYzNofXsBmAyFGOl4dHC0SwFZDNUGIgIS2jnN0dI+W Fg7Adu6QCJKovcmGelTAFpcvnDGQeWYwlT/yBXn+7tUSYEhzGaflTvO84V2NveKRaSzAv z9dkHrqXywZvcQYfDVOXV/+e79q1TO9ZGdatnhsHq7ct8udRg4ZWf8bYcutfIXRkWow== ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=GgBd5sd6; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 04422606AF16; Fri, 13 Nov 2026 22:33:43 +0000 (UTC) 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=GgBd5sd6 X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609222; b=cMBi1A7/QzLBoQTX2MIX842LykELZ5ae9rT1i3NxLnnwFyW2jncFuI6+Qxmcnc9hX4DS /GnmZhX4hivnO6seb2Azz4YS+5ivTDSiD5xDIAj2AKTBDC9zP2evgLDE7f1ndUtupRasV mV3FaCKBMBERPTbAJNMqcpVDe5MDCQXqgUYybE3bPMFwjKdWaSHWVZ4RqmkQOkSVkgou+ RrQc/je/1xd1k422I/H83q1g5yNau3wr+9tPppVUUd9/IoKl0Yz/kBuqTP97GwpWV2f68 YxtePgjX3F6NXzl+0EX6QzWcj7X5EttQrTBQRzISLxcxP6px920HgABD/Qqo6A+wVPA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609222; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=CAFByr2n00H9cjNvqOJZ3pMec76bQwORRhdn9gRTjKE=; b=agvDi+UczV+1wJc6Hp/oxNowES5bFRcKriAEayDyoaLm47S9wr/jdwg4MslLhIyjKeH5 oSda1DjQoauBDg7nt6Hd9wl7tShS7QaU8NngtGLrnYJQbyG5CryAoBpOAcJRPpRMX4uVC 0juGdiNVXkqqvb3uHWLzknN9g8zvP/35i2woHgTZYbABsB8GUxOc4Ht3zdr9TinnHOFTI y5hwty9a5j8bJxvpzoYczaJalZh9rvr36rB2W4LMxQaB5gEXinLqCCY5Ocj4Xq6QEOvjg zeMfGtTCdEWD5CE6vq0upBL8VlA3tnpdAdCsWQBknaDm89j9iR1eACiqkIqv0oK91xA== 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=GgBd5sd6; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 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 D6037606AF0A; Fri, 13 Nov 2026 22:33:42 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1794609222; b=Ai4ThK1bpwD9ZB8Fa3BzV7K90L7VWI8BfdH3Apv8ipz8UhZ0EgiHRxIB6nNbhTiUMrEK 2tFFnsJCuwMZ/jQltYwtl/IbAdv8a/dTnUfEXUFFoGynyzBvb0aftDYh22zAG6vLmgkhy ZqujVjVVnzhL6ukmnnRsWeY5ZT5IHE3iW6dDF6wPUErVTN4zhmsORnDkEy7vpB2VnYMMc ynI90C3T6RlpAMNDqXsIhjQqokJk+YNbVUP4HZOLE4QXo17y/6d3Wcrm8M4Zgw8obSZAl P/2z2yWCoQ41QFIxsyK3aPjscmcTvRKr6QiWqNYTWVmDfAOrFE/9MEg0hpnObJ/Fqaw== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1794609222; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=CAFByr2n00H9cjNvqOJZ3pMec76bQwORRhdn9gRTjKE=; b=e9zGbSVv5EqKimZ6BIM79T0Us6/mB4ifnUooHE308wE2xZpQkEaPQrJTyy2+x412lXIF RdOi0v4URkmqrriU9woyjlJ1CGS9lz5S617P6mt7pGrU85RTbMSwLIRjebU0AnVWQjY1I miUBFXQIXwIb7/i4071KArJZtYEdojIjNEe079RJJH6WR2UI0KbpHje/acS5zJ8FscR8P NUpkjnioYWjhVBEmgWv0G06U/0YzCjEAgHuXe1MaK/o0U1C1nLxIrQehiUpDhaNusnblX VjmRC+h3Noytutz3ccVj5E4UEE7HWj8w8HGsl2cZIE33VXPeL9qeGOqtplhS/R6GzYw== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (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.kernel.org (Postfix) with ESMTPS id 3D54D1F000D4; Fri, 13 Nov 2026 22:33:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794609222; bh=CAFByr2n00H9cjNvqOJZ3pMec76bQwORRhdn9gRTjKE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=GgBd5sd6yCT6XYKUFyZ87x2EAwlGn94mo5diQzJabbmBlWv5b3Ew37mukz50amV6p 3JRbZr2FJPMF8glmOPUJPk68IcaBlLCRed8JIt7dd0Ma4MSlwVqmYWw/QEseHiFqOc yrz3Vuql5Zb9Gkw7nwXVc57rp0LGsNoI3hzPu7g/rA/pcAZl9YLUww8QzvEu7CUFrW gqUzcdymTeH52mDEmMZzV5/IoCGZGaBtwLEWoRN04k7nGYmF08BHQRTxUUL+rfWAqk R/uDozwsk6yZFQgMiriJQt8+cmlX4aqxH2xqxnc/XLRHEiU2q8HfhgEfomS1332kzG 5CdWJfEGPTZsw== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 0956249B96; Fri, 13 Nov 2026 22:33:34 +0000 (UTC) From: Han Gao via B4 Relay Date: Sat, 14 Nov 2026 06:33:43 +0800 Subject: [PATCH 17/19] dt-bindings: riscv: sunxi: add the YuzukiHD Avaota F2 X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261114-v861-v1-17-eb71ec3ee523@iscas.ac.cn> References: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> In-Reply-To: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guo Ren , Thomas Gleixner , Radu Rendec , Samuel Holland , Daniel Lezcano , Anup Patel , Han Gao , Stephen Boyd , Brian Masney , Jerome Brunet , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Philipp Zabel , Alexandre Belloni , Maxime Ripard , Linus Walleij , Andre Przywara Cc: Han Gao , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Conor Dooley , devicetree@vger.kernel.org, linux-csky@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, linux-gpio@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794609209; l=831; i=gaohan@iscas.ac.cn; s=20261021; h=from:subject:message-id; bh=ooczlTdXN+mxwhOn3DrrtrOaDvXXu8uSmXOercqvMcg=; b=R/PxCFRHwUc43McpjXcMGYT1yN8X25eLXw30rD02e5LKxSZr/Gn1YD5tqkBM3/MPA5VI4neiy /0dXCag8VjGCzSDkaC2auQA85V+nRQZqYS0WqWgn0TPWr5Ys0vGbcPq X-Developer-Key: i=gaohan@iscas.ac.cn; a=ed25519; pk=J8WHEK3filS86QaCaIHDGafqhxKyQ4K7+vFgRirTIiY= X-Endpoint-Received: by B4 Relay for gaohan@iscas.ac.cn/20261021 with auth_id=1262 X-Original-From: Han Gao Reply-To: gaohan@iscas.ac.cn X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [3.31 / 15.00]; RBL_SENDERSCORE(2.00)[172.105.105.114:from]; SUSPICIOUS_RECIPS(1.50)[]; MAILLIST(-0.18)[generic]; BAD_REP_POLICIES(0.10)[]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; TAGGED_RCPT(0.00)[dt,clk]; R_DKIM_ALLOW(0.00)[kernel.org:s=k20260515]; FROM_HAS_DN(0.00)[]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; HAS_REPLYTO(0.00)[gaohan@iscas.ac.cn]; DBL_BLOCKED_OPENRESOLVER(0.00)[iscas.ac.cn:replyto,iscas.ac.cn:email,tor.lore.kernel.org:helo,tor.lore.kernel.org:rdns]; RCPT_COUNT_TWELVE(0.00)[38]; FORGED_SENDER_MAILLIST(0.00)[]; FREEMAIL_CC(0.00)[gmail.com,lists.infradead.org,vger.kernel.org,sifive.com,kernel.org,lists.linux.dev]; RCVD_COUNT_FIVE(0.00)[6]; FROM_NEQ_ENVFROM(0.00)[devnull@kernel.org,linux-sunxi@lists.linux.dev]; TAGGED_FROM(0.00)[bounces-27608-noreply=patchwork.local,gaohan.iscas.ac.cn]; R_SPF_ALLOW(0.00)[+ip4:172.105.105.114]; DKIM_TRACE(0.00)[kernel.org:+]; TO_DN_SOME(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.77.114.92:received,100.80.115.77:received,100.103.45.18:received]; ARC_ALLOW(0.00)[kernel.org:s=arc20260519:i=3]; DMARC_POLICY_ALLOW(0.00)[kernel.org,quarantine]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; ASN(0.00)[asn:63949, ipnet:172.105.96.0/20, country:SG]; FREEMAIL_TO(0.00)[kernel.org,dabbelt.com,eecs.berkeley.edu,ghiti.fr,rendec.net,sifive.com,brainfault.org,iscas.ac.cn,redhat.com,baylibre.com,gmail.com,sholland.org,pengutronix.de,bootlin.com,arm.com]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.105.105.114:from] X-Rspamd-Queue-Id: A7AFF1C50BD X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX From: Han Gao Document the YuzukiHD Avaota F2 board, which is based on the Allwinner V861 SoC. Signed-off-by: Han Gao Acked-by: Conor Dooley --- Documentation/devicetree/bindings/riscv/sunxi.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/riscv/sunxi.yaml b/Documentation/devicetree/bindings/riscv/sunxi.yaml index b36e313e13a6..9e993a5752e4 100644 --- a/Documentation/devicetree/bindings/riscv/sunxi.yaml +++ b/Documentation/devicetree/bindings/riscv/sunxi.yaml @@ -69,6 +69,11 @@ properties: - const: widora,mangopi-mq-r-f133 - const: allwinner,sun20i-d1s + - description: YuzukiHD Avaota F2 + items: + - const: yuzukihd,avaota-f2 + - const: allwinner,sun252i-v861 + additionalProperties: true ... From patchwork Fri Nov 13 22:33:44 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Han Gao via B4 Relay X-Patchwork-Id: 4085 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mxe881.netcup.net (Postfix) with ESMTPS id 8AEB51C556C for ; Fri, 13 Nov 2026 23:34:21 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=kernel.org; spf=pass (sender IP is 172.232.135.74) smtp.mailfrom=linux-sunxi+bounces-27607-noreply=patchwork.local@lists.linux.dev smtp.helo=sto.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.232.135.74 as permitted sender) client-ip=172.232.135.74; envelope-from=linux-sunxi+bounces-27607-noreply=patchwork.local@lists.linux.dev; helo=sto.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 8B89561AB8A for ; Fri, 13 Nov 2026 22:34:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609222; b=bWCfUGFLelBGv4VRe2NOynCV4JBlWpKyf4ZFFE4tHGpB6qcoL7vjk0G1qW/QbVaRHyz/ rgaA8/M1iVDnMipOZIaBBFZXPeGzfZTkrO6IVSJ9VhHjzt3fQ0lC1Qwp9FHk1fSUpXFjx rITvxe2IsdSXqrtVI/joilVHfy2VEsxIYzK1dih/BiYsIdsiP3pmLpgkKtbkc33LgIsfV 93ioZUKazldoz68KzL4WkU4MWuwA4KbS8dme+6J4rNdG2nGMHL/2z+GgehYB46jT+3zR6 W78qoK8wTco+Z+IWwckuJpVrpRXfgKKztkFaBiyLOyoo/t5mDNKjdG5FX+e///5Mj4w== ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609222; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=tAMzkHW3x619qcSE6ghe9OxhnYf9AsPfwmmVyuti68Q=; b=2geEO+LjiyAtFO/hk9RAWcJ+1fb+5cyHWxe866V+KCSBvXsBpQjANEiMVDimCajq4Iht 5/Das88MLN4KD0VBC+ouGbaBdycVq3H4+l7iRFxRnnSqtNCuqK/Yr/8Jt81pWoOHJ4vr4 4Mwb1qJLdiNaN+H0wq6kevTdcuWQ6hWmhvbWvIiAw1JIhZr5mOsj4V6asWSiosJf5Zpdz qEbcNgywxC8I36aA9wrsLjlNe/if7+T1eBpuhTU4TrBIPjHPWUu861zjQJaVBljTizTy9 nwK/90ueI6ABKDzWJCCSIHBiCIXl/6UKhPpmcHGgGN+kjKa8zyRxOSPG1L7Uz8RPRcw== ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Fyd4+BWo; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 31E8E60A6F6F; Fri, 13 Nov 2026 22:33:42 +0000 (UTC) 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=Fyd4+BWo X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609222; b=uAcpfwdZdpkQxpStHqkUODpT9lFAR48g+LYjXvk7ziQXYT/VL18GhsjPpSH78roOD9+6 4aQ7KMhVxx8K9I79X6zb8sAEYX2RWT1YNgUv3sn5r7eaZc8D6ynAnnsfpfwUtMxt2XnU6 g5ouwftrnGCBPsq84JQQrNQmuitrN7y+J/1P9UfKb79eRImXRzmBX7bzE7mqnGqftWUoe JZOkIzgOHIUvQHCuajvamGwfGI3EWd10UMFkWbGDOnv+fhEayVnpE+QVosdcyz5h8qryw b6dMFWdCRHsjyGvwvPHocWGQf8YbS2jR2/rAGEupK1qc0GQyZNdHN9TBWsUou6sTx2A== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609222; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=tAMzkHW3x619qcSE6ghe9OxhnYf9AsPfwmmVyuti68Q=; b=1E75ZA87KXehpEkEc2jnUs3mJDgcGFNt9Qsq401yKTURI5rkpxmZWrHzMUG+BXASt/Vq WH8ERiIR1Pnn2/wHYxJsELLUc9swreoPEgbu0/uGgHut1tqUIfWrEQl69KLb/BDL6f7fW 4TDpItxU9F19AZuOr2iSRQ5atv+DSJzudNeFUF0jxu0IP7O+UyjQzWi0+bKXadSBN2lAC khnU9OnigxfD+A8lPxyZ+MiyFNuxZ8efrViw5SGTdf89CexRselZEJJQzAjbp2wWyioXI qphsTo28ozqaD5dzCSEBC6m9KzOE6HxcE3ETE8l/e1LgNmh2c2WlYHoC/2ZWEFWDFVw== 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=Fyd4+BWo; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 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 07EC060A6F5E; Fri, 13 Nov 2026 22:33:41 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1794609221; b=ixXZyX6PNaFH4FrMFF2i7WsHjvAc23Yx3BPq41Mg5Jqj9kYtllKpGrBwJ4pW0m8u9bjv sJTKkiJ1qb5VNJeaftulTfGTVw7eOrN8GUzOUVP8GnGI9/zCp5LGnr20DjkV1gnWKTe5N 5Ps+JPcetfh5sq719Ooj7D0HAjkyHmWMK8ORLNJe+6KqcH4HOLeOx0vzEY4FjcMEz/miC 9uuLsYi0/UuynrMHFkT4ZHz+5SMpchOo6X6v8lTZUnkdqjexq8ybSHnnC8cV2nppm3Id7 MPbWrUyYNFJpuRgdNKB6ykp3jQ3UgEjUXxcTwqy2asJxz/BkFA3TZwBbQA5/OWhgshA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1794609221; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=tAMzkHW3x619qcSE6ghe9OxhnYf9AsPfwmmVyuti68Q=; b=SMRh+U51g4jzVdRWM55LG3pe3X4WEfzIcyhhu0usWl8oYSR1HIh+eeMOOxnZZLiutTs5 LGcTbn7auv65H0DTaeDuiHZwT+Qc5LsulEwQVY8F3Jm3qESK4N7CSLpUaZq1XjQ2bVxiR H47ZIj/aBgM0IcOVl9DIMFpONDwPUyQvTnr+ScGzDTZfT5DKhzFpWrNnDXeuvy2KHfSdf EBKDdhMEeYwuASl36zHZPnvS9xms3S3iWqK9NBI9KXK5UVgvrK3H6atr3S5hEVBXJR6er P5tQMY20OD40AumDBt/IIUyvGhHczNYkkWhNwnpIQK2mf15xM2UCcZ+9x/8L7feY8zA== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (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.kernel.org (Postfix) with ESMTPS id 543BE1F0182E; Fri, 13 Nov 2026 22:33:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794609221; bh=tAMzkHW3x619qcSE6ghe9OxhnYf9AsPfwmmVyuti68Q=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=Fyd4+BWo9SAEAgTUcWSfp2jxVvQglhZmUdq5m0HhB9GSHbPHNJ4hy0bQfcI1UrD6s VT6t9XNz+rWbIr6EEM8YzAMtMKHq0py10+BDgugqm22w/9LBy32gek518/jq/5WmTx KcXgfVQPQBlKYO+9DwIyztRbPZSpPG3oGaiYG8YAdMW1AG8i63CrpB+BKngj6VMNir zc3HfNLLzho1gNekNo/GrNLbTXeKc4UdRSBZpK2xKMqIYx8oijBdKMRUFQbC5rhS2l TlueSpQIxt7bC0vM/DugKKZsIfl2Byyw8j26Dir8fDdnMdUwOJ7zDJDDGJj6sepsR1 b/ZEuSqXBBMSg== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 1DCB049B9A; Fri, 13 Nov 2026 22:33:34 +0000 (UTC) From: Han Gao via B4 Relay Date: Sat, 14 Nov 2026 06:33:44 +0800 Subject: [PATCH 18/19] riscv: dts: allwinner: add the YuzukiHD Avaota F2 board X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261114-v861-v1-18-eb71ec3ee523@iscas.ac.cn> References: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> In-Reply-To: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guo Ren , Thomas Gleixner , Radu Rendec , Samuel Holland , Daniel Lezcano , Anup Patel , Han Gao , Stephen Boyd , Brian Masney , Jerome Brunet , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Philipp Zabel , Alexandre Belloni , Maxime Ripard , Linus Walleij , Andre Przywara Cc: Han Gao , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Conor Dooley , devicetree@vger.kernel.org, linux-csky@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, linux-gpio@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794609209; l=2024; i=gaohan@iscas.ac.cn; s=20261021; h=from:subject:message-id; bh=KqCPsLCb1dJ4aF8ZRP+gwHxIPe0+kCAp6k+KqhGB/tU=; b=JAcotxw+M6j30G6Y+hS6IIthgJBH9a0dFcYqiLwL8VfrQYXbseALNWB7FyvsQlLFdrq1ifsfd XTqr4BlvW/tAFUhX0NaT1c1hZjH3ZcIUsvJ3w2wYbmlHtGbMZ+QCYs9 X-Developer-Key: i=gaohan@iscas.ac.cn; a=ed25519; pk=J8WHEK3filS86QaCaIHDGafqhxKyQ4K7+vFgRirTIiY= X-Endpoint-Received: by B4 Relay for gaohan@iscas.ac.cn/20261021 with auth_id=1262 X-Original-From: Han Gao Reply-To: gaohan@iscas.ac.cn X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [3.32 / 15.00]; RBL_SENDERSCORE(2.00)[172.232.135.74:from]; SUSPICIOUS_RECIPS(1.50)[]; MAILLIST(-0.18)[generic]; BAD_REP_POLICIES(0.10)[]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; TAGGED_RCPT(0.00)[dt,clk]; HAS_REPLYTO(0.00)[gaohan@iscas.ac.cn]; DBL_BLOCKED_OPENRESOLVER(0.00)[sto.lore.kernel.org:helo,sto.lore.kernel.org:rdns,iscas.ac.cn:replyto,iscas.ac.cn:email,2.98.90.0:email]; RCPT_COUNT_TWELVE(0.00)[38]; FORGED_SENDER_MAILLIST(0.00)[]; FREEMAIL_CC(0.00)[gmail.com,lists.infradead.org,vger.kernel.org,sifive.com,kernel.org,lists.linux.dev]; R_DKIM_ALLOW(0.00)[kernel.org:s=k20260515]; FROM_NEQ_ENVFROM(0.00)[devnull@kernel.org,linux-sunxi@lists.linux.dev]; TAGGED_FROM(0.00)[bounces-27607-noreply=patchwork.local,gaohan.iscas.ac.cn]; R_SPF_ALLOW(0.00)[+ip4:172.232.135.74:c]; DKIM_TRACE(0.00)[kernel.org:+]; TO_DN_SOME(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.80.115.77:received,100.103.45.18:received,100.77.114.92:received]; ARC_ALLOW(0.00)[subspace.kernel.org:s=arc20261015:i=3]; DMARC_POLICY_ALLOW(0.00)[kernel.org,quarantine]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; ASN(0.00)[asn:63949, ipnet:172.232.128.0/19, country:SG]; FREEMAIL_TO(0.00)[kernel.org,dabbelt.com,eecs.berkeley.edu,ghiti.fr,rendec.net,sifive.com,brainfault.org,iscas.ac.cn,redhat.com,baylibre.com,gmail.com,sholland.org,pengutronix.de,bootlin.com,arm.com]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.232.135.74:from] X-Rspamd-Queue-Id: 8AEB51C556C X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX From: Han Gao Add the YuzukiHD Avaota F2, a V861 board, with its memory and serial console. Signed-off-by: Han Gao --- arch/riscv/boot/dts/allwinner/Makefile | 1 + .../boot/dts/allwinner/sun252i-v861-avaota-f2.dts | 43 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/arch/riscv/boot/dts/allwinner/Makefile b/arch/riscv/boot/dts/allwinner/Makefile index 1c91be38ea16..725919d9a4af 100644 --- a/arch/riscv/boot/dts/allwinner/Makefile +++ b/arch/riscv/boot/dts/allwinner/Makefile @@ -9,3 +9,4 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun20i-d1-lichee-rv.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun20i-d1-mangopi-mq-pro.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun20i-d1-nezha.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun20i-d1s-mangopi-mq.dtb +dtb-$(CONFIG_ARCH_SUNXI) += sun252i-v861-avaota-f2.dtb diff --git a/arch/riscv/boot/dts/allwinner/sun252i-v861-avaota-f2.dts b/arch/riscv/boot/dts/allwinner/sun252i-v861-avaota-f2.dts new file mode 100644 index 000000000000..e3f5e6c8d350 --- /dev/null +++ b/arch/riscv/boot/dts/allwinner/sun252i-v861-avaota-f2.dts @@ -0,0 +1,43 @@ +// SPDX-License-Identifier: (GPL-2.0-only OR MIT) +/* Copyright (c) 2026 Han Gao */ + +/dts-v1/; + +#include "sun252i-v861.dtsi" + +/ { + model = "Avaota F2"; + compatible = "yuzukihd,avaota-f2", "allwinner,sun252i-v861"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + /* U-Boot updates this node with the detected DRAM capacity. */ + memory@40000000 { + device_type = "memory"; + reg = <0 0x40000000 0 0x08000000>; + }; + + reg_vcc3v3: regulator-vcc3v3 { + compatible = "regulator-fixed"; + regulator-name = "vcc-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; +}; + +&pio { + vcc-ph-supply = <®_vcc3v3>; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_ph_pins>; + status = "okay"; +}; From patchwork Fri Nov 13 22:33:45 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Han Gao via B4 Relay X-Patchwork-Id: 4091 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mxe881.netcup.net (Postfix) with ESMTPS id 373471C50BD for ; Fri, 13 Nov 2026 23:35:03 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=kernel.org; spf=pass (sender IP is 172.234.253.10) smtp.mailfrom=linux-sunxi+bounces-27609-noreply=patchwork.local@lists.linux.dev smtp.helo=sea.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.234.253.10 as permitted sender) client-ip=172.234.253.10; envelope-from=linux-sunxi+bounces-27609-noreply=patchwork.local@lists.linux.dev; helo=sea.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id A87F7828A4 for ; Fri, 13 Nov 2026 22:34:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609223; b=pKlfhUEdXbF2dIbkb1n2uwNuAVrkHjNgzHHUbKOCKnYcG5qxJh4YIW1C8o7Hj0/Qz6yd ojdDISmPTY4dj5X6ambTrdZzhsIyqTGjxKd1dplWgtk5Ptg5Dbm+W+QF0ID1vCK3m5xlE i0Dv8xv2u2a/iV4UA1L4VXtAhcrPcIcWd/drSKK/04nFDHCy+EQjcBAnY6TzCmVJsR2do In8D096pBBM/dLXpUgacLINR6MV238tRBJjNZRq/5mLyNMAkyFGJdF1CscaGfltE3ze7l JD+RfiKil5ypr45pgIHeSUgAhsFVM5zll91ku/hiyXeCdR0hJ9eRqr/pQIbkua7zt7w== ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609223; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=pI6ZfHbfXlGGFScyQLy8hgCr3exLFr/2O4VJxzewZhw=; b=Y9o1HiLldVcTYd0w5/eK34MF8dMTceNCn1LHmiGeuYC/nlHBHAj9FaucsNDf/RuEA81/ qFOfofSrbe8FHibfaMc3oeEB7FXnE+6yMr/8S+SXGEfecJsNTgTKR6LmEAbbinObUfpiQ gYBudNW8lGEyawyYqAxzt5h9n2/G8YK4Muw6JvT9pjajBbmOpt3LFWSDb1O8WQ+lmAL7t xwXdHvsJWLFj09ffH4PbtDQecQllwsP7RwbCB5UA/S94Yc4zQQEwZjBLVTqcKKvoQd5b1 a93/ZORkvwv9vNH3tQ+oRu8MDqZWlHPQnTDObD+CXGUMzSdd70TlzDOYZjJRu8XCk8g== ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BLIJ6EgY; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 27F44606AF1E; Fri, 13 Nov 2026 22:33:43 +0000 (UTC) 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=BLIJ6EgY X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794609223; b=lLTBVcZKC3G7Bz+TafDvSQHMQGJ/s1mY1olqlB8jJkvMmL4V8aA70FUX9fetLm70YAtl DjSgXQHZTUcdyuU4A/bWs9h7UlVVA9JNHU10rdL20RInLMW+lFaFjZGKalnXRUOaHZ2r/ PWJnA+xuM+mGmyXR+GSsQT1VmyT5QBJeI5JVagzynBYBVACqXG6iPOQRfXjGLcYoPPl0L 3xtbn9wbUpdB7OnC5M6tyETrIVhuGPHUsUEVMudWFDOzDHBcFKAZV0UTLubBYovnyu4Mg pcupL/mfp02f8OUXBVrTCpuvNKmJ9MKpQM/BgXIFqRdw43+YWq2qHS5Mp+wG5FAuq9A== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794609223; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=pI6ZfHbfXlGGFScyQLy8hgCr3exLFr/2O4VJxzewZhw=; b=pbBEDuTqHfRYsksPI3GtHB4M5eWFjKXBM/xgl4siPV7tGVKhi5vTj24DuJUAqvOmPnkw x6PlKbjHm0Q9A1+xU4VRxFXOzdxrmFqMcTx9/Zq4JU2avWCZJvSAq7pBOHGIuKjn6sMWX tOVdMenjYhS55O06Fbbp3BLCMr16+NON2LSLV0WVxaPMVR/ewQnw3irmmQR/AfNKVLgF7 NFdsNB/k8UQ0fyfywQ3136bVVW4n+HB6ZxZCsntUo69MJRIax5qEHwIXPHuzwwVY0xtLN 7doPXbGpokMfFTJrvijzJR8WVlwHWnv4rSFqtEGDiXOjpsdAV+xTl/vz0RPnt+xtgFw== 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=BLIJ6EgY; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 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 05C2A606AF19; Fri, 13 Nov 2026 22:33:43 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1794609222; b=kaXjjr7c8hHX5TeAMq9ys13wzq0mQCJOv6y6RDVzxL6rZSeSCsjR68GMA24Irt2yKoGr iR8SxeeMNt7VLKv6xfuzn9gs/acF7vvQtvAnQrYGUNFyIo5PaG8leUuKxcmcsgv0s4Yk5 +K0rdMRpUoQnv8EpnWlL/zg/jeuXHDwM0kOGGuCYyiQ0NKryG4921wqmlNpGAH24N6OiF RxaLZu1cO+fB4wBKX+NUTPwuu/0cIqaCCzrhV+MqMzwbarLpRz+8JdHREDAunuFIqnLcu LZwsbZ/h0jYPBva+tzvwxNM5vDuDmBQgQlywGDJAS4AKV69zYej/lWo4OMTEhvaofRA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1794609222; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=pI6ZfHbfXlGGFScyQLy8hgCr3exLFr/2O4VJxzewZhw=; b=HPwpk7BbrpMbCnvAuxa9ifMIs7cSTevA+Yy4h4Wog0xvYYDhJU5xBRplddVnFfnrmYeG 3JPTehvdiOdNYBjbBUUZtIvCC8g2ym6TFfaBm2DVQQ3BFhjKRbZnzOepsB33a5EAhqcbA l99VR9SVTI8//KbcawpR5PyMX9+K3lPaVadWW9OeOoBYHzB2Vy77TlF6FGn6Pl3UjtThW ppHJrbOuZ0L+mzUPLutiYKr8oJuRQGAGfDPeWBjFjqJkxI8pcQnfvqQqnWcrTAcrPgZec xBI2S7iMVmF3aKvHR4G1WR/eVek4q4Dv6quuGSPmWvGT1RPKLUn4peCaHwq0ZLwnO0w== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (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.kernel.org (Postfix) with ESMTPS id 7303E1F01576; Fri, 13 Nov 2026 22:33:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794609222; bh=pI6ZfHbfXlGGFScyQLy8hgCr3exLFr/2O4VJxzewZhw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=BLIJ6EgYlJERejEFQdXWkCuzqJieqRcDghDv5jM+s7NQ4waw6OLKpGZ/naoPl1NAF RqdcwbBBtutjmu+B21Jfeg/aoExM7sO/W1ePJrw1wgukfgvVI4w/N6Mwaficckjn1z 7NCuFhJLl4y/xvAdrSdQUFEzeYBNy5LUqGtZXi8wxQQuV9Kq1OTP4cGiLynKqyTFAV zzzicTeuYSW6ifF+1P0FXyRiVVlHOC7FIuQqF1ITfcYFh/iZorT2rilwfsF7vYYTHO KmOdTLDrHitS1yz3XhyAfXxs3vIzx6FfGZVE7H9hVadS1KXJ9hJkaY+NjoRGUphdve elVdkckgPX3Vg== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 3345549B9E; Fri, 13 Nov 2026 22:33:34 +0000 (UTC) From: Han Gao via B4 Relay Date: Sat, 14 Nov 2026 06:33:45 +0800 Subject: [PATCH 19/19] MAINTAINERS: add an entry for the Allwinner V861 SoC X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261114-v861-v1-19-eb71ec3ee523@iscas.ac.cn> References: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> In-Reply-To: <20261114-v861-v1-0-eb71ec3ee523@iscas.ac.cn> To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guo Ren , Thomas Gleixner , Radu Rendec , Samuel Holland , Daniel Lezcano , Anup Patel , Han Gao , Stephen Boyd , Brian Masney , Jerome Brunet , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Philipp Zabel , Alexandre Belloni , Maxime Ripard , Linus Walleij , Andre Przywara Cc: Han Gao , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Conor Dooley , devicetree@vger.kernel.org, linux-csky@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, linux-gpio@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794609209; l=1064; i=gaohan@iscas.ac.cn; s=20261021; h=from:subject:message-id; bh=39Ac8hJzpCiQ7XryhT1eADd1ddcM2ysT57oAlX6+9R8=; b=yImKJfL/SM0iJ5gXSR0G3a7zEwdVCFqOgmcRGrK1c0Yxaoy5YXunPhnCNkpFmotpUgaYwGgLk 8PkUGkVB3+cATxKHXuU20wzYPDweSAZ53K3Q6ECQOIXJmC3LIl6Sb42 X-Developer-Key: i=gaohan@iscas.ac.cn; a=ed25519; pk=J8WHEK3filS86QaCaIHDGafqhxKyQ4K7+vFgRirTIiY= X-Endpoint-Received: by B4 Relay for gaohan@iscas.ac.cn/20261021 with auth_id=1262 X-Original-From: Han Gao Reply-To: gaohan@iscas.ac.cn X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [3.31 / 15.00]; RBL_SENDERSCORE(2.00)[172.234.253.10:from]; SUSPICIOUS_RECIPS(1.50)[]; MAILLIST(-0.18)[generic]; BAD_REP_POLICIES(0.10)[]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; TAGGED_RCPT(0.00)[dt,clk]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; HAS_REPLYTO(0.00)[gaohan@iscas.ac.cn]; DBL_BLOCKED_OPENRESOLVER(0.00)[iscas.ac.cn:replyto,iscas.ac.cn:email,linux.dev:email,andestech.com:email,infradead.org:email,sea.lore.kernel.org:helo,sea.lore.kernel.org:rdns]; RCPT_COUNT_TWELVE(0.00)[38]; FORGED_SENDER_MAILLIST(0.00)[]; FREEMAIL_CC(0.00)[gmail.com,lists.infradead.org,vger.kernel.org,sifive.com,kernel.org,lists.linux.dev]; R_DKIM_ALLOW(0.00)[kernel.org:s=k20260515]; FROM_NEQ_ENVFROM(0.00)[devnull@kernel.org,linux-sunxi@lists.linux.dev]; TAGGED_FROM(0.00)[bounces-27609-noreply=patchwork.local,gaohan.iscas.ac.cn]; R_SPF_ALLOW(0.00)[+ip4:172.234.253.10]; DKIM_TRACE(0.00)[kernel.org:+]; TO_DN_SOME(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.77.114.92:received,100.80.115.77:received,100.103.45.18:received]; ARC_ALLOW(0.00)[subspace.kernel.org:s=arc20261015:i=3]; DMARC_POLICY_ALLOW(0.00)[kernel.org,quarantine]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; ASN(0.00)[asn:63949, ipnet:172.234.224.0/19, country:SG]; FREEMAIL_TO(0.00)[kernel.org,dabbelt.com,eecs.berkeley.edu,ghiti.fr,rendec.net,sifive.com,brainfault.org,iscas.ac.cn,redhat.com,baylibre.com,gmail.com,sholland.org,pengutronix.de,bootlin.com,arm.com]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.234.253.10:from] X-Rspamd-Queue-Id: 373471C50BD X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX From: Han Gao Add myself as maintainer for the V861 bindings, clock and pin control drivers and device trees. Signed-off-by: Han Gao Acked-by: GUO Ren (XuanTie) --- MAINTAINERS | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 93abbb315065..dfc300dc1eb2 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -24031,6 +24031,18 @@ F: drivers/irqchip/irq-riscv-intc.c F: include/linux/irqchip/riscv-aplic.h F: include/linux/irqchip/riscv-imsic.h +RISC-V ALLWINNER V861 SoC SUPPORT +M: Han Gao +L: linux-riscv@lists.infradead.org +L: linux-sunxi@lists.linux.dev +S: Maintained +F: Documentation/devicetree/bindings/clock/allwinner,sun252i-v861-ccu.yaml +F: arch/riscv/boot/dts/allwinner/sun252i-v861* +F: drivers/clk/sunxi-ng/ccu-sun252i-v861*.c +F: drivers/pinctrl/sunxi/pinctrl-sun252i-v861*.c +F: include/dt-bindings/clock/sun252i-v861*.h +F: include/dt-bindings/reset/sun252i-v861*.h + RISC-V ANDES SoC Support M: Ben Zong-You Xie S: Maintained