xref: /OK3568_Linux_fs/kernel/Documentation/ABI/testing/sysfs-class-led-flash (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunWhat:		/sys/class/leds/<led>/flash_brightness
2*4882a593SmuzhiyunDate:		March 2015
3*4882a593SmuzhiyunKernelVersion:	4.0
4*4882a593SmuzhiyunContact:	Jacek Anaszewski <j.anaszewski@samsung.com>
5*4882a593SmuzhiyunDescription:	read/write
6*4882a593Smuzhiyun		Set the brightness of this LED in the flash strobe mode, in
7*4882a593Smuzhiyun		microamperes. The file is created only for the flash LED devices
8*4882a593Smuzhiyun		that support setting flash brightness.
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun		The value is between 0 and
11*4882a593Smuzhiyun		/sys/class/leds/<led>/max_flash_brightness.
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunWhat:		/sys/class/leds/<led>/max_flash_brightness
14*4882a593SmuzhiyunDate:		March 2015
15*4882a593SmuzhiyunKernelVersion:	4.0
16*4882a593SmuzhiyunContact:	Jacek Anaszewski <j.anaszewski@samsung.com>
17*4882a593SmuzhiyunDescription:	read only
18*4882a593Smuzhiyun		Maximum brightness level for this LED in the flash strobe mode,
19*4882a593Smuzhiyun		in microamperes.
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunWhat:		/sys/class/leds/<led>/flash_timeout
22*4882a593SmuzhiyunDate:		March 2015
23*4882a593SmuzhiyunKernelVersion:	4.0
24*4882a593SmuzhiyunContact:	Jacek Anaszewski <j.anaszewski@samsung.com>
25*4882a593SmuzhiyunDescription:	read/write
26*4882a593Smuzhiyun		Hardware timeout for flash, in microseconds. The flash strobe
27*4882a593Smuzhiyun		is stopped after this period of time has passed from the start
28*4882a593Smuzhiyun		of the strobe. The file is created only for the flash LED
29*4882a593Smuzhiyun		devices that support setting flash timeout.
30*4882a593Smuzhiyun
31*4882a593SmuzhiyunWhat:		/sys/class/leds/<led>/max_flash_timeout
32*4882a593SmuzhiyunDate:		March 2015
33*4882a593SmuzhiyunKernelVersion:	4.0
34*4882a593SmuzhiyunContact:	Jacek Anaszewski <j.anaszewski@samsung.com>
35*4882a593SmuzhiyunDescription:	read only
36*4882a593Smuzhiyun		Maximum flash timeout for this LED, in microseconds.
37*4882a593Smuzhiyun
38*4882a593SmuzhiyunWhat:		/sys/class/leds/<led>/flash_strobe
39*4882a593SmuzhiyunDate:		March 2015
40*4882a593SmuzhiyunKernelVersion:	4.0
41*4882a593SmuzhiyunContact:	Jacek Anaszewski <j.anaszewski@samsung.com>
42*4882a593SmuzhiyunDescription:	read/write
43*4882a593Smuzhiyun		Flash strobe state. When written with 1 it triggers flash strobe
44*4882a593Smuzhiyun		and when written with 0 it turns the flash off.
45*4882a593Smuzhiyun
46*4882a593Smuzhiyun		On read 1 means that flash is currently strobing and 0 means
47*4882a593Smuzhiyun		that flash is off.
48*4882a593Smuzhiyun
49*4882a593SmuzhiyunWhat:		/sys/class/leds/<led>/flash_fault
50*4882a593SmuzhiyunDate:		March 2015
51*4882a593SmuzhiyunKernelVersion:	4.0
52*4882a593SmuzhiyunContact:	Jacek Anaszewski <j.anaszewski@samsung.com>
53*4882a593SmuzhiyunDescription:	read only
54*4882a593Smuzhiyun		Space separated list of flash faults that may have occurred.
55*4882a593Smuzhiyun		Flash faults are re-read after strobing the flash. Possible
56*4882a593Smuzhiyun		flash faults:
57*4882a593Smuzhiyun
58*4882a593Smuzhiyun		* led-over-voltage
59*4882a593Smuzhiyun			flash controller voltage to the flash LED
60*4882a593Smuzhiyun			has exceeded the limit specific to the flash controller
61*4882a593Smuzhiyun		* flash-timeout-exceeded
62*4882a593Smuzhiyun			the flash strobe was still on when
63*4882a593Smuzhiyun			the timeout set by the user has expired; not all flash
64*4882a593Smuzhiyun			controllers may set this in all such conditions
65*4882a593Smuzhiyun		* controller-over-temperature
66*4882a593Smuzhiyun			the flash controller has
67*4882a593Smuzhiyun			overheated
68*4882a593Smuzhiyun		* controller-short-circuit
69*4882a593Smuzhiyun			the short circuit protection
70*4882a593Smuzhiyun			of the flash controller has been triggered
71*4882a593Smuzhiyun		* led-power-supply-over-current
72*4882a593Smuzhiyun			current in the LED power
73*4882a593Smuzhiyun			supply has exceeded the limit specific to the flash
74*4882a593Smuzhiyun			controller
75*4882a593Smuzhiyun		* indicator-led-fault
76*4882a593Smuzhiyun			the flash controller has detected
77*4882a593Smuzhiyun			a short or open circuit condition on the indicator LED
78*4882a593Smuzhiyun		* led-under-voltage
79*4882a593Smuzhiyun			flash controller voltage to the flash
80*4882a593Smuzhiyun			LED has been below the minimum limit specific to
81*4882a593Smuzhiyun			the flash
82*4882a593Smuzhiyun		* controller-under-voltage
83*4882a593Smuzhiyun			the input voltage of the flash
84*4882a593Smuzhiyun			controller is below the limit under which strobing the
85*4882a593Smuzhiyun			flash at full current will not be possible;
86*4882a593Smuzhiyun			the condition persists until this flag is no longer set
87*4882a593Smuzhiyun		* led-over-temperature
88*4882a593Smuzhiyun			the temperature of the LED has exceeded
89*4882a593Smuzhiyun			its allowed upper limit
90