From patchwork Fri Nov 19 19:59:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 12693150 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 01442C433FE for ; Fri, 19 Nov 2021 20:02:17 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id C9DE461A7D for ; Fri, 19 Nov 2021 20:02:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C9DE461A7D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=in-advantage.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=89f0oVh57EL8QqDVdJetHl/Hwz5lKOkdpKtvp5c9mUs=; b=Cvwx7fSyXRqfUP 8q4AWStSmGk4wKbnaPRCbcRZy8b36yzdDUu98f/h3IQrv5pwBotDLGMGtQnCA16QdgwfMg2Jtp+jn Vfqb8SstC13HX4G61L5wuQ8ubdD3wMmFgfG0A+5JO5qMFqhUjT2p5pEIuztDZN/5pV14KnW72T1FO p/fkN39XhRIaXtyJVW4Yjv/IrVwxPAWgor+uRxG9WsNtBbs5/QYz8aHGItnyYCeeuY4BuUWtX7R79 J2LJS5L9smRPCnRBJsbndIDCkS5Ttoag2+s+/tpy2cuvu0LhJMSEsZZPRXxPaTKJTzNhkUpGZJAqj /v3M/Ip3UmWgMn2BRrfA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1moA3M-00BVdW-NM; Fri, 19 Nov 2021 20:00:09 +0000 Received: from mail-mw2nam10on2114.outbound.protection.outlook.com ([40.107.94.114] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1moA2z-00BVYl-Ey for linux-arm-kernel@lists.infradead.org; Fri, 19 Nov 2021 19:59:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HSvEyhMi5hpW8GnHzOzNDLG/eVfEApvJCJM5xu5G1wHd9SVpjOWTzU1DzGDQ+StXrZctOUenAuLivi6aogKdbXes7JoKowy2f01mWyDN5BnMagPTzOoW+F5YqKERNQ4az5IvAOv+ADa4uJHhvReBrhLkcvLGZxt2DW0kklapdXFpkT75HheWbhJT3hsHG0DUdwhVzPJJ1XeifXPdrPgzOFCsE2TobYU2xiVA4pWR4hv2THnw59HMHp/EaVdOKOaYPd8aVC1M9A3ujGv404+28YBslm3ETeWttcdivbW2+BHVH7IctM8NcIbRIy+iuIKtkxtE0+qneMiQLWJEQ54Ugw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Y/QQb92rD3c6NmDqX1/t3hDsMmO9iOZP6jMPzbgAAb8=; b=h9GNW2TI6kvogIFPc9saBhEenOd2jZMJHRRboYrMFHYjZ+F0NlgROKv45U2VzmxfZ2NzQQPly88312i9DuX13aSxD5wr2/rvAM8vP5VxqSipiTLtSyi01BEHMNFSmx3ARO9g4+r279QTElAqsRCqhYwgm219hO1DexJM6vgWskc3LIfejepKH8U/GJcxelPmOz73pQL9EhOIXbt9AiQypumwU0oP9HC0p0Zh8dM3MK8TlPgvRKMipygjSSOlBu2KAyK9dr5LvcAyeZpMknmtC2AU/LI2m24UGWUi/Nl8Sd4dpmFyYfY8DBfhoGoth/2DwA66BLcf5GAmW9OAO5YMAw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Y/QQb92rD3c6NmDqX1/t3hDsMmO9iOZP6jMPzbgAAb8=; b=Hjl+eQjhvk0VcZrSn26Ng1W7mjaf0YObc6fszT8FyLDG3JBJdCnOsddl/EOwviBiNwMduzDReRrUu0FTvmi0pmK0rsOJFRAi4QYg+jzaAGNwTDX1PR8Dr+Eu3GxmWmdOYHz7FufGgVhCTc4Omz5g+3o9w4oqVM1Rf9DzEch+Sto= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by CO6PR10MB5651.namprd10.prod.outlook.com (2603:10b6:303:14e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.19; Fri, 19 Nov 2021 19:59:39 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::6430:b20:8805:cd9f]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::6430:b20:8805:cd9f%5]) with mapi id 15.20.4713.019; Fri, 19 Nov 2021 19:59:39 +0000 From: Colin Foster To: linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Lars Povlsen , Steen Hegelund , UNGLinuxDriver@microchip.com, Linus Walleij , Alexandre Belloni , =?utf-8?b?Q2zDqW1lbnQg?= =?utf-8?b?TMOpZ2Vy?= , Vladimir Oltean Subject: [PATCH v1 net-next 0/4] pinctrl: update drivers to utilize regmap Date: Fri, 19 Nov 2021 11:59:24 -0800 Message-Id: <20211119195928.2498441-1-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: CO2PR07CA0068.namprd07.prod.outlook.com (2603:10b6:100::36) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 Received: from localhost.localdomain (67.185.175.147) by CO2PR07CA0068.namprd07.prod.outlook.com (2603:10b6:100::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.19 via Frontend Transport; Fri, 19 Nov 2021 19:59:38 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 642416bf-c2f9-478d-b10c-08d9ab971e69 X-MS-TrafficTypeDiagnostic: CO6PR10MB5651: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HnWJzI71ENlmkVSp4lQbhOHrrvWmQTncoipz8yuyPwM/EfoWeQt5NK8ekVGPQQZQinBVrpTjtCmAcYtjaeto99qpP/0uX/3uiulbCf9Pa6U8UA9HEElU4HTjMQG3/OVYcz0m2z1WdSFP5lq/WTK2XqjxQCO8nOz5JdSg0Q6dqeoiLra++ON8colHFdwRO+hq6eoyXCkpLXdjQFy4tyeuhit76fk126ZNYICRjK8gYr43MDKhNitZWfzfVkXrEg6wOTpZtVOi2q5l/aZ8tuxBllvTuBK0ku/2DauqA8IESkCVwrakyHUfTdr9plaJMMQVw0B/TT89gKQVLEn3Kstt3Kh+ut70ZB9tcPGwme65rZwxaK01gMqdiA/Bp+o31KnjGsMsyJQbnGIUHJZgUUuuviUofSRDtyMpxvKsCza2hMVxYTzLVdSomThEfAGlXuukHhla7fZ98nEoHtJqvp4YEjQSvfh5ENahdhSkZzVrY105Q5nSCBie2o3qyBJph8KP7E+FYaeaXBpS7atu9qpmQP/dVrbJTgA8rRir/1RoQOb7HwMbTi2DK4GwVTXGi1vyk4XRCmY1NTKtf479Q0sSK8OioQs5yAEZLeE/krLmgY8DO2Rt7Vdrd6eaDLf6XRa/VJde0Ab7bq/+++Gjd9NYA3lxjXpYO8CHKTougt4CJG6Dgq5rY6yMyPM3S1W7nCKv47iXYteyvb6XFL8dEnFUFw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR1001MB2351.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(366004)(39830400003)(396003)(136003)(376002)(8676002)(26005)(54906003)(86362001)(36756003)(6666004)(6486002)(15650500001)(5660300002)(6512007)(66556008)(66476007)(186003)(66946007)(2906002)(956004)(38350700002)(52116002)(38100700002)(316002)(4326008)(8936002)(6506007)(2616005)(1076003)(83380400001)(7416002)(508600001)(44832011); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?vdIJBMAsMj+Bn4Voo+2rU3SjF4yg?= =?utf-8?q?0+BsGQNHTS0KyPM9PEBv6oE7+AcFO63BXNF6A1k5Z2OsbO+Gr8ofjUuA9kAFw/IDb?= =?utf-8?q?9f9LvgkgnwVfBl4jLRgq7ifAu6oBO9xjGJP/bdABJXFNtp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0Ns9lLuMjIuZPNqi?= =?utf-8?q?aBWDy+hHdFLgJuaZI/H7PYb2t1Wsh+XD2vmG8dP9ImqO4MZFRDAqSKZ+19bxkU3Xq?= =?utf-8?q?i+mCSbAloOkNq51yxe1vNq9qBIOqduRrllXSVT64oDe3DSH6dKDXDn9djfxnfV8wl?= =?utf-8?q?xcA5DmVtZOEwja+W/fZfc/giBRRJQRT3EWeOXKpDQgKVXGLsQFiYFkVtz1vOJ6AVv?= =?utf-8?q?wqmdlMq73qmNB3JZU0bNkUYnMjOuOqvcbst19dciIPBIpUpHK28N2Ur0hO+T/Sf1T?= =?utf-8?q?HM5WMLQ+u3CycUp83+Rfanyp8I3z8a+vA9+HJxoMsHWm9XS2Gz5G+Mb/cEHfNoyXQ?= =?utf-8?q?5Y6MlZXhPJLRg00Cd5QbPHcszNHa+rSYicEQc9ehFimAvksdvauEreUlyv40VXNJq?= =?utf-8?q?NV1UPkF+CciQkoKzQQZCyqFN3sWIj0iRy/qSHEukRD2RTZRUfXM6FgSrveL3ooEDR?= =?utf-8?q?IRz54TXPd3wk4xKcmSaFF3XhFd26AuFE63gySumwM3/dl5Lm0ed9SeUBppsLshh49?= =?utf-8?q?etN7W8VBmtg0Yfff5jpqs0Q2L85fBMJxgKd5GcVbNhDoJRLUJnsGvdAlcoXItoBx0?= =?utf-8?q?x1+4TffEctHInNg3YKDnvPhHizkZYD6glnhdVrUT/hcVXmrvlI+MM0=3D?= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 642416bf-c2f9-478d-b10c-08d9ab971e69 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Nov 2021 19:59:39.0499 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: crKRNmlumuI4oA4KOF7f5eHQ2n+yWS8GyTTCp5i+rC3YoBkBwwrm+WVpkt67Yi/R3tJNS9wAMdwN4KCQfuZykmCqYoVG5rWEdv8vjboOyxQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR10MB5651 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211119_115945_539764_03E95E40 X-CRM114-Status: UNSURE ( 9.29 ) 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 Work is being done to convert drivers utilized by the VSC7514 chip to be externally controlled via SPI instead of MMIO. The first step is to abstract memory-mapped calls to use regmap. That patch set has grown to 23 and counting. In order to keep that scope minimized, I'm submitting this patchset to convert the two pinctrl drivers to a regmap implementation. This patch pinctrl: ocelot: update pinctrl to automatic base address is the only one that should have any functional changes, and therefore has been tested. The rest should only impact what would be expected by normal regmap abstraction. Colin Foster (4): pinctrl: ocelot: combine get resource and ioremap into single call pinctrl: ocelot: update pinctrl to automatic base address pinctrl: ocelot: convert pinctrl to regmap pinctrl: microchip-sgpio: update to support regmap drivers/pinctrl/pinctrl-microchip-sgpio.c | 45 +++++++++++---- drivers/pinctrl/pinctrl-ocelot.c | 69 ++++++++++++++++++----- 2 files changed, 90 insertions(+), 24 deletions(-)