diff mbox series

[3/9] arm64: dts: qcom: sc7280: Add device tree node for LLCC

Message ID c4b7ae4dd009f563e6786f4a41f09efa38636fb6.1614244789.git.saiprakash.ranjan@codeaurora.org
State Superseded
Headers show
Series qcom/sc7280: Enable various hardware blocks on SC7280 SoC | expand

Commit Message

Sai Prakash Ranjan Feb. 25, 2021, 9:30 a.m. UTC
Add a DT node for Last level cache (aka. system cache)
controller which provides control over the last level
cache present on SC7280 SoC.

Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
---
 arch/arm64/boot/dts/qcom/sc7280.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Stephen Boyd Feb. 25, 2021, 7:37 p.m. UTC | #1
Quoting Sai Prakash Ranjan (2021-02-25 01:30:19)
> Add a DT node for Last level cache (aka. system cache)
> controller which provides control over the last level
> cache present on SC7280 SoC.
> 
> Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
> ---

Reviewed-by: Stephen Boyd <swboyd@chromium.org>

Should add system-cache-controller to the devicetree spec. Or just use
cache-controller for the node name.
Sai Prakash Ranjan Feb. 26, 2021, 8:04 a.m. UTC | #2
On 2021-02-26 01:07, Stephen Boyd wrote:
> Quoting Sai Prakash Ranjan (2021-02-25 01:30:19)
>> Add a DT node for Last level cache (aka. system cache)
>> controller which provides control over the last level
>> cache present on SC7280 SoC.
>> 
>> Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
>> ---
> 
> Reviewed-by: Stephen Boyd <swboyd@chromium.org>
> 
> Should add system-cache-controller to the devicetree spec. Or just use
> cache-controller for the node name.

This was as per discussion in [1][2] where dt-schema throws an error
since it expects cache-level to be associated with cache-controller.

[1] 
https://lore.kernel.org/lkml/5dcd8588.1c69fb81.2528a.3460@mx.google.com/
[2] 
https://lore.kernel.org/lkml/cover.1573814758.git.saiprakash.ranjan@codeaurora.org/

Thanks,
Sai
Stephen Boyd Feb. 26, 2021, 6:45 p.m. UTC | #3
Quoting Sai Prakash Ranjan (2021-02-26 00:04:27)
> On 2021-02-26 01:07, Stephen Boyd wrote:

> > Quoting Sai Prakash Ranjan (2021-02-25 01:30:19)

> >> Add a DT node for Last level cache (aka. system cache)

> >> controller which provides control over the last level

> >> cache present on SC7280 SoC.

> >> 

> >> Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>

> >> ---

> > 

> > Reviewed-by: Stephen Boyd <swboyd@chromium.org>

> > 

> > Should add system-cache-controller to the devicetree spec. Or just use

> > cache-controller for the node name.

> 

> This was as per discussion in [1][2] where dt-schema throws an error

> since it expects cache-level to be associated with cache-controller.

> 


Ah right. Can you add system-cache-controller to the dt spec?
Sai Prakash Ranjan Feb. 27, 2021, 1:58 p.m. UTC | #4
On 2021-02-27 00:15, Stephen Boyd wrote:
> Quoting Sai Prakash Ranjan (2021-02-26 00:04:27)
>> On 2021-02-26 01:07, Stephen Boyd wrote:
>> > Quoting Sai Prakash Ranjan (2021-02-25 01:30:19)
>> >> Add a DT node for Last level cache (aka. system cache)
>> >> controller which provides control over the last level
>> >> cache present on SC7280 SoC.
>> >>
>> >> Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
>> >> ---
>> >
>> > Reviewed-by: Stephen Boyd <swboyd@chromium.org>
>> >
>> > Should add system-cache-controller to the devicetree spec. Or just use
>> > cache-controller for the node name.
>> 
>> This was as per discussion in [1][2] where dt-schema throws an error
>> since it expects cache-level to be associated with cache-controller.
>> 
> 
> Ah right. Can you add system-cache-controller to the dt spec?

Sure, I'll add it. Hopefully that won't have to block this change?
Because I might need some time to get permissions to add it there.

Thanks,
Sai
Stephen Boyd March 1, 2021, 4:21 a.m. UTC | #5
Quoting Sai Prakash Ranjan (2021-02-27 05:58:25)
> On 2021-02-27 00:15, Stephen Boyd wrote:

> > Quoting Sai Prakash Ranjan (2021-02-26 00:04:27)

> >> On 2021-02-26 01:07, Stephen Boyd wrote:

> >> > Quoting Sai Prakash Ranjan (2021-02-25 01:30:19)

> >> >> Add a DT node for Last level cache (aka. system cache)

> >> >> controller which provides control over the last level

> >> >> cache present on SC7280 SoC.

> >> >>

> >> >> Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>

> >> >> ---

> >> >

> >> > Reviewed-by: Stephen Boyd <swboyd@chromium.org>

> >> >

> >> > Should add system-cache-controller to the devicetree spec. Or just use

> >> > cache-controller for the node name.

> >> 

> >> This was as per discussion in [1][2] where dt-schema throws an error

> >> since it expects cache-level to be associated with cache-controller.

> >> 

> > 

> > Ah right. Can you add system-cache-controller to the dt spec?

> 

> Sure, I'll add it. Hopefully that won't have to block this change?

> Because I might need some time to get permissions to add it there.

> 


Doesn't block it for me.
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi
index 3b86052b78bc..aeeb47c70c3a 100644
--- a/arch/arm64/boot/dts/qcom/sc7280.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi
@@ -338,6 +338,13 @@  uart5: serial@994000 {
 			};
 		};
 
+		system-cache-controller@9200000 {
+			compatible = "qcom,sc7280-llcc";
+			reg = <0 0x09200000 0 0xd0000>, <0 0x09600000 0 0x50000>;
+			reg-names = "llcc_base", "llcc_broadcast_base";
+			interrupts = <GIC_SPI 582 IRQ_TYPE_LEVEL_HIGH>;
+		};
+
 		pdc: interrupt-controller@b220000 {
 			compatible = "qcom,sc7280-pdc", "qcom,pdc";
 			reg = <0 0xb220000 0 0x30000>;