Add SM7250 rpmh clocks
cover Add SM7250 rpmh clocks
Qualcomm SM7250 is known as lito.
Add the RPMH clocks present in SM7250 SoC.
Sreeshankar K (2):
clk: qcom: rpmh: Add SM7250 rpmh clocks
dt-bindings: clock: qcom,rpmhcc: Document RPMHCC bindings for SM7250
.../bindings/clock/qcom,rpmhcc.yaml | 1 + drivers/clk/qcom/clk-rpmh.c | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+)
Signature · 1 line
2.43.0
PATCH 1/2 clk: qcom: rpmh: Add SM7250 rpmh clocks
Add the RPMH clocks present in SM7250 SoC.
--- drivers/clk/qcom/clk-rpmh.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
drivers/clk/qcom/clk-rpmh.c +24 -0
@@ -1011,6 +1011,29 @@ static const struct clk_rpmh_desc clk_rpmh_hawi = { .num_clks = ARRAY_SIZE(hawi_rpmh_clocks), }; +static struct clk_hw *sm7250_rpmh_clocks[] = { + [RPMH_CXO_CLK ] = &clk_rpmh_bi_tcxo_div2.hw, + [RPMH_CXO_CLK_A ] = &clk_rpmh_bi_tcxo_div2_ao.hw, + [RPMH_LN_BB_CLK2 ] = &clk_rpmh_ln_bb_clk2_a2.hw, + [RPMH_LN_BB_CLK2_A ] = &clk_rpmh_ln_bb_clk2_a2_ao.hw, + [RPMH_LN_BB_CLK3 ] = &clk_rpmh_ln_bb_clk3_a2.hw, + [RPMH_LN_BB_CLK3_A ] = &clk_rpmh_ln_bb_clk3_a2_ao.hw, + [RPMH_RF_CLK1 ] = &clk_rpmh_rf_clk1_d.hw, + [RPMH_RF_CLK1_A ] = &clk_rpmh_rf_clk1_d_ao.hw, + [RPMH_RF_CLK2 ] = &clk_rpmh_rf_clk2_d.hw, + [RPMH_RF_CLK2_A ] = &clk_rpmh_rf_clk2_d_ao.hw, + [RPMH_RF_CLK3 ] = &clk_rpmh_rf_clk3_d.hw, + [RPMH_RF_CLK3_A ] = &clk_rpmh_rf_clk3_d_ao.hw, + [RPMH_RF_CLK4 ] = &clk_rpmh_rf_clk4_d.hw, + [RPMH_RF_CLK4_A ] = &clk_rpmh_rf_clk4_d_ao.hw, + [RPMH_IPA_CLK ] = &clk_rpmh_ipa.hw, +}; + +static const struct clk_rpmh_desc clk_rpmh_sm7250 = { + .clks = sm7250_rpmh_clocks, + .num_clks =ARRAY_SIZE (sm7250_rpmh_clocks), +}; +static struct clk_hw *of_clk_rpmh_hw_get (struct of_phandle_args *clkspec,void *data) {
@@ -1120,6 +1143,7 @@ static const struct of_device_id clk_rpmh_match_table[] = { { .compatible = "qcom,sdx75-rpmh-clk", .data = &clk_rpmh_sdx75}, { .compatible = "qcom,sm4450-rpmh-clk", .data = &clk_rpmh_sm4450}, { .compatible = "qcom,sm6350-rpmh-clk", .data = &clk_rpmh_sm6350}, + { .compatible = "qcom,sm7250-rpmh-clk", .data = &clk_rpmh_sm7250}, { .compatible = "qcom,sm8150-rpmh-clk", .data = &clk_rpmh_sm8150}, { .compatible = "qcom,sm8250-rpmh-clk", .data = &clk_rpmh_sm8250}, { .compatible = "qcom,sm8350-rpmh-clk", .data = &clk_rpmh_sm8350},
Signature · 1 line
2.43.0
Re: [PATCH 1/2] clk: qcom: rpmh: Add SM7250 rpmh clocks
Quoted 7 lines · Sreeshankar K
Add the RPMH clocks present in SM7250 SoC.
Signed-off-by Sreeshankar K <[email protected]>--- drivers/clk/qcom/clk-rpmh.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH 1/2] clk: qcom: rpmh: Add SM7250 rpmh clocks
In reply to Sreeshankar KQuoted 3 lines · Sreeshankar K
Add the RPMH clocks present in SM7250 SoC.
Signed-off-by Sreeshankar K <[email protected]>
PATCH 2/2 dt-bindings: clock: qcom,rpmhcc: Document RPMHCC bindings for SM7250
In reply to Sreeshankar KDocument RPMHCC bindings for clock rpmh driver on Qualcomm SM7250 SoC.
--- Documentation/devicetree/bindings/clock/qcom,rpmhcc.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/clock/qcom,rpmhcc.yaml +1 -0
@@ -38,6 +38,7 @@ properties: - qcom,sdx75-rpmh-clk - qcom,sm4450-rpmh-clk - qcom,sm6350-rpmh-clk + - qcom,sm7250-rpmh-clk - qcom,sm8150-rpmh-clk - qcom,sm8250-rpmh-clk - qcom,sm8350-rpmh-clk
Signature · 1 line
2.43.0
Re: [PATCH 2/2] dt-bindings: clock: qcom,rpmhcc: Document RPMHCC bindings for SM7250
Quoted 3 lines · Sreeshankar K
Document RPMHCC bindings for clock rpmh driver on Qualcomm SM7250 SoC.
Signed-off-by Sreeshankar K <[email protected]>
A nit, subject: drop second/last, redundant "bindings for". The "dt-bindings" prefix is already stating that these are bindings. See also:
https://elixir.bootlin.com/linux/v7.1-rc7/source/Documentation/devicetree/bindings/submitting-patches.rst#L23
Why is this patchset separate from the other clock patchset? Please make it easy and obvious to maintainers.
Best regards,
Krzysztof
Quoted 6 lines · Sreeshankar K
Qualcomm SM7250 is known as lito.
Add the RPMH clocks present in SM7250 SoC.Sreeshankar K (2):
clk: qcom: rpmh: Add SM7250 rpmh clocks
dt-bindings: clock: qcom,rpmhcc: Document RPMHCC bindings for SM7250
For the future reference: first the bindings, then the driver, not the other way around.
Quoted 8 lines
.../bindings/clock/qcom,rpmhcc.yaml | 1 + drivers/clk/qcom/clk-rpmh.c | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+)Signature · 1 line
2.43.0
Signature · 2 lines
With best wishes Dmitry
Re: (subset) [PATCH 0/2] Add SM7250 rpmh clocks
In reply to Sreeshankar KQuoted 8 lines · Sreeshankar K
Qualcomm SM7250 is known as lito.
Add the RPMH clocks present in SM7250 SoC.Sreeshankar K (2):
clk: qcom: rpmh: Add SM7250 rpmh clocks
dt-bindings: clock: qcom,rpmhcc: Document RPMHCC bindings for SM7250[...]
Applied, thanks!
[1/2] clk: qcom: rpmh: Add SM7250 rpmh clocks
commit: d98bd51a6dc6d62df12bee0ae29db9bb1013bc3e
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>