From 46666e1ecb933c9be79947ea5ad213404c867cd7 Mon Sep 17 00:00:00 2001 From: c0rnelius <43829819+pyavitz@users.noreply.github.com> Date: Thu, 27 Jul 2023 12:26:06 -0400 Subject: [PATCH] arm64: dts: amlogic: add missing cache properties (#5523) As all level 2 and level 3 caches are unified, add required cache-unified properties to fix warnings like: meson-a1-ad401.dtb: l2-cache0: 'cache-unified' is a required property https://lore.kernel.org/lkml/20230421223211.115612-1-krzysztof.kozlowski@linaro.org/T/ Signed-off-by: Patrick Yavitz Co-authored-by: Patrick Yavitz --- ...son-dts-add-missing-cache-properties.patch | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 patch/kernel/archive/meson64-6.4/meson-dts-add-missing-cache-properties.patch diff --git a/patch/kernel/archive/meson64-6.4/meson-dts-add-missing-cache-properties.patch b/patch/kernel/archive/meson64-6.4/meson-dts-add-missing-cache-properties.patch new file mode 100644 index 0000000000..0b3ac8f907 --- /dev/null +++ b/patch/kernel/archive/meson64-6.4/meson-dts-add-missing-cache-properties.patch @@ -0,0 +1,71 @@ +From 79d5517c23a079c5f9cf128485301fa89577b962 Mon Sep 17 00:00:00 2001 +From: Patrick Yavitz +Date: Wed, 26 Jul 2023 01:34:30 -0400 +Subject: [PATCH] arm64: dts: amlogic: add missing cache properties + +As all level 2 and level 3 caches are unified, add required +cache-unified properties to fix warnings like: + + meson-a1-ad401.dtb: l2-cache0: 'cache-unified' is a required property + +https://lore.kernel.org/lkml/20230421223211.115612-1-krzysztof.kozlowski@linaro.org/T/ + +Signed-off-by: Patrick Yavitz +--- + arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 1 + + arch/arm64/boot/dts/amlogic/meson-g12b.dtsi | 1 + + arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 1 + + arch/arm64/boot/dts/amlogic/meson-sm1.dtsi | 1 + + 4 files changed, 4 insertions(+) + +diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +index f58fd2a6fe61..543e70669df5 100644 +--- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi ++++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +@@ -51,6 +51,7 @@ cpu3: cpu@3 { + l2: l2-cache0 { + compatible = "cache"; + cache-level = <2>; ++ cache-unified; + }; + }; + +diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12b.dtsi +index 431572b384db..86e6ceb31d5e 100644 +--- a/arch/arm64/boot/dts/amlogic/meson-g12b.dtsi ++++ b/arch/arm64/boot/dts/amlogic/meson-g12b.dtsi +@@ -106,6 +106,7 @@ cpu103: cpu@103 { + l2: l2-cache0 { + compatible = "cache"; + cache-level = <2>; ++ cache-unified; + }; + }; + }; +diff --git a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi +index 11f89bfecb56..2673f0dbafe7 100644 +--- a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi ++++ b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi +@@ -133,6 +133,7 @@ cpu3: cpu@3 { + l2: l2-cache0 { + compatible = "cache"; + cache-level = <2>; ++ cache-unified; + }; + }; + +diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1.dtsi b/arch/arm64/boot/dts/amlogic/meson-sm1.dtsi +index 617d322af0df..643f94d9d08e 100644 +--- a/arch/arm64/boot/dts/amlogic/meson-sm1.dtsi ++++ b/arch/arm64/boot/dts/amlogic/meson-sm1.dtsi +@@ -89,6 +89,7 @@ cpu3: cpu@3 { + l2: l2-cache0 { + compatible = "cache"; + cache-level = <2>; ++ cache-unified; + }; + }; + +-- +2.39.2 +