From 43b2a3791c59282ef38b4fb5cf726c500bca7d20 Mon Sep 17 00:00:00 2001 From: Harry Ho Date: Mon, 17 May 2021 12:21:08 +0800 Subject: [PATCH] jsonschema: only allow enable_sata_drtio=true for Kasli if v1.0/1.1 --- .../coredevice/coredevice_generic.schema.json | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/artiq/coredevice/coredevice_generic.schema.json b/artiq/coredevice/coredevice_generic.schema.json index 7dcf85462..47319fe3e 100644 --- a/artiq/coredevice/coredevice_generic.schema.json +++ b/artiq/coredevice/coredevice_generic.schema.json @@ -71,6 +71,26 @@ } } }, + "if": { + "properties": { + "target": { "const": "kasli" }, + "hw_rev": { + "not": { + "oneOf": [ + { "const": "v1.0" }, + { "const": "v1.1" } + ] + } + } + } + }, + "then": { + "properties": { + "enable_sata_drtio": { + "const": false + } + } + }, "required": ["target", "variant", "hw_rev", "base", "peripherals"], "additionalProperties": false,