Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1753101iog; Sat, 25 Jun 2022 19:13:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uaF74McGvZhN8QyCaJblFWXB8dHshXrqaug2mQt6xqMei+/TMvQpoApK37FKEx8fvVX4zy X-Received: by 2002:a17:907:9619:b0:726:92db:2e83 with SMTP id gb25-20020a170907961900b0072692db2e83mr3303360ejc.289.1656209628903; Sat, 25 Jun 2022 19:13:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656209628; cv=none; d=google.com; s=arc-20160816; b=j4MimZ72MYZvbKFPIiEKDdh7NeVMemUcA4V3GWValD7p008dKMHNeg+k0Equkaef1S usdaxUIryEZGCmOcA1XDCWg4f0yuZG1vjZ0ZSTjP62I+WXx6viWEYK128d3j8Nkq7No/ 5MnJkk6FU6nDU4S8tpnk8SeUXEu1/b2sQIQj42X+UA1wMFrTFCEaiNeiwHda3dIBmozX G0+VvwBSXEpThNMdAEhAU1vZuD0qWS8SXNxLWbcBn2CV9S/UWQNwuBZQMpuPnEh4qqHX qv3i7kDhieTnp01ZvlcL1xWruZaSpJBeBMJHsA17N4WdJxukJOfU23sYQN424tHKMv6m /zhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=OfLz51eTek1s6L0r4HLI8XBL17NaYVkguVMcN4kMcsY=; b=b8xQsjXk+l99woMWMiyXFHPYFMvf7VRtyOp6i0Tr0JBOo3vlNoRBE11OFc55WGFspV ODaM9C2ZCHJZa9TK7eWUAnWBsJR9L4SM5TsYDBWxpaY+ntpKZmmpsLvC3lCjH2poVmQS Zk1SruPJ4gD+vsnDMjxVS5B28cNb3uOi5+qbshAPl5FwnoydjoCx/RxAxj2daVydTGYc mmS3Q5LL5Rr1rN0YUUGqPJmx2gvRzZV92iRRjuxjO7Fi5gOGX0R6VEL819gaRx/sDYXd keGTaM5mko62SunI0G5exXvFzGmuNLilg5VZGBkSuS/Tows/LQU6/7P1zMSWMENCE45p R6mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm3 header.b="an8/1OvB"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=rjNFR2TZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg13-20020a170907a40d00b00726395c6104si6813173ejc.743.2022.06.25.19.13.23; Sat, 25 Jun 2022 19:13:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm3 header.b="an8/1OvB"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=rjNFR2TZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233821AbiFZCLz (ORCPT + 99 others); Sat, 25 Jun 2022 22:11:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233617AbiFZCLx (ORCPT ); Sat, 25 Jun 2022 22:11:53 -0400 Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E529913E85; Sat, 25 Jun 2022 19:11:52 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 49A0B32000D9; Sat, 25 Jun 2022 22:11:51 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sat, 25 Jun 2022 22:11:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm3; t=1656209510; x=1656295910; bh=OfLz51eTek1s6L0r4HLI8XBL1 7NaYVkguVMcN4kMcsY=; b=an8/1OvBznkGHwaVf1scWXRfYTuyBfgn9Jz8RaHCZ RCYnrIeDw5cFH9DLZN//uMVkyjPF5SC+0WlocvKHpADlmEUEYfhgkugqgKyTsmOM XhsfZCE68njzzSYbkL3MrLDktIKcsEJWsEhevlTdtmN0GiHrkxgpapFohPNpJVi1 OrV4uS/PJ8Dc+5N/vebHMVxqHMcflYuFGYbiEZSop0t+Bvg/6egj+vF2RjWEziK+ AH+hnZ+pfqQRFzghYFCXpeBKMbARdcA6ckhTcpUj2hZJPq30hN8+XLdH0W6KWBZ9 5yOu+KZM5KY+SNRvOt4jU0OKwcXuK4TzVxbpc0bZJTxmg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1656209510; x=1656295910; bh=OfLz51eTek1s6L0r4HLI8XBL17NaYVkguVM cN4kMcsY=; b=rjNFR2TZ7Jiv4bl0bwJQSJJh4YY3gFSewRhrjZUEoTYIVdoOgbG iUUkL9+87xpvXZhHX7afjAl0j7BQ/JUyXdmWfiwyc3fP6AcWzZXQgLS1ykK4rpY0 DZMuJgBGHlfrvmwHJ94qBxgVYJvu9RN5muvSCi3OPyIHXew4CDxluGrps3e89twE +uGGP4Cdmnm4n5EzyB1eOUG7Nvj8O9LSxm5pVw6PF8C7jV7rOFo9zp40r6Pek2uj +ynHhvtm1PcHZxGamywZN9MEKGVrNgB5P5UdD/XJ0sz89nQYVFYalHsCPopRw4Jp yFbR2vJeOQvurnLvZaOJ6yFnx9+0ABQ8ing== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudegvddgheeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghl ucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecuggftrf grthhtvghrnhepkeevlefhjeeuleeltedvjedvfeefteegleehueejffehgffffeekhefh hfekkeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 25 Jun 2022 22:11:49 -0400 (EDT) From: Samuel Holland To: Chen-Yu Tsai , Jernej Skrabec , Linus Walleij Cc: Samuel Holland , Krzysztof Kozlowski , Maxime Ripard , Ondrej Jirman , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: [PATCH 0/6] pinctrl: sunxi: Allwinner D1/D1s support Date: Sat, 25 Jun 2022 21:11:41 -0500 Message-Id: <20220626021148.56740-1-samuel@sholland.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds pinctrl support for the Allwinner D1/D1s SoCs. First, it updates the I/O bias code to support the new mode found on the D1/D1s (as well as some existing SoCs). Then it refactors the driver to support the new register layout found on the D1/D1s. Finally, it adds the new driver. The code size impact of the dynamic register layout ends up being just over 100 bytes: text data bss dec hex filename 11293 564 0 11857 2e51 pinctrl-sunxi.o (patch 3) 11405 564 0 11969 2ec1 pinctrl-sunxi.o (patch 6) This series was tested on A64, H6, and D1. Samuel Holland (6): dt-bindings: pinctrl: Add compatibles for Allwinner D1/D1s pinctrl: sunxi: Add I/O bias setting for H6 R-PIO pinctrl: sunxi: Support the 2.5V I/O bias mode pinctrl: sunxi: Refactor register/offset calculation pinctrl: sunxi: Make some layout parameters dynamic pinctrl: sunxi: Add driver for Allwinner D1/D1s .../pinctrl/allwinner,sun4i-a10-pinctrl.yaml | 15 + drivers/pinctrl/sunxi/Kconfig | 5 + drivers/pinctrl/sunxi/Makefile | 1 + drivers/pinctrl/sunxi/pinctrl-sun20i-d1.c | 860 ++++++++++++++++++ drivers/pinctrl/sunxi/pinctrl-sun50i-a100-r.c | 1 + drivers/pinctrl/sunxi/pinctrl-sun50i-a100.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun50i-h6-r.c | 1 + drivers/pinctrl/sunxi/pinctrl-sun50i-h616.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sunxi.c | 156 +++- drivers/pinctrl/sunxi/pinctrl-sunxi.h | 110 +-- 10 files changed, 1022 insertions(+), 131 deletions(-) create mode 100644 drivers/pinctrl/sunxi/pinctrl-sun20i-d1.c -- 2.35.1