From 909054c35772ae62d6d2de0cefd1bef18762e754 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Tue, 12 Sep 2023 06:47:12 +0100 Subject: Migrate spi_flash WEAR_LEVELING_DRIVER to info.json (#21978) --- keyboards/inland/mk47/info.json | 8 +++++++- keyboards/inland/mk47/rules.mk | 3 +-- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'keyboards/inland/mk47') diff --git a/keyboards/inland/mk47/info.json b/keyboards/inland/mk47/info.json index 184527e0de..3c4818cf7b 100644 --- a/keyboards/inland/mk47/info.json +++ b/keyboards/inland/mk47/info.json @@ -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, @@ -99,7 +106,6 @@ { "flags": 4, "matrix": [3, 11], "x": 224, "y": 64} ] }, - "diode_direction": "ROW2COL", "layouts": { "LAYOUT": { "layout": [ diff --git a/keyboards/inland/mk47/rules.mk b/keyboards/inland/mk47/rules.mk index 24d5f6f52e..6e7633bfe0 100644 --- a/keyboards/inland/mk47/rules.mk +++ b/keyboards/inland/mk47/rules.mk @@ -1,2 +1 @@ -EEPROM_DRIVER = wear_leveling -WEAR_LEVELING_DRIVER = spi_flash +# This file intentionally left blank -- cgit v1.2.3 From 1cbb5ae99e33e450e324919d47c5a3c6546c481e Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 13 Sep 2023 22:52:16 +1000 Subject: is31fl3733: driver naming cleanups (#21905) --- keyboards/inland/mk47/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'keyboards/inland/mk47') diff --git a/keyboards/inland/mk47/config.h b/keyboards/inland/mk47/config.h index 678686555a..7004b38e63 100644 --- a/keyboards/inland/mk47/config.h +++ b/keyboards/inland/mk47/config.h @@ -26,7 +26,7 @@ #define WEAR_LEVELING_BACKING_SIZE (4 * 1024) /* I2C Config for LED Driver */ -#define DRIVER_COUNT 1 +#define IS31FL3733_DRIVER_COUNT 1 #define DRIVER_ADDR_1 0b1110100 /* WB32 MCU has no default definition */ #define I2C1_OPMODE OPMODE_I2C -- cgit v1.2.3 From 00feff656f80d9c9bf57cb1c6ad94ef2f69f1440 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Thu, 14 Sep 2023 00:13:19 +0100 Subject: Migrate WEAR_LEVELING_*_SIZE to info.json (#22010) --- keyboards/inland/mk47/config.h | 1 - keyboards/inland/mk47/info.json | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'keyboards/inland/mk47') diff --git a/keyboards/inland/mk47/config.h b/keyboards/inland/mk47/config.h index 7004b38e63..db9aea328f 100644 --- a/keyboards/inland/mk47/config.h +++ b/keyboards/inland/mk47/config.h @@ -23,7 +23,6 @@ #define SPI_MISO_PIN B4 #define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN C12 -#define WEAR_LEVELING_BACKING_SIZE (4 * 1024) /* I2C Config for LED Driver */ #define IS31FL3733_DRIVER_COUNT 1 diff --git a/keyboards/inland/mk47/info.json b/keyboards/inland/mk47/info.json index 2ed18eac3b..7d94365724 100644 --- a/keyboards/inland/mk47/info.json +++ b/keyboards/inland/mk47/info.json @@ -29,7 +29,8 @@ "eeprom": { "driver": "wear_leveling", "wear_leveling": { - "driver": "spi_flash" + "driver": "spi_flash", + "backing_size": 4096 } }, "rgb_matrix": { -- cgit v1.2.3 From c0f16be50fec33cdb30386ac512efb900f3f7470 Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 4 Oct 2023 20:10:05 +1100 Subject: Rename CKLED2001 driver to SNLED27351 (#22071) --- keyboards/inland/mk47/config.h | 5 +++-- keyboards/inland/mk47/info.json | 2 +- keyboards/inland/mk47/mk47.c | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) (limited to 'keyboards/inland/mk47') diff --git a/keyboards/inland/mk47/config.h b/keyboards/inland/mk47/config.h index db9aea328f..7e0115f7f0 100644 --- a/keyboards/inland/mk47/config.h +++ b/keyboards/inland/mk47/config.h @@ -25,8 +25,9 @@ #define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN C12 /* I2C Config for LED Driver */ -#define IS31FL3733_DRIVER_COUNT 1 -#define DRIVER_ADDR_1 0b1110100 +#define SNLED27351_DRIVER_COUNT 1 +#define DRIVER_ADDR_1 SNLED27351_I2C_ADDRESS_GND + /* WB32 MCU has no default definition */ #define I2C1_OPMODE OPMODE_I2C #define I2C1_CLOCK_SPEED 400000 diff --git a/keyboards/inland/mk47/info.json b/keyboards/inland/mk47/info.json index 7d94365724..e647723ed8 100644 --- a/keyboards/inland/mk47/info.json +++ b/keyboards/inland/mk47/info.json @@ -34,7 +34,7 @@ } }, "rgb_matrix": { - "driver": "is31fl3733", + "driver": "snled27351", "max_brightness": 200, "animations": { "breathing": true, diff --git a/keyboards/inland/mk47/mk47.c b/keyboards/inland/mk47/mk47.c index f247855944..5a34527c6c 100644 --- a/keyboards/inland/mk47/mk47.c +++ b/keyboards/inland/mk47/mk47.c @@ -16,8 +16,8 @@ #include "quantum.h" #ifdef RGB_MATRIX_ENABLE -const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = { -/* Refer to IS31 manual for these locations +const snled27351_led_t PROGMEM g_snled27351_leds[RGB_MATRIX_LED_COUNT] = { +/* Refer to SNLED27351 manual for these locations * driver * | R location * | | G location -- cgit v1.2.3 From d56ee70c524b4fc4d1638e5e8c4bdeb89e752993 Mon Sep 17 00:00:00 2001 From: Ryan Date: Sat, 21 Oct 2023 21:41:59 +1000 Subject: Rename `DRIVER_ADDR_n` defines (#22200) Co-authored-by: Nick Brassel --- keyboards/inland/mk47/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'keyboards/inland/mk47') diff --git a/keyboards/inland/mk47/config.h b/keyboards/inland/mk47/config.h index 7e0115f7f0..e163747e31 100644 --- a/keyboards/inland/mk47/config.h +++ b/keyboards/inland/mk47/config.h @@ -26,7 +26,7 @@ /* I2C Config for LED Driver */ #define SNLED27351_DRIVER_COUNT 1 -#define DRIVER_ADDR_1 SNLED27351_I2C_ADDRESS_GND +#define SNLED27351_I2C_ADDRESS_1 SNLED27351_I2C_ADDRESS_GND /* WB32 MCU has no default definition */ #define I2C1_OPMODE OPMODE_I2C -- cgit v1.2.3 From b35bac6afbadc88cf6e8e3d1c8cc7494a510bb60 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Wed, 22 Nov 2023 21:37:32 +0000 Subject: Remove unnecessary driver counts (#22435) --- keyboards/inland/mk47/config.h | 1 - 1 file changed, 1 deletion(-) (limited to 'keyboards/inland/mk47') diff --git a/keyboards/inland/mk47/config.h b/keyboards/inland/mk47/config.h index e163747e31..e5026bd0e7 100644 --- a/keyboards/inland/mk47/config.h +++ b/keyboards/inland/mk47/config.h @@ -25,7 +25,6 @@ #define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN C12 /* I2C Config for LED Driver */ -#define SNLED27351_DRIVER_COUNT 1 #define SNLED27351_I2C_ADDRESS_1 SNLED27351_I2C_ADDRESS_GND /* WB32 MCU has no default definition */ -- cgit v1.2.3