linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] iio: vcnl4000: add support for vcnl4200
@ 2018-02-05 18:04 Tomas Novotny
  2018-02-05 18:04 ` [PATCH 1/2] iio: vcnl4000: make the driver extendable Tomas Novotny
  2018-02-05 18:04 ` [PATCH 2/2] iio: vcnl4000: add support for VCNL4200 Tomas Novotny
  0 siblings, 2 replies; 11+ messages in thread
From: Tomas Novotny @ 2018-02-05 18:04 UTC (permalink / raw)
  To: linux-iio
  Cc: Jonathan Cameron, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald-Stadler

VCNL4200 is another proximity and ambient light sensor from Vishay. I'm
adding support for that sensor to vcnl4000 driver, which currently supports
VCNL4000/10/20.

The VCNL4200 is a bit different from VCNL4000/10/20. Common things are:
- integrated proximity and ambient light sensor
- SMBus compatible I2C interface
- Vishay VCNL4xxx series...

Different things are:
- totally different register map
- 8-bit vs. 16-bit registers. The 16-bit values are in two 8-bit registers on
  VCNL4000. 16-bit value is in one register on VCNL4200.
- VCNL4000 has flags when the measurement is finished

The first patch generalizes the driver to support differencies. The second
patch adds the support for VCNL4200.

It is tested on VCNL4020 and VCNL4200.

Tomas Novotny (2):
  iio: vcnl4000: make the driver extendable
  iio: vcnl4000: add support for VCNL4200

 drivers/iio/light/Kconfig    |   5 +-
 drivers/iio/light/vcnl4000.c | 158 +++++++++++++++++++++++++++++++++++++------
 2 files changed, 140 insertions(+), 23 deletions(-)

-- 
2.12.3

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-02-13 18:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-05 18:04 [PATCH 0/2] iio: vcnl4000: add support for vcnl4200 Tomas Novotny
2018-02-05 18:04 ` [PATCH 1/2] iio: vcnl4000: make the driver extendable Tomas Novotny
2018-02-05 20:00   ` Peter Meerwald-Stadler
2018-02-06 13:17     ` Tomas Novotny
2018-02-10 14:59       ` Jonathan Cameron
2018-02-13 18:19         ` Tomas Novotny
2018-02-05 18:04 ` [PATCH 2/2] iio: vcnl4000: add support for VCNL4200 Tomas Novotny
2018-02-05 19:55   ` Peter Meerwald-Stadler
2018-02-06 13:46     ` Tomas Novotny
2018-02-10 15:16       ` Jonathan Cameron
2018-02-13 18:13         ` Tomas Novotny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).