From: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
To: Linux Doc Mailing List <linux-doc@vger.kernel.org>
Cc: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>,
Mauro Carvalho Chehab <mchehab@infradead.org>,
linux-kernel@vger.kernel.org, Jonathan Corbet <corbet@lwn.net>
Subject: [PATCH 08/43] docs: lp855x-driver.txt: convert to ReST and move to kernel-api
Date: Fri, 28 Jun 2019 09:20:04 -0300 [thread overview]
Message-ID: <ec5d7a3a716474f2bc68e97ff1fbc32060c2c676.1561723980.git.mchehab+samsung@kernel.org> (raw)
In-Reply-To: <cover.1561723979.git.mchehab+samsung@kernel.org>
This small file seems to be an attempt to start documenting
backlight drivers.
It contains descriptions of the controls for the driver
with could sound as an somewhat user-faced description, but
it's main focus is to describe, instead, the data that should
be passed via platform data and some driver-specific stuff.
While this is not part of the driver-api book, mark it as
:orphan:, in order to avoid build warnings.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
---
Documentation/backlight/lp855x-driver.rst | 83 +++++++++++++++++++++++
Documentation/backlight/lp855x-driver.txt | 66 ------------------
MAINTAINERS | 2 +-
3 files changed, 84 insertions(+), 67 deletions(-)
create mode 100644 Documentation/backlight/lp855x-driver.rst
delete mode 100644 Documentation/backlight/lp855x-driver.txt
diff --git a/Documentation/backlight/lp855x-driver.rst b/Documentation/backlight/lp855x-driver.rst
new file mode 100644
index 000000000000..62b7ed847a77
--- /dev/null
+++ b/Documentation/backlight/lp855x-driver.rst
@@ -0,0 +1,83 @@
+: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/backlight/lp855x-driver.txt b/Documentation/backlight/lp855x-driver.txt
deleted file mode 100644
index 01bce243d3d7..000000000000
--- a/Documentation/backlight/lp855x-driver.txt
+++ /dev/null
@@ -1,66 +0,0 @@
-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.
-
-example 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,
-};
-
-example 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/MAINTAINERS b/MAINTAINERS
index 1606f6cac24d..e909436a2fa3 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -15906,7 +15906,7 @@ F: sound/soc/codecs/isabelle*
TI LP855x BACKLIGHT DRIVER
M: Milo Kim <milo.kim@ti.com>
S: Maintained
-F: Documentation/backlight/lp855x-driver.txt
+F: Documentation/backlight/lp855x-driver.rst
F: drivers/video/backlight/lp855x_bl.c
F: include/linux/platform_data/lp855x.h
--
2.21.0
next prev parent reply other threads:[~2019-06-28 12:24 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-28 12:19 [PATCH 00/43] Convert doc files to ReST Mauro Carvalho Chehab
2019-06-28 12:19 ` [PATCH 01/43] docs: infiniband: convert docs to ReST and rename to *.rst Mauro Carvalho Chehab
2019-07-03 18:06 ` Jason Gunthorpe
2019-07-06 11:02 ` Mauro Carvalho Chehab
2019-06-28 12:19 ` [PATCH 02/43] docs: iio: convert to ReST Mauro Carvalho Chehab
2019-06-28 12:19 ` [PATCH 03/43] docs: hid: " Mauro Carvalho Chehab
2019-07-02 9:58 ` Benjamin Tissoires
2019-06-28 12:20 ` [PATCH 04/43] docs: locking: convert docs to ReST and rename to *.rst Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 05/43] docs: powerpc: " Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 06/43] docs: connector: convert to ReST and rename to connector.rst Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 07/43] docs: lcd-panel-cgram.txt: convert docs to ReST and rename to *.rst Mauro Carvalho Chehab
2019-06-28 12:20 ` Mauro Carvalho Chehab [this message]
2019-06-28 12:20 ` [PATCH 09/43] docs: m68k: " Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 10/43] docs: cma/debugfs.txt: " Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 11/43] docs: console.txt: " Mauro Carvalho Chehab
2019-06-28 12:53 ` Bartlomiej Zolnierkiewicz
2019-06-28 12:20 ` [PATCH 12/43] docs: pti_intel_mid.txt: convert it to pti_intel_mid.rst Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 13/43] docs: early-userspace: convert docs to ReST and rename to *.rst Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 15/43] docs: memory-devices: convert ti-emif.txt to ReST Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 16/43] docs: xen-tpmfront.txt: convert it to .rst Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 17/43] docs: bus-devices: ti-gpmc.rst: convert it to ReST Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 18/43] docs: nvmem: convert docs to ReST and rename to *.rst Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 19/43] docs: phy: convert samsung-usb2.txt to ReST format Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 20/43] docs: rbtree.txt: fix Sphinx build warnings Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 21/43] docs: DMA-API-HOWTO.txt: fix an unmarked code block Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 22/43] docs: accounting: convert to ReST Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 23/43] docs: ia64: " Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 24/43] docs: leds: " Mauro Carvalho Chehab
2019-06-28 19:01 ` Jacek Anaszewski
2019-07-06 10:41 ` Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 25/43] docs: laptops: " Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 26/43] docs: namespaces: " Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 27/43] docs: nfc: " Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 28/43] docs: md: " Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 29/43] docs: mtd: " Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 30/43] docs: nvdimm: " Mauro Carvalho Chehab
2019-06-28 16:32 ` Dan Williams
2019-06-28 12:20 ` [PATCH 31/43] docs: xtensa: " Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 32/43] docs: mmc: " Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 33/43] docs: ioctl-number.txt: convert it to ReST format Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 34/43] docs: ioctl: convert to ReST Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 35/43] docs: thermal: " Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 36/43] docs: rapidio: " Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 37/43] docs: blockdev: " Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 38/43] docs: perf: " Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 39/43] docs: sysctl: " Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 40/43] docs: block: " Mauro Carvalho Chehab
2019-06-28 12:20 ` [PATCH 41/43] docs: extcon: convert it to ReST and move to acpi dir Mauro Carvalho Chehab
2019-07-01 1:40 ` Chanwoo Choi
2019-07-05 9:41 ` Rafael J. Wysocki
2019-06-28 12:20 ` [PATCH 42/43] docs: move gcc_plugins.txt to core-api and rename to .rst Mauro Carvalho Chehab
2019-06-28 14:47 ` Kees Cook
2019-06-28 12:20 ` [PATCH 43/43] docs: logo.txt: rename it to COPYING-logo Mauro Carvalho Chehab
2019-07-29 9:50 ` [PATCH 00/43] Convert doc files to ReST Geert Uytterhoeven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ec5d7a3a716474f2bc68e97ff1fbc32060c2c676.1561723980.git.mchehab+samsung@kernel.org \
--to=mchehab+samsung@kernel.org \
--cc=corbet@lwn.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®