* [PATCH 0/2] sunxi: a523: enable Ethernet
@ 2025-08-01 0:27 Andre Przywara
2025-08-01 0:27 ` [PATCH 1/2] pinctrl: sunxi: a523: change Ethernet pin function name Andre Przywara
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Andre Przywara @ 2025-08-01 0:27 UTC (permalink / raw)
To: u-boot; +Cc: Tom Rini, linux-sunxi, Mikhail Kalashnikov, Yixun Lan,
Chen-Yu Tsai
The first of the two Ethernet controllers in the Allwinner A527/T527
SoCs is compatible to the IP used in the A64 SoC, which our MAC driver
already supports. Since the recent DT update brought us the DT
description of the network interface, enable the driver and thus
Ethernet functionality on the two boards that work.
Patch 1/2 fixes the function name for the RGMII pins in the pinctrl
driver, while patch 2/2 just enables building the sun8i-emac driver.
Please have a look and test!
Cheers,
Andre
Andre Przywara (2):
pinctrl: sunxi: a523: change Ethernet pin function name
sunxi: a527: radxa/avaota: enable Ethernet
configs/avaota-a1_defconfig | 2 ++
configs/radxa-cubie-a5e_defconfig | 2 ++
drivers/pinctrl/sunxi/pinctrl-sunxi.c | 2 +-
3 files changed, 5 insertions(+), 1 deletion(-)
--
2.46.3
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/2] pinctrl: sunxi: a523: change Ethernet pin function name
2025-08-01 0:27 [PATCH 0/2] sunxi: a523: enable Ethernet Andre Przywara
@ 2025-08-01 0:27 ` Andre Przywara
2025-08-11 15:50 ` Jernej Škrabec
2025-08-01 0:27 ` [PATCH 2/2] sunxi: a527: radxa/avaota: enable Ethernet Andre Przywara
2025-08-01 15:50 ` [PATCH 0/2] sunxi: a523: " Yixun Lan
2 siblings, 1 reply; 6+ messages in thread
From: Andre Przywara @ 2025-08-01 0:27 UTC (permalink / raw)
To: u-boot; +Cc: Tom Rini, linux-sunxi, Mikhail Kalashnikov, Yixun Lan,
Chen-Yu Tsai
The name of the pin function was changed last minute in the DT, from
emac0 to gmac0.
Adjust the name we use in the pinctrl driver accordingly.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
drivers/pinctrl/sunxi/pinctrl-sunxi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c b/drivers/pinctrl/sunxi/pinctrl-sunxi.c
index 03cfe23aaf8..fd357ab0d4e 100644
--- a/drivers/pinctrl/sunxi/pinctrl-sunxi.c
+++ b/drivers/pinctrl/sunxi/pinctrl-sunxi.c
@@ -760,7 +760,7 @@ static const struct sunxi_pinctrl_desc __maybe_unused sun50i_h616_pinctrl_desc =
};
static const struct sunxi_pinctrl_function sun55i_a523_pinctrl_functions[] = {
- { "emac0", 5 }, /* PI0-PI16 */
+ { "gmac0", 5 }, /* PI0-PI16 */
{ "gpio_in", 0 },
{ "gpio_out", 1 },
{ "mmc0", 2 }, /* PF0-PF5 */
--
2.46.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2] sunxi: a527: radxa/avaota: enable Ethernet
2025-08-01 0:27 [PATCH 0/2] sunxi: a523: enable Ethernet Andre Przywara
2025-08-01 0:27 ` [PATCH 1/2] pinctrl: sunxi: a523: change Ethernet pin function name Andre Przywara
@ 2025-08-01 0:27 ` Andre Przywara
2025-08-11 15:51 ` Jernej Škrabec
2025-08-01 15:50 ` [PATCH 0/2] sunxi: a523: " Yixun Lan
2 siblings, 1 reply; 6+ messages in thread
From: Andre Przywara @ 2025-08-01 0:27 UTC (permalink / raw)
To: u-boot; +Cc: Tom Rini, linux-sunxi, Mikhail Kalashnikov, Yixun Lan,
Chen-Yu Tsai
The first of the two Ethernet controllers in the Allwinner A527/T527 is
compatible to the MAC from the previous SoCs. Consequently the recent DT
update brought use the MAC node, using the A64 compatible string as the
fallback, which works out of the box.
Enable the sun8i-emac Ethernet driver in the defconfig for the Radxa and
the Avaota boards, so that kernels and other data can be loaded via
TFTP. Please note that only one of the Ethernet sockets will work, the
second MAC is not compatible, and needs a new U-Boot driver. The
X96QPro+ TV box unfortunately uses only this second EMAC, so Ethernet
cannot be used there at the moment.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
configs/avaota-a1_defconfig | 2 ++
configs/radxa-cubie-a5e_defconfig | 2 ++
2 files changed, 4 insertions(+)
diff --git a/configs/avaota-a1_defconfig b/configs/avaota-a1_defconfig
index 55457edd3b3..a4582c00d5b 100644
--- a/configs/avaota-a1_defconfig
+++ b/configs/avaota-a1_defconfig
@@ -22,6 +22,8 @@ CONFIG_SYS_I2C_MVTWSI=y
CONFIG_SYS_I2C_SLAVE=0x7f
CONFIG_SYS_I2C_SPEED=400000
CONFIG_SUPPORT_EMMC_BOOT=y
+CONFIG_PHY_REALTEK=y
+CONFIG_SUN8I_EMAC=y
CONFIG_REGULATOR_AXP=y
CONFIG_AXP717_POWER=y
CONFIG_AXP_I2C_ADDRESS=0x35
diff --git a/configs/radxa-cubie-a5e_defconfig b/configs/radxa-cubie-a5e_defconfig
index 88019acf576..9d204ef5548 100644
--- a/configs/radxa-cubie-a5e_defconfig
+++ b/configs/radxa-cubie-a5e_defconfig
@@ -22,6 +22,8 @@ CONFIG_SYS_I2C_MVTWSI=y
CONFIG_SYS_I2C_SLAVE=0x7f
CONFIG_SYS_I2C_SPEED=400000
CONFIG_SUPPORT_EMMC_BOOT=y
+CONFIG_PHY_REALTEK=y
+CONFIG_SUN8I_EMAC=y
CONFIG_REGULATOR_AXP=y
CONFIG_AXP717_POWER=y
CONFIG_AXP_DCDC2_VOLT=920
--
2.46.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 0/2] sunxi: a523: enable Ethernet
2025-08-01 0:27 [PATCH 0/2] sunxi: a523: enable Ethernet Andre Przywara
2025-08-01 0:27 ` [PATCH 1/2] pinctrl: sunxi: a523: change Ethernet pin function name Andre Przywara
2025-08-01 0:27 ` [PATCH 2/2] sunxi: a527: radxa/avaota: enable Ethernet Andre Przywara
@ 2025-08-01 15:50 ` Yixun Lan
2 siblings, 0 replies; 6+ messages in thread
From: Yixun Lan @ 2025-08-01 15:50 UTC (permalink / raw)
To: Andre Przywara
Cc: u-boot, Tom Rini, linux-sunxi, Mikhail Kalashnikov, Chen-Yu Tsai
Hi Andre,
On 01:27 Fri 01 Aug , Andre Przywara wrote:
> The first of the two Ethernet controllers in the Allwinner A527/T527
> SoCs is compatible to the IP used in the A64 SoC, which our MAC driver
> already supports. Since the recent DT update brought us the DT
> description of the network interface, enable the driver and thus
> Ethernet functionality on the two boards that work.
> Patch 1/2 fixes the function name for the RGMII pins in the pinctrl
> driver, while patch 2/2 just enables building the sun8i-emac driver.
>
> Please have a look and test!
>
Thanks for pushing this
Tested-by: Yixun Lan <dlan@gentoo.org> # Radxa A5E
> Cheers,
> Andre
>
> Andre Przywara (2):
> pinctrl: sunxi: a523: change Ethernet pin function name
> sunxi: a527: radxa/avaota: enable Ethernet
>
> configs/avaota-a1_defconfig | 2 ++
> configs/radxa-cubie-a5e_defconfig | 2 ++
> drivers/pinctrl/sunxi/pinctrl-sunxi.c | 2 +-
> 3 files changed, 5 insertions(+), 1 deletion(-)
>
> --
> 2.46.3
>
--
Yixun Lan (dlan)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] pinctrl: sunxi: a523: change Ethernet pin function name
2025-08-01 0:27 ` [PATCH 1/2] pinctrl: sunxi: a523: change Ethernet pin function name Andre Przywara
@ 2025-08-11 15:50 ` Jernej Škrabec
0 siblings, 0 replies; 6+ messages in thread
From: Jernej Škrabec @ 2025-08-11 15:50 UTC (permalink / raw)
To: u-boot, Andre Przywara
Cc: Tom Rini, linux-sunxi, Mikhail Kalashnikov, Yixun Lan,
Chen-Yu Tsai
Dne petek, 1. avgust 2025 ob 02:27:25 Srednjeevropski poletni čas je Andre Przywara napisal(a):
> The name of the pin function was changed last minute in the DT, from
> emac0 to gmac0.
> Adjust the name we use in the pinctrl driver accordingly.
>
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Best regards,
Jernej
> ---
> drivers/pinctrl/sunxi/pinctrl-sunxi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c b/drivers/pinctrl/sunxi/pinctrl-sunxi.c
> index 03cfe23aaf8..fd357ab0d4e 100644
> --- a/drivers/pinctrl/sunxi/pinctrl-sunxi.c
> +++ b/drivers/pinctrl/sunxi/pinctrl-sunxi.c
> @@ -760,7 +760,7 @@ static const struct sunxi_pinctrl_desc __maybe_unused sun50i_h616_pinctrl_desc =
> };
>
> static const struct sunxi_pinctrl_function sun55i_a523_pinctrl_functions[] = {
> - { "emac0", 5 }, /* PI0-PI16 */
> + { "gmac0", 5 }, /* PI0-PI16 */
> { "gpio_in", 0 },
> { "gpio_out", 1 },
> { "mmc0", 2 }, /* PF0-PF5 */
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] sunxi: a527: radxa/avaota: enable Ethernet
2025-08-01 0:27 ` [PATCH 2/2] sunxi: a527: radxa/avaota: enable Ethernet Andre Przywara
@ 2025-08-11 15:51 ` Jernej Škrabec
0 siblings, 0 replies; 6+ messages in thread
From: Jernej Škrabec @ 2025-08-11 15:51 UTC (permalink / raw)
To: u-boot, Andre Przywara
Cc: Tom Rini, linux-sunxi, Mikhail Kalashnikov, Yixun Lan,
Chen-Yu Tsai
Dne petek, 1. avgust 2025 ob 02:27:26 Srednjeevropski poletni čas je Andre Przywara napisal(a):
> The first of the two Ethernet controllers in the Allwinner A527/T527 is
> compatible to the MAC from the previous SoCs. Consequently the recent DT
> update brought use the MAC node, using the A64 compatible string as the
> fallback, which works out of the box.
>
> Enable the sun8i-emac Ethernet driver in the defconfig for the Radxa and
> the Avaota boards, so that kernels and other data can be loaded via
> TFTP. Please note that only one of the Ethernet sockets will work, the
> second MAC is not compatible, and needs a new U-Boot driver. The
> X96QPro+ TV box unfortunately uses only this second EMAC, so Ethernet
> cannot be used there at the moment.
>
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Best regards,
Jernej
> ---
> configs/avaota-a1_defconfig | 2 ++
> configs/radxa-cubie-a5e_defconfig | 2 ++
> 2 files changed, 4 insertions(+)
>
> diff --git a/configs/avaota-a1_defconfig b/configs/avaota-a1_defconfig
> index 55457edd3b3..a4582c00d5b 100644
> --- a/configs/avaota-a1_defconfig
> +++ b/configs/avaota-a1_defconfig
> @@ -22,6 +22,8 @@ CONFIG_SYS_I2C_MVTWSI=y
> CONFIG_SYS_I2C_SLAVE=0x7f
> CONFIG_SYS_I2C_SPEED=400000
> CONFIG_SUPPORT_EMMC_BOOT=y
> +CONFIG_PHY_REALTEK=y
> +CONFIG_SUN8I_EMAC=y
> CONFIG_REGULATOR_AXP=y
> CONFIG_AXP717_POWER=y
> CONFIG_AXP_I2C_ADDRESS=0x35
> diff --git a/configs/radxa-cubie-a5e_defconfig b/configs/radxa-cubie-a5e_defconfig
> index 88019acf576..9d204ef5548 100644
> --- a/configs/radxa-cubie-a5e_defconfig
> +++ b/configs/radxa-cubie-a5e_defconfig
> @@ -22,6 +22,8 @@ CONFIG_SYS_I2C_MVTWSI=y
> CONFIG_SYS_I2C_SLAVE=0x7f
> CONFIG_SYS_I2C_SPEED=400000
> CONFIG_SUPPORT_EMMC_BOOT=y
> +CONFIG_PHY_REALTEK=y
> +CONFIG_SUN8I_EMAC=y
> CONFIG_REGULATOR_AXP=y
> CONFIG_AXP717_POWER=y
> CONFIG_AXP_DCDC2_VOLT=920
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-08-11 15:51 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-01 0:27 [PATCH 0/2] sunxi: a523: enable Ethernet Andre Przywara
2025-08-01 0:27 ` [PATCH 1/2] pinctrl: sunxi: a523: change Ethernet pin function name Andre Przywara
2025-08-11 15:50 ` Jernej Škrabec
2025-08-01 0:27 ` [PATCH 2/2] sunxi: a527: radxa/avaota: enable Ethernet Andre Przywara
2025-08-11 15:51 ` Jernej Škrabec
2025-08-01 15:50 ` [PATCH 0/2] sunxi: a523: " Yixun Lan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox