Browse Source

Move backlight config to data driven (#19910)

Ryan 3 years ago
parent
commit
314f6c1ddb
100 changed files with 196 additions and 187 deletions
  1. 1 0
      data/mappings/info_config.hjson
  2. 1 0
      data/mappings/info_rules.hjson
  3. 6 1
      data/schemas/keyboard.jsonschema
  4. 0 4
      keyboards/0xcb/1337/config.h
  5. 5 0
      keyboards/0xcb/1337/info.json
  6. 0 4
      keyboards/1upkeyboards/1up60hse/config.h
  7. 5 0
      keyboards/1upkeyboards/1up60hse/info.json
  8. 0 2
      keyboards/1upkeyboards/1up60hte/config.h
  9. 3 0
      keyboards/1upkeyboards/1up60hte/info.json
  10. 0 5
      keyboards/1upkeyboards/1up60rgb/config.h
  11. 4 0
      keyboards/1upkeyboards/1up60rgb/info.json
  12. 0 4
      keyboards/25keys/aleth42/rev1/config.h
  13. 5 0
      keyboards/25keys/aleth42/rev1/info.json
  14. 0 2
      keyboards/40percentclub/gherkin/config.h
  15. 3 0
      keyboards/40percentclub/gherkin/info.json
  16. 0 5
      keyboards/40percentclub/luddite/config.h
  17. 4 0
      keyboards/40percentclub/luddite/info.json
  18. 0 3
      keyboards/40percentclub/mf68/config.h
  19. 4 0
      keyboards/40percentclub/mf68/info.json
  20. 0 2
      keyboards/40percentclub/nori/config.h
  21. 3 0
      keyboards/40percentclub/nori/info.json
  22. 0 22
      keyboards/40percentclub/sixpack/config.h
  23. 3 1
      keyboards/40percentclub/sixpack/info.json
  24. 0 4
      keyboards/4pplet/eagle_viper_rep/rev_a/config.h
  25. 5 0
      keyboards/4pplet/eagle_viper_rep/rev_a/info.json
  26. 0 1
      keyboards/4pplet/eagle_viper_rep/rev_a/rules.mk
  27. 0 4
      keyboards/4pplet/eagle_viper_rep/rev_b/config.h
  28. 5 0
      keyboards/4pplet/eagle_viper_rep/rev_b/info.json
  29. 0 2
      keyboards/8pack/config.h
  30. 2 1
      keyboards/8pack/info.json
  31. 0 3
      keyboards/abstract/ellipse/rev1/config.h
  32. 4 0
      keyboards/abstract/ellipse/rev1/info.json
  33. 0 3
      keyboards/acekeyboard/titan60/config.h
  34. 4 0
      keyboards/acekeyboard/titan60/info.json
  35. 0 3
      keyboards/acheron/athena/alpha/config.h
  36. 4 1
      keyboards/acheron/athena/alpha/info.json
  37. 0 1
      keyboards/acheron/athena/alpha/rules.mk
  38. 0 3
      keyboards/acheron/athena/beta/config.h
  39. 5 0
      keyboards/acheron/athena/beta/info.json
  40. 0 1
      keyboards/acheron/athena/beta/rules.mk
  41. 0 3
      keyboards/acheron/austin/config.h
  42. 5 0
      keyboards/acheron/austin/info.json
  43. 0 4
      keyboards/acheron/elongate/delta/config.h
  44. 3 0
      keyboards/acheron/elongate/delta/info.json
  45. 0 1
      keyboards/acheron/shark/alpha/config.h
  46. 3 0
      keyboards/acheron/shark/alpha/info.json
  47. 0 3
      keyboards/acheron/shark/beta/config.h
  48. 5 0
      keyboards/acheron/shark/beta/info.json
  49. 0 1
      keyboards/acheron/shark/beta/rules.mk
  50. 0 2
      keyboards/adelheid/config.h
  51. 3 0
      keyboards/adelheid/info.json
  52. 0 4
      keyboards/aeboards/ext65/rev2/config.h
  53. 5 0
      keyboards/aeboards/ext65/rev2/info.json
  54. 0 4
      keyboards/ai03/equinox/config.h
  55. 0 5
      keyboards/ai03/equinox/rev0/config.h
  56. 5 0
      keyboards/ai03/equinox/rev0/info.json
  57. 5 0
      keyboards/ai03/equinox/rev1/info.json
  58. 0 2
      keyboards/ai03/orbit/config.h
  59. 3 0
      keyboards/ai03/orbit/info.json
  60. 0 4
      keyboards/ai03/polaris/config.h
  61. 5 0
      keyboards/ai03/polaris/info.json
  62. 0 3
      keyboards/al1/config.h
  63. 4 0
      keyboards/al1/info.json
  64. 0 4
      keyboards/alf/dc60/config.h
  65. 5 0
      keyboards/alf/dc60/info.json
  66. 0 3
      keyboards/alf/x11/config.h
  67. 4 0
      keyboards/alf/x11/info.json
  68. 0 2
      keyboards/alf/x2/config.h
  69. 3 0
      keyboards/alf/x2/info.json
  70. 0 6
      keyboards/amjkeyboard/amj40/config.h
  71. 4 0
      keyboards/amjkeyboard/amj40/info.json
  72. 0 4
      keyboards/amjkeyboard/amj60/config.h
  73. 5 0
      keyboards/amjkeyboard/amj60/info.json
  74. 0 3
      keyboards/amjkeyboard/amj66/config.h
  75. 4 0
      keyboards/amjkeyboard/amj66/info.json
  76. 0 3
      keyboards/amjkeyboard/amj84/config.h
  77. 4 0
      keyboards/amjkeyboard/amj84/info.json
  78. 0 6
      keyboards/amjkeyboard/amjpad/config.h
  79. 4 0
      keyboards/amjkeyboard/amjpad/info.json
  80. 0 2
      keyboards/anavi/macropad8/config.h
  81. 8 4
      keyboards/anavi/macropad8/info.json
  82. 0 2
      keyboards/ares/config.h
  83. 3 0
      keyboards/ares/info.json
  84. 0 2
      keyboards/atomic/config.h
  85. 3 0
      keyboards/atomic/info.json
  86. 0 4
      keyboards/atxkb/1894/config.h
  87. 5 0
      keyboards/atxkb/1894/info.json
  88. 0 3
      keyboards/b_sides/rev41lp/config.h
  89. 2 0
      keyboards/b_sides/rev41lp/info.json
  90. 0 4
      keyboards/baguette/config.h
  91. 5 0
      keyboards/baguette/info.json
  92. 0 2
      keyboards/bear_face/config.h
  93. 3 0
      keyboards/bear_face/info.json
  94. 0 2
      keyboards/bfake/config.h
  95. 3 0
      keyboards/bfake/info.json
  96. 0 4
      keyboards/bioi/f60/config.h
  97. 5 0
      keyboards/bioi/f60/info.json
  98. 0 4
      keyboards/bioi/g60/config.h
  99. 4 0
      keyboards/bioi/g60/info.json
  100. 0 5
      keyboards/bioi/g60ble/config.h

+ 1 - 0
data/mappings/info_config.hjson

@@ -13,6 +13,7 @@
     "AUDIO_VOICES": {"info_key": "audio.voices", "value_type": "bool"},
     "BACKLIGHT_BREATHING": {"info_key": "backlight.breathing", "value_type": "bool"},
     "BREATHING_PERIOD": {"info_key": "backlight.breathing_period", "value_type": "int"},
+    "BACKLIGHT_CAPS_LOCK": {"info_key": "backlight.as_caps_lock", "value_type": "bool"},
     "BACKLIGHT_LEVELS": {"info_key": "backlight.levels", "value_type": "int"},
     "BACKLIGHT_LIMIT_VAL": {"info_key": "backlight.max_brightness", "value_type": "int"},
     "BACKLIGHT_ON_STATE": {"info_key": "backlight.on_state", "value_type": "int"},

+ 1 - 0
data/mappings/info_rules.hjson

@@ -14,6 +14,7 @@
     "BOOTLOADER": {"info_key": "bootloader", "warn_duplicate": false},
     "BOOTMAGIC_ENABLE": {"info_key": "bootmagic.enabled", "value_type": "bool"},
     "BLUETOOTH_DRIVER": {"info_key": "bluetooth.driver"},
+    "BACKLIGHT_DRIVER": {"info_key": "backlight.driver"},
     "CAPS_WORD_ENABLE": {"info_key": "caps_word.enabled", "value_type": "bool"},
     "DEBOUNCE_TYPE": {"info_key": "build.debounce_type"},
     "ENCODER_ENABLE": {"info_key": "encoder.enabled", "value_type": "bool"},

+ 6 - 1
data/schemas/keyboard.jsonschema

@@ -108,6 +108,10 @@
             "type": "object",
             "additionalProperties": false,
             "properties": {
+                "driver": {
+                    "type": "string",
+                    "enum": ["pwm", "software", "timer", "custom"]
+                },
                 "breathing": {"type": "boolean"},
                 "breathing_period": {"$ref": "qmk.definitions.v1#/unsigned_int_8"},
                 "levels": {
@@ -118,7 +122,8 @@
                 "max_brightness": {"$ref": "qmk.definitions.v1#/unsigned_int_8"},
                 "pin": {"$ref": "qmk.definitions.v1#/mcu_pin"},
                 "pins": {"$ref": "qmk.definitions.v1#/mcu_pin_array"},
-                "on_state": {"$ref": "qmk.definitions.v1#/bit"}
+                "on_state": {"$ref": "qmk.definitions.v1#/bit"},
+                "as_caps_lock": {"type": "boolean"}
             }
         },
         "bluetooth": {

+ 0 - 4
keyboards/0xcb/1337/config.h

@@ -23,10 +23,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define ENCODERS_PAD_A { F6 }
 #define ENCODERS_PAD_B { F5 }
 
-#define BACKLIGHT_PIN B5
-#define BACKLIGHT_BREATHING
-#define BACKLIGHT_LEVELS 7
-
 #define RGB_DI_PIN D3
 #ifdef RGB_DI_PIN
   #define RGBLED_NUM 4

+ 5 - 0
keyboards/0xcb/1337/info.json

@@ -8,6 +8,11 @@
     "pid": "0x1337",
     "device_version": "0.0.1"
   },
+  "backlight": {
+    "pin": "B5",
+    "levels": 7,
+    "breathing": true
+  },
   "qmk_lufa_bootloader": {
     "led": "B0"
   },

+ 0 - 4
keyboards/1upkeyboards/1up60hse/config.h

@@ -34,10 +34,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 /* COL2ROW, ROW2COL*/
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN B7
-#define BACKLIGHT_BREATHING
-#define BACKLIGHT_LEVELS 5
-
 #define RGB_DI_PIN F0
 #ifdef RGB_DI_PIN
 #define RGBLIGHT_EFFECT_BREATHING

+ 5 - 0
keyboards/1upkeyboards/1up60hse/info.json

@@ -8,6 +8,11 @@
         "pid": "0x6873",
         "device_version": "0.0.1"
     },
+    "backlight": {
+        "pin": "B7",
+        "levels": 5,
+        "breathing": true
+    },
     "processor": "atmega32u4",
     "bootloader": "atmel-dfu",
     "community_layouts": ["60_ansi"],

+ 0 - 2
keyboards/1upkeyboards/1up60hte/config.h

@@ -26,8 +26,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 /* COL2ROW or ROW2COL */
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN B7
-
 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
 #define LOCKING_SUPPORT_ENABLE
 

+ 3 - 0
keyboards/1upkeyboards/1up60hte/info.json

@@ -8,6 +8,9 @@
         "pid": "0x6874",
         "device_version": "0.0.1"
     },
+    "backlight": {
+        "pin": "B7"
+    },
     "indicators": {
         "caps_lock": "B6",
         "on_state": 0

+ 0 - 5
keyboards/1upkeyboards/1up60rgb/config.h

@@ -8,11 +8,6 @@
 /* COL2ROW or ROW2COL */
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN B6
-#ifdef BACKLIGHT_PIN
-#define BACKLIGHT_LEVELS 5
-#endif
-
 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
 #define LOCKING_SUPPORT_ENABLE
 

+ 4 - 0
keyboards/1upkeyboards/1up60rgb/info.json

@@ -8,6 +8,10 @@
     "pid": "0x7267",
     "device_version": "0.0.1"
   },
+  "backlight": {
+    "pin": "B6",
+    "levels": 5
+  },
   "processor": "atmega32u4",
   "bootloader": "atmel-dfu",
   "community_layouts": ["60_ansi", "60_iso", "60_ansi_split_bs_rshift", "60_hhkb"],

+ 0 - 4
keyboards/25keys/aleth42/rev1/config.h

@@ -28,10 +28,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define ENCODERS_PAD_A { B5, F5 }
 #define ENCODERS_PAD_B { B6, F6 }
 
-#define BACKLIGHT_PIN C6
-#define BACKLIGHT_BREATHING
-#define BACKLIGHT_LEVELS 8
-
 #define RGB_DI_PIN B3
 #ifdef RGB_DI_PIN
    #define RGBLED_NUM 8

+ 5 - 0
keyboards/25keys/aleth42/rev1/info.json

@@ -2,6 +2,11 @@
     "usb": {
         "device_version": "0.0.1"
     },
+    "backlight": {
+        "pin": "C6",
+        "levels": 8,
+        "breathing": true
+    },
     "processor": "atmega32u4",
     "bootloader": "atmel-dfu"
 }

+ 0 - 2
keyboards/40percentclub/gherkin/config.h

@@ -8,8 +8,6 @@
 /* COL2ROW or ROW2COL */
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN B5
-
 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
 #define LOCKING_SUPPORT_ENABLE
 

+ 3 - 0
keyboards/40percentclub/gherkin/info.json

@@ -8,6 +8,9 @@
     "pid": "0x6060",
     "device_version": "0.0.1"
   },
+  "backlight": {
+    "pin": "B5"
+  },
   "processor": "atmega32u4",
   "bootloader": "caterina",
   "community_layouts": ["ortho_3x10"],

+ 0 - 5
keyboards/40percentclub/luddite/config.h

@@ -7,11 +7,6 @@
 
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN B5
-#ifdef BACKLIGHT_PIN
-#define BACKLIGHT_LEVELS 4
-#endif
-
 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
 #define LOCKING_SUPPORT_ENABLE
 

+ 4 - 0
keyboards/40percentclub/luddite/info.json

@@ -8,6 +8,10 @@
     "pid": "0x4C55",
     "device_version": "10.0.1"
   },
+  "backlight": {
+    "pin": "B5",
+    "levels": 4
+  },
   "processor": "atmega32u4",
   "bootloader": "caterina",
   "community_layouts": ["60_ansi"],

+ 0 - 3
keyboards/40percentclub/mf68/config.h

@@ -34,9 +34,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 /* COL2ROW or ROW2COL */
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN B5
-#define BACKLIGHT_BREATHING
-
 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
 #define LOCKING_SUPPORT_ENABLE
 /* Locking resynchronize hack */

+ 4 - 0
keyboards/40percentclub/mf68/info.json

@@ -8,6 +8,10 @@
     "pid": "0x4D68",
     "device_version": "1.0.1"
   },
+  "backlight": {
+    "pin": "B5",
+    "breathing": true
+  },
   "processor": "atmega32u4",
   "bootloader": "caterina",
   "community_layouts": ["68_ansi"],

+ 0 - 2
keyboards/40percentclub/nori/config.h

@@ -33,8 +33,6 @@
 /* COL2ROW, ROW2COL*/
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN B5
-
 // enable RGB underglow
 #define RGB_DI_PIN B4
 #define RGBLIGHT_EFFECT_BREATHING

+ 3 - 0
keyboards/40percentclub/nori/info.json

@@ -8,6 +8,9 @@
       "pid": "0x0A0C",
       "device_version": "4.4.4"
     },
+    "backlight": {
+      "pin": "B5"
+    },
     "processor": "atmega32u4",
     "bootloader": "caterina",
     "community_layouts": ["ortho_4x4", "ortho_4x12"],

+ 0 - 22
keyboards/40percentclub/sixpack/config.h

@@ -1,22 +0,0 @@
-/*
-Copyright 2020
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#pragma once
-
-/* Backlight */
-#define BACKLIGHT_BREATHING
-#define BACKLIGHT_LEVELS 6

+ 3 - 1
keyboards/40percentclub/sixpack/info.json

@@ -9,7 +9,9 @@
       "device_version": "10.0.1"
     },
     "backlight": {
-      "pins": ["F4", "F5"]
+      "pins": ["F4", "F5"],
+      "levels": 6,
+      "breathing": true
     },
     "indicators": {
       "caps_lock": "B0",

+ 0 - 4
keyboards/4pplet/eagle_viper_rep/rev_a/config.h

@@ -20,13 +20,9 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define MATRIX_ROW_PINS { A2, A1, B8, A10, C15, A15, B7, B6, C14, C13}
 #define DIODE_DIRECTION COL2ROW
 
-/* In switch leds */
-#define BACKLIGHT_PIN           A3
 #define BACKLIGHT_PWM_DRIVER    PWMD2
 #define BACKLIGHT_PWM_CHANNEL   4
 #define BACKLIGHT_PAL_MODE      2
-#define BACKLIGHT_LEVELS        10
-#define BACKLIGHT_BREATHING     TRUE
 
 /* Underglow */
 #define RGB_DI_PIN  A7

+ 5 - 0
keyboards/4pplet/eagle_viper_rep/rev_a/info.json

@@ -8,6 +8,11 @@
         "pid": "0x0007",
         "device_version": "0.0.1"
     },
+    "backlight": {
+        "pin": "A3",
+        "levels": 10,
+        "breathing": true
+    },
     "processor": "STM32F072",
     "bootloader": "stm32-dfu",
     "layouts": {

+ 0 - 1
keyboards/4pplet/eagle_viper_rep/rev_a/rules.mk

@@ -8,7 +8,6 @@ CONSOLE_ENABLE = yes    # Console for debug
 COMMAND_ENABLE = yes    # Commands for debug and configuration
 NKRO_ENABLE = yes           # Enable N-Key Rollover
 BACKLIGHT_ENABLE = yes
-BACKLIGHT_DRIVER = pwm
 RGBLIGHT_ENABLE = yes
 WS2812_DRIVER = spi
 

+ 0 - 4
keyboards/4pplet/eagle_viper_rep/rev_b/config.h

@@ -20,13 +20,9 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define MATRIX_ROW_PINS { A2, A1, B8, A10, C15, A15, B7, B6, C14, C13}
 #define DIODE_DIRECTION COL2ROW
 
-/* In switch leds */
-#define BACKLIGHT_PIN           A6
 #define BACKLIGHT_PWM_DRIVER    PWMD3
 #define BACKLIGHT_PWM_CHANNEL   1
 #define BACKLIGHT_PAL_MODE      1
-#define BACKLIGHT_LEVELS        6
-#define BACKLIGHT_BREATHING
 
 /* Underglow */
 #define RGBLED_NUM 16

+ 5 - 0
keyboards/4pplet/eagle_viper_rep/rev_b/info.json

@@ -8,6 +8,11 @@
         "pid": "0x0010",
         "device_version": "0.0.2"
     },
+    "backlight": {
+        "pin": "A6",
+        "levels": 6,
+        "breathing": true
+    },
     "indicators": {
         "caps_lock": "B1",
         "num_lock": "B12",

+ 0 - 2
keyboards/8pack/config.h

@@ -6,8 +6,6 @@
 /* Locking resynchronize hack */
 #define LOCKING_RESYNC_ENABLE
 
-#define BACKLIGHT_LEVELS 8
-
 // ws2812 options
 #define RGB_DI_PIN D2 // pin the DI on the ws2812 is hooked-up to
 #define RGBLED_NUM 8 // number of LEDs

+ 2 - 1
keyboards/8pack/info.json

@@ -8,7 +8,8 @@
     "pid": "0x2171"
   },
   "backlight": {
-    "pins": ["D1", "D0", "D4", "C6", "D7", "E6", "B4", "B5"]
+    "pins": ["D1", "D0", "D4", "C6", "D7", "E6", "B4", "B5"],
+    "levels": 8
   },
   "processor": "atmega32u4",
   "bootloader": "caterina",

+ 0 - 3
keyboards/abstract/ellipse/rev1/config.h

@@ -34,9 +34,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 /* COL2ROW, ROW2COL */
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN C6
-#define BACKLIGHT_LEVELS 15
-
 #define RGB_DI_PIN E6
 #ifdef RGB_DI_PIN
    #define RGBLED_NUM 3

+ 4 - 0
keyboards/abstract/ellipse/rev1/info.json

@@ -8,6 +8,10 @@
         "pid": "0x0001",
         "device_version": "0.0.1"
     },
+    "backlight": {
+        "pin": "C6",
+        "levels": 15
+    },
     "processor": "atmega32u4",
     "bootloader": "atmel-dfu",
     "layouts": {

+ 0 - 3
keyboards/acekeyboard/titan60/config.h

@@ -37,9 +37,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 /* COL2ROW, ROW2COL */
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN B7
-#define BACKLIGHT_BREATHING
-
 #define RGB_DI_PIN D0
 #ifdef RGB_DI_PIN
 #    define RGBLED_NUM 6

+ 4 - 0
keyboards/acekeyboard/titan60/info.json

@@ -8,6 +8,10 @@
         "pid": "0x5449",
         "device_version": "0.0.1"
     },
+    "backlight": {
+      "pin": "B7",
+      "breathing": true
+    },
     "processor": "atmega32u4",
     "bootloader": "atmel-dfu",
     "layouts": {

+ 0 - 3
keyboards/acheron/athena/alpha/config.h

@@ -26,12 +26,9 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define LOCKING_SUPPORT_ENABLE
 #define LOCKING_RESYNC_ENABLE
 
-#define BACKLIGHT_PIN           A6
 #define BACKLIGHT_PWM_DRIVER    PWMD3
 #define BACKLIGHT_PWM_CHANNEL   1
 #define BACKLIGHT_PAL_MODE      2
-#define BACKLIGHT_LEVELS 20
-#define BACKLIGHT_BREATHING
 
 #define RGB_DI_PIN B15
 #define RGBLED_NUM 34

+ 4 - 1
keyboards/acheron/athena/alpha/info.json

@@ -5,7 +5,10 @@
         "device_version": "0.0.1"
     },
     "backlight": {
-        "on_state": 0
+        "pin": "A6",
+        "levels": 20,
+        "on_state": 0,
+        "breathing": true
     },
     "indicators": {
         "caps_lock": "A10"

+ 0 - 1
keyboards/acheron/athena/alpha/rules.mk

@@ -8,7 +8,6 @@ CONSOLE_ENABLE = no        # Console for debug
 COMMAND_ENABLE = no        # Commands for debug and configuration
 NKRO_ENABLE = yes          # Enable N-Key Rollover
 BACKLIGHT_ENABLE = yes     # Enable keyboard backlight functionality
-BACKLIGHT_DRIVER = pwm
 RGBLIGHT_ENABLE = yes      # Enable keyboard RGB underglow
 AUDIO_ENABLE = no          # Audio output
 LTO_ENABLE = yes

+ 0 - 3
keyboards/acheron/athena/beta/config.h

@@ -26,12 +26,9 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define LOCKING_SUPPORT_ENABLE
 #define LOCKING_RESYNC_ENABLE
 
-#define BACKLIGHT_PIN           B0
 #define BACKLIGHT_PWM_DRIVER    PWMD3
 #define BACKLIGHT_PWM_CHANNEL   3
 #define BACKLIGHT_PAL_MODE      2
-#define BACKLIGHT_LEVELS 20
-#define BACKLIGHT_BREATHING
 
 #define RGB_DI_PIN B15
 #define RGBLED_NUM 34

+ 5 - 0
keyboards/acheron/athena/beta/info.json

@@ -4,6 +4,11 @@
         "pid": "0x6585",
         "device_version": "0.0.2"
     },
+    "backlight": {
+        "pin": "B0",
+        "levels": 20,
+        "breathing": true
+    },
     "indicators": {
         "caps_lock": "C8"
     },

+ 0 - 1
keyboards/acheron/athena/beta/rules.mk

@@ -8,7 +8,6 @@ CONSOLE_ENABLE = no        # Console for debug
 COMMAND_ENABLE = no        # Commands for debug and configuration
 NKRO_ENABLE = yes          # Enable N-Key Rollover
 BACKLIGHT_ENABLE = yes     # Enable keyboard backlight functionality
-BACKLIGHT_DRIVER = pwm
 RGBLIGHT_ENABLE = yes      # Enable keyboard RGB underglow
 AUDIO_ENABLE = no          # Audio output
 LTO_ENABLE = yes

+ 0 - 3
keyboards/acheron/austin/config.h

@@ -21,12 +21,9 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define MATRIX_ROW_PINS { C13, A4, A7, B0, B1, B2 }
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN           A6
 #define BACKLIGHT_PWM_DRIVER    PWMD3
 #define BACKLIGHT_PWM_CHANNEL   1
 #define BACKLIGHT_PAL_MODE      1
-#define BACKLIGHT_LEVELS 6
-#define BACKLIGHT_BREATHING
 
 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
 #define LOCKING_SUPPORT_ENABLE

+ 5 - 0
keyboards/acheron/austin/info.json

@@ -8,6 +8,11 @@
         "pid": "0x4175",
         "device_version": "0.0.1"
     },
+    "backlight": {
+        "pin": "A6",
+        "levels": 6,
+        "breathing": true
+    },
     "processor": "STM32F072",
     "bootloader": "stm32-dfu",
     "layouts": {

+ 0 - 4
keyboards/acheron/elongate/delta/config.h

@@ -23,13 +23,9 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN A6
 #define BACKLIGHT_PWM_DRIVER PWMD3
 #define BACKLIGHT_PWM_CHANNEL 1
 #define BACKLIGHT_PAL_MODE 1
-#define BACKLIGHT_BREATHING
-#define BACKLIGHT_LEVELS 20
-#define BACKLIGHT_DEFAULT_LEVEL	10
 
 #define RGB_DI_PIN B15
 #define RGBLED_NUM 16

+ 3 - 0
keyboards/acheron/elongate/delta/info.json

@@ -9,6 +9,9 @@
         "device_version": "0.0.2"
     },
     "backlight": {
+        "pin": "A6",
+        "levels": 20,
+        "breathing": true,
         "breathing_period": 3
     },
     "processor": "STM32F072",

+ 0 - 1
keyboards/acheron/shark/alpha/config.h

@@ -44,7 +44,6 @@ B0, which is unconnected on the PCB
 /* COL2ROW, ROW2COL*/
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN B0
 #define BACKLIGHT_PWM_DRIVER PWMD3
 #define BACKLIGHT_PWM_CHANNEL 3
 

+ 3 - 0
keyboards/acheron/shark/alpha/info.json

@@ -6,6 +6,9 @@
     "pid": "0x5368",
     "device_version": "0.0.1"
   },
+  "backlight": {
+    "pin": "B0"
+  },
   "processor": "STM32F303",
   "bootloader": "stm32-dfu",
   "board": "QMK_PROTON_C",

+ 0 - 3
keyboards/acheron/shark/beta/config.h

@@ -25,12 +25,9 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define LOCKING_SUPPORT_ENABLE
 #define LOCKING_RESYNC_ENABLE
 
-#define BACKLIGHT_PIN           A6
 #define BACKLIGHT_PWM_DRIVER    PWMD3
 #define BACKLIGHT_PWM_CHANNEL   1
 #define BACKLIGHT_PAL_MODE      2
-#define BACKLIGHT_LEVELS 20
-#define BACKLIGHT_BREATHING
 
 #define RGB_DI_PIN B15
 #define RGBLED_NUM 24

+ 5 - 0
keyboards/acheron/shark/beta/info.json

@@ -4,6 +4,11 @@
         "pid": "0x5369",
         "device_version": "0.0.2"
     },
+    "backlight": {
+        "pin": "A6",
+        "levels": 20,
+        "breathing": true
+    },
     "processor": "STM32F411",
     "bootloader": "stm32-dfu",
     "community_layouts": ["ortho_4x12"],

+ 0 - 1
keyboards/acheron/shark/beta/rules.mk

@@ -10,7 +10,6 @@ NKRO_ENABLE = yes           # Enable N-Key rollover
 BACKLIGHT_ENABLE = yes      # Enable keyboard backlight functionality
 RGBLIGHT_ENABLE = yes       # Enable keyboard RGB underglow
 AUDIO_ENABLE = no           # Audio output
-BACKLIGHT_DRIVER = pwm
 LTO_ENABLE = no
 ENCODER_ENABLE = yes
 

+ 0 - 2
keyboards/adelheid/config.h

@@ -34,8 +34,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 /* COL2ROW, ROW2COL*/
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN C6
-
 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
 #define LOCKING_SUPPORT_ENABLE
 /* Locking resynchronize hack */

+ 3 - 0
keyboards/adelheid/info.json

@@ -8,6 +8,9 @@
         "pid": "0xAD78",
         "device_version": "0.0.2"
     },
+    "backlight": {
+        "pin": "C6"
+    },
     "processor": "atmega32u4",
     "bootloader": "atmel-dfu",
     "layouts": {

+ 0 - 4
keyboards/aeboards/ext65/rev2/config.h

@@ -50,12 +50,8 @@
 #define I2C1_TIMINGR_SCLL   9U
 
 // LED defines
-#define BACKLIGHT_PIN           B5
 #define BACKLIGHT_PWM_DRIVER    PWMD3
 #define BACKLIGHT_PWM_CHANNEL   2
 #define BACKLIGHT_PAL_MODE      1
 
-#define BACKLIGHT_LEVELS 6
-#define BACKLIGHT_BREATHING
-
 #define SLEEP_LED_GPT_DRIVER GPTD1

+ 5 - 0
keyboards/aeboards/ext65/rev2/info.json

@@ -7,6 +7,11 @@
         "pid": "0xA652",
         "device_version": "0.0.1"
     },
+    "backlight": {
+        "pin": "B5",
+        "levels": 6,
+        "breathing": true
+    },
     "processor": "STM32F072",
     "bootloader": "stm32-dfu",
     "diode_direction": "COL2ROW",

+ 0 - 4
keyboards/ai03/equinox/config.h

@@ -34,10 +34,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 /* COL2ROW, ROW2COL*/
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN B7
-#define BACKLIGHT_BREATHING
-#define BACKLIGHT_LEVELS 5
-
 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
 #define LOCKING_SUPPORT_ENABLE
 /* Locking resynchronize hack */

+ 0 - 5
keyboards/ai03/equinox/rev0/config.h

@@ -20,8 +20,3 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 // Fix for prototype missing COL0, COL1, using backlight and RGB underglow I/O pins
 #undef MATRIX_COL_PINS
 #define MATRIX_COL_PINS { C4, B7, C6, C7, B6, B5, B4, B3, B2, B1, B0, D6 }
-
-// This directs backlight code to use a disconnected pin, so the firwmare still has
-// backlight code and VIA support even though it doesn't do anything.
-#undef BACKLIGHT_PIN
-#define BACKLIGHT_PIN D1

+ 5 - 0
keyboards/ai03/equinox/rev0/info.json

@@ -1,4 +1,9 @@
 {
+    "backlight": {
+        "pin": "D1",
+        "levels": 5,
+        "breathing": true
+    },
     "processor": "atmega32u2",
     "bootloader": "atmel-dfu"
 }

+ 5 - 0
keyboards/ai03/equinox/rev1/info.json

@@ -1,4 +1,9 @@
 {
+    "backlight": {
+        "pin": "B7",
+        "levels": 5,
+        "breathing": true
+    },
     "processor": "atmega32u2",
     "bootloader": "atmel-dfu"
 }

+ 0 - 2
keyboards/ai03/orbit/config.h

@@ -43,8 +43,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #define SPLIT_HAND_PIN D5
 
-#define BACKLIGHT_PIN B7
-
 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
 #define LOCKING_SUPPORT_ENABLE
 /* Locking resynchronize hack */

+ 3 - 0
keyboards/ai03/orbit/info.json

@@ -8,6 +8,9 @@
         "pid": "0x0003",
         "device_version": "0.0.3"
     },
+    "backlight": {
+        "pin": "B7"
+    },
     "split": {
         "soft_serial_pin": "D0"
     },

+ 0 - 4
keyboards/ai03/polaris/config.h

@@ -34,10 +34,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 /* COL2ROW, ROW2COL*/
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN B7
-#define BACKLIGHT_BREATHING
-#define BACKLIGHT_LEVELS 5
-
 #define RGB_DI_PIN D2
 #ifdef RGB_DI_PIN
   #define RGBLED_NUM 14

+ 5 - 0
keyboards/ai03/polaris/info.json

@@ -8,6 +8,11 @@
         "pid": "0x0002",
         "device_version": "0.0.1"
     },
+    "backlight": {
+        "pin": "B7",
+        "levels": 5,
+        "breathing": true
+    },
     "processor": "atmega32u4",
     "bootloader": "atmel-dfu",
     "community_layouts": ["60_ansi", "60_ansi_split_bs_rshift", "60_tsangan_hhkb"],

+ 0 - 3
keyboards/al1/config.h

@@ -27,9 +27,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define SN74X154_ADDRESS_PINS { D4, D5, D6, D7 }
 #define SN74X154_E1_PIN D3
 
-#define BACKLIGHT_PIN B6
-#define BACKLIGHT_BREATHING
-
 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
 #define LOCKING_SUPPORT_ENABLE
 /* Locking resynchronize hack */

+ 4 - 0
keyboards/al1/info.json

@@ -8,6 +8,10 @@
         "pid": "0x6050",
         "device_version": "1.0.4"
     },
+    "backlight": {
+        "pin": "B6",
+        "breathing": true
+    },
     "indicators": {
         "caps_lock": "B7",
         "num_lock": "D0",

+ 0 - 4
keyboards/alf/dc60/config.h

@@ -34,10 +34,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 /* COL2ROW, ROW2COL*/
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN B6
-#define BACKLIGHT_BREATHING
-#define BACKLIGHT_LEVELS 5
-
 #define RGB_DI_PIN E6
 #ifdef RGB_DI_PIN
 #define RGBLIGHT_EFFECT_BREATHING

+ 5 - 0
keyboards/alf/dc60/info.json

@@ -7,6 +7,11 @@
         "pid": "0x0000",
         "device_version": "0.0.1"
     },
+    "backlight": {
+        "pin": "B6",
+        "levels": 5,
+        "breathing": true
+    },
     "indicators": {
         "caps_lock": "B7",
         "on_state": 0

+ 0 - 3
keyboards/alf/x11/config.h

@@ -34,9 +34,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 /* COL2ROW, ROW2COL*/
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN B7
-#define BACKLIGHT_BREATHING
-
 #define RGB_DI_PIN F7
 #ifdef RGB_DI_PIN
   #define RGBLED_NUM 28

+ 4 - 0
keyboards/alf/x11/info.json

@@ -8,6 +8,10 @@
     "pid": "0x0001",
     "device_version": "0.0.1"
   },
+  "backlight": {
+    "pin": "B7",
+    "breathing": true
+  },
   "indicators": {
     "caps_lock": "C6",
     "num_lock": "E6",

+ 0 - 2
keyboards/alf/x2/config.h

@@ -26,8 +26,6 @@
 /* COL2ROW or ROW2COL */
 #define DIODE_DIRECTION   COL2ROW
 
-#define BACKLIGHT_PIN     B6
-
 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
 #define LOCKING_SUPPORT_ENABLE
 

+ 3 - 0
keyboards/alf/x2/info.json

@@ -12,6 +12,9 @@
         "caps_lock": "B2",
         "on_state": 0
     },
+    "backlight": {
+        "pin": "B6"
+    },
     "processor": "atmega32u4",
     "bootloader": "atmel-dfu",
     "layouts": {

+ 0 - 6
keyboards/amjkeyboard/amj40/config.h

@@ -23,8 +23,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define MATRIX_ROW_PINS { F4, F5, F6, F7}
 #define MATRIX_COL_PINS { F1, F0, E6, C7, C6, B0, D4, B1, B7, B5, B4, D7}
 
-#define BACKLIGHT_PIN B6
-
 /* COL2ROW or ROW2COL */
 #define DIODE_DIRECTION COL2ROW
 
@@ -33,10 +31,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 /* Locking resynchronize hack */
 #define LOCKING_RESYNC_ENABLE
 
-/* Backlight configuration
- */
-#define BACKLIGHT_LEVELS 4
-
 /* Underlight configuration
  */
 

+ 4 - 0
keyboards/amjkeyboard/amj40/info.json

@@ -8,6 +8,10 @@
         "pid": "0x6072",
         "device_version": "0.0.2"
     },
+    "backlight": {
+        "pin": "B6",
+        "levels": 4
+    },
     "indicators": {
         "caps_lock": "B2",
         "on_state": 0

+ 0 - 4
keyboards/amjkeyboard/amj60/config.h

@@ -34,10 +34,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 /* COL2ROW, ROW2COL */
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN B6
-#define BACKLIGHT_LEVELS 4
-#define BACKLIGHT_BREATHING
-
 #define RGB_DI_PIN E2
 #ifdef RGB_DI_PIN
 #    define RGBLED_NUM 8

+ 5 - 0
keyboards/amjkeyboard/amj60/info.json

@@ -8,6 +8,11 @@
         "pid": "0x6066",
         "device_version": "0.0.1"
     },
+    "backlight": {
+        "pin": "B6",
+        "levels": 4,
+        "breathing": true
+    },
     "indicators": {
         "caps_lock": "B2",
         "on_state": 0

+ 0 - 3
keyboards/amjkeyboard/amj66/config.h

@@ -25,9 +25,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 /* COL2ROW, ROW2COL*/
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN D4
-#define BACKLIGHT_BREATHING
-
 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
 #define LOCKING_SUPPORT_ENABLE
 

+ 4 - 0
keyboards/amjkeyboard/amj66/info.json

@@ -8,6 +8,10 @@
         "pid": "0xBD66",
         "device_version": "0.0.1"
     },
+    "backlight": {
+        "pin": "D4",
+        "breathing": true
+    },
     "processor": "atmega32u4",
     "bootloader": "atmel-dfu",
     "community_layouts": ["66_ansi", "66_iso"],

+ 0 - 3
keyboards/amjkeyboard/amj84/config.h

@@ -20,9 +20,6 @@
 /* COL2ROW, ROW2COL */
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN B6
-#define BACKLIGHT_BREATHING
-
 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
 #define LOCKING_SUPPORT_ENABLE
 /* Locking resynchronize hack */

+ 4 - 0
keyboards/amjkeyboard/amj84/info.json

@@ -8,6 +8,10 @@
         "pid": "0x6068",
         "device_version": "0.0.1"
     },
+    "backlight": {
+        "pin": "B6",
+        "breathing": true
+    },
     "processor": "atmega32u4",
     "bootloader": "atmel-dfu",
     "layouts": {

+ 0 - 6
keyboards/amjkeyboard/amjpad/config.h

@@ -23,8 +23,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define MATRIX_ROW_PINS { F7, F6, F5, F4, D5, D0 }
 #define MATRIX_COL_PINS { F1, F0, E6, C7 }
 
-#define BACKLIGHT_PIN B6
-
 /* COL2ROW or ROW2COL */
 #define DIODE_DIRECTION COL2ROW
 
@@ -33,10 +31,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 /* Locking resynchronize hack */
 #define LOCKING_RESYNC_ENABLE
 
-/* Backlight configuration
- */
-#define BACKLIGHT_LEVELS 4
-
 /* Underlight configuration
  */
 

+ 4 - 0
keyboards/amjkeyboard/amjpad/info.json

@@ -8,6 +8,10 @@
     "pid": "0x6060",
     "device_version": "0.0.3"
   },
+  "backlight": {
+    "pin": "B6",
+    "levels": 4
+  },
   "indicators": {
     "num_lock": "D6",
     "on_state": 0

+ 0 - 2
keyboards/anavi/macropad8/config.h

@@ -17,8 +17,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-#define BACKLIGHT_PIN D7
-#define BACKLIGHT_BREATHING
 #define RGBLIGHT_SLEEP
 
 

+ 8 - 4
keyboards/anavi/macropad8/info.json

@@ -4,10 +4,14 @@
   "url": "",
   "maintainer": "leon-anavi",
   "usb": {
-        "vid": "0xCEEB",
-        "pid": "0x0001",
-        "device_version": "0.0.1"
-    },
+      "vid": "0xCEEB",
+      "pid": "0x0001",
+      "device_version": "0.0.1"
+  },
+  "backlight": {
+    "pin": "D7",
+    "breathing": true
+  },
   "processor": "atmega32u4",
   "bootloader": "caterina",
   "matrix_pins": {

+ 0 - 2
keyboards/ares/config.h

@@ -25,8 +25,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN D4
-
 #define RGBLIGHT_EFFECT_BREATHING
 #define RGBLIGHT_EFFECT_RAINBOW_MOOD
 #define RGBLIGHT_EFFECT_RAINBOW_SWIRL

+ 3 - 0
keyboards/ares/info.json

@@ -8,6 +8,9 @@
         "pid": "0x422D",
         "device_version": "2.0.0"
     },
+    "backlight": {
+        "pin": "D4"
+    },
     "indicators": {
         "caps_lock": "D1"
     },

+ 0 - 2
keyboards/atomic/config.h

@@ -31,8 +31,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define MATRIX_ROW_PINS { D0, D5, B5, B6, C6 }
 #define MATRIX_COL_PINS { F1, F0, B0, C7, F4, F5, F6, F7, D4, D6, B4, D7, D3, D2, D1 }
 
-#define BACKLIGHT_PIN B7
-
 /* COL2ROW or ROW2COL */
 #define DIODE_DIRECTION COL2ROW
 

+ 3 - 0
keyboards/atomic/info.json

@@ -7,6 +7,9 @@
         "pid": "0x6060",
         "device_version": "0.0.1"
     },
+    "backlight": {
+        "pin": "B7"
+    },
     "processor": "atmega32u4",
     "bootloader": "atmel-dfu",
     "layout_aliases": {

+ 0 - 4
keyboards/atxkb/1894/config.h

@@ -34,10 +34,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 /* COL2ROW, ROW2COL*/
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN B7
-#define BACKLIGHT_BREATHING
-#define BACKLIGHT_LEVELS 5
-
 #define RGB_DI_PIN D2
 #ifdef RGB_DI_PIN
   #define RGBLED_NUM 14

+ 5 - 0
keyboards/atxkb/1894/info.json

@@ -8,6 +8,11 @@
         "pid": "0x0001",
         "device_version": "0.0.1"
     },
+    "backlight": {
+        "pin": "B7",
+        "levels": 5,
+        "breathing": true
+    },
     "processor": "atmega32u4",
     "bootloader": "atmel-dfu",
     "community_layouts": ["60_ansi", "60_ansi_split_bs_rshift", "60_tsangan_hhkb"],

+ 0 - 3
keyboards/b_sides/rev41lp/config.h

@@ -22,6 +22,3 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define MATRIX_COL_PINS { D4, C6, D7, E6, B4, B5 }
 
 #define DIODE_DIRECTION COL2ROW
-
-#define BACKLIGHT_PIN B6
-#define BACKLIGHT_LEVELS 7

+ 2 - 0
keyboards/b_sides/rev41lp/info.json

@@ -9,6 +9,8 @@
         "device_version": "0.0.1"
     },
     "backlight": {
+        "pin": "B6",
+        "levels": 7,
         "max_brightness": 150
     },
     "processor": "atmega32u4",

+ 0 - 4
keyboards/baguette/config.h

@@ -34,10 +34,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 /* COL2ROW, ROW2COL*/
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN B7
-#define BACKLIGHT_BREATHING
-#define BACKLIGHT_LEVELS 5
-
 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
 #define LOCKING_SUPPORT_ENABLE
 /* Locking resynchronize hack */

+ 5 - 0
keyboards/baguette/info.json

@@ -8,6 +8,11 @@
     "pid": "0x5050",
     "device_version": "0.0.1"
   },
+  "backlight": {
+    "pin": "B7",
+    "levels": 5,
+    "breathing": true
+  },
   "processor": "atmega32u4",
   "bootloader": "atmel-dfu",
   "layouts": {

+ 0 - 2
keyboards/bear_face/config.h

@@ -25,8 +25,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 /* COL2ROW or ROW2COL */
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN F7
-
 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
 #define LOCKING_SUPPORT_ENABLE
 /* Locking resynchronize hack */

+ 3 - 0
keyboards/bear_face/info.json

@@ -8,6 +8,9 @@
         "vid": "0xFEED",
         "pid": "0x09F5"
     },
+    "backlight": {
+        "pin": "F7"
+    },
     "processor": "atmega32u4",
     "bootloader": "atmel-dfu"
 }

+ 0 - 2
keyboards/bfake/config.h

@@ -25,8 +25,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN D4
-
 #define RGBLIGHT_EFFECT_BREATHING
 #define RGBLIGHT_EFFECT_RAINBOW_MOOD
 #define RGBLIGHT_EFFECT_RAINBOW_SWIRL

+ 3 - 0
keyboards/bfake/info.json

@@ -8,6 +8,9 @@
     "pid": "0x422D",
     "device_version": "2.0.0"
   },
+  "backlight": {
+    "pin": "D4"
+  },
   "indicators": {
     "caps_lock": "D1"
   },

+ 0 - 4
keyboards/bioi/f60/config.h

@@ -25,10 +25,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 /* COL2ROW, ROW2COL */
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN B7
-#define BACKLIGHT_LEVELS 8
-#define BACKLIGHT_BREATHING
-
 #define RGB_DI_PIN B1
 #ifdef RGB_DI_PIN
 #    define RGBLED_NUM 5

+ 5 - 0
keyboards/bioi/f60/info.json

@@ -8,6 +8,11 @@
         "pid": "0x4660",
         "device_version": "0.0.1"
     },
+    "backlight": {
+        "pin": "B7",
+        "levels": 8,
+        "breathing": true
+    },
     "indicators": {
         "caps_lock": "F0"
     },

+ 0 - 4
keyboards/bioi/g60/config.h

@@ -32,10 +32,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
 #define MATRIX_ROW_PINS { E6, B0, F1, F5, F4 }
 #define MATRIX_COL_PINS { F6, F7, B3, C7, C6, B6, B5, D5, B4, D7, D6, D4, D1, D0 }
 
-/* Backlight Setup */
-#define BACKLIGHT_PIN B7
-#define BACKLIGHT_LEVELS 12
-
 /* COL2ROW or ROW2COL */
 #define DIODE_DIRECTION COL2ROW
 

+ 4 - 0
keyboards/bioi/g60/info.json

@@ -8,6 +8,10 @@
         "pid": "0x6080",
         "device_version": "0.0.1"
     },
+    "backlight": {
+        "pin": "B7",
+        "levels": 12
+    },
     "processor": "atmega32u4",
     "bootloader": "qmk-dfu",
     "layouts": {

+ 0 - 5
keyboards/bioi/g60ble/config.h

@@ -10,11 +10,6 @@
 /* COL2ROW or ROW2COL */
 #define DIODE_DIRECTION COL2ROW
 
-#define BACKLIGHT_PIN B7
-#ifdef BACKLIGHT_PIN
-#    define BACKLIGHT_LEVELS 8
-#endif
-
 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
 #define LOCKING_SUPPORT_ENABLE
 

Some files were not shown because too many files changed in this diff