xref: /openbmc/entity-manager/schemas/mctp.json (revision 2639e569d311eab39d42964bafaee214ee1006c1)
1{
2    "$schema": "http://json-schema.org/draft-07/schema#",
3    "$defs": {
4        "MCTPI2CTarget": {
5            "properties": {
6                "Address": {
7                    "description": "The physical address for the device on the I2C bus.",
8                    "type": "string"
9                },
10                "Bus": {
11                    "description": "The bus index to which the device is attached",
12                    "type": "string"
13                },
14                "Name": {
15                    "description": "A recognisable name for the device",
16                    "type": "string"
17                },
18                "Type": {
19                    "type": "string",
20                    "enum": ["MCTPI2CTarget"]
21                }
22            },
23            "required": ["Address", "Bus", "Name", "Type"],
24            "type": "object"
25        },
26        "MCTPI3CTarget": {
27            "properties": {
28                "Address": {
29                    "description": "The 6-byte PID for the device on the I3C bus",
30                    "type": ["string", "array"]
31                },
32                "Bus": {
33                    "description": "The bus index to which the device is attached",
34                    "type": "string"
35                },
36                "Name": {
37                    "description": "A recognisable name for the device",
38                    "type": "string"
39                },
40                "Type": {
41                    "type": "string",
42                    "enum": ["MCTPI3CTarget"]
43                }
44            },
45            "required": ["Address", "Bus", "Name", "Type"],
46            "type": "object"
47        }
48    }
49}
50