From nobody Wed Nov 18 06:48:02 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4jTscM0gWCz6y5nx for ; Wed, 18 Nov 2026 06:48:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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) by mx1.freebsd.org (Postfix) with ESMTPS id 4jTscM05nzz3NPt for ; Wed, 18 Nov 2026 06:48:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794984483; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JIhRw4bJVK5vOTG3mVZ6peXdHZ+8DlV4MkHrbYbNniI=; b=kbGCSfpz+KQLKVEu848kl7bVTniutJFZoiJ4DmmmDnuFiFIjpqNrRs8XesJGgwpA18itEZ uxoLWonWwT30h9ssUYAjpjrDLiRULMw0jkSJZowUKOqE2e75oli9ibuGVteCIgGVM9VnUz 4lNB6TloRlrMY+Ekq+/P/bXvaoX+Isttd7WwBg63xkqcPVXJmMv8ihoFbBfWeOLW5fScpL oYzyXKY3AffT/SsbOrU8QOf771mpQ+LDcZbVuPm/YcmFmo0QUiqugdqoljKeB5Hwi3b4lJ sGlArnKKTuk5wtELyXKg0+ae6xgAMHnmDPTfCq/uwX7TDCnk/aVm1L4almUNsw== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794984483; b=DhXEV4Zr7PXxr3WShDUU+Se9iVMYUf/O8lNThs3TVIw9eyqQ+I9L0ClHzec3d9yzQACTm9 0gZokACScD5yVbsrF1CnUnjKXEfpjtanNvLiyxIfdyjmhaZGqTyi6XJGLkkYTSd0GwQz4r SLh/wdlWogTLak3i8q6tbKrbR9VrDCIPv/mVsiAhxwATcLxmOR60o69yd/Y+PnRMIZrC88 G78hzzdO+3Vbilen8oIyMNlfpvG1MVSBYohcGpOTy8DfqqRtJtFucpp7ez1CGP3UWeZHEq uzYWAupkI17Io7PwZxHBFWTOzFHgAuE67q1YFGN423okIy8dD52mu8mEKkeGMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794984483; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JIhRw4bJVK5vOTG3mVZ6peXdHZ+8DlV4MkHrbYbNniI=; b=hSRf5jGyoYnUv22URL3tUtXq/TsB4VU+9R2sgJW7mizfBWeo7B4Ec2e2e3TG8yq7R55lQc K61Zo0nImQ7ilhHK1fCHV/drvaGE8I/rUSs6lkXqK62rVEXlFdPCwoe1n1GeMI2A9BMh1p a1rGflwnoauK0i60vGlFWowh+2jEEN40KD7bjIKUy007XfKw8e+mFrmDX9J6OPJE/PlD/k 1dVOLFQmSkv1rDuFFFgtqCB2M0dvUEuiPNJAxgTrIP38gi8oQ4rm53WStr2rkr55u9qihV wAxfoBY47OzpvwQqBJ0PDjmjqegejDO+FNXmqE3TqiGBTvrauqC3dmufPe1a5g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jTscL6tHcz1HcZ for ; Wed, 18 Nov 2026 06:48:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id ee13 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 18 Nov 2026 06:48:02 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: 135c402505bc - main - ccu_h6: Add the bus gates of UART1, UART2 and UART3 List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 135c402505bcae5a2504f64deb0ceef75b342280 Auto-Submitted: auto-generated Date: Wed, 18 Nov 2026 06:48:02 +0000 Message-Id: <6afd4a22.ee13.3b3b780f@gitrepo.freebsd.org> The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=135c402505bcae5a2504f64deb0ceef75b342280 commit 135c402505bcae5a2504f64deb0ceef75b342280 Author: Emmanuel Vadot AuthorDate: 2026-11-18 06:23:22 +0000 Commit: Emmanuel Vadot CommitDate: 2026-11-18 06:47:35 +0000 ccu_h6: Add the bus gates of UART1, UART2 and UART3 The firmware only leaves the gate of UART0 on. The UARTs of the H6 are snps,dw-apb-uart and uart_snps enables the bus clock of the device, but the clock does not exist, so the gate of the other UARTs stays off. With a device tree where one of them is enabled (the Bluetooth UART of the Pine H64 model B), uart_bus_probe() accesses the registers of a gated UART and the boot hangs. Add the gates of UART1 to UART3. The one of UART0 is left out for now, with it uart_snps gets the clock rate and detects a 256 bytes FIFO, and the input of the console is delayed. Tested on: Pine H64 (model B device tree, UART1) --- sys/dev/clk/allwinner/ccu_h6.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/dev/clk/allwinner/ccu_h6.c b/sys/dev/clk/allwinner/ccu_h6.c index a9f1e638b0c8..982cbbe96de2 100644 --- a/sys/dev/clk/allwinner/ccu_h6.c +++ b/sys/dev/clk/allwinner/ccu_h6.c @@ -284,14 +284,14 @@ static struct aw_ccung_gate h6_ccu_gates[] = { /* * UART_BGR_REG - * The gates are not enabled, the firmware leaves the UART0 one on. - * With them uart_snps gets the clock rate and detects a 256 bytes - * FIFO, and the input of the console is delayed. + * The gate of UART0 is not enabled, the firmware leaves it on. With it + * uart_snps gets the clock rate and detects a 256 bytes FIFO, and the + * input of the console is delayed. */ /* CCU_GATE(CLK_BUS_UART0, "bus-uart0", "apb2", 0x90c, 0) */ - /* CCU_GATE(CLK_BUS_UART1, "bus-uart1", "apb2", 0x90c, 1) */ - /* CCU_GATE(CLK_BUS_UART2, "bus-uart2", "apb2", 0x90c, 2) */ - /* CCU_GATE(CLK_BUS_UART3, "bus-uart3", "apb2", 0x90c, 3) */ + CCU_GATE(CLK_BUS_UART1, "bus-uart1", "apb2", 0x90c, 1) + CCU_GATE(CLK_BUS_UART2, "bus-uart2", "apb2", 0x90c, 2) + CCU_GATE(CLK_BUS_UART3, "bus-uart3", "apb2", 0x90c, 3) /* TWI_BGR_REG */ CCU_GATE(CLK_BUS_I2C0, "bus-i2c0", "apb2", 0x91c, 0)