aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJoel Challis <[email protected]>2024-06-17 19:22:47 +0100
committerGitHub <[email protected]>2024-06-17 19:22:47 +0100
commit51acd35e6f2196ca1d9a1328be92355b128d8239 (patch)
tree1103c9385b73fd8001cb7d4e3e89a25822a50604 /data
parent9f449246bbccb0ffbed723616e95f0421e572781 (diff)
downloadqmk_firmware-51acd35e6f2196ca1d9a1328be92355b128d8239.tar.gz
qmk_firmware-51acd35e6f2196ca1d9a1328be92355b128d8239.zip
Implement data driven serial driver (#23923)
Diffstat (limited to 'data')
-rw-r--r--data/mappings/info_rules.hjson1
-rw-r--r--data/schemas/keyboard.jsonschema10
2 files changed, 11 insertions, 0 deletions
diff --git a/data/mappings/info_rules.hjson b/data/mappings/info_rules.hjson
index 97611bcf58..384bc87b78 100644
--- a/data/mappings/info_rules.hjson
+++ b/data/mappings/info_rules.hjson
@@ -41,6 +41,7 @@
"RGB_MATRIX_DRIVER": {"info_key": "rgb_matrix.driver"},
"RGBLIGHT_DRIVER": {"info_key": "rgblight.driver"},
"SECURE_ENABLE": {"info_key": "secure.enabled", "value_type": "bool"},
+ "SERIAL_DRIVER": {"info_key": "split.serial.driver"},
"SPLIT_KEYBOARD": {"info_key": "split.enabled", "value_type": "bool"},
"SPLIT_TRANSPORT": {"info_key": "split.transport.protocol", "to_c": false},
"STENO_ENABLE": {"info_key": "stenography.enabled", "value_type": "bool"},
diff --git a/data/schemas/keyboard.jsonschema b/data/schemas/keyboard.jsonschema
index e5802fe07d..5b63acf8e8 100644
--- a/data/schemas/keyboard.jsonschema
+++ b/data/schemas/keyboard.jsonschema
@@ -799,6 +799,16 @@
"minimum": 0,
"maximum": 5
},
+ "serial": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "driver": {
+ "type": "string",
+ "enum": ["bitbang", "usart", "vendor"]
+ }
+ }
+ },
"transport": {
"type": "object",
"additionalProperties": false,