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

TOMOYO Linux Cross Reference
Linux/Documentation/leds/leds-lp3944.rst

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ 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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 ====================
  2 Kernel driver lp3944
  3 ====================
  4 
  5   * National Semiconductor LP3944 Fun-light Chip
  6 
  7     Prefix: 'lp3944'
  8 
  9     Addresses scanned: None (see the Notes section below)
 10 
 11     Datasheet:
 12 
 13         Publicly available at the National Semiconductor website
 14         http://www.national.com/pf/LP/LP3944.html
 15 
 16 Authors:
 17         Antonio Ospite <ospite@studenti.unina.it>
 18 
 19 
 20 Description
 21 -----------
 22 The LP3944 is a helper chip that can drive up to 8 leds, with two programmable
 23 DIM modes; it could even be used as a gpio expander but this driver assumes it
 24 is used as a led controller.
 25 
 26 The DIM modes are used to set _blink_ patterns for leds, the pattern is
 27 specified supplying two parameters:
 28 
 29   - period:
 30         from 0s to 1.6s
 31   - duty cycle:
 32         percentage of the period the led is on, from 0 to 100
 33 
 34 Setting a led in DIM0 or DIM1 mode makes it blink according to the pattern.
 35 See the datasheet for details.
 36 
 37 LP3944 can be found on Motorola A910 smartphone, where it drives the rgb
 38 leds, the camera flash light and the lcds power.
 39 
 40 
 41 Notes
 42 -----
 43 The chip is used mainly in embedded contexts, so this driver expects it is
 44 registered using the i2c_board_info mechanism.
 45 
 46 To register the chip at address 0x60 on adapter 0, set the platform data
 47 according to include/linux/leds-lp3944.h, set the i2c board info::
 48 
 49         static struct i2c_board_info a910_i2c_board_info[] __initdata = {
 50                 {
 51                         I2C_BOARD_INFO("lp3944", 0x60),
 52                         .platform_data = &a910_lp3944_leds,
 53                 },
 54         };
 55 
 56 and register it in the platform init function::
 57 
 58         i2c_register_board_info(0, a910_i2c_board_info,
 59                         ARRAY_SIZE(a910_i2c_board_info));

~ [ 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