diff options
author | Stefan Agner <stefan@agner.ch> | 2018-07-26 18:40:24 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-07-30 00:37:03 +0300 |
commit | 3c94d2d08a032d911bbe34f2edb24cb63a63644a (patch) | |
tree | b004755fe7335a3c3e4469758e452606a6ff7e07 /drivers/pinctrl/tegra/pinctrl-tegra20.c | |
parent | 55aedef50d4d810670916d9fce4a40d5da2079e7 (diff) | |
download | linux-3c94d2d08a032d911bbe34f2edb24cb63a63644a.tar.xz |
pinctrl: tegra: define GPIO compatible node per SoC
Tegra 2 uses a different GPIO controller which uses "tegra20-gpio" as
compatible string.
Make the compatible string the GPIO node is using a SoC specific
property. This prevents the kernel from registering the GPIO range
twice in case the GPIO range is specified in the device tree.
Fixes: 9462510ce31e ("pinctrl: tegra: Only set the gpio range if needed")
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/tegra/pinctrl-tegra20.c')
-rw-r--r-- | drivers/pinctrl/tegra/pinctrl-tegra20.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pinctrl/tegra/pinctrl-tegra20.c b/drivers/pinctrl/tegra/pinctrl-tegra20.c index b6dd939d32cc..624889ed3a9d 100644 --- a/drivers/pinctrl/tegra/pinctrl-tegra20.c +++ b/drivers/pinctrl/tegra/pinctrl-tegra20.c @@ -2221,6 +2221,7 @@ static const struct tegra_pingroup tegra20_groups[] = { static const struct tegra_pinctrl_soc_data tegra20_pinctrl = { .ngpios = NUM_GPIOS, + .gpio_compatible = "nvidia,tegra20-gpio", .pins = tegra20_pins, .npins = ARRAY_SIZE(tegra20_pins), .functions = tegra20_functions, |