From nobody Thu Nov 12 09:51:30 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 4jQFyp6dRBz70KSS for ; Thu, 12 Nov 2026 09:51:30 +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 4jQFyp3NKFz3G7Y for ; Thu, 12 Nov 2026 09:51:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794477090; 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=vQb3c86+xxXJNceaJnqyfluWmxTb6PaHj2T5f09sNVg=; b=xiZXrcl4Be8f69mtNArcv6b7tFaQoA4Ej1RfrmOtVx514Yhh3g5bhORQq8p2t/NBU3TxDZ tkdAsk8VMv+iXPxvbP/zJ9ApkVdGd9Li0fBMIPaLXSIt/AeEXl4aDrMP6c/m5BgniT/336 RMjvOwlM5HYrzAoogcPOE665HPQVL32uxwQzU9GUFcQ1/UnjGJmNSray8+XjvsvKflYDYf cGVAakCmZ7qWki2dngupOrrx8i0ph+K9pJsf5Kr76dR7j89Kx3Qi2M4amQ4PWyXbt6GAqt JyxwN5/uPO38Ipwyp4PYpUOdq8heTGdb7e4/j7NKbWa+5Q8zJT6EKh0Qx2lbaA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794477090; b=PGXSVqUyJJHtxRWu/d6aIFDQ94bhRUKUH6tWtwPFVMb0SbhaIdLylT+hYYHrK5Sbm9HJC0 vnN9BbKGLBHEgBLYuQeWJ1/3dzbEMaIDqRXQOxW2rMQj1vcV65szEmKenusP4yhnBcEF2u PEpXUdfo1hK6yNP+9Pll76m98y+RIVH1QoJc/CN27VtLdmH5SMGrFMuKKxzsHlIXrX10Vv RnRtS9ZkOogi6GzuJEc4gaE8kxKwWpi4qeyT1wwkYTxqDILgGCH0eekQnBI88HLiZJpAN4 PLbrYD8aaAWpdlY8Xv0vjLbTqV0mLXc9AvCwaGRtPKFk9e81QefI/1Y/kiSpqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794477090; 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=vQb3c86+xxXJNceaJnqyfluWmxTb6PaHj2T5f09sNVg=; b=gcER8MudjvFY1d2IGnC+7Qxk2w03DNIpofITUhnZ29OfLFtYBh/+iDPHfi+Su92KdupW/t ttDOxS1PcaT3PUu578JYMKoPBWEHH+EuTDtsdf90Dq+7VZcqTfFpxRL+kSbHxTfp/f/LT0 ASMdLfQISJ/ijLt0AU62LGtTL1SJB2GDxF6vJN+KeKWo8J1ovjBcjTb7vsE/gEeamCkkNk LdEtXpWV8WMG3IyvBOTzgUcHvHg3Nl0sB8DN6VoZrCsN2RdV69QhdxoNw3MEuACHdTkoX0 3yIZlsZPf1qQJ1U/C2LvKt7LTLEgW+Yz3ERMUzfrx+5e2m2iYGbNeE8dRZu2zw== 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 4jQFyp2sZTzy6t for ; Thu, 12 Nov 2026 09:51:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 20d7d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 12 Nov 2026 09:51:30 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: 30566d1a9dee - main - aw_ccu: h6: Limit the N factor of the PLLs to 12 or more 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: 30566d1a9deedf38d128a82ab953bd1ae7494bea Auto-Submitted: auto-generated Date: Thu, 12 Nov 2026 09:51:30 +0000 Message-Id: <6af58c22.20d7d.271841d7@gitrepo.freebsd.org> The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=30566d1a9deedf38d128a82ab953bd1ae7494bea commit 30566d1a9deedf38d128a82ab953bd1ae7494bea Author: Emmanuel Vadot AuthorDate: 2026-11-10 15:06:08 +0000 Commit: Emmanuel Vadot CommitDate: 2026-11-12 09:47:30 +0000 aw_ccu: h6: Limit the N factor of the PLLs to 12 or more The minimum value of the N factor of all the PLLs of the H6 is 12, like the Linux driver does. Without it the search of the factors for a requested rate can choose a value that makes the PLL run below its minimum frequency. Tested on: H6 --- sys/dev/clk/allwinner/ccu_h6.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/sys/dev/clk/allwinner/ccu_h6.c b/sys/dev/clk/allwinner/ccu_h6.c index 51477d6e5b0e..9428d660defd 100644 --- a/sys/dev/clk/allwinner/ccu_h6.c +++ b/sys/dev/clk/allwinner/ccu_h6.c @@ -173,7 +173,7 @@ NP_CLK(pll_cpux_clk, CLK_PLL_CPUX, /* id */ "pll_cpux", pll_cpux_parents, /* name, parents */ 0x00, /* offset */ - 8, 8, 0, 0, 0, /* n factor */ + 8, 8, 0, AW_CLK_FACTOR_MIN_VALUE, 12, /* n factor */ 0, 2, 0, 0, /* p factor */ 31, /* gate */ 28, 1000, /* lock */ @@ -184,7 +184,7 @@ NMM_CLK(pll_ddr0_clk, CLK_PLL_DDR0, /* id */ "pll_ddr0", pll_ddr0_parents, /* name, parents */ 0x10, /* offset */ - 8, 8, 0, 0, 0, /* n factor */ + 8, 8, 0, AW_CLK_FACTOR_MIN_VALUE, 12, /* n factor */ 0, 1, 0, 0, /* m0 factor */ 1, 1, 0, 0, /* m1 factor */ 31, /* gate */ @@ -196,7 +196,7 @@ NMM_CLK(pll_peri0_4x_clk, CLK_PLL_PERIPH0_4X, /* id */ "pll_periph0_4x", pll_peri0_4x_parents, /* name, parents */ 0x20, /* offset */ - 8, 8, 0, 0, 0, /* n factor */ + 8, 8, 0, AW_CLK_FACTOR_MIN_VALUE, 12, /* n factor */ 0, 1, 0, 0, /* m0 factor */ 1, 1, 0, 0, /* m1 factor */ 31, /* gate */ @@ -226,7 +226,7 @@ NMM_CLK(pll_peri1_4x_clk, CLK_PLL_PERIPH1_4X, /* id */ "pll_periph1_4x", pll_peri1_4x_parents, /* name, parents */ 0x28, /* offset */ - 8, 8, 0, 0, 0, /* n factor */ + 8, 8, 0, AW_CLK_FACTOR_MIN_VALUE, 12, /* n factor */ 0, 1, 0, 0, /* m0 factor */ 1, 1, 0, 0, /* m1 factor */ 31, /* gate */ @@ -256,7 +256,7 @@ NMM_CLK(pll_gpu_clk, CLK_PLL_GPU, /* id */ "pll_gpu", pll_gpu_parents, /* name, parents */ 0x30, /* offset */ - 8, 8, 0, 0, 0, /* n factor */ + 8, 8, 0, AW_CLK_FACTOR_MIN_VALUE, 12, /* n factor */ 0, 1, 0, 0, /* m0 factor */ 1, 1, 0, 0, /* m1 factor */ 31, /* gate */ @@ -268,7 +268,7 @@ 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, 0, 0, /* n factor */ + 8, 8, 0, AW_CLK_FACTOR_MIN_VALUE, 12, /* n factor */ 0, 1, 0, 0, /* m0 factor */ 1, 1, 0, 0, /* m1 factor */ 31, /* gate */ @@ -289,7 +289,7 @@ NMM_CLK(pll_video1_4x_clk, CLK_PLL_VIDEO1_4X, /* id */ "pll_video1_4x", pll_video1_4x_parents, /* name, parents */ 0x48, /* offset */ - 8, 8, 0, 0, 0, /* n factor */ + 8, 8, 0, AW_CLK_FACTOR_MIN_VALUE, 12, /* n factor */ 0, 1, 0, 0, /* m0 factor */ 1, 1, 0, 0, /* m1 factor */ 31, /* gate */ @@ -310,7 +310,7 @@ NMM_CLK(pll_ve_clk, CLK_PLL_VE, /* id */ "pll_ve", pll_ve_parents, /* name, parents */ 0x58, /* offset */ - 8, 8, 0, 0, 0, /* n factor */ + 8, 8, 0, AW_CLK_FACTOR_MIN_VALUE, 12, /* n factor */ 0, 1, 0, 0, /* m0 factor */ 1, 1, 0, 0, /* m1 factor */ 31, /* gate */ @@ -322,7 +322,7 @@ NMM_CLK(pll_de_clk, CLK_PLL_DE, /* id */ "pll_de", pll_de_parents, /* name, parents */ 0x60, /* offset */ - 8, 8, 0, 0, 0, /* n factor */ + 8, 8, 0, AW_CLK_FACTOR_MIN_VALUE, 12, /* n factor */ 0, 1, 0, 0, /* m0 factor */ 1, 1, 0, 0, /* m1 factor */ 31, /* gate */ @@ -334,7 +334,7 @@ NMM_CLK(pll_hsic_clk, CLK_PLL_HSIC, /* id */ "pll_hsic", pll_hsic_parents, /* name, parents */ 0x70, /* offset */ - 8, 8, 0, 0, 0, /* n factor */ + 8, 8, 0, AW_CLK_FACTOR_MIN_VALUE, 12, /* n factor */ 0, 1, 0, 0, /* m0 factor */ 1, 1, 0, 0, /* m1 factor */ 31, /* gate */