Received: by 10.223.176.5 with SMTP id f5csp360362wra; Mon, 5 Feb 2018 23:42:37 -0800 (PST) X-Google-Smtp-Source: AH8x226eF11MVsF4JC0Ugtf+hPw1Xon4KEsfK9apCDd1GMIdKDGFM5IAqS6Q2SevlKgoy11oU6OY X-Received: by 10.101.78.12 with SMTP id r12mr1260875pgt.33.1517902957813; Mon, 05 Feb 2018 23:42:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517902957; cv=none; d=google.com; s=arc-20160816; b=YZwAsLKEBdbIvlLcr3WWuBcwHfwnutWHeb5TT6EnHed24z33BnJnmBO3Fu9iCnaPAt MTK5D2CEqlN4liGOZS0WOBnB7S5scfcqB0hBy+SJaFvfZGGSy6qwtcsNh1GlI8GZYoTq +hBijlKlxwmGjN2rzT2RJKrQzgToRGEIhNTrCqSdkzP4qiJEuuaMl2tsQ8vYc79EdGYO HS9qxdZ9QKjO83ktwjXg9BuPPoKaf1cPGRKoLzSmumCUVPdrJqzZ0UdwT9RP4JwcfbnQ QyU0EZ3oeQ4XU2aDEig3pwO+F9vXOl6R/dzQl5pKvMUWW9Z7vPdEPDpmSBA4iBtN30CC qerQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=DkA8xP23dko0P6AGi3dR2//3FaAir5I3tMKjjipOLf4=; b=MC0dH+pfMAzjiHqXt5EzqkWIUfSRyZMVKmMcDs0sowKDd2PTzwjS0tvCzjmbjrwtHu YK1jBqTmRNNFaka3wRseyr8SV4AvgO0EzEgwrXcSoDjpJbqUghn2t/J9PaXVFQgQt+z8 PHobsFtRL0C7bxctFk04oaUv0x0Gj4bYk2LvjFEkUR+X/O0cDqwX2IJbLiXUUOSOQAIO v6MPe9Xh0yutcjeNtQAYZvDit2cETLZDYwsZPSLmA5MH7CfTVCKHI0Sll0W0Er0SNfmW 4Nbcn3LSynRjapV0xyff1BvzmAxdD/Nx4adXJlOWEw8MqGRftYSDxR0CKd3PVw9MVaLV tscQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tgBuxw1/; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bf1-v6si1023315plb.373.2018.02.05.23.42.24; Mon, 05 Feb 2018 23:42:37 -0800 (PST) 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=pass header.i=@gmail.com header.s=20161025 header.b=tgBuxw1/; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752574AbeBFHlj (ORCPT + 99 others); Tue, 6 Feb 2018 02:41:39 -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-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-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- 2.16.1