mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] clk: sunxi-ng: h616: export the APB2 clock
@ 2026-10-22  0:08 James Hilliard
  2026-10-22  0:08 ` [PATCH 1/2] dt-bindings: clock: sun50i-h616: " James Hilliard
  2026-10-22  0:08 ` [PATCH 2/2] clk: sunxi-ng: h616: drop the private APB2 clock definition James Hilliard
  0 siblings, 2 replies; 4+ messages in thread
From: James Hilliard @ 2026-10-22  0:08 UTC (permalink / raw)
  To: Chen-Yu Tsai, Jernej Skrabec, Samuel Holland, Stephen Boyd,
	Brian Masney, Jerome Brunet, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: linux-clk, devicetree, linux-arm-kernel, linux-sunxi,
	linux-kernel, James Hilliard

Expose APB2's existing clock ID so device trees can reference the UART baud
clock independently of the per-port bus gates. Add the public binding ID
first, then remove the redundant private definition.

Assisted-by: Codex:gpt-6-astra
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>

---
James Hilliard (2):
      dt-bindings: clock: sun50i-h616: export the APB2 clock
      clk: sunxi-ng: h616: drop the private APB2 clock definition

 drivers/clk/sunxi-ng/ccu-sun50i-h616.h      | 3 +--
 include/dt-bindings/clock/sun50i-h616-ccu.h | 1 +
 2 files changed, 2 insertions(+), 2 deletions(-)
---
base-commit: 9ef62592b80c7ffb8cd987d889f659c1dc4f9f16
change-id: 20261021-submit-sun50i-h616-apb2-clock-v1-69e0ace9898b

Best regards,
--  
James Hilliard <james.hilliard1@gmail.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] dt-bindings: clock: sun50i-h616: export the APB2 clock
  2026-10-22  0:08 [PATCH 0/2] clk: sunxi-ng: h616: export the APB2 clock James Hilliard
@ 2026-10-22  0:08 ` James Hilliard
  2026-11-19 19:19   ` Rob Herring (Arm)
  2026-10-22  0:08 ` [PATCH 2/2] clk: sunxi-ng: h616: drop the private APB2 clock definition James Hilliard
  1 sibling, 1 reply; 4+ messages in thread
From: James Hilliard @ 2026-10-22  0:08 UTC (permalink / raw)
  To: Chen-Yu Tsai, Jernej Skrabec, Samuel Holland, Stephen Boyd,
	Brian Masney, Jerome Brunet, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: linux-clk, devicetree, linux-arm-kernel, linux-sunxi,
	linux-kernel, James Hilliard

UARTs use APB2 as their baud clock. Expose its existing clock ID so device
trees can describe it separately from the per-port bus gate. Keep the
existing clock numbering.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 include/dt-bindings/clock/sun50i-h616-ccu.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/dt-bindings/clock/sun50i-h616-ccu.h b/include/dt-bindings/clock/sun50i-h616-ccu.h
index 6889405f9fec..e3318772c92d 100644
--- a/include/dt-bindings/clock/sun50i-h616-ccu.h
+++ b/include/dt-bindings/clock/sun50i-h616-ccu.h
@@ -11,6 +11,7 @@
 #define CLK_CPUX		21
 
 #define CLK_APB1		26
+#define CLK_APB2		27
 
 #define CLK_DE			29
 #define CLK_BUS_DE		30

-- 
2.53.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 2/2] clk: sunxi-ng: h616: drop the private APB2 clock definition
  2026-10-22  0:08 [PATCH 0/2] clk: sunxi-ng: h616: export the APB2 clock James Hilliard
  2026-10-22  0:08 ` [PATCH 1/2] dt-bindings: clock: sun50i-h616: " James Hilliard
@ 2026-10-22  0:08 ` James Hilliard
  1 sibling, 0 replies; 4+ messages in thread
From: James Hilliard @ 2026-10-22  0:08 UTC (permalink / raw)
  To: Chen-Yu Tsai, Jernej Skrabec, Samuel Holland, Stephen Boyd,
	Brian Masney, Jerome Brunet, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: linux-clk, devicetree, linux-arm-kernel, linux-sunxi,
	linux-kernel, James Hilliard

CLK_APB2 is now defined in dt-bindings/clock/sun50i-h616-ccu.h, which the
private CCU header already includes. Remove the duplicate definition and
update the comment describing the exported APB clocks.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 drivers/clk/sunxi-ng/ccu-sun50i-h616.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/clk/sunxi-ng/ccu-sun50i-h616.h b/drivers/clk/sunxi-ng/ccu-sun50i-h616.h
index 7056f293a8e0..8a07c27c77d5 100644
--- a/drivers/clk/sunxi-ng/ccu-sun50i-h616.h
+++ b/drivers/clk/sunxi-ng/ccu-sun50i-h616.h
@@ -40,9 +40,8 @@
 #define CLK_PSI_AHB1_AHB2	24
 #define CLK_AHB3		25
 
-/* APB1 clock exported for PIO */
+/* APB1 and APB2 clocks exported for PIO and UART baud clocks */
 
-#define CLK_APB2		27
 #define CLK_MBUS		28
 
 /* All module clocks and bus gates are exported except DRAM */

-- 
2.53.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] dt-bindings: clock: sun50i-h616: export the APB2 clock
  2026-10-22  0:08 ` [PATCH 1/2] dt-bindings: clock: sun50i-h616: " James Hilliard
@ 2026-11-19 19:19   ` Rob Herring (Arm)
  0 siblings, 0 replies; 4+ messages in thread
From: Rob Herring (Arm) @ 2026-11-19 19:19 UTC (permalink / raw)
  To: James Hilliard
  Cc: Jernej Skrabec, Stephen Boyd, Krzysztof Kozlowski, linux-sunxi,
	Samuel Holland, Jerome Brunet, devicetree, linux-arm-kernel,
	Brian Masney, linux-kernel, Chen-Yu Tsai, Conor Dooley,
	linux-clk


On Wed, 21 Oct 2026 18:08:55 -0600, James Hilliard wrote:
> UARTs use APB2 as their baud clock. Expose its existing clock ID so device
> trees can describe it separately from the per-port bus gate. Keep the
> existing clock numbering.
> 
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> ---
>  include/dt-bindings/clock/sun50i-h616-ccu.h | 1 +
>  1 file changed, 1 insertion(+)
> 

Acked-by: Rob Herring (Arm) <robh@kernel.org>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-19 19:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-22  0:08 [PATCH 0/2] clk: sunxi-ng: h616: export the APB2 clock James Hilliard
2026-10-22  0:08 ` [PATCH 1/2] dt-bindings: clock: sun50i-h616: " James Hilliard
2026-11-19 19:19   ` Rob Herring (Arm)
2026-10-22  0:08 ` [PATCH 2/2] clk: sunxi-ng: h616: drop the private APB2 clock definition James Hilliard

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®