From patchwork Tue Jan 13 04:01:57 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 496 Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C7D2215624B for ; Tue, 13 Jan 2026 04:02:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768276971; cv=none; b=oTngJ6Tinr3tqgvHXBM7Jp66HoPqqmDhMxQtNfiBgm+bFIFPP3qAJ7GvOmNahdtMaPNUXhI+POTdwUMDG5GZCGTGTkENMROs7mGJOxOmMDCIWABh3Bz3mOQEU21hXZI981F6FOegvYAOg5koItcvW9mORLVLbW++dWLV4HHt95M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768276971; c=relaxed/simple; bh=QLpEveh1wTIRuz4ELTNPmJ95XgJw/T1JuXyoQqpBTPc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YIqOV6lR9c6DDBGQ6/blYdQf54vl+B6Nio3IProRXtbspQP3AhPsnRZjU4wfzUAMoZeHiHc7u63JegH4Lwy4MEA+Wmp4Vqj5Ne2SwqzXLFMTinX7LSM0+txBswrMPjDxysimoQIaeikxC0rTO4WjxBBQRZPXuCWxROUYfik0ruE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org; spf=pass smtp.mailfrom=gentoo.org; arc=none smtp.client-ip=140.211.166.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentoo.org Received: from ofovo.local (unknown [116.232.18.222]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: dlan) by smtp.gentoo.org (Postfix) with ESMTPSA id 6FD1D3415D3; Tue, 13 Jan 2026 04:02:47 +0000 (UTC) From: Yixun Lan Date: Tue, 13 Jan 2026 12:01:57 +0800 Subject: [PATCH v3 3/9] sunxi: a733: uart: setup serial console Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20260113-01-a733-soc-support-v3-3-f19dcd098f60@gentoo.org> References: <20260113-01-a733-soc-support-v3-0-f19dcd098f60@gentoo.org> In-Reply-To: <20260113-01-a733-soc-support-v3-0-f19dcd098f60@gentoo.org> To: u-boot@lists.denx.de Cc: linux-sunxi@lists.linux.dev, Andre Przywara , Jagan Teki , Tom Rini , Jernej Skrabec , Paul Kocialkowski , Samuel Holland , Yixun Lan X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1073; i=dlan@gentoo.org; h=from:subject:message-id; bh=QLpEveh1wTIRuz4ELTNPmJ95XgJw/T1JuXyoQqpBTPc=; b=owEB6QIW/ZANAwAKATGq6kdZTbvtAcsmYgBpZcPHQzX7KHE72T3GfzJNKMJ7sofpQtTBxLdmk fUX6IxpAGKJAq8EAAEKAJkWIQS1urjJwxtxFWcCI9wxqupHWU277QUCaWXDxxsUgAAAAAAEAA5t YW51MiwyLjUrMS4xMSwyLDJfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5 maWZ0aGhvcnNlbWFuLm5ldEI1QkFCOEM5QzMxQjcxMTU2NzAyMjNEQzMxQUFFQTQ3NTk0REJCRU QACgkQMarqR1lNu+3nFQ/+Nv5ZiEsIKaDZ/k9TI9UxSlqkytCApEdaF322oy0HjiUul35Ru3Prq 0iydw3+cZi2piGYxJjnrjfRVnU3Lo7C4ekIeKjd/v8Ggp0bi/py5V79PuZ/gIEJWcHz//U8GiPR YbA+UfW2ep9pbFdmnlBrjYUGQH/LpCbw5/UcQcc4+DdoZ7Dxsq6E3mMYb3Llki71o7wckWONjgz PJ+TnNs2zsHOBkkSXz2iMHbVTn00SvTXMOz8hnRsrku8dsids7bZsR4yUA8fOQVdoHoDdqG4DiA /qbnckeiCLhm0HfU6pLZIpL2V292Xj4ZM6BEqq5cE8c1WLH4UaNfxGhC6VHpif/+WQV1RggvrpX dHeSxfXZiMz6BbMKZKgD7c/YhtInCsqwyTM+WoxMpMN/LweN5Bn/CIDDgx55oJmv+qelpFlgbz5 fODTaGWBA6OpBwVSs9IbfMkDdMaC67t2FlgeEAmukXLgg9LJEQM6M2qcd1YLeXWxcZDgIru84t1 NmTsQ7BHCo61vVZmeiaKwvTJxE1N7znanOjj2irNYD0N7OJDNe4qaq58AobznrTFNLG2cA1WJOV 35LzkTqjdvVC5s5XPpxYg3xjMmM7vDaXpGsmu4vsJYmUTKE8JOViqrzMjtibCPaLRneu8bAWNW6 WH91DG+OLez8rjxKSme67b5w62oyTs= X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 Status: O Setup correct UART base address for A733 SoC. According to Allwinner's board design, A733 SoC use the UART0 port for serial console, so config PB9-10 pins to setup pinmux. Signed-off-by: Yixun Lan --- arch/arm/mach-sunxi/board.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-sunxi/board.c b/arch/arm/mach-sunxi/board.c index 432b1c10f92..72c9fc413cb 100644 --- a/arch/arm/mach-sunxi/board.c +++ b/arch/arm/mach-sunxi/board.c @@ -141,7 +141,8 @@ static int gpio_init(void) sunxi_gpio_set_cfgpin(SUNXI_GPB(9), SUN50I_H616_GPH_UART0); sunxi_gpio_set_cfgpin(SUNXI_GPB(10), SUN50I_H616_GPH_UART0); sunxi_gpio_set_pull(SUNXI_GPB(10), SUNXI_GPIO_PULL_UP); -#elif CONFIG_CONS_INDEX == 1 && defined(CONFIG_MACH_SUN55I_A523) +#elif CONFIG_CONS_INDEX == 1 && (defined(CONFIG_MACH_SUN55I_A523) || \ + defined(CONFIG_MACH_SUN60I_A733)) sunxi_gpio_set_cfgpin(SUNXI_GPB(9), 2); sunxi_gpio_set_cfgpin(SUNXI_GPB(10), 2); sunxi_gpio_set_pull(SUNXI_GPB(10), SUNXI_GPIO_PULL_UP);