From patchwork Sun Jul 10 08:18:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 12912417 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 99E39C43334 for ; Sun, 10 Jul 2022 08:20:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ep60hS0ybrHK0Ew/upXCGVVP1R6XLx5RzuS9g7jDo5M=; b=lAgdCYpAMuQUbt AsVeMSvoq22YoC7gv3nJ+ewXVKsHM5o+GOhChy3usMSjnkZ0ySKdonNJVVmyBiPoz24LH8HPvjdOW y4LRIl+jNxVHJud3h413ZNRkQAMePc47uioVx5wG0/Z+9X2p16GEtQfWXTnioNmx4dTdstO102Lv2 DXiSMq+ErKCOv0+m98Q4HNrvHSc0wMEOswcx/FYJNCOXAzz5buc0d+LhIut2xcw1gZxrJ8jgqr0AP p8uqW2bqp9/m/Cz8N1W+1d30MpS+rZ9AWVlJSPvz4E/+l2Qzd8WZxnTFGtpHk7SQlPt3gL6o3mzrg KmWseNb64xJiK0gxImxg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oAS9u-00B9Iz-Ce; Sun, 10 Jul 2022 08:19:18 +0000 Received: from sender4-op-o18.zoho.com ([136.143.188.18]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oAS9r-00B9IB-F0 for linux-arm-kernel@lists.infradead.org; Sun, 10 Jul 2022 08:19:16 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1657441146; cv=none; d=zohomail.com; s=zohoarc; b=G//ruNJWtc5KB4iy5vkg+oDxYaTZAblTm7aNahnX1lAklnS8eGAkKjdLZpOcPt3N8csTyyHBIGjL5OSxpoArIpLJuzvm8p2Gy9vKFPKmBzu2m5+wfkvXTMFXb0ua+DLOubhyfFL6HzF9+rZedqDPZP5TjEi3vAXfc66HFnhkCLw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1657441146; h=Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=NFS2/32BxwaD6fahAeZc1AfhBJU6/YF1+CjbT7OS85w=; b=TQfGNYjIhWbat5WkxjQhtlgP4nkoe+soWGB9Tqh6zRPSp9UHKEpScFi66wvqXY55zM37TPJAaLb7UfjyJSWAOGtIcKY1d9Flpa2d+lzxDEpplxXr3zz4uEKEPzGYH8TlvvC8M8gEdotiaM2RVhHQQq2Mt8wX2rrKUIwWp3czFWc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=icenowy.me; spf=pass smtp.mailfrom=uwu@icenowy.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1657441146; s=zmail; d=icenowy.me; i=uwu@icenowy.me; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=NFS2/32BxwaD6fahAeZc1AfhBJU6/YF1+CjbT7OS85w=; b=KvRP9GWRsA+WTCougZocM3zTL73ekzM8w95wlu3fxEmAwg4qIRZq4zFRvkHiT1B6 wFhaoG/Gr6UUMTxVtU0roRy5Tiu5zaxgpe7gDLfXNepk/+ylWBDPP2x89RjoRI7H7T1 iIhPWCegA5wX36tB2Hsxmzq8Myv0Tkx1hyOV10Ns= Received: from edelgard.icenowy.me (59.41.163.237 [59.41.163.237]) by mx.zohomail.com with SMTPS id 1657441143425993.9029258752463; Sun, 10 Jul 2022 01:19:03 -0700 (PDT) From: Icenowy Zheng To: Linus Walleij , Rob Herring , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Maxime Ripard Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Icenowy Zheng Subject: [PATCH v2 0/3] Allwinner R329 {R-,}PIO pinctrl support Date: Sun, 10 Jul 2022 16:18:50 +0800 Message-Id: <20220710081853.1699028-1-uwu@icenowy.me> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220710_011915_742758_65AA3030 X-CRM114-Status: UNSURE ( 9.46 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patchset contains support for two pin controllers on Allwinner R329 one, a CPUX one and a CPUS one (the standby processor on R329 is, in fact, a Xtensa DSP), in addition to their bindings. Icenowy Zheng (3): dt-bindings: pinctrl: document Allwinner R329 PIO and R-PIO pinctrl: sunxi: add support for R329 CPUX pin controller pinctrl: sunxi: add support for R329 R-PIO pin controller .../pinctrl/allwinner,sun4i-a10-pinctrl.yaml | 4 + drivers/pinctrl/sunxi/Kconfig | 10 + drivers/pinctrl/sunxi/Makefile | 2 + drivers/pinctrl/sunxi/pinctrl-sun50i-r329-r.c | 293 +++++++++++++ drivers/pinctrl/sunxi/pinctrl-sun50i-r329.c | 412 ++++++++++++++++++ 5 files changed, 721 insertions(+) create mode 100644 drivers/pinctrl/sunxi/pinctrl-sun50i-r329-r.c create mode 100644 drivers/pinctrl/sunxi/pinctrl-sun50i-r329.c