Message ID | 20240830-c3_add_node-v4-1-b56c0511e9dc@amlogic.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | add some node for amlogic c3 | expand |
Hi Jerome, On 30/08/2024 07:26, Xianwei Zhao via B4 Relay wrote: > From: Xianwei Zhao <xianwei.zhao@amlogic.com> > > Add C3 PLL controller input clock parameters "fix". > > The clock named "fix" was initially implemented in PLL clock controller > driver. However, some registers required secure zone access, so we moved > it to the secure zone (BL31) and accessed it through SCMI. Since the PLL > clock driver needs to use this clock, the "fix" clock is used as an input > source. We updated the driver but forgot to modify the binding accordingly, > so we are adding it here. > > It is an ABI break but on a new and immature platform. Noboby could really > use that platform at this stage, so nothing is going to break on anyone > really. > > Fixes: 0e6be855a96d ("dt-bindings: clock: add Amlogic C3 PLL clock controller") > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com> > --- > Documentation/devicetree/bindings/clock/amlogic,c3-pll-clkc.yaml | 7 +++++-- So you mind if I take this one via my arm64-dt tree ? Neil <snip>
On Fri 30 Aug 2024 at 10:00, Neil Armstrong <neil.armstrong@linaro.org> wrote: > Hi Jerome, > > On 30/08/2024 07:26, Xianwei Zhao via B4 Relay wrote: >> From: Xianwei Zhao <xianwei.zhao@amlogic.com> >> Add C3 PLL controller input clock parameters "fix". >> The clock named "fix" was initially implemented in PLL clock controller >> driver. However, some registers required secure zone access, so we moved >> it to the secure zone (BL31) and accessed it through SCMI. Since the PLL >> clock driver needs to use this clock, the "fix" clock is used as an input >> source. We updated the driver but forgot to modify the binding accordingly, >> so we are adding it here. >> It is an ABI break but on a new and immature platform. Noboby could >> really >> use that platform at this stage, so nothing is going to break on anyone >> really. >> Fixes: 0e6be855a96d ("dt-bindings: clock: add Amlogic C3 PLL clock >> controller") >> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >> Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com> >> --- >> Documentation/devicetree/bindings/clock/amlogic,c3-pll-clkc.yaml | 7 +++++-- > > So you mind if I take this one via my arm64-dt tree ? There is no conflicting change in my tree so it's fine, yes. > > Neil > > <snip>
On 30/08/2024 10:10, Jerome Brunet wrote: > On Fri 30 Aug 2024 at 10:00, Neil Armstrong <neil.armstrong@linaro.org> wrote: > >> Hi Jerome, >> >> On 30/08/2024 07:26, Xianwei Zhao via B4 Relay wrote: >>> From: Xianwei Zhao <xianwei.zhao@amlogic.com> >>> Add C3 PLL controller input clock parameters "fix". >>> The clock named "fix" was initially implemented in PLL clock controller >>> driver. However, some registers required secure zone access, so we moved >>> it to the secure zone (BL31) and accessed it through SCMI. Since the PLL >>> clock driver needs to use this clock, the "fix" clock is used as an input >>> source. We updated the driver but forgot to modify the binding accordingly, >>> so we are adding it here. >>> It is an ABI break but on a new and immature platform. Noboby could >>> really >>> use that platform at this stage, so nothing is going to break on anyone >>> really. >>> Fixes: 0e6be855a96d ("dt-bindings: clock: add Amlogic C3 PLL clock >>> controller") >>> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >>> Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com> >>> --- >>> Documentation/devicetree/bindings/clock/amlogic,c3-pll-clkc.yaml | 7 +++++-- >> >> So you mind if I take this one via my arm64-dt tree ? > > There is no conflicting change in my tree so it's fine, yes. Thanks Neil > >> >> Neil >> >> <snip> >
diff --git a/Documentation/devicetree/bindings/clock/amlogic,c3-pll-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,c3-pll-clkc.yaml index 43de3c6fc1cf..700865cc9792 100644 --- a/Documentation/devicetree/bindings/clock/amlogic,c3-pll-clkc.yaml +++ b/Documentation/devicetree/bindings/clock/amlogic,c3-pll-clkc.yaml @@ -24,11 +24,13 @@ properties: items: - description: input top pll - description: input mclk pll + - description: input fix pll clock-names: items: - const: top - const: mclk + - const: fix "#clock-cells": const: 1 @@ -52,8 +54,9 @@ examples: compatible = "amlogic,c3-pll-clkc"; reg = <0x0 0x8000 0x0 0x1a4>; clocks = <&scmi_clk 2>, - <&scmi_clk 5>; - clock-names = "top", "mclk"; + <&scmi_clk 5>, + <&scmi_clk 12>; + clock-names = "top", "mclk", "fix"; #clock-cells = <1>; }; };