[PATCH v5 0/4] mfd: aat2870: Convert to use OF bindings
From: Svyatoslav Ryhel
Date: Tue Oct 27 2026 - 07:41:34 EST
Document Skyworks AAT2870 into schema, convert existing driver to
use OF bindings and remove platform data, add support for
in-supplies.
---
Changes in v2:
- fixed led-max-microamp scaling
- fixed max_brightness parsing
- fixed regulator init_data and of_node passing
- of_platform_populate > devm_of_platform_populate
Changes in v3:
- removed max-brightness property
- switched from dedicated max_brightness property to dynamically
calculating brightness steps
- update regulator registration to use mostly core regulator framework
Changes in v4:
- set max_brightness form aat2870_bl->max_current instead pdata->max_current
- switch gpiod_set_value() > gpiod_set_value_cansleep()
- constify aat2870_regulators
- max_current in bl switched from int to u32
Changes in v5:
- drop max_current from aat2870_bl_driver_data entirely
- remove legacy gpio and mfd core headers
- headers in aat2870 sorted alphabetically
---
Svyatoslav Ryhel (4):
dt-bindings: leds: Document Skyworks AAT2870
backlight: aat2870: Derive brightness steps from max current
mfd: aat2870: Convert to use OF bindings
mfd: aat2870: Add support for VIN and IN-LDO power supplies
.../bindings/leds/skyworks,aat2870.yaml | 124 ++++++++++++++
drivers/mfd/aat2870-core.c | 133 ++++-----------
drivers/regulator/aat2870-regulator.c | 160 ++++++++----------
drivers/video/backlight/aat2870_bl.c | 78 ++++-----
include/linux/mfd/aat2870.h | 95 +----------
5 files changed, 264 insertions(+), 326 deletions(-)
create mode 100644 Documentation/devicetree/bindings/leds/skyworks,aat2870.yaml
--
2.53.0