diff options
Diffstat (limited to 'data')
| -rw-r--r-- | data/mappings/info_config.hjson | 5 | ||||
| -rw-r--r-- | data/schemas/keyboard.jsonschema | 18 |
2 files changed, 21 insertions, 2 deletions
diff --git a/data/mappings/info_config.hjson b/data/mappings/info_config.hjson index bab881583a..e4def1a4d7 100644 --- a/data/mappings/info_config.hjson +++ b/data/mappings/info_config.hjson | |||
| @@ -64,6 +64,9 @@ | |||
| 64 | "WEAR_LEVELING_BACKING_SIZE": {"info_key": "eeprom.wear_leveling.backing_size", "value_type": "int", "to_json": false}, | 64 | "WEAR_LEVELING_BACKING_SIZE": {"info_key": "eeprom.wear_leveling.backing_size", "value_type": "int", "to_json": false}, |
| 65 | "WEAR_LEVELING_LOGICAL_SIZE": {"info_key": "eeprom.wear_leveling.logical_size", "value_type": "int", "to_json": false}, | 65 | "WEAR_LEVELING_LOGICAL_SIZE": {"info_key": "eeprom.wear_leveling.logical_size", "value_type": "int", "to_json": false}, |
| 66 | 66 | ||
| 67 | // host | ||
| 68 | "NKRO_DEFAULT_ON": {"info_key": "host.default.nkro", "value_type": "bool"}, | ||
| 69 | |||
| 67 | // Layer locking | 70 | // Layer locking |
| 68 | "LAYER_LOCK_IDLE_TIMEOUT": {"info_key": "layer_lock.timeout", "value_type": "int"}, | 71 | "LAYER_LOCK_IDLE_TIMEOUT": {"info_key": "layer_lock.timeout", "value_type": "int"}, |
| 69 | 72 | ||
| @@ -215,7 +218,6 @@ | |||
| 215 | "TAPPING_TOGGLE": {"info_key": "tapping.toggle", "value_type": "int"}, | 218 | "TAPPING_TOGGLE": {"info_key": "tapping.toggle", "value_type": "int"}, |
| 216 | 219 | ||
| 217 | // USB | 220 | // USB |
| 218 | "FORCE_NKRO": {"info_key": "usb.force_nkro", "value_type": "flag"}, | ||
| 219 | "USB_MAX_POWER_CONSUMPTION": {"info_key": "usb.max_power", "value_type": "int"}, | 221 | "USB_MAX_POWER_CONSUMPTION": {"info_key": "usb.max_power", "value_type": "int"}, |
| 220 | "USB_POLLING_INTERVAL_MS": {"info_key": "usb.polling_interval", "value_type": "int"}, | 222 | "USB_POLLING_INTERVAL_MS": {"info_key": "usb.polling_interval", "value_type": "int"}, |
| 221 | "USB_SUSPEND_WAKEUP_DELAY": {"info_key": "usb.suspend_wakeup_delay", "value_type": "int"}, | 223 | "USB_SUSPEND_WAKEUP_DELAY": {"info_key": "usb.suspend_wakeup_delay", "value_type": "int"}, |
| @@ -253,6 +255,7 @@ | |||
| 253 | "PRODUCT": {"info_key": "keyboard_name", "warn_duplicate": false, "value_type": "str", "deprecated": true, "replace_with": "`keyboard_name` in info.json"}, | 255 | "PRODUCT": {"info_key": "keyboard_name", "warn_duplicate": false, "value_type": "str", "deprecated": true, "replace_with": "`keyboard_name` in info.json"}, |
| 254 | "PRODUCT_ID": {"info_key": "usb.pid", "value_type": "hex", "deprecated": true, "replace_with": "`usb.pid` in info.json"}, | 256 | "PRODUCT_ID": {"info_key": "usb.pid", "value_type": "hex", "deprecated": true, "replace_with": "`usb.pid` in info.json"}, |
| 255 | "VENDOR_ID": {"info_key": "usb.vid", "value_type": "hex", "deprecated": true, "replace_with": "`usb.vid` in info.json"}, | 257 | "VENDOR_ID": {"info_key": "usb.vid", "value_type": "hex", "deprecated": true, "replace_with": "`usb.vid` in info.json"}, |
| 258 | "FORCE_NKRO": {"info_key": "usb.force_nkro", "value_type": "flag", "deprecated": true, "replace_with": "`host.default.nkro` in info.json"}, | ||
| 256 | 259 | ||
| 257 | // Items we want flagged in lint | 260 | // Items we want flagged in lint |
| 258 | "VIAL_KEYBOARD_UID": {"info_key": "_invalid.vial_uid", "invalid": true}, | 261 | "VIAL_KEYBOARD_UID": {"info_key": "_invalid.vial_uid", "invalid": true}, |
diff --git a/data/schemas/keyboard.jsonschema b/data/schemas/keyboard.jsonschema index 4e8bae1084..c22b0ff0da 100644 --- a/data/schemas/keyboard.jsonschema +++ b/data/schemas/keyboard.jsonschema | |||
| @@ -443,6 +443,18 @@ | |||
| 443 | } | 443 | } |
| 444 | } | 444 | } |
| 445 | }, | 445 | }, |
| 446 | "host": { | ||
| 447 | "type": "object", | ||
| 448 | "properties": { | ||
| 449 | "default": { | ||
| 450 | "type": "object", | ||
| 451 | "additionalProperties": false, | ||
| 452 | "properties": { | ||
| 453 | "nkro": {"type": "boolean"} | ||
| 454 | } | ||
| 455 | } | ||
| 456 | } | ||
| 457 | }, | ||
| 446 | "leader_key": { | 458 | "leader_key": { |
| 447 | "type": "object", | 459 | "type": "object", |
| 448 | "properties": { | 460 | "properties": { |
| @@ -952,7 +964,11 @@ | |||
| 952 | "$comment": "Deprecated: use device_version instead" | 964 | "$comment": "Deprecated: use device_version instead" |
| 953 | }, | 965 | }, |
| 954 | "device_version": {"$ref": "qmk.definitions.v1#/bcd_version"}, | 966 | "device_version": {"$ref": "qmk.definitions.v1#/bcd_version"}, |
| 955 | "force_nkro": {"type": "boolean"}, | 967 | "force_nkro": { |
| 968 | "type": "boolean", | ||
| 969 | "$comment": "Deprecated: use host.default.nkro instead" | ||
| 970 | |||
| 971 | }, | ||
| 956 | "pid": {"$ref": "qmk.definitions.v1#/hex_number_4d"}, | 972 | "pid": {"$ref": "qmk.definitions.v1#/hex_number_4d"}, |
| 957 | "vid": {"$ref": "qmk.definitions.v1#/hex_number_4d"}, | 973 | "vid": {"$ref": "qmk.definitions.v1#/hex_number_4d"}, |
| 958 | "max_power": {"$ref": "qmk.definitions.v1#/unsigned_int"}, | 974 | "max_power": {"$ref": "qmk.definitions.v1#/unsigned_int"}, |
