Skip to content

Commit

Permalink
arm64: dts: Update cache properties for marvell
Browse files Browse the repository at this point in the history
The DeviceTree Specification v0.3 specifies that the cache node
'compatible' and 'cache-level' properties are 'required'. Cf.
s3.8 Multi-level and Shared Cache Nodes

The recently added init_of_cache_level() function checks
these properties. Add them if missing.

Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
  • Loading branch information
pierregondois authored and gclement committed Nov 28, 2022
1 parent 21aad8b commit b5d971c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@

l2: l2-cache {
compatible = "cache";
cache-level = <2>;
};
};

Expand Down
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/marvell/armada-ap806-dual.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
cache-size = <0x80000>;
cache-line-size = <64>;
cache-sets = <512>;
cache-level = <2>;
};
};

Expand Down
2 changes: 2 additions & 0 deletions arch/arm64/boot/dts/marvell/armada-ap806-quad.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,15 @@
cache-size = <0x80000>;
cache-line-size = <64>;
cache-sets = <512>;
cache-level = <2>;
};

l2_1: l2-cache1 {
compatible = "cache";
cache-size = <0x80000>;
cache-line-size = <64>;
cache-sets = <512>;
cache-level = <2>;
};
};
};
2 changes: 2 additions & 0 deletions arch/arm64/boot/dts/marvell/armada-ap807-quad.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,15 @@
cache-size = <0x80000>;
cache-line-size = <64>;
cache-sets = <512>;
cache-level = <2>;
};

l2_1: l2-cache1 {
compatible = "cache";
cache-size = <0x80000>;
cache-line-size = <64>;
cache-sets = <512>;
cache-level = <2>;
};
};
};

0 comments on commit b5d971c

Please sign in to comment.