* [PATCH 1/2] dt-bindings: soc: qcom: llcc-qcom: Add SM8350 compatible and defines
@ 2021-11-14 1:29 Konrad Dybcio
2021-11-14 1:29 ` [PATCH 2/2] soc: qcom: llcc: Add configuration data for SM8350 Konrad Dybcio
2021-11-17 6:56 ` [PATCH 1/2] dt-bindings: soc: qcom: llcc-qcom: Add SM8350 compatible and defines Stephen Boyd
0 siblings, 2 replies; 4+ messages in thread
From: Konrad Dybcio @ 2021-11-14 1:29 UTC (permalink / raw)
To: ~postmarketos/upstreaming
Cc: martin.botka, angelogioacchino.delregno, marijn.suijten,
jamipkettunen, Konrad Dybcio, Rob Herring, Andy Gross,
Bjorn Andersson, Stephen Boyd, Souradeep Chowdhury,
Sai Prakash Ranjan, Manivannan Sadhasivam, Rishabh Bhatnagar,
devicetree, linux-kernel, linux-arm-msm
Document the compatible string for SM8350 and add required defines to the
binding.
Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
---
Documentation/devicetree/bindings/arm/msm/qcom,llcc.yaml | 1 +
include/linux/soc/qcom/llcc-qcom.h | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/Documentation/devicetree/bindings/arm/msm/qcom,llcc.yaml b/Documentation/devicetree/bindings/arm/msm/qcom,llcc.yaml
index e12fc7999356..c0ea3df2d2ce 100644
--- a/Documentation/devicetree/bindings/arm/msm/qcom,llcc.yaml
+++ b/Documentation/devicetree/bindings/arm/msm/qcom,llcc.yaml
@@ -27,6 +27,7 @@ properties:
- qcom,sm6350-llcc
- qcom,sm8150-llcc
- qcom,sm8250-llcc
+ - qcom,sm8350-llcc
reg:
items:
diff --git a/include/linux/soc/qcom/llcc-qcom.h b/include/linux/soc/qcom/llcc-qcom.h
index 437c9df13229..bf8b749b44e1 100644
--- a/include/linux/soc/qcom/llcc-qcom.h
+++ b/include/linux/soc/qcom/llcc-qcom.h
@@ -33,6 +33,10 @@
#define LLCC_MODPE 29
#define LLCC_APTCM 30
#define LLCC_WRCACHE 31
+#define LLCC_CVPFW 32
+#define LLCC_CPUSS1 33
+#define LLCC_CPUHWT 36
+
/**
* struct llcc_slice_desc - Cache slice descriptor
--
2.33.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] soc: qcom: llcc: Add configuration data for SM8350
2021-11-14 1:29 [PATCH 1/2] dt-bindings: soc: qcom: llcc-qcom: Add SM8350 compatible and defines Konrad Dybcio
@ 2021-11-14 1:29 ` Konrad Dybcio
2021-11-17 6:56 ` [PATCH 1/2] dt-bindings: soc: qcom: llcc-qcom: Add SM8350 compatible and defines Stephen Boyd
1 sibling, 0 replies; 4+ messages in thread
From: Konrad Dybcio @ 2021-11-14 1:29 UTC (permalink / raw)
To: ~postmarketos/upstreaming
Cc: martin.botka, angelogioacchino.delregno, marijn.suijten,
jamipkettunen, Konrad Dybcio, Andy Gross, Bjorn Andersson,
linux-arm-msm, linux-kernel
Add LLCC configuration data for SM8350 SoC.
Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
---
drivers/soc/qcom/llcc-qcom.c | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/drivers/soc/qcom/llcc-qcom.c b/drivers/soc/qcom/llcc-qcom.c
index 6bf2f1d1f2c5..ec52f29c8867 100644
--- a/drivers/soc/qcom/llcc-qcom.c
+++ b/drivers/soc/qcom/llcc-qcom.c
@@ -195,6 +195,28 @@ static const struct llcc_slice_config sm8250_data[] = {
{ LLCC_WRCACHE, 31, 256, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 },
};
+static const struct llcc_slice_config sm8350_data[] = {
+ { LLCC_CPUSS, 1, 3072, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 1 },
+ { LLCC_VIDSC0, 2, 512, 3, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 },
+ { LLCC_AUDIO, 6, 1024, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 0, 0 },
+ { LLCC_MDMHPGRW, 7, 1024, 3, 0, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 },
+ { LLCC_MODHW, 9, 1024, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 },
+ { LLCC_CMPT, 10, 3072, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 },
+ { LLCC_GPUHTW, 11, 1024, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 },
+ { LLCC_GPU, 12, 1024, 1, 0, 0xfff, 0x0, 0, 0, 0, 1, 1, 0 },
+ { LLCC_MMUHWT, 13, 1024, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 0, 1 },
+ { LLCC_DISP, 16, 3072, 2, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 },
+ { LLCC_MDMPNG, 21, 1024, 0, 1, 0xf, 0x0, 0, 0, 0, 0, 1, 0 },
+ { LLCC_AUDHW, 22, 1024, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 },
+ { LLCC_CVP, 28, 512, 3, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 },
+ { LLCC_MODPE, 29, 256, 1, 1, 0xf, 0x0, 0, 0, 0, 0, 1, 0 },
+ { LLCC_APTCM, 30, 1024, 3, 1, 0x0, 0x1, 1, 0, 0, 0, 1, 0 },
+ { LLCC_WRCACHE, 31, 512, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 0, 1 },
+ { LLCC_CVPFW, 17, 512, 1, 0, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 },
+ { LLCC_CPUSS1, 3, 1024, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 },
+ { LLCC_CPUHWT, 5, 512, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 0, 1 },
+};
+
static const struct qcom_llcc_config sc7180_cfg = {
.sct_data = sc7180_data,
.size = ARRAY_SIZE(sc7180_data),
@@ -228,6 +250,11 @@ static const struct qcom_llcc_config sm8250_cfg = {
.size = ARRAY_SIZE(sm8250_data),
};
+static const struct qcom_llcc_config sm8350_cfg = {
+ .sct_data = sm8350_data,
+ .size = ARRAY_SIZE(sm8350_data),
+};
+
static struct llcc_drv_data *drv_data = (void *) -EPROBE_DEFER;
/**
@@ -644,6 +671,7 @@ static const struct of_device_id qcom_llcc_of_match[] = {
{ .compatible = "qcom,sm6350-llcc", .data = &sm6350_cfg },
{ .compatible = "qcom,sm8150-llcc", .data = &sm8150_cfg },
{ .compatible = "qcom,sm8250-llcc", .data = &sm8250_cfg },
+ { .compatible = "qcom,sm8350-llcc", .data = &sm8350_cfg },
{ }
};
--
2.33.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] dt-bindings: soc: qcom: llcc-qcom: Add SM8350 compatible and defines
2021-11-14 1:29 [PATCH 1/2] dt-bindings: soc: qcom: llcc-qcom: Add SM8350 compatible and defines Konrad Dybcio
2021-11-14 1:29 ` [PATCH 2/2] soc: qcom: llcc: Add configuration data for SM8350 Konrad Dybcio
@ 2021-11-17 6:56 ` Stephen Boyd
2021-11-17 12:21 ` Konrad Dybcio
1 sibling, 1 reply; 4+ messages in thread
From: Stephen Boyd @ 2021-11-17 6:56 UTC (permalink / raw)
To: Konrad Dybcio, ~postmarketos/upstreaming
Cc: martin.botka, angelogioacchino.delregno, marijn.suijten,
jamipkettunen, Rob Herring, Andy Gross, Bjorn Andersson,
Souradeep Chowdhury, Sai Prakash Ranjan, Manivannan Sadhasivam,
Rishabh Bhatnagar, devicetree, linux-kernel, linux-arm-msm
Quoting Konrad Dybcio (2021-11-13 17:29:38)
> Document the compatible string for SM8350 and add required defines to the
> binding.
>
> Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
> ---
> Documentation/devicetree/bindings/arm/msm/qcom,llcc.yaml | 1 +
> include/linux/soc/qcom/llcc-qcom.h | 4 ++++
Why is this include file part of this patch. Shouldn't it be in the next
patch?
> 2 files changed, 5 insertions(+)
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] dt-bindings: soc: qcom: llcc-qcom: Add SM8350 compatible and defines
2021-11-17 6:56 ` [PATCH 1/2] dt-bindings: soc: qcom: llcc-qcom: Add SM8350 compatible and defines Stephen Boyd
@ 2021-11-17 12:21 ` Konrad Dybcio
0 siblings, 0 replies; 4+ messages in thread
From: Konrad Dybcio @ 2021-11-17 12:21 UTC (permalink / raw)
To: Stephen Boyd, ~postmarketos/upstreaming
Cc: martin.botka, angelogioacchino.delregno, marijn.suijten,
jamipkettunen, Rob Herring, Andy Gross, Bjorn Andersson,
Souradeep Chowdhury, Sai Prakash Ranjan, Manivannan Sadhasivam,
Rishabh Bhatnagar, devicetree, linux-kernel, linux-arm-msm
On 17/11/2021 07:56, Stephen Boyd wrote:
> Quoting Konrad Dybcio (2021-11-13 17:29:38)
>> Document the compatible string for SM8350 and add required defines to the
>> binding.
>>
>> Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
>> ---
>> Documentation/devicetree/bindings/arm/msm/qcom,llcc.yaml | 1 +
>> include/linux/soc/qcom/llcc-qcom.h | 4 ++++
> Why is this include file part of this patch. Shouldn't it be in the next
> patch?
>
Right, out of habit I treated it as if it was a part of dt-bindings, when it
isn't. Thanks for spotting that.
Konrad
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-11-17 12:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-14 1:29 [PATCH 1/2] dt-bindings: soc: qcom: llcc-qcom: Add SM8350 compatible and defines Konrad Dybcio
2021-11-14 1:29 ` [PATCH 2/2] soc: qcom: llcc: Add configuration data for SM8350 Konrad Dybcio
2021-11-17 6:56 ` [PATCH 1/2] dt-bindings: soc: qcom: llcc-qcom: Add SM8350 compatible and defines Stephen Boyd
2021-11-17 12:21 ` Konrad Dybcio
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).