Documentation\backlight\lp855x-driver

来源:互联网 发布:南京淘宝美工培训班 编辑:程序博客网 时间:2024/06/07 09:41

Chinese translated version of Documentation\backlight\lp855x-driver

If you have any comment or update to the content, please contact the
original document maintainer directly.  However, if you have a problem
communicating in English you can also ask the Chinese maintainer for
help.  Contact the Chinese maintainer if this translation is outdated
or if there is a problem with the translation.

Chinese maintainer: 金丽丽 819153113@qq.com
---------------------------------------------------------------------
Documentation\backlight\lp855x-driver的中文翻译


如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文
交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻
译存在问题,请联系中文版维护者。

中文版维护者: 金丽丽 819153113@qq.com
中文版翻译者: 金丽丽 819153113@qq.com
中文版校译者: 潘丽卡  774945605@qq.com


以下为正文
---------------------------------------------------------------------

Kernel driver lp855x
内核驱动程序lp855x

====================

 Backlight driver for LP855x ICs

LP855x集成电路的背光驱动程序

 Supported chips:Texas Instruments LP8550, LP8551, LP8552, LP8553, LP8556 and LP8557
支持芯片:德州仪器LP8550 , LP8551 , LP8552 , LP8553 , LP8556和LP8557

 Author: Milo(Woogyom) Kim <milo.kim@ti.com>

Description

作者:Milo(Woogyom) Kim <milo.kim@ti.com>

Description

Description
-----------
描述
-----------

 * Brightnesscontrol
* 亮度控制

 Brightness can be controlled by the pwm input or the i2c command.

亮度可以通过PWM输入或者I2C命令加以控制。

The lp855x driver supports both cases.
lp855x驱动程序同时支持这两种方法。

* Device attributes

* 设备属性

1) bl_ctl_mode 
   Backlight control mode.
   Value : pwm based or register based
1) bl_ctl_mode
   背光控制模式
   意义:基于pwm基础或寄存器

2) chip_id
   The lp855x chip id.
   Value : lp8550/lp8551/lp8552/lp8553/lp8556/lp8557
2) chip_id 
   lp855x的芯片ID。
   意义:lp8550/lp8551/lp8552/lp8553/lp8556/lp8557

Platform data for lp855x
lp855x的平台数据
------------------------

For supporting platform specific data, the lp855x platform data can be used.
为了支持平台上的特定数据,可以使用lp855x平台数据。

* name : Backlight driver name. If it is not defined, default name is set.
* name : 背光驱动程序的名称。若背光驱动程序的名称未被定义,则使用默认名称。

* device_control : Value of DEVICE CONTROL register.
* device_control : 设备控制寄存器的值。

* initial_brightness : Initial value of backlight brightness.
* initial_brightness : 背光亮度的初始值。

* period_ns : Platform specific PWM period value. unit is nano.Only valid when brightness is pwm input mode.
* period_ns : 平台特定的PWM周期值。单位是纳米。只在亮度是PWM输入模式时有效。

* size_program : Total size of lp855x_rom_data.
* size_program : lp855x_rom_data的总大小。
 
* rom_data : List of new eeprom/eprom registers.
* rom_data : 新的 EEPROM/EPROM 寄存器名单。

example 1) lp8552 platform data : i2c register mode with new eeprom data
示例 1)lp8552的平台数据:I2C寄存器模式与新的EEPROM数据

#define EEPROM_A5_ADDR 0xA5
#define EEPROM_A5_VAL 0x4f /* EN_VSYNC=0 */

static struct lp855x_rom_data lp8552_eeprom_arr[] = {
 {EEPROM_A5_ADDR, EEPROM_A5_VAL},
};

static struct lp855x_platform_data lp8552_pdata = {
 .name = "lcd-bl",
 .device_control = I2C_CONFIG(LP8552),
 .initial_brightness = INITIAL_BRT,
 .size_program = ARRAY_SIZE(lp8552_eeprom_arr),
 .rom_data = lp8552_eeprom_arr,
};

example 2) lp8556 platform data : pwm input mode with default rom data
示例 2)lp8556的平台数据:PWM输入模式与默认的ROM数据

static struct lp855x_platform_data lp8556_pdata = {
 .device_control = PWM_CONFIG(LP8556),
 .initial_brightness = INITIAL_BRT,
 .period_ns = 1000000,
};