From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A270827FB0E; Tue, 30 Jun 2026 02:36:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782787012; cv=none; b=QRrjqhoBZaO5PMOkHCOjQHyNDMf9UTPsX0/j2XPIpup8hkUeU6RKyCCkA1hZM2Hk8uEveRPbOsogs4l1sFgcElHjzRT9ja4T6wjWRDfpTwz50Rxrvt0N0riNuc0ECRE4O//03yvD4VdGvK+0/C4boQ2oBS62UVwYMwrlSM5p+uE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782787012; c=relaxed/simple; bh=zKhPqDASnTI0/BJz6iMX5RR+f5ilxmRBxE8PYsuk2Js=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=rJAw4M9ZaHd452X+KPj5L3paVzHaaVa4mrOEyIZEOnSEX9rOognl8xfj42wcJKm6iTocCOE48IKDgAm/1N6ZDfHsiOsfuyCRfJMqFf2MgefleJcfXXHRmAlxkesvD/lkP9G8xqSLWCoSK0XEA5geKmBBcaB/5mLxMk0bnSZYYqg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ml7Kem8C; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ml7Kem8C" Received: by smtp.kernel.org (Postfix) with ESMTPS id 4B9B9C19425; Tue, 30 Jun 2026 02:36:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1782787012; bh=zKhPqDASnTI0/BJz6iMX5RR+f5ilxmRBxE8PYsuk2Js=; h=From:Subject:Date:To:Cc:Reply-To:From; b=ml7Kem8CcP2yo2ycdlzBrFSXqZvUr/3+ZCRrAsCgO3b2rg189V5s0g71f6GcmMXl+ ZlIkDhLXlAhAPMdCeycd/mHWjvPErx4VLaiUL+QTSyh6Wj8T3nBcSxMwUSJ1PTPUHg /8ZM4BuRwUCKsKGCNJ8geqF6VZ+IkTM/twdXGDH2QR0hmV4Qh7l7u6piech6g3s0ML zB2PZHrEbQSCrBIFVolIq64uBIWqBLzBlonTvSMAdKvGwKe0hBwTw9rxEKvsliMnnx wYWJK52U2u9iKqBA/ZXBSLATMHGW8aA/wBHMMRshWot9viQcqmv2Vtf85wRw11J701 YPLI9p9E4k5nQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32336C43458; Tue, 30 Jun 2026 02:36:52 +0000 (UTC) From: Jian Hu via B4 Relay Subject: [PATCH v5 0/2] clk: amlogic: Add A9 peripherals clock controller Date: Tue, 30 Jun 2026 10:36:47 +0800 Message-Id: <20260630-a9_peripherals-v5-0-bc4019730354@amlogic.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAL8rQ2oC/3XP0QqDIBTG8VcJr+c4mmXtau8xxnB6KqEydMhG9 O6zrhqxy/+B7wdnJgG9xUAu2Uw8RhusG1MUp4zoTo0tUmtSEw68hBJyqurHlCZTh171gQrOBMp aQmE0SaPJY2PfG3i7p+5seDn/2fzI1+tfKnIKFJE9Kw2KYamvauhda/VZu4GsWMx3AIMDkCfAg FSygqpoJDsCYg9UB0AkoEHGwaBIb8lfYFmWL4HrEfswAQAA X-Change-ID: 20260603-a9_peripherals-4214e79705dc To: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Xianwei Zhao , Kevin Hilman , Martin Blumenstingl Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jian Hu , Conor Dooley X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1782787009; l=2655; i=jian.hu@amlogic.com; s=20260415; h=from:subject:message-id; bh=zKhPqDASnTI0/BJz6iMX5RR+f5ilxmRBxE8PYsuk2Js=; b=XtN/aCd/urNFmmo7mfVr+3xALfNzvK2Gm1IYfdwvK3tcJeOrWxbPLk/eQ0gF4Sd0DuxhVVkE1 2xmMundgxahBEW2P7rImFlTOX8dodGYINd+5q1IjjpJTeIT6GNkqw6s X-Developer-Key: i=jian.hu@amlogic.com; a=ed25519; pk=zHUE+rNtH9z+Sb8au1/elWknjFQmy5QDVkBoxleuOIA= X-Endpoint-Received: by B4 Relay for jian.hu@amlogic.com/20260415 with auth_id=735 X-Original-From: Jian Hu Reply-To: jian.hu@amlogic.com This series adds Amlogic A9 peripherals clock support, including dt-binding and peripherals clock driver. Note that this driver depends on the A9 PLL driver, which is not yet upstream. The Meson PLL framework is currently undergoing refactoring, and the A9 PLL driver will be submitted as a follow-up series after that work has been completed. Signed-off-by: Jian Hu --- Changes in v5: - Include . - Add missing '0' suffixes to some clocks. - Fix typo: "encorder1" -> "encoder1". - Fix the parent clock for a9_hdmitx1_pixel. - Link to v4: https://lore.kernel.org/r/20260618-a9_peripherals-v4-0-fe120de44e77@amlogic.com Changes in v4: - Expose channel 3 for gen_clk. - Add missing '0' suffixes to somes. - Use helper macro for vclk clocks definitions. - Drop forward declaration. - Drop CLK_HW_INIT* and revert to explicit clock declarations. - Fix can clock channel number comment. - Rename enc clocks to encoder0/encoder1. - Link to v3: https://lore.kernel.org/r/20260610-a9_peripherals-v3-0-d07a78085f71@amlogic.com Changes in v3: - Add "depend on A9 pll" instructions in the cover-letter. - Move COMPILE_TEST after 'depends on ARM64' reported by sashiko-bot. - Fix usb_48m_pre_sel's parent reported by sashiko-bot. - Fix gen_div width reported by sashiko-bot. - Fix hdmitx1_pixel's parent reported by sashiko-bot. - Link to v2: https://lore.kernel.org/r/20260603-a9_peripherals-v2-0-ee1b8c0a1e6c@amlogic.com Changes in v2: - Split the A9 clock driver and send the peripherals clock separately. - Add COMPILE_TEST in Kconfig. - Drop the 'optional'. - Rename apb4 to soc. - Sort the header file. - Rename hifi to hifi0. - Use CLK_HW_INIT_PARENTS_DATA to describe clk_init_data. - Use CLK_HW_INIT_HW to describe clk_init_data. - Use CLK_HW_INIT_PARENTS_HW to describe clk_init_data. - Link to v1: https://lore.kernel.org/all/20260511-b4-a9_clk-v1-0-41cb4071b7c9@amlogic.com/ --- Jian Hu (2): dt-bindings: clock: Add Amlogic A9 peripherals clock controller clk: amlogic: Add A9 peripherals clock controller driver .../clock/amlogic,a9-peripherals-clkc.yaml | 164 ++ drivers/clk/meson/Kconfig | 15 + drivers/clk/meson/Makefile | 1 + drivers/clk/meson/a9-peripherals.c | 2095 ++++++++++++++++++++ .../clock/amlogic,a9-peripherals-clkc.h | 351 ++++ 5 files changed, 2626 insertions(+) --- base-commit: ca89c88bcf69daca829044c638a8163d5ce47af0 change-id: 20260603-a9_peripherals-4214e79705dc Best regards, -- Jian Hu