diff mbox series

[v2,09/23] pinctrl: sunxi: Add sunxi GMAC pinmuxes

Message ID 20220318035420.15058-10-samuel@sholland.org
State Accepted
Commit 7a93644c69f5d856951ae366d4123c44b068716c
Delegated to: Andre Przywara
Headers show
Series sunxi: Add and use a pinctrl driver | expand

Commit Message

Samuel Holland March 18, 2022, 3:54 a.m. UTC
Pin lists and mux values were taken from the Linux drivers.

Signed-off-by: Samuel Holland <samuel@sholland.org>
---

(no changes since v1)

 drivers/pinctrl/sunxi/pinctrl-sunxi.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Andre Przywara March 31, 2022, 11:19 p.m. UTC | #1
On Thu, 17 Mar 2022 22:54:06 -0500
Samuel Holland <samuel@sholland.org> wrote:

> Pin lists and mux values were taken from the Linux drivers.
> 
> Signed-off-by: Samuel Holland <samuel@sholland.org>

Compared against the respective manuals.

Reviewed-by: Andre Przywara <andre.przywara@arm.com>

Cheers,
Andre

> ---
> 
> (no changes since v1)
> 
>  drivers/pinctrl/sunxi/pinctrl-sunxi.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c b/drivers/pinctrl/sunxi/pinctrl-sunxi.c
> index 2525a91e35..7540e7668a 100644
> --- a/drivers/pinctrl/sunxi/pinctrl-sunxi.c
> +++ b/drivers/pinctrl/sunxi/pinctrl-sunxi.c
> @@ -277,6 +277,7 @@ static const struct sunxi_pinctrl_desc __maybe_unused sun5i_a13_pinctrl_desc = {
>  };
>  
>  static const struct sunxi_pinctrl_function sun6i_a31_pinctrl_functions[] = {
> +	{ "gmac",	2 },	/* PA0-PA27 */
>  	{ "gpio_in",	0 },
>  	{ "gpio_out",	1 },
>  #if IS_ENABLED(CONFIG_UART0_PORT_F)
> @@ -308,6 +309,7 @@ static const struct sunxi_pinctrl_desc __maybe_unused sun6i_a31_r_pinctrl_desc =
>  
>  static const struct sunxi_pinctrl_function sun7i_a20_pinctrl_functions[] = {
>  	{ "emac",	2 },	/* PA0-PA17 */
> +	{ "gmac",	5 },	/* PA0-PA17 */
>  	{ "gpio_in",	0 },
>  	{ "gpio_out",	1 },
>  #if IS_ENABLED(CONFIG_UART0_PORT_F)
> @@ -457,6 +459,7 @@ static const struct sunxi_pinctrl_desc __maybe_unused sun8i_v3s_pinctrl_desc = {
>  };
>  
>  static const struct sunxi_pinctrl_function sun9i_a80_pinctrl_functions[] = {
> +	{ "gmac",	2 },	/* PA0-PA17 */
>  	{ "gpio_in",	0 },
>  	{ "gpio_out",	1 },
>  #if IS_ENABLED(CONFIG_UART0_PORT_F)
diff mbox series

Patch

diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c b/drivers/pinctrl/sunxi/pinctrl-sunxi.c
index 2525a91e35..7540e7668a 100644
--- a/drivers/pinctrl/sunxi/pinctrl-sunxi.c
+++ b/drivers/pinctrl/sunxi/pinctrl-sunxi.c
@@ -277,6 +277,7 @@  static const struct sunxi_pinctrl_desc __maybe_unused sun5i_a13_pinctrl_desc = {
 };
 
 static const struct sunxi_pinctrl_function sun6i_a31_pinctrl_functions[] = {
+	{ "gmac",	2 },	/* PA0-PA27 */
 	{ "gpio_in",	0 },
 	{ "gpio_out",	1 },
 #if IS_ENABLED(CONFIG_UART0_PORT_F)
@@ -308,6 +309,7 @@  static const struct sunxi_pinctrl_desc __maybe_unused sun6i_a31_r_pinctrl_desc =
 
 static const struct sunxi_pinctrl_function sun7i_a20_pinctrl_functions[] = {
 	{ "emac",	2 },	/* PA0-PA17 */
+	{ "gmac",	5 },	/* PA0-PA17 */
 	{ "gpio_in",	0 },
 	{ "gpio_out",	1 },
 #if IS_ENABLED(CONFIG_UART0_PORT_F)
@@ -457,6 +459,7 @@  static const struct sunxi_pinctrl_desc __maybe_unused sun8i_v3s_pinctrl_desc = {
 };
 
 static const struct sunxi_pinctrl_function sun9i_a80_pinctrl_functions[] = {
+	{ "gmac",	2 },	/* PA0-PA17 */
 	{ "gpio_in",	0 },
 	{ "gpio_out",	1 },
 #if IS_ENABLED(CONFIG_UART0_PORT_F)