From patchwork Fri Aug 1 00:27:25 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 1353 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A8178836 for ; Fri, 1 Aug 2025 00:29:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754008196; cv=none; b=g9j+RvMa0s55dpHZ+HWI8Ktb+EfZgd/WmdvIijonFG6RhEdaswYfgX/iYFx+6C6eCAYpRtpK9uYueLJcGi510gTSv9ypEAq8l8ALZK2QrB57MRQOW+nLXKAZfCuKb1TMyRIbaUUUPddzCH/XRq4UhcRSGjdcb50wYlQ4uLgeti8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754008196; c=relaxed/simple; bh=fUPPfcjAnFuCOHQ9bRnd4lkNt6/lZn4EHBBkuI8Pc2I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BzzOAp7+dzbClg2aTN00QoHAL0qnb2pOZfD3XCWpFehCHXvc53OW2i9pdOnyOOrr7DyFDAEiA8Y4xlkdSAxT9YR5Nkev1RIUQKaJKUO9j6iNpXr8VAUTBBaspBCy0sTcJ3OM3CpfiWncKazMsn89ceddJLyfIhw+C8AcXfG8sQY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D569B19F0; Thu, 31 Jul 2025 17:29:45 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D86253F5A1; Thu, 31 Jul 2025 17:29:52 -0700 (PDT) From: Andre Przywara To: u-boot@lists.denx.de Cc: Tom Rini , linux-sunxi@lists.linux.dev, Mikhail Kalashnikov , Yixun Lan , Chen-Yu Tsai Subject: [PATCH 1/2] pinctrl: sunxi: a523: change Ethernet pin function name Date: Fri, 1 Aug 2025 01:27:25 +0100 Message-ID: <20250801002726.8924-2-andre.przywara@arm.com> X-Mailer: git-send-email 2.46.3 In-Reply-To: <20250801002726.8924-1-andre.przywara@arm.com> References: <20250801002726.8924-1-andre.przywara@arm.com> Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Status: O 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 --- 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 */ From patchwork Fri Aug 1 00:27:26 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 1352 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A60C98F6F for ; Fri, 1 Aug 2025 00:29:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754008197; cv=none; b=mF0qkbEbJ7hk2/tdCNCkEXJGjmufukwAeiiEPIxAS05KsbnziRxIqmVvCzifi8RNt5fe/bBkpzb0rrnYSHPMEX2ziSKzI3MxjO5glpPRELhN8NTsgVkf64067IslE22qfkBfMVADDZH/PUDcwgCDByuakE//xEAsYCnRlv88HGU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754008197; c=relaxed/simple; bh=7aN80wz9twAObUfVMOKWIGXacG+9zaXm+OH4av+LuoA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WqUovVP0SJILSzz/PEq8LQ6B27aGtpBZDi+lofUYcm4Jtayb901EOTw9+yKCPmWb+U9fbhWuldGL8R5Qb4t572XqL+6V3uQ+0nPuUjTkSZL9z4UGhPFaRzGG3jTG7YFrwMv9jaPrbReDxNwPjv9kQ5+AMPkO6RZbmAf0cy/TYRQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1ED2D1C2B; Thu, 31 Jul 2025 17:29:47 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1F4053F5A1; Thu, 31 Jul 2025 17:29:54 -0700 (PDT) From: Andre Przywara To: u-boot@lists.denx.de Cc: Tom Rini , linux-sunxi@lists.linux.dev, Mikhail Kalashnikov , Yixun Lan , Chen-Yu Tsai Subject: [PATCH 2/2] sunxi: a527: radxa/avaota: enable Ethernet Date: Fri, 1 Aug 2025 01:27:26 +0100 Message-ID: <20250801002726.8924-3-andre.przywara@arm.com> X-Mailer: git-send-email 2.46.3 In-Reply-To: <20250801002726.8924-1-andre.przywara@arm.com> References: <20250801002726.8924-1-andre.przywara@arm.com> Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Status: O 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 --- 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