Skip to content
Snippets Groups Projects

Initial Torch / Flash support

This is an initial driver for the torch/flash chip. I haven't tested the flash functionality yet but torch works (treating the two leds just as one for the moment).

TODOs (for upstream submission):

  • handle leds separately (athough they're always forced to the same mode)
  • support strobe gpio
  • tie into v4l via v4l2_flash
  • runtime pm
  • describe bindings

But i think this should be good enough initially to help librem5-apps/librem5-goodies!12 (closed)

Testing

for i in `seq 1 8` 0; do echo $i > /sys/class/leds/white\:torch/brightness; sleep 0.5 ; done

echo 1 > /sys/class/leds/white\:torch/flash_strobe ; echo 0 > /sys/class/leds/white\:torch/flash_strobe

Closes: #211 (closed)

Edited by Guido Gunther

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Sebastian Krzyszkowiak resolved all threads

    resolved all threads

  • Guido Gunther changed the description

    changed the description

  • Guido Gunther added 4 commits

    added 4 commits

    • 3ab4dad4 - leds: Add driver for LM3560 LED controller
    • 80ab4896 - librem5: Enable lm3560 LED flash driver
    • efbd0d1e - arm64: dts: imx8mq-librem5: Enable lm3560 LED
    • f92a80c3 - fixup! leds: Add driver for LM3560 LED controller

    Compare with previous version

  • marked as a Work In Progress from guido.gunther/linux-next@f92a80c3

  • Guido Gunther added 3 commits

    added 3 commits

    • e9b752e5 - leds: Add driver for LM3560 LED controller
    • c3086c65 - librem5: Enable lm3560 LED flash driver
    • 144b443b - arm64: dts: imx8mq-librem5: Enable lm3560 LED

    Compare with previous version

  • Guido Gunther resolved all threads

    resolved all threads

  • Guido Gunther changed the description

    changed the description

  • Guido Gunther unmarked as a Work In Progress

    unmarked as a Work In Progress

  • unwipped this since it's works here for toggeling flash and torch.

  • Guido Gunther changed the description

    changed the description

  • Guido Gunther added 3 commits

    added 3 commits

    • 30b1d39e - leds: Add driver for LM3560 LED controller
    • d62b2f79 - librem5: Enable lm3560 LED flash driver
    • 1e147a0a - arm64: dts: imx8mq-librem5: Enable lm3560 LED

    Compare with previous version

  • Martin Kepplinger resolved all threads

    resolved all threads

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading