]> asedeno.scripts.mit.edu Git - linux.git/commit
pinctrl: bcm2835: Add support for BCM2711 pull-up functionality
authorStefan Wahren <wahrenst@gmx.net>
Mon, 22 Jul 2019 06:23:25 +0000 (08:23 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 5 Aug 2019 09:35:41 +0000 (11:35 +0200)
commite38a9a437fb93ddafab5030165e4c6a3a5021669
tree77f927c533c9b4193b4e294475f024c54e676d12
parent9cd6237d660fa70f6592e28b7c3c8ecb8e76807a
pinctrl: bcm2835: Add support for BCM2711 pull-up functionality

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>
Link: https://lore.kernel.org/r/1563776607-8368-3-git-send-email-wahrenst@gmx.net
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/bcm/pinctrl-bcm2835.c