[PATCH 09/20] pinctrl: sunxi: add Allwinner D1 pinctrl description

Sam Edwards cfsworks at gmail.com
Thu Aug 10 00:44:30 CEST 2023


On 7/21/23 07:45, Andre Przywara wrote:
> diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c b/drivers/pinctrl/sunxi/pinctrl-sunxi.c
> index fc80fe50b14..c6115112688 100644
> --- a/drivers/pinctrl/sunxi/pinctrl-sunxi.c
> +++ b/drivers/pinctrl/sunxi/pinctrl-sunxi.c
> @@ -748,6 +748,28 @@ static const struct sunxi_pinctrl_desc __maybe_unused sun50i_h616_r_pinctrl_desc
>   	.num_banks	= 1,
>   };
>   
> +static const struct sunxi_pinctrl_function sun20i_d1_pinctrl_functions[] = {
> +	{ "emac",	8 },	/* PE0-PE15 */
> +	{ "gpio_in",	0 },
> +	{ "gpio_out",	1 },
> +	{ "mmc0",	2 },	/* PF0-PF5 */
> +	{ "mmc2",	3 },	/* PC1-PC7 */
> +	{ "spi0",	2 },	/* PC2-PC7 */
> +#if IS_ENABLED(CONFIG_UART0_PORT_F)
> +	{ "uart0",	3 },	/* PF2-PF4 */

/* PF2, PF4 */ ?

> +#else
> +	{ "uart0",	6 },	/* PB2-PB3 */

/* PB0-PB1 */ ?

> +#endif
> +	{ "uart3",	7 },	/* PB6-PB9 */

/* PB6-PB7 */ ?

> +};
Cheers,
Sam


More information about the U-Boot mailing list