linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/4] Add SMD RPM support for MSM8936
@ 2020-06-13  7:27 Vincent Knecht
  2020-06-13  7:27 ` [PATCH v4 1/4] clk: qcom: smd: Add support for MSM8936 rpm clocks Vincent Knecht
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Vincent Knecht @ 2020-06-13  7:27 UTC (permalink / raw)
  To: sboyd
  Cc: konradybcio, Vincent Knecht, Andy Gross, Bjorn Andersson,
	Michael Turquette, Rob Herring, linux-arm-msm, linux-clk,
	devicetree, linux-kernel

changes since v3:
- added my missing Signed-off-by to patch 3

changes since v2:
- fixed build error by adding forgotten qcom,rpmcc.h changes in patch 1

changes since v1:
- added a forgotten patch that adds the compat string to the driver

Konrad Dybcio (1):
  drivers: soc: Add MSM8936 SMD RPM compatible

Vincent Knecht (3):
  clk: qcom: smd: Add support for MSM8936 rpm clocks
  dt-bindings: clock: rpmcc: Document MSM8936 compatible
  dt-bindings: soc: qcom: Document MSM8936 SMD RPM

 .../devicetree/bindings/clock/qcom,rpmcc.txt  |  1 +
 .../bindings/soc/qcom/qcom,smd-rpm.txt        |  1 +
 drivers/clk/qcom/clk-smd-rpm.c                | 50 +++++++++++++++++++
 drivers/soc/qcom/smd-rpm.c                    |  1 +
 include/dt-bindings/clock/qcom,rpmcc.h        |  2 +
 5 files changed, 55 insertions(+)

-- 
2.25.4



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v4 1/4] clk: qcom: smd: Add support for MSM8936 rpm clocks
  2020-06-13  7:27 [PATCH v4 0/4] Add SMD RPM support for MSM8936 Vincent Knecht
@ 2020-06-13  7:27 ` Vincent Knecht
  2020-06-23  2:01   ` Stephen Boyd
  2020-06-13  7:27 ` [PATCH v4 2/4] dt-bindings: clock: rpmcc: Document MSM8936 compatible Vincent Knecht
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 8+ messages in thread
From: Vincent Knecht @ 2020-06-13  7:27 UTC (permalink / raw)
  To: sboyd
  Cc: konradybcio, Vincent Knecht, Andy Gross, Bjorn Andersson,
	Michael Turquette, Rob Herring, linux-arm-msm, linux-clk,
	devicetree, linux-kernel

Add missing definition of rpm clk for msm8936 soc (also used by msm8939)

Signed-off-by: Vincent Knecht <vincent.knecht@mailoo.org>
---
 drivers/clk/qcom/clk-smd-rpm.c         | 50 ++++++++++++++++++++++++++
 include/dt-bindings/clock/qcom,rpmcc.h |  2 ++
 2 files changed, 52 insertions(+)

diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c
index 52f63ad787ba..de42f012af57 100644
--- a/drivers/clk/qcom/clk-smd-rpm.c
+++ b/drivers/clk/qcom/clk-smd-rpm.c
@@ -452,6 +452,55 @@ static const struct rpm_smd_clk_desc rpm_clk_msm8916 = {
 	.num_clks = ARRAY_SIZE(msm8916_clks),
 };
 
+/* msm8936 */
+DEFINE_CLK_SMD_RPM(msm8936, pcnoc_clk, pcnoc_a_clk, QCOM_SMD_RPM_BUS_CLK, 0);
+DEFINE_CLK_SMD_RPM(msm8936, snoc_clk, snoc_a_clk, QCOM_SMD_RPM_BUS_CLK, 1);
+DEFINE_CLK_SMD_RPM(msm8936, bimc_clk, bimc_a_clk, QCOM_SMD_RPM_MEM_CLK, 0);
+DEFINE_CLK_SMD_RPM(msm8936, sysmmnoc_clk, sysmmnoc_a_clk, QCOM_SMD_RPM_BUS_CLK, 2);
+DEFINE_CLK_SMD_RPM_QDSS(msm8936, qdss_clk, qdss_a_clk, QCOM_SMD_RPM_MISC_CLK, 1);
+DEFINE_CLK_SMD_RPM_XO_BUFFER(msm8936, bb_clk1, bb_clk1_a, 1);
+DEFINE_CLK_SMD_RPM_XO_BUFFER(msm8936, bb_clk2, bb_clk2_a, 2);
+DEFINE_CLK_SMD_RPM_XO_BUFFER(msm8936, rf_clk1, rf_clk1_a, 4);
+DEFINE_CLK_SMD_RPM_XO_BUFFER(msm8936, rf_clk2, rf_clk2_a, 5);
+DEFINE_CLK_SMD_RPM_XO_BUFFER_PINCTRL(msm8936, bb_clk1_pin, bb_clk1_a_pin, 1);
+DEFINE_CLK_SMD_RPM_XO_BUFFER_PINCTRL(msm8936, bb_clk2_pin, bb_clk2_a_pin, 2);
+DEFINE_CLK_SMD_RPM_XO_BUFFER_PINCTRL(msm8936, rf_clk1_pin, rf_clk1_a_pin, 4);
+DEFINE_CLK_SMD_RPM_XO_BUFFER_PINCTRL(msm8936, rf_clk2_pin, rf_clk2_a_pin, 5);
+
+static struct clk_smd_rpm *msm8936_clks[] = {
+	[RPM_SMD_PCNOC_CLK]		= &msm8936_pcnoc_clk,
+	[RPM_SMD_PCNOC_A_CLK]		= &msm8936_pcnoc_a_clk,
+	[RPM_SMD_SNOC_CLK]		= &msm8936_snoc_clk,
+	[RPM_SMD_SNOC_A_CLK]		= &msm8936_snoc_a_clk,
+	[RPM_SMD_BIMC_CLK]		= &msm8936_bimc_clk,
+	[RPM_SMD_BIMC_A_CLK]		= &msm8936_bimc_a_clk,
+	[RPM_SMD_SYSMMNOC_CLK]		= &msm8936_sysmmnoc_clk,
+	[RPM_SMD_SYSMMNOC_A_CLK]	= &msm8936_sysmmnoc_a_clk,
+	[RPM_SMD_QDSS_CLK]		= &msm8936_qdss_clk,
+	[RPM_SMD_QDSS_A_CLK]		= &msm8936_qdss_a_clk,
+	[RPM_SMD_BB_CLK1]		= &msm8936_bb_clk1,
+	[RPM_SMD_BB_CLK1_A]		= &msm8936_bb_clk1_a,
+	[RPM_SMD_BB_CLK2]		= &msm8936_bb_clk2,
+	[RPM_SMD_BB_CLK2_A]		= &msm8936_bb_clk2_a,
+	[RPM_SMD_RF_CLK1]		= &msm8936_rf_clk1,
+	[RPM_SMD_RF_CLK1_A]		= &msm8936_rf_clk1_a,
+	[RPM_SMD_RF_CLK2]		= &msm8936_rf_clk2,
+	[RPM_SMD_RF_CLK2_A]		= &msm8936_rf_clk2_a,
+	[RPM_SMD_BB_CLK1_PIN]		= &msm8936_bb_clk1_pin,
+	[RPM_SMD_BB_CLK1_A_PIN]		= &msm8936_bb_clk1_a_pin,
+	[RPM_SMD_BB_CLK2_PIN]		= &msm8936_bb_clk2_pin,
+	[RPM_SMD_BB_CLK2_A_PIN]		= &msm8936_bb_clk2_a_pin,
+	[RPM_SMD_RF_CLK1_PIN]		= &msm8936_rf_clk1_pin,
+	[RPM_SMD_RF_CLK1_A_PIN]		= &msm8936_rf_clk1_a_pin,
+	[RPM_SMD_RF_CLK2_PIN]		= &msm8936_rf_clk2_pin,
+	[RPM_SMD_RF_CLK2_A_PIN]		= &msm8936_rf_clk2_a_pin,
+};
+
+static const struct rpm_smd_clk_desc rpm_clk_msm8936 = {
+		.clks = msm8936_clks,
+		.num_clks = ARRAY_SIZE(msm8936_clks),
+};
+
 /* msm8974 */
 DEFINE_CLK_SMD_RPM(msm8974, pnoc_clk, pnoc_a_clk, QCOM_SMD_RPM_BUS_CLK, 0);
 DEFINE_CLK_SMD_RPM(msm8974, snoc_clk, snoc_a_clk, QCOM_SMD_RPM_BUS_CLK, 1);
@@ -768,6 +817,7 @@ static const struct rpm_smd_clk_desc rpm_clk_msm8998 = {
 
 static const struct of_device_id rpm_smd_clk_match_table[] = {
 	{ .compatible = "qcom,rpmcc-msm8916", .data = &rpm_clk_msm8916 },
+	{ .compatible = "qcom,rpmcc-msm8936", .data = &rpm_clk_msm8936 },
 	{ .compatible = "qcom,rpmcc-msm8974", .data = &rpm_clk_msm8974 },
 	{ .compatible = "qcom,rpmcc-msm8976", .data = &rpm_clk_msm8976 },
 	{ .compatible = "qcom,rpmcc-msm8996", .data = &rpm_clk_msm8996 },
diff --git a/include/dt-bindings/clock/qcom,rpmcc.h b/include/dt-bindings/clock/qcom,rpmcc.h
index ae74c43c485d..4a0238ccf9f2 100644
--- a/include/dt-bindings/clock/qcom,rpmcc.h
+++ b/include/dt-bindings/clock/qcom,rpmcc.h
@@ -133,5 +133,7 @@
 #define RPM_SMD_RF_CLK3_A			87
 #define RPM_SMD_RF_CLK3_PIN			88
 #define RPM_SMD_RF_CLK3_A_PIN			89
+#define RPM_SMD_SYSMMNOC_CLK			90
+#define RPM_SMD_SYSMMNOC_A_CLK			91
 
 #endif
-- 
2.25.4



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v4 2/4] dt-bindings: clock: rpmcc: Document MSM8936 compatible
  2020-06-13  7:27 [PATCH v4 0/4] Add SMD RPM support for MSM8936 Vincent Knecht
  2020-06-13  7:27 ` [PATCH v4 1/4] clk: qcom: smd: Add support for MSM8936 rpm clocks Vincent Knecht
@ 2020-06-13  7:27 ` Vincent Knecht
  2020-06-23  2:01   ` Stephen Boyd
  2020-06-13  7:27 ` [PATCH v4 3/4] drivers: soc: Add MSM8936 SMD RPM compatible Vincent Knecht
  2020-06-13  7:27 ` [PATCH v4 4/4] dt-bindings: soc: qcom: Document MSM8936 SMD RPM Vincent Knecht
  3 siblings, 1 reply; 8+ messages in thread
From: Vincent Knecht @ 2020-06-13  7:27 UTC (permalink / raw)
  To: sboyd
  Cc: konradybcio, Vincent Knecht, Andy Gross, Bjorn Andersson,
	Michael Turquette, Rob Herring, linux-arm-msm, linux-clk,
	devicetree, linux-kernel, Rob Herring

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Vincent Knecht <vincent.knecht@mailoo.org>
---
 Documentation/devicetree/bindings/clock/qcom,rpmcc.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt b/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt
index 90a1349bc713..51d1ef62c745 100644
--- a/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt
+++ b/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt
@@ -13,6 +13,7 @@ Required properties :
 			"qcom,rpmcc-msm8660", "qcom,rpmcc"
 			"qcom,rpmcc-apq8060", "qcom,rpmcc"
 			"qcom,rpmcc-msm8916", "qcom,rpmcc"
+			"qcom,rpmcc-msm8936", "qcom,rpmcc"
 			"qcom,rpmcc-msm8974", "qcom,rpmcc"
 			"qcom,rpmcc-msm8976", "qcom,rpmcc"
 			"qcom,rpmcc-apq8064", "qcom,rpmcc"
-- 
2.25.4



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v4 3/4] drivers: soc: Add MSM8936 SMD RPM compatible
  2020-06-13  7:27 [PATCH v4 0/4] Add SMD RPM support for MSM8936 Vincent Knecht
  2020-06-13  7:27 ` [PATCH v4 1/4] clk: qcom: smd: Add support for MSM8936 rpm clocks Vincent Knecht
  2020-06-13  7:27 ` [PATCH v4 2/4] dt-bindings: clock: rpmcc: Document MSM8936 compatible Vincent Knecht
@ 2020-06-13  7:27 ` Vincent Knecht
  2020-06-23  7:15   ` Bjorn Andersson
  2020-06-13  7:27 ` [PATCH v4 4/4] dt-bindings: soc: qcom: Document MSM8936 SMD RPM Vincent Knecht
  3 siblings, 1 reply; 8+ messages in thread
From: Vincent Knecht @ 2020-06-13  7:27 UTC (permalink / raw)
  To: sboyd
  Cc: konradybcio, Vincent Knecht, Andy Gross, Bjorn Andersson,
	Michael Turquette, Rob Herring, linux-arm-msm, linux-clk,
	devicetree, linux-kernel

From: Konrad Dybcio <konradybcio@gmail.com>

Signed-off-by: Konrad Dybcio <konradybcio@gmail.com>
Signed-off-by: Vincent Knecht <vincent.knecht@mailoo.org>
---
 drivers/soc/qcom/smd-rpm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/soc/qcom/smd-rpm.c b/drivers/soc/qcom/smd-rpm.c
index 005dd30c58fa..8f290c67cb47 100644
--- a/drivers/soc/qcom/smd-rpm.c
+++ b/drivers/soc/qcom/smd-rpm.c
@@ -231,6 +231,7 @@ static void qcom_smd_rpm_remove(struct rpmsg_device *rpdev)
 static const struct of_device_id qcom_smd_rpm_of_match[] = {
 	{ .compatible = "qcom,rpm-apq8084" },
 	{ .compatible = "qcom,rpm-msm8916" },
+	{ .compatible = "qcom,rpm-msm8936" },
 	{ .compatible = "qcom,rpm-msm8974" },
 	{ .compatible = "qcom,rpm-msm8976" },
 	{ .compatible = "qcom,rpm-msm8996" },
-- 
2.25.4



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v4 4/4] dt-bindings: soc: qcom: Document MSM8936 SMD RPM
  2020-06-13  7:27 [PATCH v4 0/4] Add SMD RPM support for MSM8936 Vincent Knecht
                   ` (2 preceding siblings ...)
  2020-06-13  7:27 ` [PATCH v4 3/4] drivers: soc: Add MSM8936 SMD RPM compatible Vincent Knecht
@ 2020-06-13  7:27 ` Vincent Knecht
  3 siblings, 0 replies; 8+ messages in thread
From: Vincent Knecht @ 2020-06-13  7:27 UTC (permalink / raw)
  To: sboyd
  Cc: konradybcio, Vincent Knecht, Andy Gross, Bjorn Andersson,
	Michael Turquette, Rob Herring, linux-arm-msm, linux-clk,
	devicetree, linux-kernel, Rob Herring

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Vincent Knecht <vincent.knecht@mailoo.org>
---
 Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.txt b/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.txt
index 616fddcd09fd..55f8abd845a7 100644
--- a/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.txt
+++ b/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.txt
@@ -21,6 +21,7 @@ resources.
 	Definition: must be one of:
 		    "qcom,rpm-apq8084"
 		    "qcom,rpm-msm8916"
+		    "qcom,rpm-msm8936"
 		    "qcom,rpm-msm8974"
 		    "qcom,rpm-msm8976"
 		    "qcom,rpm-msm8998"
-- 
2.25.4



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH v4 1/4] clk: qcom: smd: Add support for MSM8936 rpm clocks
  2020-06-13  7:27 ` [PATCH v4 1/4] clk: qcom: smd: Add support for MSM8936 rpm clocks Vincent Knecht
@ 2020-06-23  2:01   ` Stephen Boyd
  0 siblings, 0 replies; 8+ messages in thread
From: Stephen Boyd @ 2020-06-23  2:01 UTC (permalink / raw)
  To: Vincent Knecht
  Cc: konradybcio, Vincent Knecht, Andy Gross, Bjorn Andersson,
	Michael Turquette, Rob Herring, linux-arm-msm, linux-clk,
	devicetree, linux-kernel

Quoting Vincent Knecht (2020-06-13 00:27:42)
> Add missing definition of rpm clk for msm8936 soc (also used by msm8939)
> 
> Signed-off-by: Vincent Knecht <vincent.knecht@mailoo.org>
> ---

Applied to clk-next

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v4 2/4] dt-bindings: clock: rpmcc: Document MSM8936 compatible
  2020-06-13  7:27 ` [PATCH v4 2/4] dt-bindings: clock: rpmcc: Document MSM8936 compatible Vincent Knecht
@ 2020-06-23  2:01   ` Stephen Boyd
  0 siblings, 0 replies; 8+ messages in thread
From: Stephen Boyd @ 2020-06-23  2:01 UTC (permalink / raw)
  To: Vincent Knecht
  Cc: konradybcio, Vincent Knecht, Andy Gross, Bjorn Andersson,
	Michael Turquette, Rob Herring, linux-arm-msm, linux-clk,
	devicetree, linux-kernel, Rob Herring

Quoting Vincent Knecht (2020-06-13 00:27:43)
> Acked-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Vincent Knecht <vincent.knecht@mailoo.org>
> ---

Applied to clk-next

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v4 3/4] drivers: soc: Add MSM8936 SMD RPM compatible
  2020-06-13  7:27 ` [PATCH v4 3/4] drivers: soc: Add MSM8936 SMD RPM compatible Vincent Knecht
@ 2020-06-23  7:15   ` Bjorn Andersson
  0 siblings, 0 replies; 8+ messages in thread
From: Bjorn Andersson @ 2020-06-23  7:15 UTC (permalink / raw)
  To: Vincent Knecht
  Cc: sboyd, konradybcio, Andy Gross, Michael Turquette, Rob Herring,
	linux-arm-msm, linux-clk, devicetree, linux-kernel

On Sat 13 Jun 00:27 PDT 2020, Vincent Knecht wrote:

> From: Konrad Dybcio <konradybcio@gmail.com>
> 
> Signed-off-by: Konrad Dybcio <konradybcio@gmail.com>
> Signed-off-by: Vincent Knecht <vincent.knecht@mailoo.org>

Patch 3 and 4 applied.

Thanks,
Bjorn

> ---
>  drivers/soc/qcom/smd-rpm.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/soc/qcom/smd-rpm.c b/drivers/soc/qcom/smd-rpm.c
> index 005dd30c58fa..8f290c67cb47 100644
> --- a/drivers/soc/qcom/smd-rpm.c
> +++ b/drivers/soc/qcom/smd-rpm.c
> @@ -231,6 +231,7 @@ static void qcom_smd_rpm_remove(struct rpmsg_device *rpdev)
>  static const struct of_device_id qcom_smd_rpm_of_match[] = {
>  	{ .compatible = "qcom,rpm-apq8084" },
>  	{ .compatible = "qcom,rpm-msm8916" },
> +	{ .compatible = "qcom,rpm-msm8936" },
>  	{ .compatible = "qcom,rpm-msm8974" },
>  	{ .compatible = "qcom,rpm-msm8976" },
>  	{ .compatible = "qcom,rpm-msm8996" },
> -- 
> 2.25.4
> 
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-06-23  7:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-13  7:27 [PATCH v4 0/4] Add SMD RPM support for MSM8936 Vincent Knecht
2020-06-13  7:27 ` [PATCH v4 1/4] clk: qcom: smd: Add support for MSM8936 rpm clocks Vincent Knecht
2020-06-23  2:01   ` Stephen Boyd
2020-06-13  7:27 ` [PATCH v4 2/4] dt-bindings: clock: rpmcc: Document MSM8936 compatible Vincent Knecht
2020-06-23  2:01   ` Stephen Boyd
2020-06-13  7:27 ` [PATCH v4 3/4] drivers: soc: Add MSM8936 SMD RPM compatible Vincent Knecht
2020-06-23  7:15   ` Bjorn Andersson
2020-06-13  7:27 ` [PATCH v4 4/4] dt-bindings: soc: qcom: Document MSM8936 SMD RPM Vincent Knecht

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).