From nobody Thu Nov 12 09:51:43 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 4jQFz34jYKz70KRT for ; Thu, 12 Nov 2026 09:51:43 +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 4jQFz30j63z3GKL for ; Thu, 12 Nov 2026 09:51:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794477103; 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=m2YCoxguH6sX0Y5QULBMc0vwCBrzoOYcgZTBdYI7ckA=; b=RuPxjMm+AJI/y46PRiB7lXhi1eTsoaJHepBKXGysgHOE0nxD0IPlmrkfSD55IoLUERHJ0O CgZFGRGb2MKeqdfKN5bvIxbuXKDmlOevoZZY+6dBj1pk2CsQKj8a9YE4hSAEWQMGeiAk0D yORT/LUicpI9NN8ysCndSB7FGwLP26kOleGF5/FSwh4MDAvq6VwC0hEpECPIiWbBEuY2Gs K9oWoMBMCgKMxPJh5fsHPWWUWiPcDZAlZTQ08xZur1Xm1dXWY16yYfSH6ps18MAtpyugq2 YPMsy0gYiBCHdpJdl3B5tG8VuwJ6rowcjfZmiNugiwUsbYsxy1d8qHHGDJqemw== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794477103; b=GBRWbJSPkVIrwqnxlEO5pgf+1AANRXK+fowU3XyVBqkZp3/tPc70omW4d9tVqZWUiw5fqC kf5Pth+bWOBKlTWRKBYJ3MJwUHbWXcZMowBkP6Eh/mnIvpE2VIZpcmnRuqfpp3hjA57yRI fURFAbJyPEoRyYQV3xSLj1/arkUmrge3Di3UYoZN8HbCpkVBNNy2K8sJwyqHdMH+HTbyhp TucSvV4Az95be8WX7bJn6Z4qfFIFDsIwHuxnuOqBj/+JbijCQvG9TMv+JI+7RrmALxBv3v HLt1XZSw2nw+B1DGaDm9v4fNfYj/2aI+4sRKz0MqU+7SG61Xg0StNV7DWXF1yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794477103; 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=m2YCoxguH6sX0Y5QULBMc0vwCBrzoOYcgZTBdYI7ckA=; b=dZ5YEAxDcGeBL3m0/K3teXNL0wV+mUdzB/Q5r3CNZySSKh1A4o75J5WD/0Dmxpt2A+Rq2x HCD4u+mZrivGHb8LSmFc6hG1+qs2JunAFOeG1Nv62QdgT7rmuZFPu2iZD/lIx9r05n8e/Z Y5U5A75Pl1lC1UNnQMLg/7hQb6DecfbNAU4WCG2j2GcC//kaECZV1J6wnA8pBBvwYPQJOx n0kLYmi31pGIT/1yK2xmqY8LFxMi9bvtPRbO5Rgi0I4dHXGzX+DcXAUhyTEln+4GRIOQuT Sh/jvlgcXR52cATPJF2YZbetIS8KSb6WzeKxURBsrV/TwdfFH2le5zHpvXSABw== 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 4jQFz30CHLzxg5 for ; Thu, 12 Nov 2026 09:51:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1fc35 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 12 Nov 2026 09:51:43 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: b1fdc489a0b0 - main - aw_ccu: h6: Add the DE, DI, GPU, CE, VE, EMCE and VP9 clocks 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: b1fdc489a0b084d9773bd80942f45f48ac39c002 Auto-Submitted: auto-generated Date: Thu, 12 Nov 2026 09:51:43 +0000 Message-Id: <6af58c2f.1fc35.3ebcce97@gitrepo.freebsd.org> The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=b1fdc489a0b084d9773bd80942f45f48ac39c002 commit b1fdc489a0b084d9773bd80942f45f48ac39c002 Author: Emmanuel Vadot AuthorDate: 2026-11-10 17:17:58 +0000 Commit: Emmanuel Vadot CommitDate: 2026-11-12 09:47:32 +0000 aw_ccu: h6: Add the DE, DI, GPU, CE, VE, EMCE and VP9 clocks Add the module clocks, bus gates and resets of the display engine, the deinterlacer, the GPU, the crypto engine, the video engine, the EMCE and the VP9 decoder. Tested on: H6 --- sys/dev/clk/allwinner/ccu_h6.c | 114 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) diff --git a/sys/dev/clk/allwinner/ccu_h6.c b/sys/dev/clk/allwinner/ccu_h6.c index b37017240fda..0f0a824dd798 100644 --- a/sys/dev/clk/allwinner/ccu_h6.c +++ b/sys/dev/clk/allwinner/ccu_h6.c @@ -78,6 +78,27 @@ static struct aw_ccung_reset h6_ccu_resets[] = { /* MBUS_CFG_REG */ CCU_RESET(RST_MBUS, 0x540, 30) + /* DE_BGR_REG */ + CCU_RESET(RST_BUS_DE, 0x60c, 16) + + /* DI_BGR_REG */ + CCU_RESET(RST_BUS_DEINTERLACE, 0x62c, 16) + + /* GPU_BGR_REG */ + CCU_RESET(RST_BUS_GPU, 0x67c, 16) + + /* CE_BGR_REG */ + CCU_RESET(RST_BUS_CE, 0x68c, 16) + + /* VE_BGR_REG */ + CCU_RESET(RST_BUS_VE, 0x69c, 16) + + /* EMCE_BGR_REG */ + CCU_RESET(RST_BUS_EMCE, 0x6bc, 16) + + /* VP9_BGR_REG */ + CCU_RESET(RST_BUS_VP9, 0x6cc, 16) + /* DMA_BGR_REG */ CCU_RESET(RST_BUS_DMA, 0x70c, 16) @@ -169,6 +190,27 @@ static struct aw_ccung_reset h6_ccu_resets[] = { }; static struct aw_ccung_gate h6_ccu_gates[] = { + /* DE_BGR_REG */ + CCU_GATE(CLK_BUS_DE, "bus-de", "psi_ahb1_ahb2", 0x60c, 0) + + /* DI_BGR_REG */ + CCU_GATE(CLK_BUS_DEINTERLACE, "bus-deinterlace", "psi_ahb1_ahb2", 0x62c, 0) + + /* GPU_BGR_REG */ + CCU_GATE(CLK_BUS_GPU, "bus-gpu", "psi_ahb1_ahb2", 0x67c, 0) + + /* CE_BGR_REG */ + CCU_GATE(CLK_BUS_CE, "bus-ce", "psi_ahb1_ahb2", 0x68c, 0) + + /* VE_BGR_REG */ + CCU_GATE(CLK_BUS_VE, "bus-ve", "psi_ahb1_ahb2", 0x69c, 0) + + /* EMCE_BGR_REG */ + CCU_GATE(CLK_BUS_EMCE, "bus-emce", "psi_ahb1_ahb2", 0x6bc, 0) + + /* VP9_BGR_REG */ + CCU_GATE(CLK_BUS_VP9, "bus-vp9", "psi_ahb1_ahb2", 0x6cc, 0) + /* DMA_BGR_REG */ CCU_GATE(CLK_BUS_DMA, "bus-dma", "psi_ahb1_ahb2", 0x70c, 0) @@ -651,6 +693,70 @@ NM_CLK(ir_tx_clk, AW_CLK_HAS_GATE | AW_CLK_HAS_MUX | AW_CLK_REPARENT); /* flags */ +static const char *de_parents[] = {"pll_de", "pll_periph0_2x"}; +M_CLK(de_clk, + CLK_DE, "de", de_parents, /* id, name, parents */ + 0x600, /* offset */ + 0, 4, 0, 0, /* m factor */ + 24, 1, /* mux */ + 31, /* gate */ + AW_CLK_HAS_GATE | AW_CLK_HAS_MUX); /* flags */ + +static const char *deinterlace_parents[] = {"pll_periph0", "pll_periph1"}; +M_CLK(deinterlace_clk, + CLK_DEINTERLACE, "deinterlace", deinterlace_parents, /* id, name, parents */ + 0x620, /* offset */ + 0, 4, 0, 0, /* m factor */ + 24, 1, /* mux */ + 31, /* gate */ + AW_CLK_HAS_GATE | AW_CLK_HAS_MUX); /* flags */ + +static const char *gpu_parents[] = {"pll_gpu"}; +M_CLK(gpu_clk, + CLK_GPU, "gpu", gpu_parents, /* id, name, parents */ + 0x670, /* offset */ + 0, 3, 0, 0, /* m factor */ + 24, 1, /* mux */ + 31, /* gate */ + AW_CLK_HAS_GATE | AW_CLK_HAS_MUX); /* flags */ + +static const char *ce_parents[] = {"osc24M", "pll_periph0_2x"}; +NM_CLK(ce_clk, + CLK_CE, "ce", ce_parents, /* id, name, parents */ + 0x680, /* offset */ + 8, 2, 0, AW_CLK_FACTOR_POWER_OF_TWO, /* n factor */ + 0, 4, 0, 0, /* m factor */ + 24, 1, /* mux */ + 31, /* gate */ + AW_CLK_HAS_GATE | AW_CLK_HAS_MUX); /* flags */ + +static const char *ve_parents[] = {"pll_ve"}; +M_CLK(ve_clk, + CLK_VE, "ve", ve_parents, /* id, name, parents */ + 0x690, /* offset */ + 0, 3, 0, 0, /* m factor */ + 24, 1, /* mux */ + 31, /* gate */ + AW_CLK_HAS_GATE | AW_CLK_HAS_MUX); /* flags */ + +NM_CLK(emce_clk, + CLK_EMCE, "emce", ce_parents, /* id, name, parents */ + 0x6b0, /* offset */ + 8, 2, 0, AW_CLK_FACTOR_POWER_OF_TWO, /* n factor */ + 0, 4, 0, 0, /* m factor */ + 24, 1, /* mux */ + 31, /* gate */ + AW_CLK_HAS_GATE | AW_CLK_HAS_MUX); /* flags */ + +static const char *vp9_parents[] = {"pll_ve", "pll_periph0_2x"}; +M_CLK(vp9_clk, + CLK_VP9, "vp9", vp9_parents, /* id, name, parents */ + 0x6c0, /* offset */ + 0, 3, 0, 0, /* m factor */ + 24, 1, /* mux */ + 31, /* gate */ + AW_CLK_HAS_GATE | AW_CLK_HAS_MUX); /* flags */ + static struct aw_ccung_clk h6_ccu_clks[] = { { .type = AW_CLK_NP, .clk.np = &pll_cpux_clk}, { .type = AW_CLK_NMM, .clk.nmm = &pll_ddr0_clk}, @@ -681,6 +787,14 @@ static struct aw_ccung_clk h6_ccu_clks[] = { { .type = AW_CLK_NM, .clk.nm = &ts_clk}, { .type = AW_CLK_NM, .clk.nm = &ir_tx_clk}, + { .type = AW_CLK_M, .clk.m = &de_clk}, + { .type = AW_CLK_M, .clk.m = &deinterlace_clk}, + { .type = AW_CLK_M, .clk.m = &gpu_clk}, + { .type = AW_CLK_NM, .clk.nm = &ce_clk}, + { .type = AW_CLK_M, .clk.m = &ve_clk}, + { .type = AW_CLK_NM, .clk.nm = &emce_clk}, + { .type = AW_CLK_M, .clk.m = &vp9_clk}, + { .type = AW_CLK_NM, .clk.nm = &mmc0_clk}, { .type = AW_CLK_NM, .clk.nm = &mmc1_clk}, { .type = AW_CLK_NM, .clk.nm = &mmc2_clk},