From nobody Mon Dec 16 19:27:56 2024 X-Original-To: dev-commits-src-main@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 4YBqj84lBZz5fsmQ; Mon, 16 Dec 2024 19:27:56 +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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YBqj8472lz4k9w; Mon, 16 Dec 2024 19:27:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734377276; 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=Nylgq++NlrB7jajJP2RmokvQQatFK//u80B7MyivKmI=; b=QMQtNgYAtA2RLBkAjHHg15W3B62ZZ7HNvXc0BL9dVo3ja+v0BDCf7jUdHvSAJgW9RF3Llr L1wzwdDTQQQ+oTd0USmP+vFpCli3U25BNE2DQ0ttF7MYNawMqqMuit66nfFMED9GYHvvfA FNO/6rDTVIIrc6tkBbzvOUQcoeVawbgkD328P7r2LN1+0R7RjBY0x5ugwCx4VX0vAOYBnh 5Q6VJu4WKTrY5p9of19bbfyQDFcq418MD9CPyiFJEFWfxwmF2de1xOTUJKy5wXvCI0HwfN k3sZcvOJ6i/LVlKD7WVZVH94o4sWxheGLOUq6UGuvYnIsMiSC77kbI9upEsAYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734377276; 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=Nylgq++NlrB7jajJP2RmokvQQatFK//u80B7MyivKmI=; b=rB6KlXHna4lFyLfl812XpbW/pgvqkEAOh3QbnPoa/d0JwhUbr8IagrtlqQANnMhzmyU1Hg +rJvXZP8ypNJMw6qttjeA/48oxM2/9zQdTnB1KbT74svCzWWJfvIxaOAq8F8kJ9IpWSrqo WCeQI7KiGPZKnHN1q/COV6oSIGmRPmo35J03ZheAgR1fjxfJEntvvxM0x3lUOR7gdl6riJ pwlE37KqmsKxlKqyo0tj9mW12mO1zYBDt9vPgu2FgOiZHXmWiOs4KLMflVKZ96FccbH26g 28OIoavuPU8psKVvROQoEw+LhDTRn9iMBiIRF4aSJ6BaITuAOXZWaoKU3RH0tA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734377276; a=rsa-sha256; cv=none; b=deMWZOKBhVRdWpo028XeVcBtfwp28WRtqblwaFfjczFbh1vLQvDtX4aMiwbDxRe0QJ0918 o1jf+RWF5wfaYfkHRVb1FxhLUM4G8S6UlzeEJ2Lf0cp9So+JeN4lroMJX6qXOhbsf+Gjwm n3UIj9MtRDtNqjGyd3nuYwcwIsZGbNF3rtb3hlL69CmADmybvtgnoyW/LPB7+3QUAlI1Us v2mEVjxWqXXiHh9JJ291gWAM0B1GQG13ya1JsJhOzJLJWjzreomGf4/DcWRyOBN9b41Qrq 76dGqULRnt5+OM9rKy1QBFPj0Zv1ZvrqfxffBqtSps8zT/s+nOuCtmAZC1Zt9A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YBqj83HvDz16Cx; Mon, 16 Dec 2024 19:27:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4BGJRuWD078549; Mon, 16 Dec 2024 19:27:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BGJRuqB078546; Mon, 16 Dec 2024 19:27:56 GMT (envelope-from git) Date: Mon, 16 Dec 2024 19:27:56 GMT Message-Id: <202412161927.4BGJRuqB078546@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mitchell Horne Subject: git: ce3fbcdd14a1 - main - jh7110: Add sys clocks for STG & PCIE List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ce3fbcdd14a1a2ef90890fb8da9592fb4c349b35 Auto-Submitted: auto-generated The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=ce3fbcdd14a1a2ef90890fb8da9592fb4c349b35 commit ce3fbcdd14a1a2ef90890fb8da9592fb4c349b35 Author: Jari Sihvola AuthorDate: 2024-12-16 19:21:50 +0000 Commit: Mitchell Horne CommitDate: 2024-12-16 19:27:23 +0000 jh7110: Add sys clocks for STG & PCIE This patch adds some SYS clocks for StarFive JH7110. They are necessary for getting STG clocks and PCIe driver working. Reviewed by: mhorne MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D47981 --- sys/dev/clk/starfive/jh7110_clk_sys.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/dev/clk/starfive/jh7110_clk_sys.c b/sys/dev/clk/starfive/jh7110_clk_sys.c index e7b8aa87c48e..4bc29b20bc91 100644 --- a/sys/dev/clk/starfive/jh7110_clk_sys.c +++ b/sys/dev/clk/starfive/jh7110_clk_sys.c @@ -56,6 +56,8 @@ static const char *u0_sys_iomux_apb_p[] = { "apb_bus" }; static const char *stg_axiahb_p[] = { "axi_cfg0" }; static const char *ahb0_p[] = { "stg_axiahb" }; static const char *axi_cfg0_p[] = { "bus_root" }; +static const char *nocstg_bus_p[] = { "bus_root" }; +static const char *noc_bus_stg_axi_p[] = { "nocstg_bus" }; static const char *u0_dw_uart_clk_apb_p[] = { "apb0" }; static const char *u0_dw_uart_clk_core_p[] = { "osc" }; @@ -65,6 +67,7 @@ static const char *u1_dw_uart_clk_apb_p[] = { "apb0" }; static const char *u1_dw_uart_clk_core_p[] = { "osc" }; static const char *u1_dw_sdio_clk_ahb_p[] = { "ahb0" }; static const char *u1_dw_sdio_clk_sdcard_p[] = { "axi_cfg0" }; +static const char *usb_125m_p[] = { "pll0_out" }; static const char *u2_dw_uart_clk_apb_p[] = { "apb0" }; static const char *u2_dw_uart_clk_core_p[] = { "osc" }; static const char *u3_dw_uart_clk_apb_p[] = { "apb0" }; @@ -116,6 +119,9 @@ static const struct jh7110_clk_def sys_clks[] = { JH7110_DIV(JH7110_SYSCLK_AXI_CFG0, "axi_cfg0", axi_cfg0_p, 3), JH7110_DIV(JH7110_SYSCLK_STG_AXIAHB, "stg_axiahb", stg_axiahb_p, 2), + JH7110_DIV(JH7110_SYSCLK_NOCSTG_BUS, "nocstg_bus", nocstg_bus_p, 3), + JH7110_GATE(JH7110_SYSCLK_NOC_BUS_STG_AXI, "noc_bus_stg_axi", + noc_bus_stg_axi_p), JH7110_GATE(JH7110_SYSCLK_AHB0, "ahb0", ahb0_p), JH7110_DIV(JH7110_SYSCLK_APB_BUS, "apb_bus", apb_bus_p, 8), @@ -127,6 +133,7 @@ static const struct jh7110_clk_def sys_clks[] = { u0_dw_sdio_clk_sdcard_p, 15), JH7110_GATEDIV(JH7110_SYSCLK_SDIO1_SDCARD, "u1_dw_sdio_clk_sdcard", u1_dw_sdio_clk_sdcard_p, 15), + JH7110_DIV(JH7110_SYSCLK_USB_125M, "usb_125m", usb_125m_p, 15), JH7110_DIV(JH7110_SYSCLK_GMAC_SRC, "gmac_src", gmac_src_p, 7), JH7110_GATEDIV(JH7110_SYSCLK_GMAC0_GTXCLK, "gmac0_gtxclk",