ARM: dts: da850: use gpio-ranges
authorDavid Lechner <david@lechnology.com>
Mon, 19 Feb 2018 22:29:31 +0000 (16:29 -0600)
committerSekhar Nori <nsekhar@ti.com>
Mon, 16 Apr 2018 05:33:14 +0000 (11:03 +0530)
commitd1f94959bb5bd92ae9195ee02d03641eb0fdb102
tree8af1ec7d1d6da98d539504e2f8c67fa5b211b2b0
parent2ba019f1c4d1419dd539437c34d88def3f42586c
ARM: dts: da850: use gpio-ranges

This makes use of the gpio-ranges feature that connects GPIO
controllers and PINMUX controllers.

In da850.dtsi, pinctrl-single,gpio-range is added to the pinmux node
and gpio-ranges is added to the GPIO node. Unfortunately, the way the
pinctrl-single driver enumerates the pins (starting with LSB) causes
them to be in reverse order compared to the way the gpios are assigned.
As a result, we have to declare the mapping for each GPIO individually.

This also lets us remove all of the GPIO pinmuxes from
da850-lego-ev3.dts. (Other da850 boards do not currently have any
GPIO pinmuxes declared.)

Acked-by: Linus Walleij <linus.wallei@linaro.org>
Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/boot/dts/da850-lego-ev3.dts
arch/arm/boot/dts/da850.dtsi