MT6323 is not the only PMIC that has a LEDs controller IP and it was found that the others do have a compatible register layout, except for some register offsets. The logic contained in this driver can be totally reused for other PMICs as well, so I can't see any reason to keep this specific to the MT6323 part. This series brings meaningful platform data to this driver, giving it flexibility and adding support for LED controllers found in the MT6331 and MT6332 PMICs. Tested on MT6795 Sony Xperia M5 smartphone. AngeloGioacchino Del Regno (7): leds: leds-mt6323: Specify registers and specs in platform data leds: leds-mt6323: Open code and drop MT6323_CAL_HW_DUTY macro leds: leds-mt6323: Drop MT6323_ prefix from macros and defines dt-bindings: leds: leds-mt6323: Document mt6331 compatible leds: leds-mt6323: Add support for MT6331 leds dt-bindings: leds: leds-mt6323: Document mt6332 compatible leds: leds-mt6323: Add support for WLEDs and MT6332 .../devicetree/bindings/leds/leds-mt6323.txt | 5 +- drivers/leds/leds-mt6323.c | 444 ++++++++++++++---- 2 files changed, 350 insertions(+), 99 deletions(-) -- 2.37.2