RFC - Proposed IIO Documentation patch to add CCT and RGBC data
Subsystems (3)
PATCH 1/1 RFC - Proposed IIO Documentation patch to add CCT and RGBC data
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.
--- .../staging/iio/Documentation/sysfs-bus-iio-light | 46 ++++++++++++++++++++ 1 files changed, 46 insertions(+), 0 deletions(-)
drivers/staging/iio/Documentation/sysfs-bus-iio-light +46 -0
@@ -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: [email protected] +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: [email protected]
@@ -82,3 +91,40 @@ Contact: [email protected] 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: [email protected] +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: [email protected] +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: [email protected] +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: [email protected] +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
Added cc's
Jon, remember to wrap emails at 80 chars please!
Quoted 89 lines
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 ofIIO_MOD_LIGHT_CLEAR,IIO_MOD_LIGHT_RED,IIO_MOD_LIGHT_GREEN, andIIO_MOD_LIGHT_BLUE, found intypes.h. A trivial addition toindustrialio-core.cis required.
in_cct0_inputwill return typically return the color temperature expressed in kelvins.
IIO_MODIFIERsare respective of the associated light frequencies for each of the channels.Signed-off-by Jon Brenner<[email protected]>--- .../staging/iio/Documentation/sysfs-bus-iio-light | 46 ++++++++++++++++++++ 1 files changed, 46 insertions(+), 0 deletions(-)drivers/staging/iio/Documentation/sysfs-bus-iio-light +46
-1@@ -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: [email protected] +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: [email protected]@@ -82,3 +91,40 @@ Contact: [email protected] 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: [email protected] +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: [email protected] +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: [email protected] +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: [email protected] +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
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Jonathan Cameron
maintainerQuoted 12 lines · Jonathan Cameron
Added cc's
Jon, remember to wrap emails at 80 chars please!
Quoted 9 lines
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 ofIIO_MOD_LIGHT_CLEAR,IIO_MOD_LIGHT_RED,IIO_MOD_LIGHT_GREEN, andIIO_MOD_LIGHT_BLUE, found intypes.h.
If we were to apply this to the existing sensors, how do we distinguish between 'clear' vs the visable+infrared option that is there already? I note below that you have distinguished this by saying it is on a colour sensor only. That seems a little bit inconsistent given a single wide band sensor might be measuring the same thing...
I'm fine with the colour ones btw but one query below..
Quoted 54 lines
Quoted 54 lines
A trivial addition to
industrialio-core.cis required.
in_cct0_inputwill return typically return the color temperature expressed in kelvins.
IIO_MODIFIERsare respective of the associated light frequencies for each of the channels.Signed-off-by Jon Brenner<[email protected]>---
.../staging/iio/Documentation/sysfs-bus-iio-light | 46
++++++++++++++++++++1 files changed, 46 insertions(+), 0 deletions(-)drivers/staging/iio/Documentation/sysfs-bus-iio-light +0
-0@@ -34,6 +34,15 @@ Description:it comes back in SI units, it should also include
_inputelse it should include_rawto signify it is not in SI units.drivers/staging/iio/Documentation/sysfs-bus-iio-light +9
-0+What: /sys/bus/iio/devices/device[n]/in_cct0[_input|_raw] +KernelVersion: 3.4.0 +Contact: [email protected] +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: [email protected]drivers/staging/iio/Documentation/sysfs-bus-iio-light +0
-0@@ -82,3 +91,40 @@ Contact: [email protected]Description:
This property gets/sets the table of coefficients
used in calculating illuminance in lux.drivers/staging/iio/Documentation/sysfs-bus-iio-light +10
-0+ +What: /sys/bus/iio/devices/device[n]/in_intensity_clear[_input|_raw] +KernelVersion: 3.4.0 +Contact: [email protected] +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. +
Quoted 8 lines
drivers/staging/iio/Documentation/sysfs-bus-iio-light Contact: [email protected] · line 111
Quoted 8 lines
drivers/staging/iio/Documentation/sysfs-bus-iio-light +8
-0+What: /sys/bus/iio/devices/device[n]/in_intensity_red[_input|_raw] +KernelVersion: 3.4.0 +Contact: [email protected] +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.
Err. What are the SI units of intensity?
Quoted 31 lines
Quoted 22 lines
drivers/staging/iio/Documentation/sysfs-bus-iio-light +19
-1+ +What: /sys/bus/iio/devices/device[n]/in_intensity_green[_input|_raw] +KernelVersion: 3.4.0 +Contact: [email protected] +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: [email protected] +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
Quoted 4 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
SW4gbGluZS4uDQoNCi0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQpGcm9tOiBKb25hdGhhbiBD YW1lcm9uIFttYWlsdG86amljMjNAa2VybmVsLm9yZ10gDQpTZW50OiBGcmlkYXksIE1heSAxMSwg MjAxMiAyOjQ5IEFNDQpUbzogSm9uYXRoYW4gQ2FtZXJvbg0KQ2M6IEpvbiBCcmVubmVyOyBsaW51 eC1paW87IEFsYW4gQ294OyBzYW11LnAub25rYWxvQG5va2lhLmNvbTsgZGFuaWVsQGNhaWFxLmRl OyBnaW9tZXR0aUBsaW51eC5pdDsga2hhbGlAbGludXgtZnIub3JnOyBhbWl0Lmt1Y2hlcmlhQHZl cmR1cmVudC5jb207IExheG1hbiBEZXdhbmdhbjsgR3JlZyBLcm9haC1IYXJ0bWFuDQpTdWJqZWN0 OiBSZTogW1BBVENIIFYxXSBSRkMgLSBQcm9wb3NlZCBJSU8gRG9jdW1lbnRhdGlvbiBwYXRjaCB0 byBhZGQgQ0NUIGFuZCBSR0JDIGRhdGENCg0KT24gNS8yLzIwMTIgOTozOSBBTSwgSm9uYXRoYW4g Q2FtZXJvbiB3cm90ZToNCj4gQWRkZWQgY2Mncw0KPg0KPiBKb24sIHJlbWVtYmVyIHRvIHdyYXAg ZW1haWxzIGF0IDgwIGNoYXJzIHBsZWFzZS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bnNvcnMgdGhh dCBoYXZlIGEgUkdCQyAgc2Vuc2luZyANCj4+ICttb2RlLiBUaGlzIHZhbHVlIHNob3VsZCBiZSB0 aGUgb3V0cHV0IGZyb20gYSByZWFkaW5nICBhbmQgaWYgDQo+PiArZXhwcmVzc2VkIGluIFNJIHVu aXRzLCBzaG91bGQgaW5jbHVkZSBfaW5wdXQuIElmIHRoaXMgIHZhbHVlIGlzIG5vdCANCj4+ICtp biBTSSB1bml0cywgdGhlbiBpdCBzaG91bGQgaW5jbHVkZSBfcmF3Lg0KPj4gKw0KPj4gLS0NCj4+ IDEuNy40LjENCj4+DQo+PiAtLQ0KPj4gVG8gdW5zdWJzY3JpYmUgZnJvbSB0aGlzIGxpc3Q6IHNl bmQgdGhlIGxpbmUgInVuc3Vic2NyaWJlIGxpbnV4LWlpbyIgDQo+PiBpbiB0aGUgYm9keSBvZiBh IG1lc3NhZ2UgdG8gbWFqb3Jkb21vQHZnZXIua2VybmVsLm9yZyBNb3JlIG1ham9yZG9tbyANCj4+ IGluZm8gYXQgaHR0cDovL3ZnZXIua2VybmVsLm9yZy9tYWpvcmRvbW8taW5mby5odG1sDQo+DQo+ IC0tDQo+IFRvIHVuc3Vic2NyaWJlIGZyb20gdGhpcyBsaXN0OiBzZW5kIHRoZSBsaW5lICJ1bnN1 YnNjcmliZSBsaW51eC1paW8iIA0KPiBpbiB0aGUgYm9keSBvZiBhIG1lc3NhZ2UgdG8gbWFqb3Jk b21vQHZnZXIua2VybmVsLm9yZyBNb3JlIG1ham9yZG9tbyANCj4gaW5mbyBhdCBodHRwOi8vdmdl ci5rZXJuZWwub3JnL21ham9yZG9tby1pbmZvLmh0bWwNCg0K
Jonathan Cameron
maintainerQuoted 7 lines · Jon Brenner
In line..
=20
-----Original Message-----
From: Jonathan Cameron [mailto:[email protected]]=20
Sent: Friday, May 11, 2012 2:49 AM
To: Jonathan Cameron
Cc: Jon Brenner; linux-iio; Alan Cox; [email protected]; daniel@c=
aiaq.de; [email protected]; [email protected]; [email protected]= om; Laxman Dewangan; Greg Kroah-Hartman
Quoted 1 line
Subject: Re: [PATCH V1] RFC - Proposed IIO Documentation patch to add C=
CT and RGBC data
Quoted 12 lines
=20
Quoted 10 lines · Jonathan Cameron
Added cc's
Jon, remember to wrap emails at 80 chars please!
Quoted 7 lines
Request for Comments -
Documentation patch to add Correlated Color Temperature (CCT) and=20 RGBC
(red/green/blue/clear) data.The addition of CCT and RGBC is afforded by utilizing a 'real channel=
'
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
type of
IIO_CCT, and 4 modifiers of IIO_MOD_LIGHT_CLEAR,=20IIO_MOD_LIGHT_RED,IIO_MOD_LIGHT_GREEN, andIIO_MOD_LIGHT_BLUE, found=
=20
Quoted 2 lines
Quoted 1 line
Quoted 1 line
in
types.h.If we were to apply this to the existing sensors, how do we distinguish=
between 'clear' vs the visable+infrared option that is there already?
Quoted 1 line
I note below that you have distinguished this by saying it is on a colo=
ur sensor only. That seems a little bit inconsistent given a single wide=
band sensor might be measuring the same thing...
Quoted 30 lines
=20
I'm fine with the colour ones btw but one query below..Quoted 28 lines
Quoted 28 lines
A trivial addition to
industrialio-core.cis required.
in_cct0_inputwill return typically return the color temperature=20 expressed in kelvins.
IIO_MODIFIERsare respective of the associated light frequencies for=20 each of the channels.Signed-off-by Jon Brenner<[email protected]>---
.../staging/iio/Documentation/sysfs-bus-iio-light | 46
++++++++++++++++++++1 files changed, 46 insertions(+), 0 deletions(-)drivers/staging/iio/Documentation/sysfs-bus-iio-light +0
-0@@ -34,6 +34,15 @@ Description:it comes back in SI units, it should also include
_inputelse it=20 should include_rawto signify it is not in SI units.
Quoted 5 lines
Quoted 5 lines
drivers/staging/iio/Documentation/sysfs-bus-iio-light Description:
Quoted 5 lines
drivers/staging/iio/Documentation/sysfs-bus-iio-light +5
-0+What: /sys/bus/iio/devices/device[n]/in_cct0[_input|_raw] +KernelVersion: 3.4.0 +Contact: [email protected] +Description: + This should return the correlated color temperature from the light=
=20
Quoted 1 line
Quoted 1 line
Quoted 1 line
+sensor. If it comes back in SI units, it should also include _input=
=20
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
drivers/staging/iio/Documentation/sysfs-bus-iio-light +2
-0+else it should include _raw to signify it is not in SI units. +What:=20 /sys/.../device[n]/proximity_on_chip_ambient_infrared_supression
KernelVersion: 2.6.37
Contact: [email protected]drivers/staging/iio/Documentation/sysfs-bus-iio-light +0
-0@@ -82,3 +91,40 @@ Contact: [email protected]Description:
This property gets/sets the table of coefficients used in calculating=
=20
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
illuminance in lux.
drivers/staging/iio/Documentation/sysfs-bus-iio-light +12
-0+ +What: /sys/bus/iio/devices/device[n]/in_intensity_clear[_input|_raw] +KernelVersion: 3.4.0 +Contact: [email protected] +Description: + This property is supported by sensors that have a RGBC sensing=20 +mode. This value should be the output from a reading and if=20 +expressed in SI units, should include _input. If this value is not=20 +in SI units, then it should include _raw. + +What: /sys/bus/iio/devices/device[n]/in_intensity_red[_input|_raw] +KernelVersion: 3.4.0
Quoted 8 lines
Quoted 6 lines
drivers/staging/iio/Documentation/sysfs-bus-iio-light
Quoted 6 lines
drivers/staging/iio/Documentation/sysfs-bus-iio-light +6
-0+Contact: [email protected] +Description: + This property is supported by sensors that have a RGBC sensing=20 +mode. This value should be the output from a reading and if=20 +expressed in SI units, should include _input. If this value is not=20 +in SI units, then it should include _raw.Err. What are the SI units of intensity?
irradiance ie. uW/sq Mil.
Fair enough. Can you add that to the description.
Quoted 32 lines
=20
Quoted 22 lines
Quoted 22 lines
drivers/staging/iio/Documentation/sysfs-bus-iio-light +19
-1+ +What: /sys/bus/iio/devices/device[n]/in_intensity_green[_input|_raw] +KernelVersion: 3.4.0 +Contact: [email protected] +Description: + This property is supported by sensors that have a RGBC sensing=20 +mode. This value should be the output from a reading and if=20 +expressed in SI units, should include _input. If this value is not=20 +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: [email protected] +Description: + This property is supported by sensors that have a RGBC sensing=20 +mode. This value should be the output from a reading and if=20 +expressed in SI units, should include _input. If this value is not=20 +in SI units, then it should include _raw. + --1.7.4.1
Quoted 9 lines
Quoted 4 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-iio"=20 in the body of a message to [email protected] More majordomo=20 info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe linux-iio"=20 in the body of a message to [email protected] More majordomo=20 info at http://vger.kernel.org/majordomo-info.html
Quoted 2 lines
=20 N=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BDr=EF=BF=BD=EF=BF=BDy=EF=BF=
=BD=EF=BF=BD=EF=BF=BDb=EF=BF=BDX=EF=BF=BD=EF=BF=BD=C7=A7v=EF=BF=BD^=EF=BF= =BD)=DE=BA{.n=EF=BF=BD+=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD{=EF=BF=BD=EF=BF= =BD*"=EF=BF=BD=EF=BF=BD^n=EF=BF=BDr=EF=BF=BD=EF=BF=BDz=EF=BF=BD=1A=EF=BF=BD= =EF=BF=BDh=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD&=EF=BF=BD=EF=BF=BD=1E=EF=BF= =BDG=EF=BF=BD=EF=BF=BD=EF=BF=BDh=EF=BF=BD=03(=EF=BF=BD=E9=9A=8E=EF=BF=BD=DD= =A2j"=EF=BF=BD=EF=BF=BD=1A=EF=BF=BD=1Bm=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BDz=EF=BF=BD=DE=96=EF=BF=BD=EF=BF=BD=EF=BF=BDf=EF=BF=BD=EF=BF=BD=EF= =BF=BDh=EF=BF=BD=EF=BF=BD=EF=BF=BD~=EF=BF=BDmml=3D=3D