From nobody Thu Nov 12 09:51:37 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 4jQFyy4sMCz70KHG for ; Thu, 12 Nov 2026 09:51:38 +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 4jQFyx6Mkxz3GPs for ; Thu, 12 Nov 2026 09:51:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794477097; 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=ToBvpmXXmkxgKgJt+KJASZ5GGbUg9jXfnnGVPIIuKNg=; b=lYsf44/YSDOQRG8n71M/spap0w+4hhrUc64dQDVrSza1PWZomCcKppW4NIdehedabiY117 SGAeLH5j/C7/uWTJS41y1HvZCoGreRFkMaX+/S3JJSUiZe0isT5ukoOfhqwwKL+FJX1xG3 5Wvdf65v7oJYc01/HARgmscwV7gIpsIvkICdUCiQ/ZAAqT0dryT7wjc0cHNY/4PCDq+f/u bI4MUPKgOzKDBV8jKFuadP3MBL2E780eCJquIPaluIy5v9x9z9Ok38v4BunqrfnTHrmRPx Nt2sWXT95RD3fhyvQ/g21qneMzV8YsX44poVoI6jMqTTtz68mqchEq8+XGx3ZQ== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794477097; b=kIxaO9arFg19MAzeVIHLsSLfL34eMauZc8ODrMYbR45h8xc9kMIVMgQ/ZNSrDuqef4bcmg KSvMDNqsrV7N5MqznOJIyjzknEQjyIkkMpvvMjraspBVyew0KvifzFcSQTLKA684/+iRBo PRUhXaOP+1C/vyGmHUX/LCTXZ/L1wlWJdE2fTggEF4ZxPibz00jzQYs42srINMAyr1u3Sw akjl2B8ORR9V+EiNAO/lMwiUfnlmKqTy3Mh31HLLRjfxiURiWymk/lzpQsORW7vZw44hP4 CoSpbYa2ILTFWQ/w7Z4tMd5Abg55C5AaqCmoGz3DDjkf8fjw5A4gXoyiH6F2gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794477097; 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=ToBvpmXXmkxgKgJt+KJASZ5GGbUg9jXfnnGVPIIuKNg=; b=lk2Pwvc9X472YdC9aL34RDW1BqkkFiYJoqfHzrjxaKPZiqn7e1AD/gKpZskxW+5/q60KqU zweQoBgDiM4FfbaPOvJ5mRDusGwDg1UTcxlp9lbfqG/woOX462pbhn+Dxizg7cgG5TojhA 6cjsietIOmAWV8iSrxBRiop1ALGhwMimNyhpTIr4pC8x0mWvjQ0+SrM+gPBSSF6Bs4uKYU eLlKNIhaqQ0WVUXtFvS1w6lspaLW0DQZI6hVqbELrSeykfubLicFa5VXtravQDkG4zvxu6 LguRVPHV8OOsHtB5PEH4mZTWAqc3CBmRz/FszoGz/UkfD6aeEPi0PgeUaqzkbQ== 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 4jQFyx5lvzzxhr for ; Thu, 12 Nov 2026 09:51:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1f9c6 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 12 Nov 2026 09:51:37 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: 4ba979e1e6ea - main - aw_ccu: h6: Add the PWM, IOMMU and THS 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: 4ba979e1e6ea3178c0f3f270c6509ee6d9cffa38 Auto-Submitted: auto-generated Date: Thu, 12 Nov 2026 09:51:37 +0000 Message-Id: <6af58c29.1f9c6.14a14a87@gitrepo.freebsd.org> The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=4ba979e1e6ea3178c0f3f270c6509ee6d9cffa38 commit 4ba979e1e6ea3178c0f3f270c6509ee6d9cffa38 Author: Emmanuel Vadot AuthorDate: 2026-11-10 16:48:24 +0000 Commit: Emmanuel Vadot CommitDate: 2026-11-12 09:47:31 +0000 aw_ccu: h6: Add the PWM, IOMMU and THS clocks Add the bus gates and the resets of the PWM controller, the IOMMU and the thermal sensor. They are on the APB1 bus. The manual has no reset for the IOMMU but the binding has one and Linux uses the bit 16 of its register for it. This bit cannot be written, so this reset does nothing. Tested on: H6 --- sys/dev/clk/allwinner/ccu_h6.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/sys/dev/clk/allwinner/ccu_h6.c b/sys/dev/clk/allwinner/ccu_h6.c index c67b06562f03..d673cd32aed9 100644 --- a/sys/dev/clk/allwinner/ccu_h6.c +++ b/sys/dev/clk/allwinner/ccu_h6.c @@ -90,6 +90,16 @@ static struct aw_ccung_reset h6_ccu_resets[] = { /* PSI_BGR_REG */ CCU_RESET(RST_BUS_PSI, 0x79c, 16) + /* PWM_BGR_REG */ + CCU_RESET(RST_BUS_PWM, 0x7ac, 16) + + /* + * IOMMU_BGR_REG, the manual has no reset in this register but the + * binding has RST_BUS_IOMMU and Linux uses the bit 16 for it. This + * bit cannot be written. + */ + CCU_RESET(RST_BUS_IOMMU, 0x7bc, 16) + /* SMHC_BGR_REG */ CCU_RESET(RST_BUS_MMC0, 0x84c, 16) CCU_RESET(RST_BUS_MMC1, 0x84c, 17) @@ -110,6 +120,9 @@ static struct aw_ccung_reset h6_ccu_resets[] = { /* EMAC_BGR_REG */ CCU_RESET(RST_BUS_EMAC, 0x97c, 16) + /* THS_BGR_REG */ + CCU_RESET(RST_BUS_THS, 0x9fc, 16) + /* USB0_CLK_REG */ CCU_RESET(RST_USB_PHY0, 0xa70, 30) @@ -148,6 +161,12 @@ static struct aw_ccung_gate h6_ccu_gates[] = { /* PSI_BGR_REG */ CCU_GATE(CLK_BUS_PSI, "bus-psi", "psi_ahb1_ahb2", 0x79c, 0) + /* PWM_BGR_REG */ + CCU_GATE(CLK_BUS_PWM, "bus-pwm", "apb1", 0x7ac, 0) + + /* IOMMU_BGR_REG */ + CCU_GATE(CLK_BUS_IOMMU, "bus-iommu", "apb1", 0x7bc, 0) + /* SMHC_BGR_REG */ CCU_GATE(CLK_BUS_MMC0, "bus-mmc0", "ahb3", 0x84c, 0) CCU_GATE(CLK_BUS_MMC1, "bus-mmc1", "ahb3", 0x84c, 1) @@ -168,6 +187,9 @@ static struct aw_ccung_gate h6_ccu_gates[] = { /* EMAC_BGR_REG */ CCU_GATE(CLK_BUS_EMAC, "bus-emac", "ahb3", 0x97c, 0) + /* THS_BGR_REG */ + CCU_GATE(CLK_BUS_THS, "bus-ths", "apb1", 0x9fc, 0) + /* USB0_CLK_REG */ CCU_GATE(CLK_USB_PHY0, "usb-phy0", "ahb3", 0xa70, 29) CCU_GATE(CLK_USB_OHCI0, "usb-ohci0", "ahb3", 0xa70, 31)