From patchwork Tue Feb 6 07:41:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Aishwarya Pant X-Patchwork-Id: 10202457 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 45D1E601A1 for ; Tue, 6 Feb 2018 07:41:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 387C028A2D for ; Tue, 6 Feb 2018 07:41:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2CEE928A78; Tue, 6 Feb 2018 07:41:34 +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 93A1E28A2D for ; Tue, 6 Feb 2018 07:41:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752263AbeBFHla (ORCPT ); Tue, 6 Feb 2018 02:41:30 -0500 Received: from mail-it0-f65.google.com ([209.85.214.65]:34504 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752278AbeBFHlV (ORCPT ); Tue, 6 Feb 2018 02:41:21 -0500 Received: by mail-it0-f65.google.com with SMTP id j21-v6so10559264ita.1; Mon, 05 Feb 2018 23:41:20 -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=DkA8xP23dko0P6AGi3dR2//3FaAir5I3tMKjjipOLf4=; b=tgBuxw1/8rv4mFldGiz5GERpjvgfO3sqn8yQalEQlNUT3tSadhxEyH2Zvo/3H6pnsx RiJToifK9yVQJi+gvKTiZRtBG4CIfuAqiYl/0tmxCE02c25s+emk8anXZ3G5wbSmQl2B 8lQuK2TfHoDbyisslz6qoBgXDndymHoEB/Vgj5HbegDLemxgTvDEUqjrWVfcKvsnvRTB oAysc2PPwVo9UAzisu6Gye2fg0l4XlIwxy5RhKzfHAfzO5CKQlBL9X9l/TqF7f3FZCjA 8bCZNLHDsv5D+CbCBj1BFP+9WVlUpxBiB43JknFY+A6v376EN/M7xOv3F1Xof1QQwF60 OZsA== 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=DkA8xP23dko0P6AGi3dR2//3FaAir5I3tMKjjipOLf4=; b=Qb6ULRllfH6+Sx+h6Ai2SJT5+1wh/yY9vTx1ZVfP21zvZXdNnXRSW1p+fid398XaiK IDkN+QjC2hgFqwemhxBmNn0Tk05G01AN+IES5TN3lYhQ5LQTxQ6PWbRz1IkabIsav9dU Y9zuhAreGcZmq69bWI4S9IV7nhvLcckxfZ8iCrOF7zHeCnpG6aoydrBW1zs5tVyWujSL XInqrq/5K51IKBGIkusV64t2lVKfi1T0lEgHnXRhFjNNS/sVjLo+O90DL125vSCb4hBQ CYlzpBgcpJarhH3kXDHcXoRRX/WXIC6XP6z5qk9VuAUdHnBWEUQZ1Xafb89SlNQ8CjoY sUpw== X-Gm-Message-State: APf1xPADnlKcDmEI4hv9wqGsHJAlqn278qBwL/UO++AFuzxnU1siYe6J MXQEJ6W0isXZfEMLMgDZeFY= X-Google-Smtp-Source: AH8x2276YFiGThB0FTNVQVkI3F6VY2sSg8+QdgK4ZPV1/PtzCh/hQMUjlbmEt+cKuSTGOig6p/iVPw== X-Received: by 10.36.64.146 with SMTP id n140mr1881503ita.46.1517902880164; Mon, 05 Feb 2018 23:41:20 -0800 (PST) Received: from mordor.localdomain ([49.205.217.87]) by smtp.gmail.com with ESMTPSA id e132sm6587913ite.41.2018.02.05.23.41.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Feb 2018 23:41:19 -0800 (PST) Date: Tue, 6 Feb 2018 13:11:12 +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 v2 3/3] backlight: adp8860: document sysfs attributes Message-ID: <4a486ddca7b33844765f6773fd41e91f1fa9b2fb.1517902411.git.aishpant@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) 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 Acked-by: Daniel Thompson --- .../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.