summaryrefslogtreecommitdiffstats
path: root/arch/arm64/boot
diff options
context:
space:
mode:
authorSean Wang <sean.wang@mediatek.com>2018-06-22 05:49:09 +0200
committerMatthias Brugger <matthias.bgg@gmail.com>2018-07-16 15:35:36 +0200
commitaa54a84f835ae1b423be017f772ab851197de1ee (patch)
tree6533c3a4fa64335339a078e4f987844ab089a55f /arch/arm64/boot
parentarm64: dts: mediatek: Add missing cooling device properties for CPUs (diff)
downloadlinux-aa54a84f835ae1b423be017f772ab851197de1ee.tar.xz
linux-aa54a84f835ae1b423be017f772ab851197de1ee.zip
arm64: dts: mt7622: use gpio-ranges to pinctrl device
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>
Diffstat (limited to 'arch/arm64/boot')
-rw-r--r--arch/arm64/boot/dts/mediatek/mt7622.dtsi1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
index 4d6f8452f006..7a3bf15b1b84 100644
--- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
@@ -292,6 +292,7 @@
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>;