Skip to content

media: lm3560: convert to use OF bindings

Svyatoslav Ryhel linux-devicetree linux-leds linux-media lkml 6 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest6 patches 2 repliesApplied
  2. v56 patches 13 repliesSuperseded
  3. v45 patches 2 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v35 patches2 repliesSuperseded
v25 patches12 repliesSuperseded
v15 patches7 repliesSuperseded

Changes in v6 from the cover letter

- fixed swapped current ranges for flash-max-microamp and led-max-microamp
- for_each_available_child_of_node > device_for_each_child_node_scoped
- pm_runtime_get_if_in_use > pm_runtime_get_if_active

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/6dt-bindings: leds: Document TI LM3560 Synchronous Boost Flash DriverDocumentation/devicetree/bindings/leds/ti,lm3560.yaml+163 -02 replies
2/6media: i2c: lm3560: Fix v4l2 subdev registrationdrivers/media/i2c/lm3560.c+24 -100 replies
3/6media: i2c: lm3560: Optimize mutex lock usagedrivers/media/i2c/lm3560.c+6 -130 replies
4/6media: i2c: lm3560: Convert to use OF bindingsdrivers/media/i2c/lm3560.c include/media/i2c/lm3560.h+100 -560 replies
5/6media: i2c: lm3560: Add support for PM featuresdrivers/media/i2c/lm3560.c+110 -70 replies
6/6media: i2c: lm3560: Add proper support for LM3559drivers/media/i2c/lm3560.c include/media/i2c/lm3560.h+100 -890 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchConor Dooley
1/6R-b
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 0/6] media: lm3560: convert to use OF bindings

Add missing HWEN input pin and IN supply. Fix v4l2 subdev registration. Remove platform data and switch to OF device tree bindings.

---
Changes in v6:
- fixed swapped current ranges for flash-max-microamp and led-max-microamp
- for_each_available_child_of_node > device_for_each_child_node_scoped
- pm_runtime_get_if_in_use > pm_runtime_get_if_active

Changes in v5:
- schema adjusted to take into account lm3559
- device_for_each_child_node > for_each_available_child_of_node
- lm3559 and lm3560 configuration was diverged with data match
- removed redundant header

Changes in v4:
- fixed current being off by 10 in schema
- label property from schema replaced with modern equivalents
- lm3560_init_device moved before subdev registration
- v4l2_device_unregister_subdev > v4l2_async_unregister_subdev
- added subdevice cleanup if second led registration fails
- added check if "reg" property exists for LED nodes
- added missing fwnode_handle_put if device loop fails
- added bitmap to monitor configured LED id
- added pm_ptr() macro for PM operations pointer

Changes in v3:
- added note regarding lm3559 in the schema commit
- lm3560 power on/off functions converted to be part of PM, dropped redundant wrappers

Changes in v2:
- vendor properties swapped with generic LED properties
- added mutex lock usage optimization
- power supply and enable gpio commits squashed into PM configuration since they are both required in making proper on/off sequence.
---

Svyatoslav Ryhel (6):
dt-bindings: leds: Document TI LM3560 Synchronous Boost Flash Driver
media: i2c: lm3560: Fix v4l2 subdev registration
media: i2c: lm3560: Optimize mutex lock usage
media: i2c: lm3560: Convert to use OF bindings
media: i2c: lm3560: Add support for PM features
media: i2c: lm3560: Add proper support for LM3559

 .../devicetree/bindings/leds/ti,lm3560.yaml   | 163 ++++++++
 drivers/media/i2c/lm3560.c                    | 383 +++++++++++++++---
 include/media/i2c/lm3560.h                    |  84 ----
 3 files changed, 479 insertions(+), 151 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/leds/ti,lm3560.yaml
 delete mode 100644 include/media/i2c/lm3560.h
Signature · 1 line
2.51.0