From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from 90-46-11-204.rar.beartech.net ([204.11.46.90]:32468 "EHLO exchsrvr.taosinc.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751369Ab2EAV0t convert rfc822-to-8bit (ORCPT ); Tue, 1 May 2012 17:26:49 -0400 Subject: [PATCH V1] RFC - Proposed IIO Documentation patch to add CCT and RGBC data From: Jon Brenner To: linux-iio Cc: Jonathan Cameron Content-Type: text/plain; charset="UTF-8" Date: Tue, 01 May 2012 16:27:34 -0500 Message-ID: <1335907654.766.24.camel@jonz-ub2> Mime-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org List-Id: linux-iio@vger.kernel.org Request for Comments - Documentation patch to add Correlated Color Temperature (CCT) and RGBC (red/green/blue/clear) data. The addition of CCT and RGBC is afforded by utilizing a 'real channel' type of IIO_CCT, and 4 modifiers of IIO_MOD_LIGHT_CLEAR, IIO_MOD_LIGHT_RED, IIO_MOD_LIGHT_GREEN, and IIO_MOD_LIGHT_BLUE, found in types.h. A trivial addition to industrialio-core.c is required. in_cct0_input will return typically return the color temperature expressed in kelvins. IIO_MODIFIERs are respective of the associated light frequencies for each of the channels. Signed-off-by: Jon Brenner --- .../staging/iio/Documentation/sysfs-bus-iio-light | 46 ++++++++++++++++++++ 1 files changed, 46 insertions(+), 0 deletions(-) diff --git a/drivers/staging/iio/Documentation/sysfs-bus-iio-light b/drivers/staging/iio/Documentation/sysfs-bus-iio-light index 715c74d..bd42baf 100644 --- a/drivers/staging/iio/Documentation/sysfs-bus-iio-light +++ b/drivers/staging/iio/Documentation/sysfs-bus-iio-light @@ -34,6 +34,15 @@ Description: it comes back in SI units, it should also include _input else it should include _raw to signify it is not in SI units. +What: /sys/bus/iio/devices/device[n]/in_cct0[_input|_raw] +KernelVersion: 3.4.0 +Contact: linux-iio@vger.kernel.org +Description: + This should return the correlated color temperature from the + light sensor. If it comes back in SI units, it should also + include _input else it should include _raw to signify it is not + in SI units. + What: /sys/.../device[n]/proximity_on_chip_ambient_infrared_supression KernelVersion: 2.6.37 Contact: linux-iio@vger.kernel.org @@ -82,3 +91,40 @@ Contact: linux-iio@vger.kernel.org Description: This property gets/sets the table of coefficients used in calculating illuminance in lux. + +What: /sys/bus/iio/devices/device[n]/in_intensity_clear[_input|_raw] +KernelVersion: 3.4.0 +Contact: linux-iio@vger.kernel.org +Description: + This property is supported by sensors that have a RGBC + sensing mode. This value should be the output from a reading + and if expressed in SI units, should include _input. If this + value is not in SI units, then it should include _raw. + +What: /sys/bus/iio/devices/device[n]/in_intensity_red[_input|_raw] +KernelVersion: 3.4.0 +Contact: linux-iio@vger.kernel.org +Description: + This property is supported by sensors that have a RGBC + sensing mode. This value should be the output from a reading + and if expressed in SI units, should include _input. If this + value is not in SI units, then it should include _raw. + +What: /sys/bus/iio/devices/device[n]/in_intensity_green[_input|_raw] +KernelVersion: 3.4.0 +Contact: linux-iio@vger.kernel.org +Description: + This property is supported by sensors that have a RGBC + sensing mode. This value should be the output from a reading + and if expressed in SI units, should include _input. If this + value is not in SI units, then it should include _raw. + +What: /sys/bus/iio/devices/device[n]/in_intensity_blue[_input|_raw] +KernelVersion: 3.4.0 +Contact: linux-iio@vger.kernel.org +Description: + This property is supported by sensors that have a RGBC + sensing mode. This value should be the output from a reading + and if expressed in SI units, should include _input. If this + value is not in SI units, then it should include _raw. + -- 1.7.4.1