summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJack Sangdahl <jack@pngu.org>2025-08-10 00:14:40 +0200
committerGitHub <noreply@github.com>2025-08-09 23:14:40 +0100
commit12dc6d1ac80b6919fcdb084d897612559b2f391b (patch)
tree2f058d0f64a22efe64ee5088215470fee24ae368 /data
parent6c2e58eb4d58bc8f2d2c1e20e7fe347a2153db31 (diff)
Fix serial speed DD configuration & migrate keyboards (#25546)
* Fix serial speed DD configuration - Fixes incorrect SOFT_SERIAL_SPEED mapping - Renames key split.soft_serial_speed -> split.serial.speed - Migrates keyoards that configure this, and remove configuration from keyboards that do not differ from the default behaviour - Add deprecation notice and migration support
Diffstat (limited to 'data')
-rw-r--r--data/mappings/info_config.hjson2
-rw-r--r--data/schemas/keyboard.jsonschema10
2 files changed, 8 insertions, 4 deletions
diff --git a/data/mappings/info_config.hjson b/data/mappings/info_config.hjson
index 356dd6ba52..a160e490c7 100644
--- a/data/mappings/info_config.hjson
+++ b/data/mappings/info_config.hjson
@@ -184,7 +184,7 @@
184 184
185 // Split Keyboard 185 // Split Keyboard
186 "SOFT_SERIAL_PIN": {"info_key": "split.serial.pin"}, 186 "SOFT_SERIAL_PIN": {"info_key": "split.serial.pin"},
187 "SOFT_SERIAL_SPEED": {"info_key": "split.soft_serial_speed"}, 187 "SELECT_SOFT_SERIAL_SPEED": {"info_key": "split.serial.speed"},
188 "SPLIT_HAND_MATRIX_GRID": {"info_key": "split.handedness.matrix_grid", "value_type": "array", "to_c": false}, 188 "SPLIT_HAND_MATRIX_GRID": {"info_key": "split.handedness.matrix_grid", "value_type": "array", "to_c": false},
189 "SPLIT_HAND_PIN": {"info_key": "split.handedness.pin"}, 189 "SPLIT_HAND_PIN": {"info_key": "split.handedness.pin"},
190 "SPLIT_USB_DETECT": {"info_key": "split.usb_detect.enabled", "value_type": "flag"}, 190 "SPLIT_USB_DETECT": {"info_key": "split.usb_detect.enabled", "value_type": "flag"},
diff --git a/data/schemas/keyboard.jsonschema b/data/schemas/keyboard.jsonschema
index 13ceec5afa..3775b66c1a 100644
--- a/data/schemas/keyboard.jsonschema
+++ b/data/schemas/keyboard.jsonschema
@@ -864,8 +864,7 @@
864 }, 864 },
865 "soft_serial_speed": { 865 "soft_serial_speed": {
866 "type": "integer", 866 "type": "integer",
867 "minimum": 0, 867 "$comment": "Deprecated: use split.serial.speed instead"
868 "maximum": 5
869 }, 868 },
870 "serial": { 869 "serial": {
871 "type": "object", 870 "type": "object",
@@ -875,7 +874,12 @@
875 "type": "string", 874 "type": "string",
876 "enum": ["bitbang", "usart", "vendor"] 875 "enum": ["bitbang", "usart", "vendor"]
877 }, 876 },
878 "pin": {"$ref": "./definitions.jsonschema#/mcu_pin"} 877 "pin": {"$ref": "./definitions.jsonschema#/mcu_pin"},
878 "speed": {
879 "type": "integer",
880 "minimum": 0,
881 "maximum": 5
882 }
879 } 883 }
880 }, 884 },
881 "transport": { 885 "transport": {