diff --git a/data/mappings/info_config.hjson b/data/mappings/info_config.hjson index 4c895cf5d505..4a4e4802e57a 100644 --- a/data/mappings/info_config.hjson +++ b/data/mappings/info_config.hjson @@ -183,8 +183,8 @@ "SPLIT_USB_DETECT": {"info_key": "split.usb_detect.enabled", "value_type": "flag"}, "SPLIT_USB_TIMEOUT": {"info_key": "split.usb_detect.timeout", "value_type": "int"}, "SPLIT_USB_TIMEOUT_POLL": {"info_key": "split.usb_detect.polling_interval", "value_type": "int"}, - "SPLIT_WATCHDOG_ENABLE": {"info_key": "split.transport.watchdog", "value_type": "flag"}, - "SPLIT_WATCHDOG_TIMEOUT": {"info_key": "split.transport.watchdog_timeout", "value_type": "int"}, + "SPLIT_WATCHDOG_ENABLE": {"info_key": "split.transport.watchdog", "value_type": "flag", "deprecated": true, "replace_with": "`split.usb_detect.driver` in info.json"}, + "SPLIT_WATCHDOG_TIMEOUT": {"info_key": "split.transport.watchdog_timeout", "value_type": "int", "deprecated": true, "replace_with": "`split.usb_detect.timeout` in info.json"}, "SPLIT_ACTIVITY_ENABLE": {"info_key": "split.transport.sync.activity", "value_type": "flag"}, "SPLIT_DETECTED_OS_ENABLE": {"info_key": "split.transport.sync.detected_os", "value_type": "flag"}, "SPLIT_HAPTIC_ENABLE": {"info_key": "split.transport.sync.haptic", "value_type": "flag"}, diff --git a/data/mappings/info_rules.hjson b/data/mappings/info_rules.hjson index 64972af63b0e..a6920129df1b 100644 --- a/data/mappings/info_rules.hjson +++ b/data/mappings/info_rules.hjson @@ -46,6 +46,8 @@ "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}, + "SPLIT_USB_DETECT_ENABLE": {"info_key": "split.usb_detect.enabled", "value_type": "bool"}, + "SPLIT_USB_DETECT_DRIVER": {"info_key": "split.usb_detect.driver"}, "STENO_ENABLE": {"info_key": "stenography.enabled", "value_type": "bool"}, "STENO_PROTOCOL": {"info_key": "stenography.protocol"}, "USB_WAIT_FOR_ENUMERATION": {"info_key": "usb.wait_for_enumeration", "value_type": "bool"}, diff --git a/data/schemas/keyboard.jsonschema b/data/schemas/keyboard.jsonschema index 7649a8e31b26..206eae49e7a0 100644 --- a/data/schemas/keyboard.jsonschema +++ b/data/schemas/keyboard.jsonschema @@ -884,8 +884,13 @@ "additionalProperties": false, "properties": { "enabled": {"type": "boolean"}, + "driver": { + "type": "string", + "enum": ["vbus_sensing", "usb_enumeration", "usb_enumeration_watchdog"], + }, "polling_interval": {"$ref": "qmk.definitions.v1#/unsigned_int"}, - "timeout": {"$ref": "qmk.definitions.v1#/unsigned_int"} + "timeout": {"$ref": "qmk.definitions.v1#/unsigned_int"}, + "vbus_pin": {"$ref": "qmk.definitions.v1#/mcu_pin"} } }, "main": {