Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: cache: Convert marvell,{feroceon,kirkwood}-cache to DT schema

Convert the Marvell Feroceon/Kirkwood Cache binding to DT schema format.

Use "marvell,kirkwood-cache" for the filename instead as that's only
compatible used in a .dts upstream.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>

authored by

Rob Herring (Arm) and committed by
Conor Dooley
438d216e d58a73c9

+45 -16
-16
Documentation/devicetree/bindings/cache/marvell,feroceon-cache.txt
··· 1 - * Marvell Feroceon Cache 2 - 3 - Required properties: 4 - - compatible : Should be either "marvell,feroceon-cache" or 5 - "marvell,kirkwood-cache". 6 - 7 - Optional properties: 8 - - reg : Address of the L2 cache control register. Mandatory for 9 - "marvell,kirkwood-cache", not used by "marvell,feroceon-cache" 10 - 11 - 12 - Example: 13 - l2: l2-cache@20128 { 14 - compatible = "marvell,kirkwood-cache"; 15 - reg = <0x20128 0x4>; 16 - };
+45
Documentation/devicetree/bindings/cache/marvell,kirkwood-cache.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/cache/marvell,kirkwood-cache.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Marvell Feroceon/Kirkwood Cache 8 + 9 + maintainers: 10 + - Andrew Lunn <andrew@lunn.ch> 11 + - Gregory Clement <gregory.clement@bootlin.com> 12 + 13 + properties: 14 + compatible: 15 + enum: 16 + - marvell,feroceon-cache 17 + - marvell,kirkwood-cache 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + allOf: 23 + - if: 24 + properties: 25 + compatible: 26 + contains: 27 + const: marvell,kirkwood-cache 28 + then: 29 + required: 30 + - reg 31 + else: 32 + properties: 33 + reg: false 34 + 35 + required: 36 + - compatible 37 + 38 + additionalProperties: false 39 + 40 + examples: 41 + - | 42 + l2-cache@20128 { 43 + compatible = "marvell,kirkwood-cache"; 44 + reg = <0x20128 0x4>; 45 + };