docs: lp855x-driver.rst: add it to the driver-api book
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 18 Jun 2019 14:44:24 +0000 (11:44 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 15 Jul 2019 14:03:02 +0000 (11:03 -0300)
The content of this file is intended for backlight Kernel
developers.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Documentation/backlight/lp855x-driver.rst [deleted file]
Documentation/driver-api/backlight/lp855x-driver.rst [new file with mode: 0644]
Documentation/driver-api/index.rst
MAINTAINERS

diff --git a/Documentation/backlight/lp855x-driver.rst b/Documentation/backlight/lp855x-driver.rst
deleted file mode 100644 (file)
index 62b7ed8..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-:orphan:
-
-====================
-Kernel driver lp855x
-====================
-
-Backlight driver for LP855x ICs
-
-Supported chips:
-
-       Texas Instruments LP8550, LP8551, LP8552, LP8553, LP8555, LP8556 and
-       LP8557
-
-Author: Milo(Woogyom) Kim <milo.kim@ti.com>
-
-Description
------------
-
-* Brightness control
-
-  Brightness can be controlled by the pwm input or the i2c command.
-  The lp855x driver supports both cases.
-
-* Device attributes
-
-  1) bl_ctl_mode
-
-  Backlight control mode.
-
-  Value: pwm based or register based
-
-  2) chip_id
-
-  The lp855x chip id.
-
-  Value: lp8550/lp8551/lp8552/lp8553/lp8555/lp8556/lp8557
-
-Platform data for lp855x
-------------------------
-
-For supporting platform specific data, the lp855x platform data can be used.
-
-* name:
-       Backlight driver name. If it is not defined, default name is set.
-* device_control:
-       Value of DEVICE CONTROL register.
-* initial_brightness:
-       Initial value of backlight brightness.
-* period_ns:
-       Platform specific PWM period value. unit is nano.
-       Only valid when brightness is pwm input mode.
-* size_program:
-       Total size of lp855x_rom_data.
-* rom_data:
-       List of new eeprom/eprom registers.
-
-Examples
-========
-
-1) lp8552 platform data: i2c register mode with new eeprom data::
-
-    #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,
-    };
-
-2) lp8556 platform data: pwm input mode with default rom data::
-
-    static struct lp855x_platform_data lp8556_pdata = {
-       .device_control = PWM_CONFIG(LP8556),
-       .initial_brightness = INITIAL_BRT,
-       .period_ns = 1000000,
-    };
diff --git a/Documentation/driver-api/backlight/lp855x-driver.rst b/Documentation/driver-api/backlight/lp855x-driver.rst
new file mode 100644 (file)
index 0000000..1e0b224
--- /dev/null
@@ -0,0 +1,81 @@
+====================
+Kernel driver lp855x
+====================
+
+Backlight driver for LP855x ICs
+
+Supported chips:
+
+       Texas Instruments LP8550, LP8551, LP8552, LP8553, LP8555, LP8556 and
+       LP8557
+
+Author: Milo(Woogyom) Kim <milo.kim@ti.com>
+
+Description
+-----------
+
+* Brightness control
+
+  Brightness can be controlled by the pwm input or the i2c command.
+  The lp855x driver supports both cases.
+
+* Device attributes
+
+  1) bl_ctl_mode
+
+  Backlight control mode.
+
+  Value: pwm based or register based
+
+  2) chip_id
+
+  The lp855x chip id.
+
+  Value: lp8550/lp8551/lp8552/lp8553/lp8555/lp8556/lp8557
+
+Platform data for lp855x
+------------------------
+
+For supporting platform specific data, the lp855x platform data can be used.
+
+* name:
+       Backlight driver name. If it is not defined, default name is set.
+* device_control:
+       Value of DEVICE CONTROL register.
+* initial_brightness:
+       Initial value of backlight brightness.
+* period_ns:
+       Platform specific PWM period value. unit is nano.
+       Only valid when brightness is pwm input mode.
+* size_program:
+       Total size of lp855x_rom_data.
+* rom_data:
+       List of new eeprom/eprom registers.
+
+Examples
+========
+
+1) lp8552 platform data: i2c register mode with new eeprom data::
+
+    #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,
+    };
+
+2) lp8556 platform data: pwm input mode with default rom data::
+
+    static struct lp855x_platform_data lp8556_pdata = {
+       .device_control = PWM_CONFIG(LP8556),
+       .initial_brightness = INITIAL_BRT,
+       .period_ns = 1000000,
+    };
index 0f281f4f648f68f15b6140bf068f6da5a8153a5e..b4c993ff765500edeab9cf19d1b0dc197e72ba59 100644 (file)
@@ -66,6 +66,7 @@ available subsections can be seen below.
    soundwire/index
    fpga/index
    acpi/index
+   backlight/lp855x-driver.rst
    generic-counter
 
 .. only::  subproject and html
index 8f496d76bb539d59e163a576dbdb4eeeb41d3b82..3feb318e1433e732153cb9c23c09a014566172e6 100644 (file)
@@ -15964,7 +15964,7 @@ F:      sound/soc/codecs/isabelle*
 TI LP855x BACKLIGHT DRIVER
 M:     Milo Kim <milo.kim@ti.com>
 S:     Maintained
-F:     Documentation/backlight/lp855x-driver.rst
+F:     Documentation/driver-api/backlight/lp855x-driver.rst
 F:     drivers/video/backlight/lp855x_bl.c
 F:     include/linux/platform_data/lp855x.h