forked from RobertCNelson/bb.org-overlays
-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BB-LCD-ADAFRUIT-18-SPI1: add pwm backlight on P9.14
Add defintion for PWM backlight control on Adafruit 1.8" TFT LCD. Connect lite pin on lcd to P9.14. Turn on backlight on by setting bl_power to 0 (FB_BLANK_UNBLACK): echo 0 > /sys/devices/platform/backlight_pwm/backlight/backlight_pwm/bl_power That value is specified in: https://www.kernel.org/doc/Documentation/ABI/stable/sysfs-class-backlight What: /sys/class/backlight/<backlight>/bl_power Date: April 2005 KernelVersion: 2.6.12 Contact: Richard Purdie <rpurdie@rpsys.net> Description: Control BACKLIGHT power, values are FB_BLANK_* from fb.h - FB_BLANK_UNBLANK (0) : power on. - FB_BLANK_POWERDOWN (4) : power off Thanks to @notro for the suggestion in PR #68 comment: #68 (comment) Signed-off-by: Drew Fustini <drew@pdp7.com>
- Loading branch information
1 parent
4c20921
commit b2e4d4a
Showing
1 changed file
with
78 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters