Skip to content

mfd: aat2870: Convert to use OF bindings

Svyatoslav Ryhel dri-devel linux-devicetree linux-leds lkml mfd 7 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest4 patches 0 repliesNew
  2. v64 patches 0 repliesSuperseded
  3. v54 patches 1 replySuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v44 patches1 replySuperseded
v34 patches13 repliesSuperseded
v23 patches6 repliesSuperseded
v13 patches0 repliesSuperseded

Changes in v7 from the cover letter

- rebased to be applicable on top of devm_kzalloc_obj conversion
---

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4dt-bindings: leds: Document Skyworks AAT2870Documentation/devicetree/bindings/leds/skyworks,aat2870.yaml+124 -00 replies
2/4backlight: aat2870: Derive brightness steps from max currentdrivers/video/backlight/aat2870_bl.c+11 -240 replies
3/4mfd: aat2870: Convert to use OF bindingsdrivers/mfd/aat2870-core.c drivers/regulator/aat2870-regulator.c drivers/video/backlight/aat2870_bl.c +1 more+127 -3060 replies
4/4mfd: aat2870: Add support for VIN and IN-LDO power suppliesdrivers/mfd/aat2870-core.c drivers/regulator/aat2870-regulator.c+6 -00 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchDaniel Thompson (RISCstar)Rob Herring (Arm)Griffin Kroah-Hartman
1/4R-b R-b
2/4R-b R-b
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v7 thread

Cover letter [PATCH v7 0/4] mfd: aat2870: Convert to use OF bindings

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

Changes in v6:
- led current set to default matching driver behavior
- max_current initialized with same default value as pre conversion

Changes in v7:
- rebased to be applicable on top of devm_kzalloc_obj conversion
---

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
Signature · 1 line
2.53.0