2020-09-17 13:48:00

by Eugen Hristev

[permalink] [raw]
Subject: [PATCH 2/2] pinctrl: at91-pio4: add support for sama7g5 SoC

Add support for sama7g5 pinctrl block, which has 5 PIO banks.

Signed-off-by: Eugen Hristev <[email protected]>
---
drivers/pinctrl/pinctrl-at91-pio4.c | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c
index 1c852293cb96..9f62152d0a62 100644
--- a/drivers/pinctrl/pinctrl-at91-pio4.c
+++ b/drivers/pinctrl/pinctrl-at91-pio4.c
@@ -999,10 +999,17 @@ static const struct atmel_pioctrl_data atmel_sama5d2_pioctrl_data = {
.nbanks = 4,
};

+static const struct atmel_pioctrl_data microchip_sama7g5_pioctrl_data = {
+ .nbanks = 5,
+};
+
static const struct of_device_id atmel_pctrl_of_match[] = {
{
.compatible = "atmel,sama5d2-pinctrl",
.data = &atmel_sama5d2_pioctrl_data,
+ }, {
+ .compatible = "microchip,sama7g5-pinctrl",
+ .data = &microchip_sama7g5_pioctrl_data,
}, {
/* sentinel */
}
--
2.25.1


2020-09-17 14:38:34

by Nicolas Ferre

[permalink] [raw]
Subject: Re: [PATCH 2/2] pinctrl: at91-pio4: add support for sama7g5 SoC

On 17/09/2020 at 15:12, Eugen Hristev wrote:
> Add support for sama7g5 pinctrl block, which has 5 PIO banks.
>
> Signed-off-by: Eugen Hristev <[email protected]>

Reviewed-by: Nicolas Ferre <[email protected]>

> ---
> drivers/pinctrl/pinctrl-at91-pio4.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c
> index 1c852293cb96..9f62152d0a62 100644
> --- a/drivers/pinctrl/pinctrl-at91-pio4.c
> +++ b/drivers/pinctrl/pinctrl-at91-pio4.c
> @@ -999,10 +999,17 @@ static const struct atmel_pioctrl_data atmel_sama5d2_pioctrl_data = {
> .nbanks = 4,
> };
>
> +static const struct atmel_pioctrl_data microchip_sama7g5_pioctrl_data = {
> + .nbanks = 5,
> +};
> +
> static const struct of_device_id atmel_pctrl_of_match[] = {
> {
> .compatible = "atmel,sama5d2-pinctrl",
> .data = &atmel_sama5d2_pioctrl_data,
> + }, {
> + .compatible = "microchip,sama7g5-pinctrl",
> + .data = &microchip_sama7g5_pioctrl_data,
> }, {
> /* sentinel */
> }
>

Thanks Eugen, regards,
--
Nicolas Ferre

2020-09-21 06:29:06

by Ludovic Desroches

[permalink] [raw]
Subject: Re: [PATCH 2/2] pinctrl: at91-pio4: add support for sama7g5 SoC

On Thu, Sep 17, 2020 at 04:12:57PM +0300, Eugen Hristev wrote:
> Add support for sama7g5 pinctrl block, which has 5 PIO banks.
>
> Signed-off-by: Eugen Hristev <[email protected]>
Acked-by: Ludovic Desroches <[email protected]>

Thanks.

Ludovic

> ---
> drivers/pinctrl/pinctrl-at91-pio4.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c
> index 1c852293cb96..9f62152d0a62 100644
> --- a/drivers/pinctrl/pinctrl-at91-pio4.c
> +++ b/drivers/pinctrl/pinctrl-at91-pio4.c
> @@ -999,10 +999,17 @@ static const struct atmel_pioctrl_data atmel_sama5d2_pioctrl_data = {
> .nbanks = 4,
> };
>
> +static const struct atmel_pioctrl_data microchip_sama7g5_pioctrl_data = {
> + .nbanks = 5,
> +};
> +
> static const struct of_device_id atmel_pctrl_of_match[] = {
> {
> .compatible = "atmel,sama5d2-pinctrl",
> .data = &atmel_sama5d2_pioctrl_data,
> + }, {
> + .compatible = "microchip,sama7g5-pinctrl",
> + .data = &microchip_sama7g5_pioctrl_data,
> }, {
> /* sentinel */
> }
> --
> 2.25.1
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> [email protected]
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

2020-09-29 13:30:37

by Linus Walleij

[permalink] [raw]
Subject: Re: [PATCH 2/2] pinctrl: at91-pio4: add support for sama7g5 SoC

On Thu, Sep 17, 2020 at 3:13 PM Eugen Hristev
<[email protected]> wrote:

> Add support for sama7g5 pinctrl block, which has 5 PIO banks.
>
> Signed-off-by: Eugen Hristev <[email protected]>

Patch applied.

Yours,
Linus Walleij