dt-bindings: cache: Convert marvell,tauros2-cache to DT schema
Subsystems (2)
Rob Herring (Arm)
maintainerPATCH 1/1 dt-bindings: cache: Convert marvell,tauros2-cache to DT schema
Signed-off-by Rob Herring (Arm) <[email protected]>
--- .../bindings/cache/marvell,tauros2-cache.txt | 17 -------- .../bindings/cache/marvell,tauros2-cache.yaml | 39 +++++++++++++++++++ 2 files changed, 39 insertions(+), 17 deletions(-) delete mode 100644 Documentation/devicetree/bindings/cache/marvell,tauros2-cache.txt create mode 100644 Documentation/devicetree/bindings/cache/marvell,tauros2-cache.yaml
Documentation/devicetree/bindings/cache/marvell,tauros2-cache.txt deleted +0 -17
@@ -1,17 +0,0 @@ -* Marvell Tauros2 Cache - -Required properties: -- compatible : Should be "marvell,tauros2-cache". -- marvell,tauros2-cache-features : Specify the features supported for the - tauros2 cache. - The features including - CACHE_TAUROS2_PREFETCH_ON (1 << 0) - CACHE_TAUROS2_LINEFILL_BURST8 (1 << 1) - The definition can be found at - arch/arm/include/asm/hardware/cache-tauros2.h - -Example: - L2: l2-cache { - compatible = "marvell,tauros2-cache"; - marvell,tauros2-cache-features = <0x3>; - };
Documentation/devicetree/bindings/cache/marvell,tauros2-cache.yaml new file +39 -0
@@ -0,0 +1,39 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/cache/marvell,tauros2-cache.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell Tauros2 Cache + +maintainers: + - Andrew Lunn <[email protected]> + - Gregory Clement <[email protected]> + +properties: + compatible: + const: marvell,tauros2-cache + + marvell,tauros2-cache-features: + description: > + Specify the features supported for the tauros2 cache. The features include: + + - CACHE_TAUROS2_PREFETCH_ON (1 << 0) + - CACHE_TAUROS2_LINEFILL_BURST8 (1 << 1) + + The definition can be found at arch/arm/include/asm/hardware/cache-tauros2.h + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 0x3 + +required: + - compatible + - marvell,tauros2-cache-features + +additionalProperties: false + +examples: + - | + l2-cache { + compatible = "marvell,tauros2-cache"; + marvell,tauros2-cache-features = <0x3>; + };
Signature · 1 line
2.47.2
Quoted 1 line · Rob Herring (Arm)
Signed-off-by Rob Herring (Arm) <[email protected]>
Reviewed-by Andrew Lunn <[email protected]>
Andrew
From: Conor Dooley <[email protected]>
Quoted 1 line · Rob Herring (Arm)
^^^
Body was empty, I added a trivial one aping the subject.
Applied to riscv-cache-for-next, thanks!
[1/1] dt-bindings: cache: Convert marvell,tauros2-cache to DT schema
https://git.kernel.org/conor/c/64d60a02036c
Thanks,
Conor.