mirror of
https://github.com/Fishwaldo/build.git
synced 2025-04-01 03:31:36 +00:00
41 lines
1.7 KiB
Diff
41 lines
1.7 KiB
Diff
From 15f9f20862e5d75aa0e0ef5bfacddc00a7494b67 Mon Sep 17 00:00:00 2001
|
|
From: Andre Przywara <andre.przywara@arm.com>
|
|
Date: Thu, 29 Jun 2017 09:42:58 +0100
|
|
Subject: [PATCH] sunxi: gpio: add missing compatible strings
|
|
|
|
The sunxi GPIO driver is missing some compatible strings for recent
|
|
SoCs. While most of the sunxi GPIO code seems to not rely on this (and
|
|
so works anyway), the sunxi_name_to_gpio() function does and fails at
|
|
the moment (for instance when resolving the MMC CD pin name).
|
|
Add the compatible strings for the A64, H5 and V3s, which were missing
|
|
from the list. This now covers all pinctrl nodes in our own DTs.
|
|
Strictly speaking the V3s has only ports B, C, E, F and G, but I think
|
|
the other SoCs have gaps in there as well and for the pin number
|
|
computation this does not matter.
|
|
|
|
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
|
|
---
|
|
drivers/gpio/sunxi_gpio.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/drivers/gpio/sunxi_gpio.c b/drivers/gpio/sunxi_gpio.c
|
|
index b47cc66c58..d20a7e75d1 100644
|
|
--- a/drivers/gpio/sunxi_gpio.c
|
|
+++ b/drivers/gpio/sunxi_gpio.c
|
|
@@ -353,12 +353,16 @@ static const struct udevice_id sunxi_gpio_ids[] = {
|
|
ID("allwinner,sun8i-a83t-pinctrl", a_all),
|
|
ID("allwinner,sun8i-h3-pinctrl", a_all),
|
|
ID("allwinner,sun8i-r40-pinctrl", a_all),
|
|
+ ID("allwinner,sun8i-v3s-pinctrl", a_all),
|
|
ID("allwinner,sun9i-a80-pinctrl", a_all),
|
|
+ ID("allwinner,sun50i-a64-pinctrl", a_all),
|
|
+ ID("allwinner,sun50i-h5-pinctrl", a_all),
|
|
ID("allwinner,sun6i-a31-r-pinctrl", l_2),
|
|
ID("allwinner,sun8i-a23-r-pinctrl", l_1),
|
|
ID("allwinner,sun8i-a83t-r-pinctrl", l_1),
|
|
ID("allwinner,sun8i-h3-r-pinctrl", l_1),
|
|
ID("allwinner,sun9i-a80-r-pinctrl", l_3),
|
|
+ ID("allwinner,sun50i-a64-r-pinctrl", l_1),
|
|
{ }
|
|
};
|
|
|