~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/leds/leds-mt6370-rgb.rst

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/leds/leds-mt6370-rgb.rst (Version linux-6.12-rc7) and /Documentation/leds/leds-mt6370-rgb.rst (Version linux-6.4.16)


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

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php