Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1437952ybn; Wed, 25 Sep 2019 18:31:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqycb7SwUksPmgSOChjvTZM6ZZJvW1PEReUasCULcusgST/zrR0fQOHrdSyGcjgrv7pRElbw X-Received: by 2002:a17:906:2794:: with SMTP id j20mr944374ejc.291.1569461476550; Wed, 25 Sep 2019 18:31:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569461476; cv=none; d=google.com; s=arc-20160816; b=gDfWXaqHZtjvNjlktB1uxCQxWeMtJ9e0KTzYNe7iGJ0unpH5I21U2h7AGLhz+b6skY aIDDIPrygxfjjTicY4YLJMMRhgOEGgfye5hx12ZAR5kI//TanuUZdFj7WReXZOHvHdi8 xCsrOw0E93redO8jvbE9qQZCjGr9fWr1EIg3PUGja/r5dudC2BIWPeS9yoM4o8mhWT2I S4lFKjTeJOFtlhAcoa9krkpr1L0CLSxsfz3GGpmZQFVD694Cmit26useNti8fdrxulVe MLFLmJ8rlhiPbVsfReyAYknHhDEL30+lyijlTHBlIAKyYQqJB1B+zrE2hGG+4z+N/S/5 RBZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=0d4AYNtRkLfpkDim1W4lc4CifwLMiEr/+iKYtJT4Oxw=; b=PBVD7NXA/U+EhVutPxw/AjI9O36v8dkfXgijtfpyShzIKHD5HaYI5ZIDKfcWfn0e6E IaOuMfmP3bWtG4JEHnrOAsUfu5raWKff5r5JwFgUBEwL1RXOtX+Cj+U5hZ4Pw/sRXqw+ Offv31K7eXXtkMdwy2hINx65WvbgwZayE6d8QYGOwcX7nUGCipMP0uSkGx1D3gJk8+GM 20e+lbDkWz6JMOUhqsWTeDvxl9DPYRldPAMD17IsjKQZnJoLk7MuPcDPMjqV3FYsyGDm 4jCko6hUdhoW7Nf3veJYYpBPMXMmzOcfFDP+OFBrhS9BzfWNyYe7AApnPAGsSATzvaKS 8mhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SNogPM1q; 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=QUARANTINE 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 e2si292553eje.151.2019.09.25.18.30.52; Wed, 25 Sep 2019 18:31:16 -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=pass header.i=@gmail.com header.s=20161025 header.b=SNogPM1q; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405982AbfIXK6O (ORCPT + 99 others); Tue, 24 Sep 2019 06:58:14 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:43987 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388652AbfIXK6O (ORCPT ); Tue, 24 Sep 2019 06:58:14 -0400 Received: by mail-pg1-f195.google.com with SMTP id v27so1103677pgk.10; Tue, 24 Sep 2019 03:58:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=0d4AYNtRkLfpkDim1W4lc4CifwLMiEr/+iKYtJT4Oxw=; b=SNogPM1q0Frg3ofEOIbzuKjAsn9fM85Ga0XT+07KBQBIsm3ODaiWzScBEJuJSJiUxq pcflkTkN5Km1oZPWwCChI9r3ekxI9KTs+3TxKI3i5UzqGZEBDMkltcAV5V3q5k45aJY3 tHnu3U5gNw/K2FpT2lkkz6S06LZ0JUx6sXHyKy7XTIr/M4sVKL1dXq12J55shoWdN23z ESGi6ngX00V9SvtrmdVRL107HJ/0UMCo0//hacU0g+YW1JfP4ZeTSnNsG2h/Cud2RPun oc8JJfE1rf/Qu7XtViNGWvLm6dseO9D/uf3gQ977Jc7ZfBLtbMPqzsZ/VJfU5ayyKe7u 22/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=0d4AYNtRkLfpkDim1W4lc4CifwLMiEr/+iKYtJT4Oxw=; b=nD6Lin5kbo4bGc4g76vO4YOmx0Faec7QTY1/UJFBA35WswDsAJhyDWSR1wxjHa7PHZ 1PsqKPkwjy9Lcv7qqdxsRJR2IT/0m29PpS7lI1ZCalyp56k5AhVCGuAGyfbbP4kD6vPz nQ38H0xK04PcS/mtEHcqZUwnLfGm9B9eYKQeFcr5QHUi+fhFOVmszNynYEYxudZ0SdBM UJShdkOe/UHbQ/fP8DdPoDNPL5CpVql3PVk2kActs9gljNCW/htvjJqFgEUVnie9c2hz 1I73MAUARC6WQuxbO6NFd3Xb1yrJQt9+xulerRHlAkCDqAtz5TjyPFnSIWxntHtW6qJS ciJQ== X-Gm-Message-State: APjAAAULp+j+8X77Eb/g2F1QqpjbCJrq996wwEPnrd8ymf25yAkgd8mB U2MhNDWDViFXRuKol/oWZmw= X-Received: by 2002:a62:4e0f:: with SMTP id c15mr2689062pfb.42.1569322693271; Tue, 24 Sep 2019 03:58:13 -0700 (PDT) Received: from localhost.localdomain ([106.51.110.135]) by smtp.gmail.com with ESMTPSA id c125sm1953886pfa.107.2019.09.24.03.58.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Sep 2019 03:58:12 -0700 (PDT) From: Rishi Gupta To: jic23@kernel.org Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, tglx@linutronix.de, allison@lohutok.net, alexios.zavras@intel.com, angus@akkea.ca, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, hslester96@gmail.com, wsa+renesas@sang-engineering.com, Rishi Gupta Subject: [RESEND PATCH v2 3/3] iio: documentation: light: Add veml6030 sysfs documentation Date: Tue, 24 Sep 2019 16:21:58 +0530 Message-Id: <35614391cf5e79765a6151ce998a213544562a37.1569321085.git.gupt21@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver for veml6030 light sensor provides custom sysfs entries used to know parameters supported by the driver and to configure sensor like setting power saving mode and persistence etc. This commit document them. Signed-off-by: Rishi Gupta --- Changes in v2: * Nothing has changed in this file .../ABI/testing/sysfs-bus-iio-light-veml6030 | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-light-veml6030 diff --git a/Documentation/ABI/testing/sysfs-bus-iio-light-veml6030 b/Documentation/ABI/testing/sysfs-bus-iio-light-veml6030 new file mode 100644 index 0000000..13589c9 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-bus-iio-light-veml6030 @@ -0,0 +1,49 @@ +What: /sys/bus/iio/devices/iio:deviceX/in_illuminance_psm_available +Date: September 2019 +KernelVersion: 5.3.1 +Contact: Rishi Gupta +Description: + Provides list of valid values that can be used to activate a + particular power saving mode in sensor. For ex; 1 means psm + mode 1 and 2 means psm mode 2. + +What: /sys/bus/iio/devices/iio:deviceX/in_illuminance_psm +Date: September 2019 +KernelVersion: 5.3.1 +Contact: Rishi Gupta +Description: + Writing '1' will activate power saving mode 1 in sensor. + Similarly, 2 is to activate psm mode 2 and so on. + +What: /sys/bus/iio/devices/iio:deviceX/in_illuminance_period_available +Date: September 2019 +KernelVersion: 5.3.1 +Contact: Rishi Gupta +Description: + List of valid values available in multiples of integration time + for which the light intensity must be above the cutoff level + before interrupt is asserted. This refers to persistence values. + +What: /sys/bus/iio/devices/iio:deviceX/events/in_illuminance_thresh_either_period +Date: September 2019 +KernelVersion: 5.3.1 +Contact: Rishi Gupta +Description: + Value in multiple of integration time for which the light intensity must + be above the cutoff level before interrupt is asserted. + +What: /sys/bus/iio/devices/iio:deviceX/events/in_illuminance_thresh_rising_value +Date: September 2019 +KernelVersion: 5.3.1 +Contact: Rishi Gupta +Description: + Raw threshold value from 0 to 0xffffffff. An interrupt will be asserted whenever + light intensity is above this value. + +What: /sys/bus/iio/devices/iio:deviceX/events/in_illuminance_thresh_falling_value +Date: September 2019 +KernelVersion: 5.3.1 +Contact: Rishi Gupta +Description: + Raw threshold value from 0 to 0xffffffff. An interrupt will be asserted whenever + light intensity is below this value. -- 2.7.4