Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4275415ybg; Mon, 21 Oct 2019 06:34:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjYGcrsi5vDMXx9b4JsOogR0i33dRKYPfkJB2hsHLiKqYDCN0eOyyx1D9BMPjSVa84Zz2D X-Received: by 2002:a17:906:134a:: with SMTP id x10mr22197975ejb.204.1571664885726; Mon, 21 Oct 2019 06:34:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571664885; cv=none; d=google.com; s=arc-20160816; b=lTEr2a0u4o+vWNwQ7/iFF5PwdCR0R4BpIhKBdZokdRamvsjcdRtmSE7il3jDxygWqT WsETMag9Y8jJEcA68UqJqVMH2YmbT/EcXfoLiKuCA96JWaVnaSijs6Y/RPABpY0ns8uf GlSgJ8+eSHyATZeH9ryJLF4jVnsp8xcHjX3YXJVdoZrjGa8XYGi1stxcdTo8B2NJQDZF QTMih+2cl5+fyFMsziJJGoQM4NkSNAKg2cMt5cAuM1UTyb7NAp0n0XgeelOuCetQYtaY PRhNDDrth1gxQ0BEinNoiSAyDxo/5wfOlb0/8CYCE+24pcptKgReA5gKifFhtN8ESctS OtLA== 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:message-id:date :subject:cc:to:from:dkim-signature; bh=6TBjAovqEnEPL9uVV/+gWkAn7AsiTJRh7RaEnv55usQ=; b=hw0EctD+1j4C2fx7oRQ7/bZu+2EeWJ6rmVPLdnrgUOoiUhreiBUpbGaOSbB0eaiQ5g aoue6cYCdjsJIXT4x6uXQP3ZiYucTOSAI0rFbb5DAstTwe16WLVsWgHtzkBQ2tsdgLY3 sAkoUWL69EyTx7Yy1I30Zky8dT3fB9tTTQrCP4yaT0YhjJUHy6nfYerVSM7INo/TD31j M5YW827UqDBzi8gniIkvhjzBgDf69YoEWshEpyn/Tn3ZqxuDULKEvn/EqYZpsMME/nok cg6SS4nBSN8Tpo5mS8H/T8vHJ7zIfpmASxm/6QQUYVyFiaebAJkV3lTo6oAQb5ZObYsr AAdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="tx2/aG5V"; 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 x25si640329ejb.284.2019.10.21.06.34.22; Mon, 21 Oct 2019 06:34:45 -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="tx2/aG5V"; 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 S1728891AbfJUNb7 (ORCPT + 99 others); Mon, 21 Oct 2019 09:31:59 -0400 Received: from mail-pf1-f179.google.com ([209.85.210.179]:46803 "EHLO mail-pf1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727322AbfJUNb7 (ORCPT ); Mon, 21 Oct 2019 09:31:59 -0400 Received: by mail-pf1-f179.google.com with SMTP id q5so8435165pfg.13; Mon, 21 Oct 2019 06:31:57 -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; bh=6TBjAovqEnEPL9uVV/+gWkAn7AsiTJRh7RaEnv55usQ=; b=tx2/aG5V8m4d9lpW+zACp1mkWbb7GUKFwHhv2mscZpInr4DKgYWZCH73CR1/dALmJJ cx0A6QTfYIs6HfVMX7kPU1rTxDfFUraZSwFa8mjIxy61xVfm/vVczjBOaHB7xtd9qsvC bBpF6417d434ACzjbIrei2bZXoDWdnF9JQor9Us4XmtIu/PSE/OI687tsWpqdWx2/TJ2 LjOayZfTeOewZmgYjB76+7ScqEIMlNhYWqigt4GybI84XnqlcVMpqWPAsqiJvnkxX293 b8ejUiZ0ZjbUd2H9d/hWxgd9RlOC7I0K7rPGSDpUMMachrWqOgPhefZqAqwO/TgvD3Fd FWNg== 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; bh=6TBjAovqEnEPL9uVV/+gWkAn7AsiTJRh7RaEnv55usQ=; b=t9/A18qsTkRQ3+T0jb9liNv+V1OShG2lyHtz06RSPz0r6tW2+JX57rp0XWVW0jBABw tMhZoXz7dMmc1MM7EuafvK9jrs/R3VVS/WMCJWKKHs5TnXd+qPNNI9bgy85wX5HSjyZv g919ohL1AyoUv8bLyqpIhoOoQhra8kOTZQLTlaHGvx3JvaGvpn5739vNkWQ2IeypZKeY bFfDWsDM+yOwRy4uU8Z/eLdhROB9y1LWbw4/NfYsAHZwPxFD5JXGoD54Dc7IfatJgBYW 8Aj5gH3DRds/d/ZhMgJXmjjCkVNKqmq/F0JZGhlgM5DuDUbz4x1ptWSZlS5pCUyUPJhj e5cQ== X-Gm-Message-State: APjAAAWBq20OAWFtL7+bcirKV8tYVDZPpysmUiPdIC+RB/3l0a2QAjPl Mylk69nxa0hTuwOmn5cH3viURgOXemU= X-Received: by 2002:aa7:8046:: with SMTP id y6mr23200495pfm.178.1571664716898; Mon, 21 Oct 2019 06:31:56 -0700 (PDT) Received: from localhost.localdomain ([106.51.104.0]) by smtp.gmail.com with ESMTPSA id e184sm17082252pfa.87.2019.10.21.06.31.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Oct 2019 06:31:56 -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, Rishi Gupta Subject: [PATCH v3 3/3] iio: documentation: light: Add veml6030 sysfs documentation Date: Mon, 21 Oct 2019 19:01:45 +0530 Message-Id: <1571664705-7123-1-git-send-email-gupt21@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <20191005151119.56c65d71@archlinux> References: <20191005151119.56c65d71@archlinux> 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 v3: * Updated Date from September to October * Updated KernelVersion from 5.3.1 to 5.4 * in_illuminance_period_available is now in events directory Changes in v2: * None .../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..13cd321 --- /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: October 2019 +KernelVersion: 5.4 +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 and so on. + +What: /sys/bus/iio/devices/iio:deviceX/in_illuminance_psm +Date: October 2019 +KernelVersion: 5.4 +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/events/in_illuminance_period_available +Date: October 2019 +KernelVersion: 5.4 +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: October 2019 +KernelVersion: 5.4 +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: October 2019 +KernelVersion: 5.4 +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: October 2019 +KernelVersion: 5.4 +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