summaryrefslogtreecommitdiff
path: root/data/schemas
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2023-09-05 01:53:05 +0100
committerGitHub <noreply@github.com>2023-09-05 01:53:05 +0100
commit5fab310e65f30514ec5d119af756f9a45e7e8454 (patch)
treea1272e1cbca8947e22ecc703b57f9baa062974a1 /data/schemas
parenta03de8440bc379d590bcb7cd250d719a90dedde2 (diff)
Implement data driven wear leveling (#21906)
* DD encoder map, wear leveling * remove encoder map from DD let's avoid the support headache * wear leveling: specify the allowed drivers by name Co-authored-by: Ryan <fauxpark@gmail.com> * Add additional params * Relocate under eeprom * disable parsing --------- Co-authored-by: Dimitris Mantzouranis <d3xter93@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'data/schemas')
-rw-r--r--data/schemas/keyboard.jsonschema14
1 files changed, 13 insertions, 1 deletions
diff --git a/data/schemas/keyboard.jsonschema b/data/schemas/keyboard.jsonschema
index 901caa75fe..0f0576b1c3 100644
--- a/data/schemas/keyboard.jsonschema
+++ b/data/schemas/keyboard.jsonschema
@@ -247,7 +247,19 @@
},
"eeprom": {
"properties": {
- "driver": {"type": "string"}
+ "driver": {"type": "string"},
+ "wear_leveling": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "driver": {
+ "type": "string",
+ "enum": ["custom", "embedded_flash", "legacy", "rp2040_flash", "spi_flash"]
+ },
+ "backing_size": {"$ref": "qmk.definitions.v1#/unsigned_int"},
+ "logical_size": {"$ref": "qmk.definitions.v1#/unsigned_int"}
+ }
+ }
}
},
"encoder": {