Received: by 10.223.176.46 with SMTP id f43csp785238wra; Fri, 26 Jan 2018 06:56:24 -0800 (PST) X-Google-Smtp-Source: AH8x226EmPgmzj1scgRV1PGvOLrwC5eZ+ySQ8FErFpVKiKLgPa0r+/cPiH7Ndy1H0HEF0uXaIHCO X-Received: by 10.98.9.67 with SMTP id e64mr19124179pfd.230.1516978584470; Fri, 26 Jan 2018 06:56:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516978584; cv=none; d=google.com; s=arc-20160816; b=dNhI2RA2DoRDzVCsX+fqtg9O0mcEU647WSBOyyBsu/4cnZ1IiOMW2Mvlv21bBLAeUP tWyO/xnp5uG6cogjAsHMfO/1GJoNn80xwVYI5dDZ709CVrOW4OIeiIq59fzCqjH0lkKh c2aWk7Az/xAswsQI8OO2bNQ+c3+DruCxVU7Djhxz7P2c4Me9o/xe9oD1FtxhH+5Hfvvm EyBBnV1q0s8lY5zLewtSclMh5+HD4e5/Aqn/wYvGjIfw8s0grU0MtrosEWgUgY83mZ7+ UBB68IiDcjS5vEBxzPdWSG++H5Pgc3zoMX2dGWELxWY7BJlzw2bLBOtQ7Kd5i3TbCGaW /RQw== 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=fNxOFxSz/YAiD4AxKcS+3r4sV5aK0KuwsJ1xiXt3MjI=; b=giVII6TTt1uTz0EX09z2cRFPgo1HeInR/z+9NLsAdGj9Gz5JGPtAqXbLeT+QqspWal h7nWaPOmXmzhUDfhjLNTFKLrMq2nPyVVjwPd125rH5qv1BkeiEK+bf39L1ywiVpLiaDc QThqAEVbgvW2Kh2xnDq3jvvtcEZ09mmL3EowntS0EsQYNvmJ0ehUj74qcxrisP0XxWOH SLVF1nY1eTrVimpep3xPL+J211EcDnuTxT5PGoDme59PPibQGIA1Ly/fIc976iPpBTTt NtEF7u683vp+bEKuDl4A+43ar0PcqR6LmJ2MdzukiJQsavun0R1g8+hOvFhJl5tZvXVX 1NHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Y7ho2gNz; 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 n19si3090403pgd.648.2018.01.26.06.56.09; Fri, 26 Jan 2018 06:56:24 -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=Y7ho2gNz; 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 S1753393AbeAZOzl (ORCPT + 99 others); Fri, 26 Jan 2018 09:55:41 -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-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-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) 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 --- .../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