Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 122
    • Issues 122
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 25
    • Merge requests 25
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Librem5
  • linux
  • Merge requests
  • !208

Merged
Created Aug 27, 2020 by Guido Gunther@guido.guntherOwner

Initial Torch / Flash support

  • Overview 25
  • Commits 4
  • Pipelines 9
  • Changes 5

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 Aug 29, 2020 by Guido Gunther
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: experiment/imx8-current-librem5/flashlight