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

dt-bindings: net: marvell,prestera: Convert to yaml

The currently described switch family is named AlleyCat3, it is a memory
mapped switch found on Armada XP boards.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Miquel Raynal and committed by
Paolo Abeni
a429ab01 63b956f9

+45 -29
-29
Documentation/devicetree/bindings/net/marvell,prestera.txt
··· 1 - Marvell Prestera Switch Chip bindings 2 - ------------------------------------- 3 - 4 - Required properties: 5 - - compatible: must be "marvell,prestera" and one of the following 6 - "marvell,prestera-98dx3236", 7 - "marvell,prestera-98dx3336", 8 - "marvell,prestera-98dx4251", 9 - - reg: address and length of the register set for the device. 10 - - interrupts: interrupt for the device 11 - 12 - Optional properties: 13 - - dfx: phandle reference to the "DFX Server" node 14 - 15 - Example: 16 - 17 - switch { 18 - compatible = "simple-bus"; 19 - #address-cells = <1>; 20 - #size-cells = <1>; 21 - ranges = <0 MBUS_ID(0x03, 0x00) 0 0x100000>; 22 - 23 - packet-processor@0 { 24 - compatible = "marvell,prestera-98dx3236", "marvell,prestera"; 25 - reg = <0 0x4000000>; 26 - interrupts = <33>, <34>, <35>; 27 - dfx = <&dfx>; 28 - }; 29 - };
+45
Documentation/devicetree/bindings/net/marvell,prestera.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/net/marvell,prestera.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Marvell Prestera AlleyCat3 switch 8 + 9 + maintainers: 10 + - Miquel Raynal <miquel.raynal@bootlin.com> 11 + 12 + properties: 13 + compatible: 14 + items: 15 + - enum: 16 + - marvell,prestera-98dx3236 17 + - marvell,prestera-98dx3336 18 + - marvell,prestera-98dx4251 19 + - const: marvell,prestera 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + interrupts: 25 + maxItems: 3 26 + 27 + dfx: 28 + description: Reference to the DFX Server bus node. 29 + $ref: /schemas/types.yaml#/definitions/phandle 30 + 31 + required: 32 + - compatible 33 + - reg 34 + - interrupts 35 + 36 + additionalProperties: false 37 + 38 + examples: 39 + - | 40 + packet-processor@0 { 41 + compatible = "marvell,prestera-98dx3236", "marvell,prestera"; 42 + reg = <0 0x4000000>; 43 + interrupts = <33>, <34>, <35>; 44 + dfx = <&dfx>; 45 + };