aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorJack Sangdahl2025-08-10 00:14:40 +0200
committerGitHub2025-08-10 00:14:40 +0200
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 @@
// Split Keyboard
"SOFT_SERIAL_PIN": {"info_key": "split.serial.pin"},
- "SOFT_SERIAL_SPEED": {"info_key": "split.soft_serial_speed"},
+ "SELECT_SOFT_SERIAL_SPEED": {"info_key": "split.serial.speed"},
"SPLIT_HAND_MATRIX_GRID": {"info_key": "split.handedness.matrix_grid", "value_type": "array", "to_c": false},
"SPLIT_HAND_PIN": {"info_key": "split.handedness.pin"},
"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 @@
},
"soft_serial_speed": {
"type": "integer",
- "minimum": 0,
- "maximum": 5
+ "$comment": "Deprecated: use split.serial.speed instead"
},
"serial": {
"type": "object",
@@ -875,7 +874,12 @@
"type": "string",
"enum": ["bitbang", "usart", "vendor"]
},
- "pin": {"$ref": "./definitions.jsonschema#/mcu_pin"}
+ "pin": {"$ref": "./definitions.jsonschema#/mcu_pin"},
+ "speed": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 5
+ }
}
},
"transport": {