Extend available EEPROM driver config

This commit is contained in:
zvecr
2023-10-23 01:17:31 +01:00
parent bf6f13a2b0
commit 668c29ca52
13 changed files with 64 additions and 25 deletions
+3
View File
@@ -50,6 +50,9 @@
"DYNAMIC_KEYMAP_LAYER_COUNT": {"info_key": "dynamic_keymap.layer_count", "value_type": "int"},
// EEPROM
"EXTERNAL_EEPROM_WP_PIN": {"info_key": "eeprom.i2c.write_protect_pin"},
"EXTERNAL_EEPROM_I2C_BASE_ADDRESS": {"info_key": "eeprom.i2c.address", "to_json": false},
"EXTERNAL_EEPROM_SPI_SLAVE_SELECT_PIN": {"info_key": "eeprom.spi.chip_select_pin"},
"WEAR_LEVELING_BACKING_SIZE": {"info_key": "eeprom.wear_leveling.backing_size", "value_type": "int", "to_json": false},
"WEAR_LEVELING_LOGICAL_SIZE": {"info_key": "eeprom.wear_leveling.logical_size", "value_type": "int", "to_json": false},
+17
View File
@@ -248,6 +248,23 @@
"eeprom": {
"properties": {
"driver": {"type": "string"},
"i2c": {
"type": "object",
"additionalProperties": false,
"properties": {
"device": {"type": "string"},
"address": {"$ref": "qmk.definitions.v1#/hex_number_2d"},
"write_protect_pin": {"$ref": "qmk.definitions.v1#/mcu_pin"}
}
},
"spi": {
"type": "object",
"additionalProperties": false,
"properties": {
"device": {"type": "string"},
"chip_select_pin": {"$ref": "qmk.definitions.v1#/mcu_pin"}
}
},
"wear_leveling": {
"type": "object",
"additionalProperties": false,