schemas: mctp: Specify descriptions of MCTP I3C targets
8fd7afac1555 ("schemas: Specify descriptions of MCTP I2C targets")
introduced `MCTPI2CTarget` schema. According to this commit, add
`MCTPI3CTarget` schema to support I3C targets.
Change-Id: I9fd2bcae9f39b9334107fb4b75c3ab5e837e0fec
Signed-off-by: Yikai Tsai <yikai.tsai.wiwynn@gmail.com>
diff --git a/schemas/global.json b/schemas/global.json
index e9bc310..2136a0e 100644
--- a/schemas/global.json
+++ b/schemas/global.json
@@ -20,6 +20,9 @@
"$ref": "mctp.json#/$defs/MCTPI2CTarget"
},
{
+ "$ref": "mctp.json#/$defs/MCTPI3CTarget"
+ },
+ {
"$ref": "pid.json#/$defs/Pid"
},
{
diff --git a/schemas/mctp.json b/schemas/mctp.json
index 26e2cfd..7dc1629 100644
--- a/schemas/mctp.json
+++ b/schemas/mctp.json
@@ -22,6 +22,28 @@
},
"required": ["Address", "Bus", "Name", "Type"],
"type": "object"
+ },
+ "MCTPI3CTarget": {
+ "properties": {
+ "Address": {
+ "description": "The 6-byte PID for the device on the I3C bus",
+ "type": ["string", "array"]
+ },
+ "Bus": {
+ "description": "The bus index to which the device is attached",
+ "type": "string"
+ },
+ "Name": {
+ "description": "A recognisable name for the device",
+ "type": "string"
+ },
+ "Type": {
+ "type": "string",
+ "enum": ["MCTPI3CTarget"]
+ }
+ },
+ "required": ["Address", "Bus", "Name", "Type"],
+ "type": "object"
}
}
}