]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: dts: mt7622: use gpio-ranges to pinctrl device
authorSean Wang <sean.wang@mediatek.com>
Fri, 22 Jun 2018 03:49:09 +0000 (11:49 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 16 Jul 2018 13:35:36 +0000 (15:35 +0200)
Using gpio-ranges property represent which GPIOs correspond to which pins
on MT7622 pin controllers. For details, we can see section 2.1 of
Documentation/devicetree/bindings/gpio/gpio.txt to know how to bind pinctrl
and gpio drivers via the "gpio-ranges" property.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt7622.dtsi

index 4d6f8452f0063681e99fcbc67f22e667cb86188a..7a3bf15b1b8420d562af697521fe4f45421a59fc 100644 (file)
@@ -292,6 +292,7 @@ pio: pinctrl@10211000 {
                reg-names = "base", "eint";
                gpio-controller;
                #gpio-cells = <2>;
+               gpio-ranges = <&pio 0 0 103>;
                interrupt-controller;
                interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>;
                interrupt-parent = <&gic>;