From patchwork Sat Feb 8 13:02:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 207330 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1D8EC3F68F for ; Sat, 8 Feb 2020 13:03:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7532A217BA for ; Sat, 8 Feb 2020 13:03:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727144AbgBHNDe (ORCPT ); Sat, 8 Feb 2020 08:03:34 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:36035 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727129AbgBHNDd (ORCPT ); Sat, 8 Feb 2020 08:03:33 -0500 Received: from localhost.localdomain ([37.4.249.150]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MZk1p-1j3Sio3D9j-00WpfZ; Sat, 08 Feb 2020 14:03:17 +0100 From: Stefan Wahren To: Nicolas Saenz Julienne , Florian Fainelli , Linus Walleij , Ray Jui , Scott Branden Cc: linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, devicetree@vger.kernel.org, Stefan Wahren Subject: [PATCH 0/4] pinctrl: bcm2835: Add support for all BCM2711 GPIOs Date: Sat, 8 Feb 2020 14:02:51 +0100 Message-Id: <1581166975-22949-1-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 X-Provags-ID: V03:K1:icI8YXP26Zm+jBjOn2iPvYMPgU0dU1i3GPi3xK6L9n7Yvhg1ZFl 2ZXJjVg90vdegqoIZVCbPcf+ByYk0vLlEF8GeQl2Agc8+wOd1AgKlUtzLgFzmsS0odZe677 OGXXBRKaldCx8rstZO4BRwxB6xoXpOxgQv5tPOPSenhIhwh5SFXnq6EMC4jYIYWQZCBC3CW yYqrjHKPVENorBY1SlBXA== X-UI-Out-Filterresults: notjunk:1; V03:K0:9x5HXLGv2j8=:QGeYjIQhpdk9eJVt857SY1 lvvRiYKmpxh7u+Zy5EW8Fq04xcZhkaLQEB+Mkmw3SRc1L4qMTGIzf6/DzNieXG3pjIZImbOJj DPK55L3eAGE9R5iPpqR7SBOpkgDigDpEv8BRePytI2ex9CmrciCcyD+R/uTEjNHs3QF1820E1 lnPNfK2XzruBVTHfPTiXG/ji9i3ZqUJyd/sdE9SrXvA6BOQpp5xdOeNUi39i3vtXuBu1GJZv4 O3GOGJj5FllwnRmYsBjMP/RCF9I6z6ey0TvWh86Tr/Xi+ApwSGI08fc3kFR/m12WQfGQyqUSa A9Guj4iMDzlt/B3ynBuL4Vw38KMlKSzttEAmm8kvwbWR+zlw4su0lg8XU96ZuEupA18CKIS3w LbjSllhtjDE9u736WYEo2haGVAOoY2cTa4CKBYKiz+DPaOMGu1HHd8aapMLypFZHYgr+2Y6ju TDMNV4qE4PH5WgJCgOogP50NXfJIDirKCDhq1RZi3j5l7KZN+uwO50GBnlfgZsCU4hKprin6z uY0oOol0j7fFu6Ezk+1ZTMyCCxmaski+vcLUaeaHyBBk6Ac4em/OpnzuQOxhFl3b7X3eMCPcR TkiDjE46juSuJtMn1ebMjS3OG54CRImI8iBE7FUVe15MwtwNk1QNozunxuj564a/aOmdAbYzo NkK7ViN1FgIaWR1yXjjl70EzqixlbBOfAyipDjq/Ip1ZPCOvEqfi3RFhBQVG1H+yJ3HHts0do Pef5uy0sXFzIzkJUHWSmCv3ex5zPSEPlMum3As1YPrD0aFyDOjQoa7TLn3lAWtXxasaMKYCM6 EFwLIndM/0GQic3NXe631UiV+4anz45dHcjRVBbx2m84DwyYh7b9/LW6w9vNDIu9/TEhUxY Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The BCM2711 supports 58 GPIOs [1] by using the existing BCM2835 GPIO registers completely. So there is no need to change the binding. Patch 1 and 2 prepare the pinctrl driver to be extended to 58 GPIOs in Patch 3. I didn't want to squash them in order to make review as easy as possible. The final patch 4 assigns all SoC GPIOs a label as we already did for the older Raspberry Pi boards. Changes since RFC: - avoid using memcpy as suggested by Nicolas - drop unused entry from GPIO label legend [1] - https://github.com/raspberrypi/linux/issues/3101#issuecomment-573092294 Stefan Wahren (4): pinctrl: bcm2835: Drop unused define pinctrl: bcm2835: Refactor platform data pinctrl: bcm2835: Add support for all GPIOs on BCM2711 ARM: dts: bcm2711-rpi-4-b: Add SoC GPIO labels arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 73 +++++++++++++++++++++++ drivers/pinctrl/bcm/pinctrl-bcm2835.c | 106 ++++++++++++++++++++++++++-------- 2 files changed, 155 insertions(+), 24 deletions(-)