[U-Boot] [PATCH 08/21] sunxi: gpio: Add compatible strings for all supported SoCs

Simon Glass sjg at chromium.org
Sat Apr 25 01:24:11 CEST 2015


On 24 April 2015 at 07:48, Hans de Goede <hdegoede at redhat.com> wrote:
> We want to use device-model/fdt with other model SoCs too, so add
> compatible strings for the other SoCs to the dm sunxi gpio code.
>
> Signed-off-by: Hans de Goede <hdegoede at redhat.com>
> ---
>  drivers/gpio/sunxi_gpio.c | 7 +++++++
>  1 file changed, 7 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>

>
> diff --git a/drivers/gpio/sunxi_gpio.c b/drivers/gpio/sunxi_gpio.c
> index 89209df..e6a90b9 100644
> --- a/drivers/gpio/sunxi_gpio.c
> +++ b/drivers/gpio/sunxi_gpio.c
> @@ -322,7 +322,14 @@ static int gpio_sunxi_bind(struct udevice *parent)
>  }
>
>  static const struct udevice_id sunxi_gpio_ids[] = {
> +       { .compatible = "allwinner,sun4i-a10-pinctrl" },
> +       { .compatible = "allwinner,sun5i-a10s-pinctrl" },
> +       { .compatible = "allwinner,sun5i-a13-pinctrl" },
> +       { .compatible = "allwinner,sun6i-a31-pinctrl" },
> +       { .compatible = "allwinner,sun6i-a31s-pinctrl" },
>         { .compatible = "allwinner,sun7i-a20-pinctrl" },
> +       { .compatible = "allwinner,sun8i-a23-pinctrl" },
> +       { .compatible = "allwinner,sun9i-a80-pinctrl" },
>         { }
>  };
>
> --
> 2.3.5
>


More information about the U-Boot mailing list