b988136486395746f6c9fd8219088891dc8d9282
[openwrt/staging/robimarko.git] /
1 From 6a7b06ce653de770fc66d34399e57a32b7734bac Mon Sep 17 00:00:00 2001
2 From: notro <notro@tronnes.org>
3 Date: Thu, 10 Jul 2014 13:59:47 +0200
4 Subject: [PATCH] pinctrl-bcm2835: Set base to 0 give expected gpio
5 numbering
6
7 Signed-off-by: Noralf Tronnes <notro@tronnes.org>
8
9 SQUASH: pinctrl: bcm2835: Set base for bcm2711 GPIO to 0
10
11 Without this patch GPIOs don't seem to work properly, primarily
12 noticeable as broken LEDs.
13
14 Squash with "pinctrl-bcm2835: Set base to 0 give expected gpio numbering"
15
16 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
17 ---
18 drivers/pinctrl/bcm/pinctrl-bcm2835.c | 4 ++--
19 1 file changed, 2 insertions(+), 2 deletions(-)
20
21 --- a/drivers/pinctrl/bcm/pinctrl-bcm2835.c
22 +++ b/drivers/pinctrl/bcm/pinctrl-bcm2835.c
23 @@ -393,7 +393,7 @@ static const struct gpio_chip bcm2835_gp
24 .get = bcm2835_gpio_get,
25 .set = bcm2835_gpio_set,
26 .set_config = gpiochip_generic_config,
27 - .base = -1,
28 + .base = 0,
29 .ngpio = BCM2835_NUM_GPIOS,
30 .can_sleep = false,
31 .of_gpio_ranges_fallback = bcm2835_of_gpio_ranges_fallback,
32 @@ -410,7 +410,7 @@ static const struct gpio_chip bcm2711_gp
33 .get = bcm2835_gpio_get,
34 .set = bcm2835_gpio_set,
35 .set_config = gpiochip_generic_config,
36 - .base = -1,
37 + .base = 0,
38 .ngpio = BCM2711_NUM_GPIOS,
39 .can_sleep = false,
40 .of_gpio_ranges_fallback = bcm2835_of_gpio_ranges_fallback,