Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2767390yba; Mon, 15 Apr 2019 20:01:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFEn0B+Ni0UHz80VnYvFhg3X1WQG+/uzsynZ86AErDTk0QkxPTGDStV0fYRAtNFt1X3Zgt X-Received: by 2002:a63:e554:: with SMTP id z20mr73048375pgj.234.1555383682370; Mon, 15 Apr 2019 20:01:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555383682; cv=none; d=google.com; s=arc-20160816; b=YmJjFxWGOZab+jd+Pt/y+n9L6kBTIPwW4W35NVnEnXea8WlOmrZ5Ld8sakZd1cDeA1 Ej733TaRdGlfAjqWSpXxld9Zvx1g8t8lUu+ooD0F5UXkX5cjhASQGX8IP6QNj7a6F9lB vDuYpWkxKIS0M4mXRhfmey2lO04FnvvG2u47kz71x3NgKtzVytOE24mpaUGQMhDy+d9E fPHEj0P0Ix/SaeS+a+NTucHCy9Flf1wZEG2MKhLDZTdVfStE7oOZzC+YsL/V5y1N0uJj 9lb39U6sqHCr+Y4SftRK4VAePvsta4vEWQPbiAhfgjtXAOPFUVJVDShbIcXSYpwS2b+Q f/KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mVAr0l6RUJlSrojWvjxsu5uos/oGuj+XV3N9W44HcxY=; b=AVN80QqaoH9cTtnwAEq/h5c2bC0okkeWGPtwTtd8FT+cw/41HwCfwx9InYrwHdW++H dci08O0D/zQHxp3aXRSdJ5rBSqLwjIo+eygc2a7qDzqUFrBzpT5y4BxvyF9MV29edu6+ z+yHugDbPpkeOOAyYMHke1L/R4PD9njvj8dP/uAAnqaCVai0kuNYNmKqrfOTs3x0Ij7X ttQNnpgf++ZScYosPjuYi72h04aulm0LIdNIn9Z4qShinQLlyQi6DVrUbtuLLt0SMKFP fwpwSAeydJHvJEvYtvk7kOmlAv/UnLK6KK6Ga5BgcW2oq8SG4F+yB4498g4gqvzizgj3 4kKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=tdPr1qJ7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 89si46199335pld.265.2019.04.15.20.01.06; Mon, 15 Apr 2019 20:01:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=tdPr1qJ7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728812AbfDPDAK (ORCPT + 99 others); Mon, 15 Apr 2019 23:00:10 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:44322 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726823AbfDPC4d (ORCPT ); Mon, 15 Apr 2019 22:56:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=mVAr0l6RUJlSrojWvjxsu5uos/oGuj+XV3N9W44HcxY=; b=tdPr1qJ7kkXSZ6XSoTmbOgz63O rP6leWkR9UQIHKrkiFgeOixG7jzHIajHZJj11tj6cjDsABfvuLkLeCeHOzw2dGmpDq8A0groweIHv DMDL7QtvQqtTtl33PVvAhVTRrg2Z9sPSCUe5tdSo1i2ntVgNbEAjqKAAeYhfvt1cRkJekZq92ishw jwlg9xFyCQwQTez2jlZ356xf6n5ZewHVeiiNcj3BhoDYC+05eZzbgpcgmfwG7WnK035OAJ9TTvJnR nxetqnDa/BtBeNkfGPZQWy7HUZHicjPNDe6GmnGTh3//5PGbXt9aEJQqi17ddsTOPQCkMqKIujWdO T5rioCVA==; Received: from 177.205.118.176.dynamic.adsl.gvt.net.br ([177.205.118.176] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGEGu-0007an-P7; Tue, 16 Apr 2019 02:56:32 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92) (envelope-from ) id 1hGEGo-0001pN-4G; Mon, 15 Apr 2019 23:56:26 -0300 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet Subject: [PATCH 44/57] docs: lp855x-driver.txt: convert to ReST and move to kernel-api Date: Mon, 15 Apr 2019 23:56:09 -0300 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.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. Signed-off-by: Mauro Carvalho Chehab --- Documentation/backlight/lp855x-driver.txt | 65 ++++++++++++++--------- 1 file changed, 40 insertions(+), 25 deletions(-) diff --git a/Documentation/backlight/lp855x-driver.txt b/Documentation/backlight/lp855x-driver.txt index 01bce243d3d7..1e0b224fc397 100644 --- a/Documentation/backlight/lp855x-driver.txt +++ b/Documentation/backlight/lp855x-driver.txt @@ -1,9 +1,11 @@ +==================== Kernel driver lp855x ==================== Backlight driver for LP855x ICs Supported chips: + Texas Instruments LP8550, LP8551, LP8552, LP8553, LP8555, LP8556 and LP8557 @@ -14,53 +16,66 @@ Description * Brightness control -Brightness can be controlled by the pwm input or the i2c command. -The lp855x driver supports both cases. + 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 + 1) bl_ctl_mode -2) chip_id -The lp855x chip id. -Value : lp8550/lp8551/lp8552/lp8553/lp8555/lp8556/lp8557 + 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. +* 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 +Examples +======== -#define EEPROM_A5_ADDR 0xA5 -#define EEPROM_A5_VAL 0x4f /* EN_VSYNC=0 */ +1) lp8552 platform data: i2c register mode with new eeprom data:: -static struct lp855x_rom_data lp8552_eeprom_arr[] = { + #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 = { + 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 platform data: pwm input mode with default rom data:: -static struct lp855x_platform_data lp8556_pdata = { + static struct lp855x_platform_data lp8556_pdata = { .device_control = PWM_CONFIG(LP8556), .initial_brightness = INITIAL_BRT, .period_ns = 1000000, -}; + }; -- 2.20.1