Skip to content

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)


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