pinctrl: bcm2835: Add support for BCM2711 pull-up functionality
authorStefan Wahren <wahrenst@gmx.net>
Sun, 21 Jul 2019 14:01:36 +0000 (16:01 +0200)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:06 +0000 (16:33 +0100)
commit0bcc54b5834b8f7217eb1742401382dd95a8713c
tree42a9694784b49abeac52d107a928a5c8803a7af0
parentcb310e881c930413c17e3c591d0bbfe42db87942
pinctrl: bcm2835: Add support for BCM2711 pull-up functionality

commit e38a9a437fb93ddafab5030165e4c6a3a5021669 upstream.

The BCM2711 has a new way of selecting the pull-up/pull-down setting
for a GPIO pin. The registers used for the BCM2835, GP_PUD and
GP_PUDCLKn0, are no longer connected. A new set of registers,
GP_GPIO_PUP_PDN_CNTRL_REGx must be used. This commit will add
a new compatible string "brcm,bcm2711-gpio" and the kernel
driver will use it to select which method is used to select
pull-up/pull-down.

This patch based on a patch by Al Cooper which was intended for the
BCM7211. This is a bugfixed and improved version.

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Acked-by: Eric Anholt <eric@anholt.net>
drivers/pinctrl/bcm/pinctrl-bcm2835.c