Message ID | 20200423103406.481289-1-bryan.odonoghue@linaro.org (mailing list archive) |
---|---|
Headers | show |
Series | Add Qualcomm MSM8939 GCC binding and driver | expand |
On 23/04/2020 11:34, Bryan O'Donoghue wrote: > V3: > This update removes the old clock name arrays which I forgot to prune in > the previous V2. > > git diff bod/clk-next+msm8939 bod/clk-next+msm8939-v2.1 I should have mentioned. If you want to test this you'll need to do the following to your msm8939.dtsi diff --git a/arch/arm64/boot/dts/qcom/msm8939.dtsi b/arch/arm64/boot/dts/qcom/msm8939.dtsi index 996425a70014..2d54ad7f99b6 100644 --- a/arch/arm64/boot/dts/qcom/msm8939.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8939.dtsi @@ -673,6 +673,10 @@ gcc: clock-controller@1800000 { reg = <0x1800000 0x80000>; + clock-names = "xo", + "sleep_clk"; + clocks = <&xo_board>, + <&sleep_clk>; }; "xo" and "sleep_clk" names can be resolved. --- bod
On 07/05/2020 16:57, Bryan O'Donoghue wrote: > On 23/04/2020 11:34, Bryan O'Donoghue wrote: >> V3: >> This update removes the old clock name arrays which I forgot to prune in >> the previous V2. >> >> git diff bod/clk-next+msm8939 bod/clk-next+msm8939-v2.1 > > I should have mentioned. > > If you want to test this you'll need to do the following to your > msm8939.dtsi > > diff --git a/arch/arm64/boot/dts/qcom/msm8939.dtsi > b/arch/arm64/boot/dts/qcom/msm8939.dtsi > index 996425a70014..2d54ad7f99b6 100644 > --- a/arch/arm64/boot/dts/qcom/msm8939.dtsi > +++ b/arch/arm64/boot/dts/qcom/msm8939.dtsi > @@ -673,6 +673,10 @@ gcc: clock-controller@1800000 { > reg = <0x1800000 0x80000>; > + clock-names = "xo", > + "sleep_clk"; > + clocks = <&xo_board>, > + <&sleep_clk>; > }; > > "xo" and "sleep_clk" names can be resolved. > > --- > bod and this... clocks { xo_board: xo_board { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <19200000>; }; sleep_clk: sleep_clk { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <32768>; }; };
Le jeudi 07 mai 2020 à 17:06 +0100, Bryan O'Donoghue a écrit : > On 07/05/2020 16:57, Bryan O'Donoghue wrote: > > On 23/04/2020 11:34, Bryan O'Donoghue wrote: > > > V3: > > > This update removes the old clock name arrays which I forgot to prune in > > > the previous V2. > > > > > > git diff bod/clk-next+msm8939 bod/clk-next+msm8939-v2.1 > > > > I should have mentioned. > > > > If you want to test this you'll need to do the following to your > > msm8939.dtsi > > > > diff --git a/arch/arm64/boot/dts/qcom/msm8939.dtsi > > b/arch/arm64/boot/dts/qcom/msm8939.dtsi > > index 996425a70014..2d54ad7f99b6 100644 > > --- a/arch/arm64/boot/dts/qcom/msm8939.dtsi > > +++ b/arch/arm64/boot/dts/qcom/msm8939.dtsi > > @@ -673,6 +673,10 @@ gcc: clock-controller@1800000 { > > reg = <0x1800000 0x80000>; > > + clock-names = "xo", > > + "sleep_clk"; > > + clocks = <&xo_board>, > > + <&sleep_clk>; > > }; > > > > "xo" and "sleep_clk" names can be resolved. > > > > --- > > bod > > and this... > > clocks { > xo_board: xo_board { > compatible = "fixed-clock"; > #clock-cells = <0>; > clock-frequency = <19200000>; > }; > > sleep_clk: sleep_clk { > compatible = "fixed-clock"; > #clock-cells = <0>; > clock-frequency = <32768>; > }; > }; > Thank you, works for me over v5.7-rc2 with an Alcatel Idol 3 (5.5"). Tested-by: Vincent Knecht <vincent.knecht@mailoo.org>
On Thu, Apr 23, 2020 at 11:34:06AM +0100, Bryan O'Donoghue wrote: > This patch adds support for the MSM8939 GCC. The MSM8939 is based on the > MSM8916. MSM8939 is compatible in several ways with MSM8916 but, has > additional functional blocks added which require additional PLL sources. In > some cases functional blocks from the MSM8916 have different clock sources > or different supported frequencies. > > Cc: Andy Gross <agross@kernel.org> > Cc: Bjorn Andersson <bjorn.andersson@linaro.org> > Cc: Michael Turquette <mturquette@baylibre.com> > Cc: Stephen Boyd <sboyd@kernel.org> > Cc: Rob Herring <robh+dt@kernel.org> > Cc: Philipp Zabel <p.zabel@pengutronix.de> > Cc: linux-arm-msm@vger.kernel.org > Cc: linux-clk@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Cc: devicetree@vger.kernel.org > Signed-off-by: Shawn Guo <shawn.guo@linaro.org> > Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> > --- > drivers/clk/qcom/Kconfig | 8 + > drivers/clk/qcom/Makefile | 1 + > drivers/clk/qcom/gcc-msm8939.c | 3999 ++++++++++++++++++ > include/dt-bindings/clock/qcom,gcc-msm8939.h | 27 + > include/dt-bindings/reset/qcom,gcc-msm8939.h | 10 + These go in patch 1. > 5 files changed, 4045 insertions(+) > create mode 100644 drivers/clk/qcom/gcc-msm8939.c