mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alastair D'Silva <alastair@d-silva.org>
To: Vinod Koul <vkoul@kernel.org>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Chen-Yu Tsai <wens@kernel.org>,
	Jernej Skrabec <jernej.skrabec@gmail.com>,
	Samuel Holland <samuel@sholland.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Stephen Boyd <sboyd@kernel.org>,
	Brian Masney <bmasney+clk@redhat.com>,
	Jerome Brunet <jbrunet+clk@baylibre.com>,
	Thinh Nguyen <Thinh.Nguyen@synopsys.com>,
	Mathias Nyman <mathias.nyman@intel.com>
Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-sunxi@lists.linux.dev, linux-usb@vger.kernel.org,
	linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org,
	Alastair D'Silva <alastair@d-silva.org>
Subject: [PATCH 04/11] clk: sunxi-ng: sun60i-a733: Add USB2 bus and sys clocks
Date: Fri, 27 Nov 2026 18:32:24 +1100	[thread overview]
Message-ID: <20261127073231.1776847-5-alastair@d-silva.org> (raw)
In-Reply-To: <20261127073231.1776847-1-alastair@d-silva.org>

Implement CLK_BUS_USB2 and CLK_USB2_SYS gate clocks for the A733 USB 3.0
controller.

Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
---
 drivers/clk/sunxi-ng/ccu-sun60i-a733.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/drivers/clk/sunxi-ng/ccu-sun60i-a733.c b/drivers/clk/sunxi-ng/ccu-sun60i-a733.c
index 958a2a2bcf76..ef22e82a4e05 100644
--- a/drivers/clk/sunxi-ng/ccu-sun60i-a733.c
+++ b/drivers/clk/sunxi-ng/ccu-sun60i-a733.c
@@ -1317,6 +1317,8 @@ static SUNXI_CCU_M_DATA_WITH_MUX_GATE(usb2_mf_clk, "usb2-mf", usb2_mf_utmi_paren
 				      BIT(31),	/* gate */
 				      0);
 
+static SUNXI_CCU_GATE_HWS(bus_usb2_clk, "bus-usb2", ahb_hws, 0x135c, BIT(0), 0);
+
 static SUNXI_CCU_M_DATA_WITH_MUX_GATE(usb2_u3_utmi_clk, "usb2-u3-utmi", usb2_mf_utmi_parents,
 				      0x1360,
 				      0, 5,	/* M */
@@ -1569,6 +1571,8 @@ static SUNXI_CCU_M_HW_WITH_MUX_GATE(isp_clk, "isp", isp_parents, 0x1860,
 
 static SUNXI_CCU_GATE_DATA(res_dcap_24m_clk, "res-dcap-24m", hosc, 0x1a00, BIT(3), 0);
 
+static SUNXI_CCU_GATE_HWS(usb2_sys_clk, "usb2-sys", mbus_hws, 0x1b30, BIT(0), 0);
+
 static const struct clk_parent_data apb2jtag_parents[] = {
 	{ .hw = &sys_24M_clk.hw },
 	{ .fw_name = "losc" },
@@ -1855,6 +1859,8 @@ static struct ccu_common *sun60i_a733_ccu_clks[] = {
 	&usb2_mf_clk.common,
 	&usb2_u3_utmi_clk.common,
 	&usb2_u2_pipe_clk.common,
+	&bus_usb2_clk.common,
+	&usb2_sys_clk.common,
 	&pcie_aux_clk.common,
 	&pcie_axi_slv_clk.common,
 	&serdes_phy_clk.common,
@@ -2189,8 +2195,10 @@ static struct clk_hw_onecell_data sun60i_a733_hw_clks = {
 		[CLK_FANOUT1]		= &fanout1_clk.common.hw,
 		[CLK_FANOUT2]		= &fanout2_clk.common.hw,
 		[CLK_FANOUT3]		= &fanout3_clk.common.hw,
+		[CLK_BUS_USB2]		= &bus_usb2_clk.common.hw,
+		[CLK_USB2_SYS]		= &usb2_sys_clk.common.hw,
 	},
-	.num	= CLK_FANOUT3 + 1,
+	.num	= CLK_USB2_SYS + 1,
 };
 
 static const struct ccu_reset_map sun60i_a733_ccu_resets[] = {
-- 
2.53.0


  parent reply	other threads:[~2026-11-27  7:33 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27  7:32 [PATCH 00/11] arm64: dts: allwinner: Add Allwinner A733 USB 3.0 support Alastair D'Silva
2026-11-27  7:32 ` [PATCH 01/11] dt-bindings: phy: allwinner,sun60i-a733-u2phy: Add Allwinner A733 USB 2.0 PHY Alastair D'Silva
2026-11-27  7:32 ` [PATCH 02/11] dt-bindings: phy: allwinner,sun60i-a733-combophy: Add combophy0 USB 3.0 support Alastair D'Silva
2026-11-27  7:32 ` [PATCH 03/11] dt-bindings: clock: sun60i-a733: Add USB2 bus and sys clock IDs Alastair D'Silva
2026-11-27  7:32 ` Alastair D'Silva [this message]
2026-11-27  7:32 ` [PATCH 05/11] dt-bindings: usb: allwinner,sun60i-a733-dwc3: Add Allwinner A733 DWC3 Alastair D'Silva
2026-11-27  7:32 ` [PATCH 06/11] phy: allwinner: Add Allwinner A733 USB 2.0 PHY driver Alastair D'Silva
2026-11-28  8:02   ` Uwe Kleine-König
2026-11-27  7:32 ` [PATCH 07/11] phy: allwinner: sun60i-combophy: Add USB 3.0 PHY mode support Alastair D'Silva
2026-11-27  7:32 ` [PATCH 08/11] usb: dwc3: Add Allwinner A733 DWC3 support Alastair D'Silva
2026-11-27  7:32 ` [PATCH 09/11] usb: host: xhci: Add W1C port change quirk for Allwinner A733 Alastair D'Silva
2026-11-27  7:32 ` [PATCH 10/11] arm64: dts: allwinner: sun60i-a733: Add USB 3.0 controller and PHYs Alastair D'Silva
2026-11-27  7:32 ` [PATCH 11/11] arm64: dts: allwinner: sun60i-a733-orangepi-4-pro: Enable USB 3.0 Alastair D'Silva
2026-11-27  9:56 ` [PATCH 00/11] arm64: dts: allwinner: Add Allwinner A733 USB 3.0 support Andre Przywara
2026-11-27 10:26   ` Alastair D'Silva

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261127073231.1776847-5-alastair@d-silva.org \
    --to=alastair@d-silva.org \
    --cc=Thinh.Nguyen@synopsys.com \
    --cc=bmasney+clk@redhat.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jbrunet+clk@baylibre.com \
    --cc=jernej.skrabec@gmail.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=linux-sunxi@lists.linux.dev \
    --cc=linux-usb@vger.kernel.org \
    --cc=mathias.nyman@intel.com \
    --cc=neil.armstrong@linaro.org \
    --cc=robh@kernel.org \
    --cc=samuel@sholland.org \
    --cc=sboyd@kernel.org \
    --cc=vkoul@kernel.org \
    --cc=wens@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®