1 # SPDX-License-Identifier: GPL-2.0-only OR BSD 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/net/marvell 4 $id: http://devicetree.org/schemas/net/marvell,dfx-server.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Marvell Prestera DFX server 7 title: Marvell Prestera DFX server 8 8 9 maintainers: 9 maintainers: 10 - Miquel Raynal <miquel.raynal@bootlin.com> 10 - Miquel Raynal <miquel.raynal@bootlin.com> 11 11 12 select: 12 select: 13 properties: 13 properties: 14 compatible: 14 compatible: 15 contains: 15 contains: 16 const: marvell,dfx-server 16 const: marvell,dfx-server 17 required: 17 required: 18 - compatible 18 - compatible 19 19 20 properties: 20 properties: 21 compatible: 21 compatible: 22 items: 22 items: 23 - const: marvell,dfx-server 23 - const: marvell,dfx-server 24 - const: simple-bus 24 - const: simple-bus 25 25 26 reg: 26 reg: 27 maxItems: 1 27 maxItems: 1 28 28 29 ranges: true 29 ranges: true 30 30 31 '#address-cells': 31 '#address-cells': 32 const: 1 32 const: 1 33 33 34 '#size-cells': 34 '#size-cells': 35 const: 1 35 const: 1 36 36 37 required: 37 required: 38 - compatible 38 - compatible 39 - reg 39 - reg 40 - ranges 40 - ranges 41 41 42 # The DFX server may expose clocks described a 42 # The DFX server may expose clocks described as subnodes 43 additionalProperties: 43 additionalProperties: 44 type: object 44 type: object 45 45 46 examples: 46 examples: 47 - | 47 - | 48 48 49 #define MBUS_ID(target,attributes) (((targ 49 #define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16)) 50 bus@0 { 50 bus@0 { 51 reg = <0 0>; 51 reg = <0 0>; 52 #address-cells = <2>; 52 #address-cells = <2>; 53 #size-cells = <1>; 53 #size-cells = <1>; 54 54 55 dfx-bus@ac000000 { 55 dfx-bus@ac000000 { 56 compatible = "marvell,dfx-server", 56 compatible = "marvell,dfx-server", "simple-bus"; 57 #address-cells = <1>; 57 #address-cells = <1>; 58 #size-cells = <1>; 58 #size-cells = <1>; 59 ranges = <0 MBUS_ID(0x08, 0x00) 0 59 ranges = <0 MBUS_ID(0x08, 0x00) 0 0x100000>; 60 reg = <MBUS_ID(0x08, 0x00) 0 0x100 60 reg = <MBUS_ID(0x08, 0x00) 0 0x100000>; 61 }; 61 }; 62 }; 62 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.