1 .. SPDX-License-Identifier: GPL-2.0 2 3 ========================================= 4 The device for Mediatek MT6370 RGB LED 5 ========================================= 6 7 Description 8 ----------- 9 10 The MT6370 integrates a four-channel RGB LED d 11 variety of lighting effect for mobile device a 12 includes a smart LED string controller and it 13 a sink current up to 24mA and a CHG_VIN power 14 current up to 6mA. It provides three operation 15 PWM Dimming mode, breath pattern mode, and con 16 can increase or decrease the brightness of the 17 18 The breath pattern for a channel can be progra 19 using the hw_pattern attribute. 20 21 /sys/class/leds/<led>/hw_pattern 22 -------------------------------- 23 24 Specify a hardware breath pattern for a MT6370 25 26 The breath pattern is a series of timing pairs 27 milliseconds. And the brightness is controlled 28 '/sys/class/leds/<led>/brightness'. The patter 29 setting. Hardware pattern only controls the ti 30 depending on the current brightness setting. 31 32 Pattern diagram:: 33 34 "0 Tr1 0 Tr2 0 Tf1 0 Tf2 0 Ton 0 Toff 35 36 ^ 37 | ============ 38 | / \ 39 Icurr | / \ 40 | / \ 41 | / \ 42 | / \ 43 | --- --- 44 |--- --- 45 +----------------------------------= 46 < Tr1><Tr2>< Ton ><Tf1><Tf2 >< 47 48 Timing description: 49 50 * Tr1: First rising time for 0% - 30% loa 51 * Tr2: Second rising time for 31% - 100% 52 * Ton: On time for 100% load. 53 * Tf1: First falling time for 100% - 31% 54 * Tf2: Second falling time for 30% to 0% 55 * Toff: Off time for 0% load. 56 57 * Tr1/Tr2/Tf1/Tf2/Ton: 125ms to 3125ms, 200m 58 * Toff: 250ms to 6250ms, 400ms per step. 59 60 Pattern example:: 61 62 "0 125 0 125 0 125 0 125 0 625 0 1050" 63 64 This Will configure Tr1/Tr2/Tf1/Tf2 to 125m, T
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.