From nobody Thu Nov 12 09:51:34 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 4jQFyv2s4Hz70KYD for ; Thu, 12 Nov 2026 09:51:35 +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 4jQFyt4rPQz3GDP for ; Thu, 12 Nov 2026 09:51:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794477094; 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=6jK6moLPPfAyAq6iXMjcFKA6rpn/Ch545ziv0IkC3SI=; b=Qtwhsi89NUPfh/xBDNb7YwsjKWAn6XczTmCbekCUiBK/YX29vity7MwzGmAbhBfJSGgKqB W7HcQZ7klNOHXAPv7Xv9xe1tpfzrdHZLYlLUo3//TcN7eraTo+lEMRMslFyE1byAKNxiG1 5D29sElMF5Dt0AHo/jk5Jo/JZMQkX/6L6tP+2PJYgRUPuuIoq6SOxqOQ8tZjlBZjJCBLZ5 i82JE2/qAGsryAazsTt1R6fWaqI/9+tsaE8I5CO2yoGQtO+Im8jndNDmIUMrwgI4owdKMl eMB3rpSblaKHB3Kn4YqLJqLlspCyfK+cQup8wGjb4HwE+skT2ltZ5gTmm6EpnQ== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794477094; b=LAkrhFqNTiECgNaMd2cikeaZhc3QC6thOYf6XZ+tO/L4Shu9rBhx+F8dGYGmCRyLW1lCAL 2rbyXvHozIGDOpqxJuG0LEuossgOt+iVvqNCz6jYH1U65sb+oUxJN8lu92ii3YKmMAq2DA gn3m2+sp2biGJG/mMh3si+Y6xT/4e3X91YlNhFKHjNPOmh+PEaELWPg5psdRpXLc0wQ7IZ eJNoQHzL3zqaU2r26qDyqHMNTsbqK27Otlqfedp/qavaKPOuj/ixKJHSSAXLh2ZVSDKjnJ K9a46jl6WCJbVJFrobdvJ6LsoB03075UK9L0sVm6Oi4tRonfH+Nt5ilDeI2+xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794477094; 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=6jK6moLPPfAyAq6iXMjcFKA6rpn/Ch545ziv0IkC3SI=; b=LH8jns0t2LJODhH6TaAlUC+E6/P2qhuGzUWAXR2LQJof6x5fM4x0OyiukcJuWqhR3frXrk JYfo5BG6uyUKWlN3VLCTp6T9c8Pkved/IccUsNR0a+v55igKpAr1sGhUGdZpjyGCG+wdh6 7d6lJZxGlywmPXMONst1W6a6eCSwD8zrqMv9cRIhujoeNQ0QZBdGoKNkAInG+D6yrKbZgD 7eZtd4rWaagcULrR+9a85eiFaHq0AlbM/mgtnkWwgMt93700++iY4rlpSLq7oI/fBbtQir qkQHLRBkCMMn+RcijQJH/UEELk4GjHU2Umeilsc+V2Wf1mruDtWA7zwe1ZqEGw== 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 4jQFyt4WjFzxg0 for ; Thu, 12 Nov 2026 09:51:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 20fb5 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 12 Nov 2026 09:51:34 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: e5a6d69f62bb - main - aw_ccu: h6: Do not use the output divider of the video PLLs 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: e5a6d69f62bb6d8c7735caab72d1b42b51e2d66a Auto-Submitted: auto-generated Date: Thu, 12 Nov 2026 09:51:34 +0000 Message-Id: <6af58c26.20fb5.4543d7ae@gitrepo.freebsd.org> The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=e5a6d69f62bb6d8c7735caab72d1b42b51e2d66a commit e5a6d69f62bb6d8c7735caab72d1b42b51e2d66a Author: Emmanuel Vadot AuthorDate: 2026-11-10 16:19:52 +0000 Commit: Emmanuel Vadot CommitDate: 2026-11-12 09:47:30 +0000 aw_ccu: h6: Do not use the output divider of the video PLLs The bit 0 of the video PLLs is an output divider that is only used for testing. According to the H6 manual the rate of these PLLs is 24MHz*N/M with M the bit 1, and it is 1188MHz at reset, when this divider is set. It was used as a divider anyway, so the rates of the video PLLs were half of the real ones, 594MHz at reset. Do not use it. Tested on: H6 --- sys/dev/clk/allwinner/ccu_h6.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sys/dev/clk/allwinner/ccu_h6.c b/sys/dev/clk/allwinner/ccu_h6.c index 5aa2cea62fbd..61dca3c0eb37 100644 --- a/sys/dev/clk/allwinner/ccu_h6.c +++ b/sys/dev/clk/allwinner/ccu_h6.c @@ -275,13 +275,18 @@ NMM_CLK(pll_gpu_clk, 28, 1000, /* lock */ AW_CLK_HAS_GATE | AW_CLK_HAS_LOCK); /* flags */ +/* + * The output divider of the video PLLs, bit 0, is only used for testing and + * is not a part of their rate, which is 1188MHz at reset when it is set. It + * is not used. + */ static const char *pll_video0_4x_parents[] = {"osc24M"}; NMM_CLK(pll_video0_4x_clk, CLK_PLL_VIDEO0_4X, /* id */ "pll_video0_4x", pll_video0_4x_parents, /* name, parents */ 0x40, /* offset */ 8, 8, 0, AW_CLK_FACTOR_MIN_VALUE, 12, /* n factor */ - 0, 1, 0, 0, /* m0 factor */ + 0, 0, 0, 0, /* m0 factor */ 1, 1, 0, 0, /* m1 factor */ 31, /* gate */ 28, 1000, /* lock */ @@ -302,7 +307,7 @@ NMM_CLK(pll_video1_4x_clk, "pll_video1_4x", pll_video1_4x_parents, /* name, parents */ 0x48, /* offset */ 8, 8, 0, AW_CLK_FACTOR_MIN_VALUE, 12, /* n factor */ - 0, 1, 0, 0, /* m0 factor */ + 0, 0, 0, 0, /* m0 factor */ 1, 1, 0, 0, /* m1 factor */ 31, /* gate */ 28, 1000, /* lock */