Message ID | 20240329205904.25002-1-ddrokosov@salutedevices.com (mailing list archive) |
---|---|
Headers | show |
Series | clk: meson: introduce Amlogic A1 SoC Family CPU clock controller driver | expand |
On Fri, Mar 29, 2024 at 11:58:43PM +0300, Dmitry Rokosov wrote: > The 'sys_pll_div16' input clock is used as one of the sources for the > GEN clock. > > Signed-off-by: Dmitry Rokosov <ddrokosov@salutedevices.com> > --- > .../bindings/clock/amlogic,a1-peripherals-clkc.yaml | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/clock/amlogic,a1-peripherals-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,a1-peripherals-clkc.yaml > index 6d84cee1bd75..f6668991ff1f 100644 > --- a/Documentation/devicetree/bindings/clock/amlogic,a1-peripherals-clkc.yaml > +++ b/Documentation/devicetree/bindings/clock/amlogic,a1-peripherals-clkc.yaml > @@ -29,6 +29,7 @@ properties: > - description: input fixed pll div5 > - description: input fixed pll div7 > - description: input hifi pll > + - description: input sys pll div16 > - description: input oscillator (usually at 24MHz) > > clock-names: > @@ -38,6 +39,7 @@ properties: > - const: fclk_div5 > - const: fclk_div7 > - const: hifi_pll > + - const: sys_pll_div16 > - const: xtal And adding an entry in the middle is also an ABI break. New entries go on the end (and should be optional).
On Fri, 29 Mar 2024 23:58:45 +0300, Dmitry Rokosov wrote: > Add the documentation and dt bindings for Amlogic A1 CPU clock > controller. > > This controller consists of the general 'cpu_clk' and two main parents: > 'cpu fixed clock' and 'syspll'. The 'cpu fixed clock' is an internal > fixed clock, while the 'syspll' serves as an external input from the A1 > PLL clock controller. > > Signed-off-by: Dmitry Rokosov <ddrokosov@salutedevices.com> > --- > .../bindings/clock/amlogic,a1-cpu-clkc.yaml | 64 +++++++++++++++++++ > .../dt-bindings/clock/amlogic,a1-cpu-clkc.h | 19 ++++++ > 2 files changed, 83 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/amlogic,a1-cpu-clkc.yaml > create mode 100644 include/dt-bindings/clock/amlogic,a1-cpu-clkc.h > Reviewed-by: Rob Herring <robh@kernel.org>
Hello Rob, Thank you for the quick review. On Mon, Apr 01, 2024 at 09:21:36AM -0500, Rob Herring wrote: > On Fri, Mar 29, 2024 at 11:58:43PM +0300, Dmitry Rokosov wrote: > > The 'sys_pll_div16' input clock is used as one of the sources for the > > GEN clock. > > > > Signed-off-by: Dmitry Rokosov <ddrokosov@salutedevices.com> > > --- > > .../bindings/clock/amlogic,a1-peripherals-clkc.yaml | 5 ++++- > > 1 file changed, 4 insertions(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/clock/amlogic,a1-peripherals-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,a1-peripherals-clkc.yaml > > index 6d84cee1bd75..f6668991ff1f 100644 > > --- a/Documentation/devicetree/bindings/clock/amlogic,a1-peripherals-clkc.yaml > > +++ b/Documentation/devicetree/bindings/clock/amlogic,a1-peripherals-clkc.yaml > > @@ -29,6 +29,7 @@ properties: > > - description: input fixed pll div5 > > - description: input fixed pll div7 > > - description: input hifi pll > > + - description: input sys pll div16 > > - description: input oscillator (usually at 24MHz) > > > > clock-names: > > @@ -38,6 +39,7 @@ properties: > > - const: fclk_div5 > > - const: fclk_div7 > > - const: hifi_pll > > + - const: sys_pll_div16 > > - const: xtal > > And adding an entry in the middle is also an ABI break. New entries go > on the end (and should be optional). The clock source sys_pll_div16, being one of the GEN clock parents, plays a crucial role and cannot be tagged as "optional". Unfortunately, it was not implemented earlier due to the cpu clock ctrl driver's pending status on the TODO list. I would greatly appreciate your advice on the best and simplest way to resolve this matter in an effective manner..