All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/3] Add sy7802 flash led driver
@ 2024-06-16 18:22 ` André Apitzsch via B4 Relay
  0 siblings, 0 replies; 16+ messages in thread
From: André Apitzsch @ 2024-06-16 18:22 UTC (permalink / raw)
  To: Pavel Machek, Lee Jones, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Gustavo A. R. Silva, Bjorn Andersson, Konrad Dybcio,
	Christophe JAILLET, Trilok Soni, Kees Cook
  Cc: linux-leds, devicetree, linux-kernel, linux-hardening,
	linux-arm-msm, ~postmarketos/upstreaming, phone-devel,
	André Apitzsch

This series introduces a driver for the Silergy SY7802 charge pump used
in the BQ Aquaris M5 and X5 smartphones.

The implementation is based on information extracted from downstream as
the datasheet provided by a distributor of the hardware didn't include
any information about the i2c register description.

Signed-off-by: André Apitzsch <git@apitzsch.eu>
---
Changes in v4:
- Use for_each_available_child_of_node_scoped() to simplify code
- Use dev_err_probe() to be consistent with the other code in
  sy7802_probe()
- Split devm_add_action() into 2 devm_add_action_or_reset() to simplify
  code and balance regulator_enable()
- Link to v3: https://lore.kernel.org/r/20240612-sy7802-v3-0-1e9cc1c79b79@apitzsch.eu

Changes in v3:
- Add R-b tag to first patch
- Extend driver commit message
- Improve readability of defines by using BIT()
- Rename some variables/parameters
  * led_no -> led_id
  * level -> brightness
  * curr -> fled_{strobe,torch}_used_tmp
  * mask -> {flash,torch}_mask
  * i -> child_num
- Restructure structs ("Place th big stuff at the top")
- Declare 'child' on a separate line
- Move multi-line assignments out of declaration block
- Update warning/error messages and comments
- Use gotos to handle error path
- Use devm API to cleanup module's resources
- Init mutex before LED class device is registered to avoid race
  condition
- Link to v2: https://lore.kernel.org/r/20240401-sy7802-v2-0-1138190a7448@apitzsch.eu

Changes in v2:
- bindings: remove unneeded allOf
- bindings: example: move flash-led-controller under i2c node to fix
  check error
- Cc to phone-devel
- Link to v1: https://lore.kernel.org/r/20240327-sy7802-v1-0-db74ab32faaf@apitzsch.eu

---
André Apitzsch (3):
      dt-bindings: leds: Add Silergy SY7802 flash LED
      leds: sy7802: Add support for Silergy SY7802 flash LED controller
      arm64: dts: qcom: msm8939-longcheer-l9100: Add rear flash

 .../devicetree/bindings/leds/silergy,sy7802.yaml   | 100 ++++
 .../boot/dts/qcom/msm8939-longcheer-l9100.dts      |  26 +
 drivers/leds/flash/Kconfig                         |  11 +
 drivers/leds/flash/Makefile                        |   1 +
 drivers/leds/flash/leds-sy7802.c                   | 542 +++++++++++++++++++++
 5 files changed, 680 insertions(+)
---
base-commit: 6a03b35e4395eb2d6e89a38aca00a9fe9cb39ba1
change-id: 20240325-sy7802-f40fc6f56525

Best regards,
-- 
André Apitzsch <git@apitzsch.eu>


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2024-06-24 11:14 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-16 18:22 [PATCH v4 0/3] Add sy7802 flash led driver André Apitzsch
2024-06-16 18:22 ` André Apitzsch via B4 Relay
2024-06-16 18:22 ` [PATCH v4 1/3] dt-bindings: leds: Add Silergy SY7802 flash LED André Apitzsch
2024-06-16 18:22   ` André Apitzsch via B4 Relay
2024-06-16 18:22 ` [PATCH v4 2/3] leds: sy7802: Add support for Silergy SY7802 flash LED controller André Apitzsch
2024-06-16 18:22   ` André Apitzsch via B4 Relay
2024-06-16 18:55   ` Markus Elfring
2024-06-17  9:53     ` Pavel Machek
2024-06-17 10:18       ` [v4 " Markus Elfring
2024-06-17 10:59         ` Dmitry Baryshkov
2024-06-17 11:34           ` Markus Elfring
2024-06-21 10:26   ` [PATCH v4 " Lee Jones
2024-06-22 11:55     ` André Apitzsch
2024-06-24 11:14       ` Lee Jones
2024-06-16 18:22 ` [PATCH v4 3/3] arm64: dts: qcom: msm8939-longcheer-l9100: Add rear flash André Apitzsch
2024-06-16 18:22   ` André Apitzsch via B4 Relay

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.