ipq806x: 6.6: rework kernel patches for new kernel
[openwrt/staging/nbd.git] / target / linux / ipq806x / patches-6.6 / 114-02-ARM-dts-qcom-add-krait-cache-compatible-for-ipq806x-.patch
1 From ef124ad0ff8abfbf4ebe3fe6d7dcef4541dec13a Mon Sep 17 00:00:00 2001
2 From: Christian Marangi <ansuelsmth@gmail.com>
3 Date: Thu, 16 Jun 2022 18:39:21 +0200
4 Subject: [PATCH] ARM: dts: qcom: add krait-cache compatible for ipq806x dtsi
5
6 Add qcom,krait-cache compatible to enable cache devfreq driver for
7 ipq806x SoC and move the L2 node to the soc node to make the devfreq
8 driver correctly probe.
9
10 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
11 ---
12 arch/arm/boot/dts/qcom/qcom-ipq8064.dtsi | 22 +++++++++++-----------
13 1 file changed, 11 insertions(+), 11 deletions(-)
14
15 --- a/arch/arm/boot/dts/qcom/qcom-ipq8064.dtsi
16 +++ b/arch/arm/boot/dts/qcom/qcom-ipq8064.dtsi
17 @@ -69,17 +69,6 @@
18 min-residency-us = <3000>;
19 };
20 };
21 -
22 - L2: l2-cache {
23 - compatible = "cache";
24 - cache-level = <2>;
25 - cache-unified;
26 - qcom,saw = <&saw_l2>;
27 -
28 - clocks = <&kraitcc 4>;
29 - clock-names = "l2";
30 - operating-points-v2 = <&opp_table_l2>;
31 - };
32 };
33
34 opp_table_l2: opp_table_l2 {
35 @@ -1409,6 +1399,17 @@
36 #reset-cells = <1>;
37 };
38
39 + L2: l2-cache {
40 + compatible = "cache", "qcom,krait-cache";
41 + cache-level = <2>;
42 + cache-unified;
43 + qcom,saw = <&saw_l2>;
44 +
45 + clocks = <&kraitcc 4>;
46 + clock-names = "l2";
47 + operating-points-v2 = <&opp_table_l2>;
48 + };
49 +
50 lpass@28100000 {
51 compatible = "qcom,lpass-cpu";
52 status = "disabled";