Added Vishay Capella CM36672 Proximity Sensor IIO driver. Support both
ACPI and Device Tree.
Signed-off-by: Kevin Tsai
---
V2:
Thanks commends from Peter Meerwald-Stadler, Jonathan Cameron, and Linux
Walleij. Updated for the following:
- Remove unused defines.
- Rewrite event registration
Added Vishay Capella CM36672 Proximity Sensor IIO driver. Support both
ACPI and Device Tree.
Signed-off-by: Kevin Tsai
---
.../devicetree/bindings/i2c/trivial-devices.txt| 1 +
.../devicetree/bindings/iio/light/cm36672.txt | 54 ++
MAINTAINERS
io:deviceX/in_intensity_uvc_min_wavelength
/sys/bus/iio/devices/iio:deviceX/in_intensity_uvc_max_wavelength
The SI unit is "nm".
Signed-off-by: Kevin Tsai
---
Documentation/ABI/testing/sysfs-bus-iio | 23 +++
drivers/iio/industrialio-core.c | 3 +++
include/uapi/linux/iio/types.h
Add Ultraviolet(UV) support:
UVA: 315 ~ 400 nm
UVB: 280 ~ 315 nm
UVC: 100 ~ 280 nm
Signed-off-by: Kevin Tsai
---
drivers/iio/industrialio-core.c | 3 +++
include/uapi/linux/iio/types.h | 3 +++
tools/iio/iio_event_monitor.c | 6 ++
3 files changed, 12 insertions(+)
diff --git a/drivers
- Renamed company name.
- Removed cm32181_reg.
- Removed white space.
- Removed unused include files.
- Updated macro definitions.
- Renamed cm32181_chip pointer to chip.
Signed-off-by: Kevin Tsai
---
drivers/iio/light/Kconfig | 4 +-
drivers/iio/light/cm32181.c | 126
- Replaced als_it_bits and als_it_value by cm32181_als_it_scale.
Signed-off-by: Kevin Tsai
---
drivers/iio/light/cm32181.c | 95 -
1 file changed, 76 insertions(+), 19 deletions(-)
diff --git a/drivers/iio/light/cm32181.c b/drivers/iio/light/cm32181
- Added Interrupt support.
Signed-off-by: Kevin Tsai
---
drivers/iio/light/cm32181.c | 156 +++-
1 file changed, 153 insertions(+), 3 deletions(-)
diff --git a/drivers/iio/light/cm32181.c b/drivers/iio/light/cm32181.c
index b7abd46..1ae32a0 100644
--- a
- Added Power Management support.
- Added driver remove routine.
Signed-off-by: Kevin Tsai
---
drivers/iio/light/cm32181.c | 44
1 file changed, 44 insertions(+)
diff --git a/drivers/iio/light/cm32181.c b/drivers/iio/light/cm32181.c
index 6b11145
- Added Device Tree support.
Signed-off-by: Kevin Tsai
---
.../devicetree/bindings/iio/light/cm32181.txt | 33 +++
MAINTAINERS| 12 ++--
drivers/iio/light/cm32181.c| 66 ++
3 files changed, 70
- Added cm32181_als_info structure.
Signed-off-by: Kevin Tsai
---
drivers/iio/light/cm32181.c | 42 +-
1 file changed, 33 insertions(+), 9 deletions(-)
diff --git a/drivers/iio/light/cm32181.c b/drivers/iio/light/cm32181.c
index 0491d73..6b11145 100644
Sorry for the mistake. Let me resubmit with correct subject.
Thanks.
Kevin Tsai
05/21/15
-Original Message-
From: Greg KH [mailto:gre...@linuxfoundation.org]
Sent: Thursday, May 21, 2015 6:56 PM
To: Kevin Tsai
Cc: Rob Herring; Pawel Moll; Mark Rutland; Ian Campbell; Kumar Gala
Signed-off-by: Kevin Tsai
---
Renamed company name.
Removed cm32181_reg.
Removed white space.
Removed unused include files.
Updated macro definitions.
Renamed cm32181_chip pointer to chip.
drivers/iio/light/Kconfig | 4 +-
drivers/iio/light/cm32181.c | 126
Signed-off-by: Kevin Tsai
---
Added Interrupt support.
drivers/iio/light/cm32181.c | 156 +++-
1 file changed, 153 insertions(+), 3 deletions(-)
diff --git a/drivers/iio/light/cm32181.c b/drivers/iio/light/cm32181.c
index b7abd46..1ae32a0 100644
--- a
Signed-off-by: Kevin Tsai
---
Added Power Management support.
Added remove routine.
drivers/iio/light/cm32181.c | 44
1 file changed, 44 insertions(+)
diff --git a/drivers/iio/light/cm32181.c b/drivers/iio/light/cm32181.c
index 6b11145..9bc3e1f
Signed-off-by: Kevin Tsai
---
Replaced als_it_bits and als_it_value by cm32181_als_it_scale.
drivers/iio/light/cm32181.c | 95 -
1 file changed, 76 insertions(+), 19 deletions(-)
diff --git a/drivers/iio/light/cm32181.c b/drivers/iio/light/cm32181.c
Signed-off-by: Kevin Tsai
---
Added Device Tree support.
.../devicetree/bindings/iio/light/cm32181.txt | 33 +++
MAINTAINERS| 13 +++--
drivers/iio/light/cm32181.c| 66 ++
3 files changed, 71
Signed-off-by: Kevin Tsai
---
Added cm32181_als_info structure.
drivers/iio/light/cm32181.c | 42 +-
1 file changed, 33 insertions(+), 9 deletions(-)
diff --git a/drivers/iio/light/cm32181.c b/drivers/iio/light/cm32181.c
index 0491d73..6b11145 100644
Added Device Tree Support.
Signed-off-by: Kevin Tsai
---
Added Device Tree support.
Updated company name.
Renamed register name.
.../devicetree/bindings/iio/light/cm3232.txt | 22 +++
MAINTAINERS| 12 ++--
drivers/iio/light/Kconfig
datasheet. The green channel is matched
with ALS spectrum.
Kevin Tsai
03/02/15
-Original Message-
From: daniel.bal...@gmail.com [mailto:daniel.bal...@gmail.com] On Behalf Of
Daniel Baluta
Sent: Monday, March 02, 2015 1:57 AM
To: Daniel Baluta
Cc: Jonathan Cameron; Kevin Tsai; Hartmut
Added Power Management Support.
Signed-off-by: Kevin Tsai
---
v2:
Added CONFIG_PM_SLEEP to suspend/resume functions to fix the build warning
when CONFIG_PM_SLEEP is not selected.
v1:
Added Power Management support.
drivers/iio/light/cm3232.c | 36
1 file
Added Power Management Support.
Signed-off-by: Kevin Tsai
---
v1:
Added Power Management support.
drivers/iio/light/cm3232.c | 32
1 file changed, 32 insertions(+)
diff --git a/drivers/iio/light/cm3232.c b/drivers/iio/light/cm3232.c
index 90e3519..9e54ea7
Added ACPI and Power Management support.
Signed-off-by: Kevin Tsai
---
v4:
Added ACPI and Power Management support.
Thanks Srinivas Pandruvada's ACPI routines.
v3:
Added hw_id to als_info structure.
Removed unused include files.
Modified cm3232_write_als_it() to handle register update
CM3232 is an advanced ambient light sensor with I2C protocol interface.
The I2C slave address is internally hardwired as 0x10 (7-bit). Writing
to configure register is byte mode, but reading ALS register requests to
use word mode for 16-bit resolution.
Signed-off-by: Kevin Tsai
---
v3:
Added
support val2.
Thanks comments from Jeremiah Mahler, Peter Meerwald, Daniel Baluta,
and Joe Perches.
v1:
Added cm3232.c to support Capella Microsystems CM3232 Ambient Light
Sensor.
Signed-off-by: Kevin Tsai
---
.../devicetree/bindings/i2c/trivial-devices.txt| 1 +
MAINTAINERS
CM3232 is an advanced ambient light sensor with I2C protocol interface.
The I2C slave address is internally hardwired as 0x10 (7-bit). Writing
to configure register is byte mode, but reading ALS register requests to
use word mode for 16-bit resolution.
Signed-off-by: Kevin Tsai
Signed-off-by: Kevin Tsai
---
drivers/iio/light/Kconfig | 11 ++
drivers/iio/light/Makefile | 1 +
drivers/iio/light/cm32181.c | 437
3 files changed, 449 insertions(+)
create mode 100644 drivers/iio/light/cm32181.c
diff --git a/drivers/iio
Signed-off-by: Kevin Tsai
---
drivers/iio/light/Kconfig | 10 +
drivers/iio/light/Makefile | 1 +
drivers/iio/light/cm3218.c | 589 +
3 files changed, 600 insertions(+)
create mode 100644 drivers/iio/light/cm3218.c
diff --git a/drivers/iio/light
Signed-off-by: Kevin Tsai
---
drivers/staging/iio/light/Kconfig | 10 +
drivers/staging/iio/light/Makefile |1 +
drivers/staging/iio/light/cm3218.c | 581
3 files changed, 592 insertions(+)
create mode 100644 drivers/staging/iio/light/cm3218.c
diff
28 matches
Mail list logo