95ced6387256ca2ccb1faf070c58d915e841a0e0
[openwrt/staging/rmilecki.git] /
1 From abc82e964df6c13999cff7b148b12efb255f19aa Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Fri, 22 May 2020 11:35:33 +0100
4 Subject: [PATCH] SQUASH: pinctrl: bcm2835: Set base for bcm2711 GPIO
5 to 0
6
7 Without this patch GPIOs don't seem to work properly, primarily
8 noticeable as broken LEDs.
9
10 Squash with "pinctrl-bcm2835: Set base to 0 give expected gpio numbering"
11
12 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
13 ---
14 drivers/pinctrl/bcm/pinctrl-bcm2835.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 --- a/drivers/pinctrl/bcm/pinctrl-bcm2835.c
18 +++ b/drivers/pinctrl/bcm/pinctrl-bcm2835.c
19 @@ -378,7 +378,7 @@ static const struct gpio_chip bcm2711_gp
20 .get = bcm2835_gpio_get,
21 .set = bcm2835_gpio_set,
22 .set_config = gpiochip_generic_config,
23 - .base = -1,
24 + .base = 0,
25 .ngpio = BCM2711_NUM_GPIOS,
26 .can_sleep = false,
27 };