* [PATCH 1/2] dt-bindings: clock: Document SM8150 rpmh-clock compatible @ 2019-08-14 12:29 Vinod Koul 2019-08-14 12:29 ` [PATCH 2/2] clk: qcom: clk-rpmh: Add support for SM8150 Vinod Koul 2019-08-14 17:18 ` [PATCH 1/2] dt-bindings: clock: Document SM8150 rpmh-clock compatible Stephen Boyd 0 siblings, 2 replies; 7+ messages in thread From: Vinod Koul @ 2019-08-14 12:29 UTC (permalink / raw) To: Stephen Boyd Cc: linux-arm-msm, Bjorn Andersson, Vinod Koul, Andy Gross, Michael Turquette, Rob Herring, Mark Rutland, linux-clk, devicetree, linux-kernel Document the SM8150 rpmh-clock compatible for rpmh clock controller found on SM8150 platforms. Signed-off-by: Vinod Koul <vkoul@kernel.org> --- Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt b/Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt index 3c007653da31..82dee80cdbf3 100644 --- a/Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt +++ b/Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt @@ -6,7 +6,9 @@ some Qualcomm Technologies Inc. SoCs. It accepts clock requests from other hardware subsystems via RSC to control clocks. Required properties : -- compatible : shall contain "qcom,sdm845-rpmh-clk" +- compatible : must be one of: + "qcom,sdm845-rpmh-clk" + "qcom,sm8150-rpmh-clk" - #clock-cells : must contain 1 -- 2.20.1 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/2] clk: qcom: clk-rpmh: Add support for SM8150 2019-08-14 12:29 [PATCH 1/2] dt-bindings: clock: Document SM8150 rpmh-clock compatible Vinod Koul @ 2019-08-14 12:29 ` Vinod Koul 2019-08-14 17:19 ` Stephen Boyd 2019-08-14 17:18 ` [PATCH 1/2] dt-bindings: clock: Document SM8150 rpmh-clock compatible Stephen Boyd 1 sibling, 1 reply; 7+ messages in thread From: Vinod Koul @ 2019-08-14 12:29 UTC (permalink / raw) To: Stephen Boyd Cc: linux-arm-msm, Bjorn Andersson, Vinod Koul, Andy Gross, Michael Turquette, Rob Herring, Mark Rutland, linux-clk, devicetree, linux-kernel Add support for rpmh clocks found in SM8150 Signed-off-by: Vinod Koul <vkoul@kernel.org> --- drivers/clk/qcom/clk-rpmh.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c index c3fd632af119..7fea263447c5 100644 --- a/drivers/clk/qcom/clk-rpmh.c +++ b/drivers/clk/qcom/clk-rpmh.c @@ -368,6 +368,32 @@ static const struct clk_rpmh_desc clk_rpmh_sdm845 = { .num_clks = ARRAY_SIZE(sdm845_rpmh_clocks), }; +DEFINE_CLK_RPMH_ARC(sm8150, bi_tcxo, bi_tcxo_ao, "xo.lvl", 0x3, 2); +DEFINE_CLK_RPMH_VRM(sm8150, ln_bb_clk2, ln_bb_clk2_ao, "lnbclka2", 2); +DEFINE_CLK_RPMH_VRM(sm8150, ln_bb_clk3, ln_bb_clk3_ao, "lnbclka3", 2); +DEFINE_CLK_RPMH_VRM(sm8150, rf_clk1, rf_clk1_ao, "rfclka1", 1); +DEFINE_CLK_RPMH_VRM(sm8150, rf_clk2, rf_clk2_ao, "rfclka2", 1); +DEFINE_CLK_RPMH_VRM(sm8150, rf_clk3, rf_clk3_ao, "rfclka3", 1); + +static struct clk_hw *sm8150_rpmh_clocks[] = { + [RPMH_CXO_CLK] = &sm8150_bi_tcxo.hw, + [RPMH_CXO_CLK_A] = &sm8150_bi_tcxo_ao.hw, + [RPMH_LN_BB_CLK2] = &sm8150_ln_bb_clk2.hw, + [RPMH_LN_BB_CLK2_A] = &sm8150_ln_bb_clk2_ao.hw, + [RPMH_LN_BB_CLK3] = &sm8150_ln_bb_clk3.hw, + [RPMH_LN_BB_CLK3_A] = &sm8150_ln_bb_clk3_ao.hw, + [RPMH_RF_CLK1] = &sm8150_rf_clk1.hw, + [RPMH_RF_CLK1_A] = &sm8150_rf_clk1_ao.hw, + [RPMH_RF_CLK2] = &sm8150_rf_clk2.hw, + [RPMH_RF_CLK2_A] = &sm8150_rf_clk2_ao.hw, + [RPMH_RF_CLK3] = &sm8150_rf_clk3.hw, + [RPMH_RF_CLK3_A] = &sm8150_rf_clk3_ao.hw, +}; + +static const struct clk_rpmh_desc clk_rpmh_sm8150 = { + .clks = sm8150_rpmh_clocks, + .num_clks = ARRAY_SIZE(sm8150_rpmh_clocks), +}; static struct clk_hw *of_clk_rpmh_hw_get(struct of_phandle_args *clkspec, void *data) { @@ -447,6 +473,7 @@ static int clk_rpmh_probe(struct platform_device *pdev) static const struct of_device_id clk_rpmh_match_table[] = { { .compatible = "qcom,sdm845-rpmh-clk", .data = &clk_rpmh_sdm845}, + { .compatible = "qcom,sm8150-rpmh-clk", .data = &clk_rpmh_sm8150}, { } }; MODULE_DEVICE_TABLE(of, clk_rpmh_match_table); -- 2.20.1 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] clk: qcom: clk-rpmh: Add support for SM8150 2019-08-14 12:29 ` [PATCH 2/2] clk: qcom: clk-rpmh: Add support for SM8150 Vinod Koul @ 2019-08-14 17:19 ` Stephen Boyd 2019-08-16 4:24 ` Vinod Koul 0 siblings, 1 reply; 7+ messages in thread From: Stephen Boyd @ 2019-08-14 17:19 UTC (permalink / raw) To: Vinod Koul Cc: linux-arm-msm, Bjorn Andersson, Vinod Koul, Andy Gross, Michael Turquette, Rob Herring, Mark Rutland, linux-clk, devicetree, linux-kernel Quoting Vinod Koul (2019-08-14 05:29:58) > Add support for rpmh clocks found in SM8150 > > Signed-off-by: Vinod Koul <vkoul@kernel.org> > --- Patch looks OK, but can you convert this driver to use the new parent style and then update the binding to handle it? We can fix the other platforms and dts files that use this driver in parallel, but sm8150 will be forward looking. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] clk: qcom: clk-rpmh: Add support for SM8150 2019-08-14 17:19 ` Stephen Boyd @ 2019-08-16 4:24 ` Vinod Koul 2019-08-16 16:58 ` Stephen Boyd 0 siblings, 1 reply; 7+ messages in thread From: Vinod Koul @ 2019-08-16 4:24 UTC (permalink / raw) To: Stephen Boyd Cc: linux-arm-msm, Bjorn Andersson, Andy Gross, Michael Turquette, Rob Herring, Mark Rutland, linux-clk, devicetree, linux-kernel On 14-08-19, 10:19, Stephen Boyd wrote: > Quoting Vinod Koul (2019-08-14 05:29:58) > > Add support for rpmh clocks found in SM8150 > > > > Signed-off-by: Vinod Koul <vkoul@kernel.org> > > --- > > Patch looks OK, but can you convert this driver to use the new parent > style and then update the binding to handle it? We can fix the other > platforms and dts files that use this driver in parallel, but sm8150 > will be forward looking. Yes but that would also impact sdm845 as it uses this driver, so I wanted to get this one done so that we have support for rpm clock and then do the conversion. Would that be okay with you to get this in and then I convert this? Thanks -- ~Vinod ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] clk: qcom: clk-rpmh: Add support for SM8150 2019-08-16 4:24 ` Vinod Koul @ 2019-08-16 16:58 ` Stephen Boyd 2019-08-19 6:28 ` Vinod Koul 0 siblings, 1 reply; 7+ messages in thread From: Stephen Boyd @ 2019-08-16 16:58 UTC (permalink / raw) To: Vinod Koul Cc: linux-arm-msm, Bjorn Andersson, Andy Gross, Michael Turquette, Rob Herring, Mark Rutland, linux-clk, devicetree, linux-kernel Quoting Vinod Koul (2019-08-15 21:24:40) > On 14-08-19, 10:19, Stephen Boyd wrote: > > Quoting Vinod Koul (2019-08-14 05:29:58) > > > Add support for rpmh clocks found in SM8150 > > > > > > Signed-off-by: Vinod Koul <vkoul@kernel.org> > > > --- > > > > Patch looks OK, but can you convert this driver to use the new parent > > style and then update the binding to handle it? We can fix the other > > platforms and dts files that use this driver in parallel, but sm8150 > > will be forward looking. > > Yes but that would also impact sdm845 as it uses this driver, so I > wanted to get this one done so that we have support for rpm clock and > then do the conversion. > > Would that be okay with you to get this in and then I convert this? > How does it impact sdm845? The new way of specifying parents supports fallback to legacy string matching. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] clk: qcom: clk-rpmh: Add support for SM8150 2019-08-16 16:58 ` Stephen Boyd @ 2019-08-19 6:28 ` Vinod Koul 0 siblings, 0 replies; 7+ messages in thread From: Vinod Koul @ 2019-08-19 6:28 UTC (permalink / raw) To: Stephen Boyd Cc: linux-arm-msm, Bjorn Andersson, Andy Gross, Michael Turquette, Rob Herring, Mark Rutland, linux-clk, devicetree, linux-kernel On 16-08-19, 09:58, Stephen Boyd wrote: > Quoting Vinod Koul (2019-08-15 21:24:40) > > On 14-08-19, 10:19, Stephen Boyd wrote: > > > Quoting Vinod Koul (2019-08-14 05:29:58) > > > > Add support for rpmh clocks found in SM8150 > > > > > > > > Signed-off-by: Vinod Koul <vkoul@kernel.org> > > > > --- > > > > > > Patch looks OK, but can you convert this driver to use the new parent > > > style and then update the binding to handle it? We can fix the other > > > platforms and dts files that use this driver in parallel, but sm8150 > > > will be forward looking. > > > > Yes but that would also impact sdm845 as it uses this driver, so I > > wanted to get this one done so that we have support for rpm clock and > > then do the conversion. > > > > Would that be okay with you to get this in and then I convert this? > > > > How does it impact sdm845? The new way of specifying parents supports > fallback to legacy string matching. Yes it does, I have managed to convert this as well as sdm845 and test. I will send updates shortly Thanks -- ~Vinod ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] dt-bindings: clock: Document SM8150 rpmh-clock compatible 2019-08-14 12:29 [PATCH 1/2] dt-bindings: clock: Document SM8150 rpmh-clock compatible Vinod Koul 2019-08-14 12:29 ` [PATCH 2/2] clk: qcom: clk-rpmh: Add support for SM8150 Vinod Koul @ 2019-08-14 17:18 ` Stephen Boyd 1 sibling, 0 replies; 7+ messages in thread From: Stephen Boyd @ 2019-08-14 17:18 UTC (permalink / raw) To: Vinod Koul Cc: linux-arm-msm, Bjorn Andersson, Vinod Koul, Andy Gross, Michael Turquette, Rob Herring, Mark Rutland, linux-clk, devicetree, linux-kernel Quoting Vinod Koul (2019-08-14 05:29:57) > Document the SM8150 rpmh-clock compatible for rpmh clock controller > found on SM8150 platforms. > > Signed-off-by: Vinod Koul <vkoul@kernel.org> > --- > Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt b/Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt > index 3c007653da31..82dee80cdbf3 100644 > --- a/Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt > +++ b/Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt > @@ -6,7 +6,9 @@ some Qualcomm Technologies Inc. SoCs. It accepts clock requests from > other hardware subsystems via RSC to control clocks. > > Required properties : > -- compatible : shall contain "qcom,sdm845-rpmh-clk" > +- compatible : must be one of: > + "qcom,sdm845-rpmh-clk" > + "qcom,sm8150-rpmh-clk" > Can it take a 'clocks' property to get the board clock? ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2019-08-19 6:29 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2019-08-14 12:29 [PATCH 1/2] dt-bindings: clock: Document SM8150 rpmh-clock compatible Vinod Koul 2019-08-14 12:29 ` [PATCH 2/2] clk: qcom: clk-rpmh: Add support for SM8150 Vinod Koul 2019-08-14 17:19 ` Stephen Boyd 2019-08-16 4:24 ` Vinod Koul 2019-08-16 16:58 ` Stephen Boyd 2019-08-19 6:28 ` Vinod Koul 2019-08-14 17:18 ` [PATCH 1/2] dt-bindings: clock: Document SM8150 rpmh-clock compatible Stephen Boyd
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).