aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJoel Challis <[email protected]>2024-04-26 05:41:22 +0100
committerGitHub <[email protected]>2024-04-26 05:41:22 +0100
commitd333a25868039292a327a141dc90c0015b7fd017 (patch)
treef00a17a07a5a8c4a76a1133476c8fc3a9d709a6e /data
parent42f61611e8be856c65efa0e9cf56b19fe18c519e (diff)
downloadqmk_firmware-d333a25868039292a327a141dc90c0015b7fd017.tar.gz
qmk_firmware-d333a25868039292a327a141dc90c0015b7fd017.zip
Add audio driver to keyboard.json schema (#23616)
Diffstat (limited to 'data')
-rw-r--r--data/mappings/info_rules.hjson1
-rw-r--r--data/schemas/keyboard.jsonschema4
2 files changed, 5 insertions, 0 deletions
diff --git a/data/mappings/info_rules.hjson b/data/mappings/info_rules.hjson
index 5d08be2fc1..97611bcf58 100644
--- a/data/mappings/info_rules.hjson
+++ b/data/mappings/info_rules.hjson
@@ -11,6 +11,7 @@
// invalid: Default `false`. Set to `true` to generate errors when a value exists
// replace_with: use with a key marked deprecated or invalid to designate a replacement
+ "AUDIO_DRIVER": {"info_key": "audio.driver"},
"BACKLIGHT_DRIVER": {"info_key": "backlight.driver"},
"BLUETOOTH_DRIVER": {"info_key": "bluetooth.driver"},
"BOARD": {"info_key": "board"},
diff --git a/data/schemas/keyboard.jsonschema b/data/schemas/keyboard.jsonschema
index 24f7fec9ab..585c64777f 100644
--- a/data/schemas/keyboard.jsonschema
+++ b/data/schemas/keyboard.jsonschema
@@ -133,6 +133,10 @@
"clicky": {"type": "boolean"}
}
},
+ "driver": {
+ "type": "string",
+ "enum": ["dac_additive", "dac_basic", "pwm_software", "pwm_hardware"]
+ },
"macro_beep": {"type": "boolean"},
"pins": {"$ref": "qmk.definitions.v1#/mcu_pin_array"},
"power_control": {