From patchwork Fri Jan 26 14:55:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Aishwarya Pant X-Patchwork-Id: 10186173 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EDDFE601D5 for ; Fri, 26 Jan 2018 14:55:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC66D29411 for ; Fri, 26 Jan 2018 14:55:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D01522947E; Fri, 26 Jan 2018 14:55:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 485122945E for ; Fri, 26 Jan 2018 14:55:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753264AbeAZOzk (ORCPT ); Fri, 26 Jan 2018 09:55:40 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:37273 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753263AbeAZOzj (ORCPT ); Fri, 26 Jan 2018 09:55:39 -0500 Received: by mail-pg0-f67.google.com with SMTP id z17so409519pgc.4; Fri, 26 Jan 2018 06:55:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=fNxOFxSz/YAiD4AxKcS+3r4sV5aK0KuwsJ1xiXt3MjI=; b=Y7ho2gNzgYZDy7r2OoTIpmkijQ8izEFGjPQJQ2GK9aD7qMTAEm2giO17HoTZSBYvaG QD5V4Gk9C6jWEIGp79Rzhkl9p79kg1qcDxm7ysz1jnhpuR7KAv8bMxWAGX+u+T8855I6 davWhsg+n2aEuu4url1SD8pP91LtrZ0DfsAzLBT07kv9AYn34xP6tOt5o7bgDHt49UkZ maDHLCG3pDokFwz8ZKnEGjYmOsqSZJBhX8fDCS4z2wFI6RFznb1aCJtWNRU8V1NmC3MT CcqBq+xvwDLVGfzQH59qMkEV9lYe/DhTlIZwBuqwDdBSarUzbZtF33vtmhnQMYKokjl5 V2RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=fNxOFxSz/YAiD4AxKcS+3r4sV5aK0KuwsJ1xiXt3MjI=; b=TlfPmTzgs4ypeitKUn3cauHblvZJ13gdIQMkkXECRGnrKZTXwjDuQp1sszrh8CR5dS fzHpEVpmpIxZJ6z/rb7RXOeci+oipXWeMPyQ1TWY4T+ptuELWju/eGFPRuhkXqzJbC6Z qXYigOvtPMM37zbU3v9aCDQZmfoaSffACfwMWAcbKo2YqqZe/DTyoJkhmpD910L0Jn4k HhgzfD37duFv4e+v8XY46yPeM4aZliPYU/hblS/yP9F9nCRl5jUdaJzI49gs4qs0yByP d+Fs3XAG7c/vym+E2jEpICM+YTbItI/8pYp7Dqg0trNg/Ezs7nPs/7YWwVM4NK0/Y5Z/ yMGg== X-Gm-Message-State: AKwxyteqVq1hpvlPSZYaxaQWqGMxfND+bZ35ewVtvgagzeGkUm5balyE q2T4GEkgBZHYayjGo05um0ngSw== X-Google-Smtp-Source: AH8x227v0Hl0dDKCDKy9sMCCZJixh6b0ytWFuXMVxe2yT0GVu0FQjgzC4FQ8WgDpW2kRXdXZ6Z63Sw== X-Received: by 2002:a17:902:34f:: with SMTP id 73-v6mr14543790pld.122.1516978539023; Fri, 26 Jan 2018 06:55:39 -0800 (PST) Received: from mordor.localdomain ([49.205.216.57]) by smtp.gmail.com with ESMTPSA id m9sm18615458pff.59.2018.01.26.06.55.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Jan 2018 06:55:38 -0800 (PST) Date: Fri, 26 Jan 2018 20:25:31 +0530 From: Aishwarya Pant To: Lee Jones , Daniel Thompson , Jingoo Han , Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Corbet , Greg KH , Michael Hennerich Cc: Julia Lawall Subject: [PATCH 5/5] backlight: adp8860: document sysfs attributes Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add documentation for sysfs interface of adp8860 series backlight devices by reading through code and git commits. Signed-off-by: Aishwarya Pant Acked-by: Michael Hennerich --- .../ABI/testing/sysfs-class-backlight-adp8860 | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-adp8860 diff --git a/Documentation/ABI/testing/sysfs-class-backlight-adp8860 b/Documentation/ABI/testing/sysfs-class-backlight-adp8860 new file mode 100644 index 000000000000..54d61c788b1b --- /dev/null +++ b/Documentation/ABI/testing/sysfs-class-backlight-adp8860 @@ -0,0 +1,54 @@ +sysfs interface for analog devices adp8860 backlight driver +----------------------------------------------------------- + +The backlight brightness control operates at three different levels for the +adp8860, adp8861 and adp8863 devices: daylight (level 1), office (level 2) and +dark (level 3). By default the brightness operates at the daylight brightness +level. + +What: /sys/class/backlight//ambient_light_level +Date: Apr, 2010 +KernelVersion: v2.6.35 +Contact: Michael Hennerich +Description: + (RO) 13-bit conversion value for the first light sensor—high + byte (Bit 12 to Bit 8). The value is updated every 80 ms (when + the light sensor is enabled). + + +What: /sys/class/backlight//ambient_light_zone +Date: Apr, 2010 +KernelVersion: v2.6.35 +Contact: Michael Hennerich +Description: + (RW) Read or write the specific level at which the backlight + operates. Value "0" enables automatic ambient light sensing, and + values "1", "2" or "3" set the control to daylight, office or + dark respectively. + + +What: /sys/class/backlight//l1_daylight_max +What: /sys/class/backlight//l2_office_max +What: /sys/class/backlight//l3_dark_max +Date: Apr, 2010 +KernelVersion: v2.6.35 +Contact: Michael Hennerich +Description: + (RW) Maximum current setting for the backlight when brightness + is at one of the three levels (daylight, office or dark). This + is an input code between 0 and 127, which is transformed to a + value between 0 mA and 30 mA using linear or non-linear + algorithms. + + +What: /sys/class/backlight//l1_daylight_dim +What: /sys/class/backlight//l2_office_dim +What: /sys/class/backlight//l3_dark_dim +Date: Apr, 2010 +KernelVersion: v2.6.35 +Contact: Michael Hennerich +Description: + (RW) Dim current setting for the backlight when brightness is at + one of the three levels (daylight, office or dark). This is an + input code between 0 and 127, which is transformed to a value + between 0 mA and 30 mA using linear or non-linear algorithms.