All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: interconnect: Add SC8180x to OSM L3 DT binding
@ 2021-07-25  2:58 Bjorn Andersson
  2021-07-25  2:58 ` [PATCH 2/2] interconnect: qcom: osm-l3: Add sc8180x support Bjorn Andersson
  2021-07-29 21:39 ` [PATCH 1/2] dt-bindings: interconnect: Add SC8180x to OSM L3 DT binding Rob Herring
  0 siblings, 2 replies; 3+ messages in thread
From: Bjorn Andersson @ 2021-07-25  2:58 UTC (permalink / raw)
  To: Georgi Djakov, Rob Herring, Sibi Sankar
  Cc: linux-arm-msm, linux-pm, devicetree, linux-kernel

The Qualcomm SC8180x has an OSM L3, add compatible for this.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
---
 Documentation/devicetree/bindings/interconnect/qcom,osm-l3.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/interconnect/qcom,osm-l3.yaml b/Documentation/devicetree/bindings/interconnect/qcom,osm-l3.yaml
index d6a95c3cb26f..e701524ee811 100644
--- a/Documentation/devicetree/bindings/interconnect/qcom,osm-l3.yaml
+++ b/Documentation/devicetree/bindings/interconnect/qcom,osm-l3.yaml
@@ -18,6 +18,7 @@ properties:
   compatible:
     enum:
       - qcom,sc7180-osm-l3
+      - qcom,sc8180x-osm-l3
       - qcom,sdm845-osm-l3
       - qcom,sm8150-osm-l3
       - qcom,sm8250-epss-l3
-- 
2.29.2


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

* [PATCH 2/2] interconnect: qcom: osm-l3: Add sc8180x support
  2021-07-25  2:58 [PATCH 1/2] dt-bindings: interconnect: Add SC8180x to OSM L3 DT binding Bjorn Andersson
@ 2021-07-25  2:58 ` Bjorn Andersson
  2021-07-29 21:39 ` [PATCH 1/2] dt-bindings: interconnect: Add SC8180x to OSM L3 DT binding Rob Herring
  1 sibling, 0 replies; 3+ messages in thread
From: Bjorn Andersson @ 2021-07-25  2:58 UTC (permalink / raw)
  To: Georgi Djakov, Sibi Sankar
  Cc: Rob Herring, linux-arm-msm, linux-pm, devicetree, linux-kernel

Add support for the Qualcomm SC8180x platform to the OSM L3 driver.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
---
 drivers/interconnect/qcom/osm-l3.c  | 18 ++++++++++++++++++
 drivers/interconnect/qcom/sc8180x.h |  2 ++
 2 files changed, 20 insertions(+)

diff --git a/drivers/interconnect/qcom/osm-l3.c b/drivers/interconnect/qcom/osm-l3.c
index 695f28789e98..13e41b932567 100644
--- a/drivers/interconnect/qcom/osm-l3.c
+++ b/drivers/interconnect/qcom/osm-l3.c
@@ -15,6 +15,7 @@
 #include <dt-bindings/interconnect/qcom,osm-l3.h>
 
 #include "sc7180.h"
+#include "sc8180x.h"
 #include "sdm845.h"
 #include "sm8150.h"
 #include "sm8250.h"
@@ -113,6 +114,22 @@ static const struct qcom_icc_desc sc7180_icc_osm_l3 = {
 	.reg_perf_state = OSM_REG_PERF_STATE,
 };
 
+DEFINE_QNODE(sc8180x_osm_apps_l3, SC8180X_MASTER_OSM_L3_APPS, 32, SC8180X_SLAVE_OSM_L3);
+DEFINE_QNODE(sc8180x_osm_l3, SC8180X_SLAVE_OSM_L3, 32);
+
+static const struct qcom_icc_node *sc8180x_osm_l3_nodes[] = {
+	[MASTER_OSM_L3_APPS] = &sc8180x_osm_apps_l3,
+	[SLAVE_OSM_L3] = &sc8180x_osm_l3,
+};
+
+static const struct qcom_icc_desc sc8180x_icc_osm_l3 = {
+	.nodes = sc8180x_osm_l3_nodes,
+	.num_nodes = ARRAY_SIZE(sc8180x_osm_l3_nodes),
+	.lut_row_size = OSM_LUT_ROW_SIZE,
+	.reg_freq_lut = OSM_REG_FREQ_LUT,
+	.reg_perf_state = OSM_REG_PERF_STATE,
+};
+
 DEFINE_QNODE(sm8150_osm_apps_l3, SM8150_MASTER_OSM_L3_APPS, 32, SM8150_SLAVE_OSM_L3);
 DEFINE_QNODE(sm8150_osm_l3, SM8150_SLAVE_OSM_L3, 32);
 
@@ -311,6 +328,7 @@ static const struct of_device_id osm_l3_of_match[] = {
 	{ .compatible = "qcom,sc7180-osm-l3", .data = &sc7180_icc_osm_l3 },
 	{ .compatible = "qcom,sdm845-osm-l3", .data = &sdm845_icc_osm_l3 },
 	{ .compatible = "qcom,sm8150-osm-l3", .data = &sm8150_icc_osm_l3 },
+	{ .compatible = "qcom,sc8180x-osm-l3", .data = &sc8180x_icc_osm_l3 },
 	{ .compatible = "qcom,sm8250-epss-l3", .data = &sm8250_icc_epss_l3 },
 	{ }
 };
diff --git a/drivers/interconnect/qcom/sc8180x.h b/drivers/interconnect/qcom/sc8180x.h
index fed2dc2d4acb..e70cf7032f80 100644
--- a/drivers/interconnect/qcom/sc8180x.h
+++ b/drivers/interconnect/qcom/sc8180x.h
@@ -168,5 +168,7 @@
 #define SC8180X_SLAVE_EBI_CH0_DISPLAY		158
 #define SC8180X_SLAVE_MNOC_SF_MEM_NOC_DISPLAY	159
 #define SC8180X_SLAVE_MNOC_HF_MEM_NOC_DISPLAY	160
+#define SC8180X_MASTER_OSM_L3_APPS		161
+#define SC8180X_SLAVE_OSM_L3			162
 
 #endif
-- 
2.29.2


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

* Re: [PATCH 1/2] dt-bindings: interconnect: Add SC8180x to OSM L3 DT binding
  2021-07-25  2:58 [PATCH 1/2] dt-bindings: interconnect: Add SC8180x to OSM L3 DT binding Bjorn Andersson
  2021-07-25  2:58 ` [PATCH 2/2] interconnect: qcom: osm-l3: Add sc8180x support Bjorn Andersson
@ 2021-07-29 21:39 ` Rob Herring
  1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring @ 2021-07-29 21:39 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: linux-pm, linux-arm-msm, Sibi Sankar, linux-kernel, Rob Herring,
	devicetree, Georgi Djakov

On Sat, 24 Jul 2021 19:58:33 -0700, Bjorn Andersson wrote:
> The Qualcomm SC8180x has an OSM L3, add compatible for this.
> 
> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
> ---
>  Documentation/devicetree/bindings/interconnect/qcom,osm-l3.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 

Acked-by: Rob Herring <robh@kernel.org>

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

end of thread, other threads:[~2021-07-29 21:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-25  2:58 [PATCH 1/2] dt-bindings: interconnect: Add SC8180x to OSM L3 DT binding Bjorn Andersson
2021-07-25  2:58 ` [PATCH 2/2] interconnect: qcom: osm-l3: Add sc8180x support Bjorn Andersson
2021-07-29 21:39 ` [PATCH 1/2] dt-bindings: interconnect: Add SC8180x to OSM L3 DT binding Rob Herring

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.