2021-10-19 08:48:38

by Horatiu Vultur

[permalink] [raw]
Subject: [RFC PATCH 0/3] Extend lan966x clock driver for clock gating support

This patch series depends on the following series, therefor keep it as RFC.
https://www.spinics.net/lists/linux-clk/msg62237.html

This patch series extend the clock driver to support also clock gating.

Horatiu Vultur (3):
dt-bindings: clock: lan966x: Extend for clock gate support
dt-bindings: clock: lan966x: Extend includes with clock gates
clk: lan966x: Extend lan966x clock driver for clock gating support

.../bindings/clock/microchip,lan966x-gck.yaml | 13 +++-
drivers/clk/clk-lan966x.c | 72 +++++++++++++++++--
include/dt-bindings/clock/microchip,lan966x.h | 8 ++-
3 files changed, 86 insertions(+), 7 deletions(-)

--
2.33.0


2021-10-19 08:49:12

by Horatiu Vultur

[permalink] [raw]
Subject: [RFC PATCH 2/3] dt-bindings: clock: lan966x: Extend includes with clock gates

On lan966x it is allow to control the clock to some peripherals like
USB. So extend the include file with these clocks.

Signed-off-by: Horatiu Vultur <[email protected]>
---
include/dt-bindings/clock/microchip,lan966x.h | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/include/dt-bindings/clock/microchip,lan966x.h b/include/dt-bindings/clock/microchip,lan966x.h
index fe36ed6d8b5f..6f9d43d76d5a 100644
--- a/include/dt-bindings/clock/microchip,lan966x.h
+++ b/include/dt-bindings/clock/microchip,lan966x.h
@@ -23,6 +23,12 @@
#define GCK_ID_TIMER 12
#define GCK_ID_USB_REFCLK 13

-#define N_CLOCKS 14
+/* Gate clocks */
+#define GCK_GATE_UHPHS 14
+#define GCK_GATE_UDPHS 15
+#define GCK_GATE_MCRAMC 16
+#define GCK_GATE_HMATRIX 17
+
+#define N_CLOCKS 18

#endif
--
2.33.0

2021-10-27 16:42:44

by Rob Herring (Arm)

[permalink] [raw]
Subject: Re: [RFC PATCH 2/3] dt-bindings: clock: lan966x: Extend includes with clock gates

On Tue, 19 Oct 2021 10:44:48 +0200, Horatiu Vultur wrote:
> On lan966x it is allow to control the clock to some peripherals like
> USB. So extend the include file with these clocks.
>
> Signed-off-by: Horatiu Vultur <[email protected]>
> ---
> include/dt-bindings/clock/microchip,lan966x.h | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>

Acked-by: Rob Herring <[email protected]>