Skip to content

Commit

Permalink
Migrate spi_flash WEAR_LEVELING_DRIVER to info.json (qmk#21978)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr authored and christrotter committed Nov 28, 2023
1 parent 2a0e3f1 commit f0714de
Show file tree
Hide file tree
Showing 38 changed files with 122 additions and 55 deletions.
6 changes: 6 additions & 0 deletions keyboards/akko/5108/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
"rows": ["B15", "C6", "C7", "C8", "C9", "A8"]
},
"diode_direction": "ROW2COL",
"eeprom": {
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash"
}
},
"indicators": {
"num_lock": "A15",
"caps_lock": "C10"
Expand Down
3 changes: 1 addition & 2 deletions keyboards/akko/5108/rules.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = spi_flash
# This file intentionally left blank
6 changes: 6 additions & 0 deletions keyboards/akko/acr87/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
"rows": [ "B15", "C6", "C7", "C8", "C9", "A8"]
},
"diode_direction": "ROW2COL",
"eeprom": {
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash"
}
},
"rgb_matrix": {
"driver": "is31fl3733",
"max_brightness": 180,
Expand Down
4 changes: 1 addition & 3 deletions keyboards/akko/acr87/rules.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = spi_flash

# This file intentionally left blank
6 changes: 6 additions & 0 deletions keyboards/akko/top40/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
"rows": ["C7", "C8", "C9", "A8"]
},
"diode_direction": "ROW2COL",
"eeprom": {
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash"
}
},
"rgb_matrix": {
"driver": "is31fl3733",
"max_brightness": 180,
Expand Down
7 changes: 1 addition & 6 deletions keyboards/akko/top40/rules.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
# Build Options
# change yes to no to disable
#
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = spi_flash

# This file intentionally left blank
6 changes: 6 additions & 0 deletions keyboards/annepro2/c15/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"usb": {
"pid": "0xAC15"
},
"eeprom": {
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash"
}
},
"rgb_matrix": {
"driver": "custom"
},
Expand Down
4 changes: 0 additions & 4 deletions keyboards/annepro2/c15/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output

# Wear-levelling driver
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = spi_flash

# Custom RGB matrix handling
RGB_MATRIX_ENABLE = yes

Expand Down
6 changes: 6 additions & 0 deletions keyboards/annepro2/c18/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"usb": {
"pid": "0xAC18"
},
"eeprom": {
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash"
}
},
"rgb_matrix": {
"driver": "custom"
},
Expand Down
4 changes: 0 additions & 4 deletions keyboards/annepro2/c18/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output

# Wear-levelling driver
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = spi_flash

# Custom RGB matrix handling
RGB_MATRIX_ENABLE = yes

Expand Down
5 changes: 4 additions & 1 deletion keyboards/chosfox/cf81/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
"suspend_wakeup_delay": 400
},
"eeprom": {
"driver": "wear_leveling"
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash"
}
},
"processor": "WB32FQ95",
"bootloader": "wb32-dfu",
Expand Down
2 changes: 1 addition & 1 deletion keyboards/chosfox/cf81/rules.mk
Original file line number Diff line number Diff line change
@@ -1 +1 @@
WEAR_LEVELING_DRIVER = spi_flash
# This file intentionally left blank
6 changes: 6 additions & 0 deletions keyboards/gmmk/gmmk2/p96/ansi/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
"rows": ["B0", "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "B10", "B11", "B12", "B13"]
},
"diode_direction": "COL2ROW",
"eeprom": {
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash"
}
},
"processor": "WB32F3G71",
"bootloader": "wb32-dfu",
"layouts": {
Expand Down
2 changes: 0 additions & 2 deletions keyboards/gmmk/gmmk2/p96/ansi/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality.
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow.
AUDIO_ENABLE = no # Audio output.
RGB_MATRIX_ENABLE = yes # Enable RGB matrix effects.
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = spi_flash
6 changes: 6 additions & 0 deletions keyboards/gmmk/gmmk2/p96/iso/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
"rows": ["B0", "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "B10", "B11", "B12", "B13"]
},
"diode_direction": "COL2ROW",
"eeprom": {
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash"
}
},
"processor": "WB32F3G71",
"bootloader": "wb32-dfu",
"layouts": {
Expand Down
2 changes: 0 additions & 2 deletions keyboards/gmmk/gmmk2/p96/iso/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality.
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow.
AUDIO_ENABLE = no # Audio output.
RGB_MATRIX_ENABLE = yes # Enable RGB matrix effects.
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = spi_flash
6 changes: 6 additions & 0 deletions keyboards/gmmk/numpad/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
"pid": "0x5088",
"device_version": "0.0.1"
},
"eeprom": {
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash"
}
},
"encoder": {
"rotary": [
{"pin_a": "A2", "pin_b": "A1"}
Expand Down
3 changes: 0 additions & 3 deletions keyboards/gmmk/numpad/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ MIDI_ENABLE = yes

RGB_MATRIX_ENABLE = yes

EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = spi_flash

LTO_ENABLE = yes

SRC += analog.c \
Expand Down
6 changes: 6 additions & 0 deletions keyboards/gmmk/pro/rev2/ansi/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
"rows": ["B0", "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "B10"]
},
"diode_direction": "COL2ROW",
"eeprom": {
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash"
}
},
"encoder": {
"rotary": [
{"pin_a": "C15", "pin_b": "C14"}
Expand Down
2 changes: 0 additions & 2 deletions keyboards/gmmk/pro/rev2/ansi/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@ RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output
ENCODER_ENABLE = yes
RGB_MATRIX_ENABLE = yes
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = spi_flash
6 changes: 6 additions & 0 deletions keyboards/gmmk/pro/rev2/iso/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
"rows": ["B0", "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "B10"]
},
"diode_direction": "COL2ROW",
"eeprom": {
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash"
}
},
"encoder": {
"rotary": [
{"pin_a": "C15", "pin_b": "C14"}
Expand Down
2 changes: 0 additions & 2 deletions keyboards/gmmk/pro/rev2/iso/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output
ENCODER_ENABLE = yes
RGB_MATRIX_ENABLE = yes
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = spi_flash
6 changes: 6 additions & 0 deletions keyboards/hfdkb/ac001/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
"rows": ["B15"]
},
"diode_direction": "ROW2COL",
"eeprom": {
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash"
}
},
"ws2812": {
"pin": "A1"
},
Expand Down
2 changes: 0 additions & 2 deletions keyboards/hfdkb/ac001/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ NKRO_ENABLE = yes # Enable N-Key Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
RGB_MATRIX_ENABLE = yes
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = spi_flash
6 changes: 6 additions & 0 deletions keyboards/horrortroll/handwired_k552/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
"rows": ["C12", "C10", "A10", "A8", "C8", "C9"]
},
"diode_direction": "ROW2COL",
"eeprom": {
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash"
}
},
"community_layouts": ["tkl_ansi"],
"layouts": {
"LAYOUT_tkl_ansi": {
Expand Down
4 changes: 0 additions & 4 deletions keyboards/horrortroll/handwired_k552/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,3 @@ RGB_MATRIX_ENABLE = yes
# OLED enabled
OLED_ENABLE = yes
WPM_ENABLE = yes

# Wear-levelling driver
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = spi_flash
6 changes: 6 additions & 0 deletions keyboards/inland/kb83/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
"rows": ["B15", "C6", "C7", "C8", "C9", "A8"]
},
"diode_direction": "ROW2COL",
"eeprom": {
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash"
}
},
"encoder": {
"rotary": [
{"pin_a": "B14", "pin_b": "B13", "resolution": 4}
Expand Down
2 changes: 0 additions & 2 deletions keyboards/inland/kb83/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,4 @@ AUDIO_ENABLE = no # Audio output
DIP_SWITCH_ENABLE = yes # DPI Switch
ENCODER_ENABLE = yes
RGB_MATRIX_ENABLE = yes
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = spi_flash
#RGB_MATRIX_CUSTOM_USER = yes #Add turnoff LED
8 changes: 7 additions & 1 deletion keyboards/inland/mk47/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@
"cols": ["C1","C2","C3","A0","A1","A2","A3","A4","A5","A6","A7","C4"],
"rows": ["C6", "C7", "C8", "C9"]
},
"diode_direction": "ROW2COL",
"eeprom": {
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash"
}
},
"rgb_matrix": {
"driver": "is31fl3733",
"max_brightness": 200,
Expand Down Expand Up @@ -99,7 +106,6 @@
{ "flags": 4, "matrix": [3, 11], "x": 224, "y": 64}
]
},
"diode_direction": "ROW2COL",
"layouts": {
"LAYOUT": {
"layout": [
Expand Down
3 changes: 1 addition & 2 deletions keyboards/inland/mk47/rules.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = spi_flash
# This file intentionally left blank
6 changes: 6 additions & 0 deletions keyboards/monsgeek/m1/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
"rows": ["B15", "C6", "C7", "C8", "C9", "A8"]
},
"diode_direction": "ROW2COL",
"eeprom": {
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash"
}
},
"encoder": {
"rotary": [
{"pin_a": "B14", "pin_b": "B13"}
Expand Down
7 changes: 1 addition & 6 deletions keyboards/monsgeek/m1/rules.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
# Build Options
# change yes to no to disable
#
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = spi_flash

# This file intentionally left blank
6 changes: 6 additions & 0 deletions keyboards/monsgeek/m5/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
"rows": ["B15", "C6", "C7", "C8", "C9", "A8"]
},
"diode_direction": "ROW2COL",
"eeprom": {
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash"
}
},
"indicators": {
"num_lock":"A15",
"caps_lock": "C10"
Expand Down
3 changes: 1 addition & 2 deletions keyboards/monsgeek/m5/rules.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = spi_flash
# This file intentionally left blank
6 changes: 6 additions & 0 deletions keyboards/monsgeek/m6/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
"rows": ["C6", "C7", "C8", "C9", "A8"]
},
"diode_direction": "ROW2COL",
"eeprom": {
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash"
}
},
"rgb_matrix": {
"driver": "is31fl3733",
"max_brightness": 200,
Expand Down
3 changes: 1 addition & 2 deletions keyboards/monsgeek/m6/rules.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = spi_flash
# This file intentionally left blank
6 changes: 6 additions & 0 deletions keyboards/projectd/65/projectd_65_ansi/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
"dynamic_keymap": {
"layer_count": 13
},
"eeprom": {
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash"
}
},
"features": {
"bootmagic": true,
"command": false,
Expand Down
3 changes: 1 addition & 2 deletions keyboards/projectd/65/projectd_65_ansi/rules.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = spi_flash
# This file intentionally left blank

0 comments on commit f0714de

Please sign in to comment.