Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate some EEPROM config to info.json #22434

Merged
merged 1 commit into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions keyboards/acheron/themis/87h/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define WS2812_PWM_PAL_MODE 1
#define WS2812_DMA_STREAM STM32_DMA2_STREAM5
#define WS2812_DMA_CHANNEL 6

#define WEAR_LEVELING_LOGICAL_SIZE 4096
#define WEAR_LEVELING_BACKING_SIZE 8192
5 changes: 5 additions & 0 deletions keyboards/acheron/themis/87h/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
"nkro": true
},
"diode_direction": "COL2ROW",
"eeprom": {
"wear_leveling": {
"backing_size": 8192
}
},
"ws2812": {
"pin": "B15"
},
Expand Down
3 changes: 0 additions & 3 deletions keyboards/acheron/themis/87htsc/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define WS2812_PWM_PAL_MODE 1
#define WS2812_DMA_STREAM STM32_DMA2_STREAM5
#define WS2812_DMA_CHANNEL 6

#define WEAR_LEVELING_LOGICAL_SIZE 4096
#define WEAR_LEVELING_BACKING_SIZE 8192
5 changes: 5 additions & 0 deletions keyboards/acheron/themis/87htsc/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
"nkro": true
},
"diode_direction": "COL2ROW",
"eeprom": {
"wear_leveling": {
"backing_size": 8192
}
},
"ws2812": {
"pin": "B15"
},
Expand Down
3 changes: 0 additions & 3 deletions keyboards/acheron/themis/88htsc/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define WS2812_PWM_PAL_MODE 1
#define WS2812_DMA_STREAM STM32_DMA2_STREAM5
#define WS2812_DMA_CHANNEL 6

#define WEAR_LEVELING_LOGICAL_SIZE 4096
#define WEAR_LEVELING_BACKING_SIZE 8192
5 changes: 5 additions & 0 deletions keyboards/acheron/themis/88htsc/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
"nkro": true
},
"diode_direction": "COL2ROW",
"eeprom": {
"wear_leveling": {
"backing_size": 8192
}
},
"ws2812": {
"pin": "B15"
},
Expand Down
1 change: 0 additions & 1 deletion keyboards/akko/5087/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#define SPI_MOSI_PAL_MODE 5

#define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN C12
#define WEAR_LEVELING_BACKING_SIZE (8 * 1024)

/* I2C Config for LED Driver */
#define DRIVER_COUNT 2
Expand Down
7 changes: 7 additions & 0 deletions keyboards/akko/5087/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
"rows": ["B15", "C6", "C7", "C8", "C9", "A8"]
},
"diode_direction": "ROW2COL",
"eeprom": {
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash",
"backing_size": 8192
}
},
"indicators": {
"caps_lock": "A15"
},
Expand Down
4 changes: 1 addition & 3 deletions keyboards/akko/5087/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
1 change: 0 additions & 1 deletion keyboards/darkproject/kd87a_bfg_edition/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

/* External spi flash */
#define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN B14
#define WEAR_LEVELING_BACKING_SIZE (8 * 1024)

/* SPI Config for LED Driver */
#define SPI_DRIVER SPIDQ
Expand Down
10 changes: 7 additions & 3 deletions keyboards/darkproject/kd87a_bfg_edition/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
"matrix": [1, 3]
},
"diode_direction": "COL2ROW",
"eeprom": {
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash",
"backing_size": 8192
}
},
"features": {
"bootmagic": true,
"extrakey": true,
Expand Down Expand Up @@ -174,9 +181,6 @@
"pid": "0xE393",
"vid": "0x342D"
},
"eeprom": {
"driver": "wear_leveling"
},
"community_layouts": ["tkl_ansi"],
"layouts": {
"LAYOUT_tkl_ansi": {
Expand Down
2 changes: 1 addition & 1 deletion keyboards/darkproject/kd87a_bfg_edition/rules.mk
Original file line number Diff line number Diff line change
@@ -1 +1 @@
WEAR_LEVELING_DRIVER = spi_flash
# This file intentionally left blank
1 change: 0 additions & 1 deletion keyboards/inland/v83p/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#define SPI_MOSI_PAL_MODE 5

#define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN C12
#define WEAR_LEVELING_BACKING_SIZE (4 * 1024)

#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
#define RGB_MATRIX_KEYPRESSES
Expand Down
7 changes: 7 additions & 0 deletions keyboards/inland/v83p/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
"suspend_wakeup_delay": 1000
},
"diode_direction": "ROW2COL",
"eeprom": {
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash",
"backing_size": 4096
}
},
"features": {
"bootmagic": true,
"command": false,
Expand Down
3 changes: 1 addition & 2 deletions keyboards/inland/v83p/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
1 change: 0 additions & 1 deletion keyboards/jukaie/jk01/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

/* External spi flash */
#define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN B14
#define WEAR_LEVELING_BACKING_SIZE (8 * 1024)

/* SPI Config for LED Driver */
#define SPI_DRIVER SPIDQ
Expand Down
10 changes: 7 additions & 3 deletions keyboards/jukaie/jk01/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
"matrix": [1, 3]
},
"diode_direction": "COL2ROW",
"eeprom": {
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash",
"backing_size": 8192
}
},
"encoder": {
"rotary": [
{"pin_a": "C2", "pin_b": "C3"}
Expand Down Expand Up @@ -175,9 +182,6 @@
"pid": "0x0002",
"vid": "0x4141"
},
"eeprom": {
"driver": "wear_leveling"
},
"layouts": {
"LAYOUT": {
"layout": [
Expand Down
2 changes: 1 addition & 1 deletion keyboards/jukaie/jk01/rules.mk
Original file line number Diff line number Diff line change
@@ -1 +1 @@
WEAR_LEVELING_DRIVER = spi_flash
# This file intentionally left blank
1 change: 0 additions & 1 deletion keyboards/monsgeek/m3/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#define SPI_MOSI_PAL_MODE 5

#define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN C12
#define WEAR_LEVELING_BACKING_SIZE (8 * 1024)

/* I2C Config for LED Driver */
#define SNLED27351_DRIVER_COUNT 2
Expand Down
7 changes: 7 additions & 0 deletions keyboards/monsgeek/m3/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
},
"processor": "WB32FQ95",
"bootloader": "wb32-dfu",
"eeprom": {
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash",
"backing_size": 8192
}
},
"features": {
"bootmagic": true,
"extrakey": true,
Expand Down
3 changes: 1 addition & 2 deletions keyboards/monsgeek/m3/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
1 change: 0 additions & 1 deletion keyboards/phentech/rpk_001/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

/* SPI Flash */
#define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN C12
#define WEAR_LEVELING_BACKING_SIZE (4 * 1024)

/* RGB Matrix */
#define RGB_DISABLE_WHEN_USB_SUSPENDED
Expand Down
7 changes: 7 additions & 0 deletions keyboards/phentech/rpk_001/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
"suspend_wakeup_delay": 1000
},
"diode_direction": "ROW2COL",
"eeprom": {
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash",
"backing_size": 4096
}
},
"features": {
"nkro": true,
"encoder": true,
Expand Down
2 changes: 1 addition & 1 deletion keyboards/phentech/rpk_001/rules.mk
Original file line number Diff line number Diff line change
@@ -1 +1 @@
WEAR_LEVELING_DRIVER = spi_flash
# This file intentionally left blank
1 change: 0 additions & 1 deletion keyboards/projectd/75/ansi/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

/* External spi flash */
#define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN B14
#define WEAR_LEVELING_BACKING_SIZE (4 * 1024)

/* SPI Config for LED Driver */
#define SPI_DRIVER SPIDQ
Expand Down
10 changes: 7 additions & 3 deletions keyboards/projectd/75/ansi/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
"bootmagic": {
"matrix": [1, 3]
},
"eeprom": {
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash",
"backing_size": 4096
}
},
"diode_direction": "COL2ROW",
"dynamic_keymap": {
"layer_count": 10
Expand Down Expand Up @@ -176,9 +183,6 @@
"pid": "0x000F",
"vid": "0x3233"
},
"eeprom": {
"driver": "wear_leveling"
},
"layouts": {
"LAYOUT": {
"layout": [
Expand Down
2 changes: 1 addition & 1 deletion keyboards/projectd/75/ansi/rules.mk
Original file line number Diff line number Diff line change
@@ -1 +1 @@
WEAR_LEVELING_DRIVER = spi_flash
# This file intentionally left blank
3 changes: 3 additions & 0 deletions keyboards/vinhcatba/uncertainty/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"maintainer": "vinhcatba",
"development_board": "blackpill_f401",
"diode_direction": "COL2ROW",
"eeprom": {
"driver": "i2c"
},
"encoder": {
"rotary": [
{"pin_a": "A13", "pin_b": "A14"}
Expand Down
2 changes: 0 additions & 2 deletions keyboards/vinhcatba/uncertainty/rules.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
SRC += bongo.c
# using external i2c eeprom
EEPROM_DRIVER = i2c