linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] hwmon: adc128d818: Support operation mode 1
@ 2016-03-29 19:03 Alexander Koch
  2016-03-29 19:03 ` [PATCH 1/2] hwmon: adc128d818: Implement chip mode selection Alexander Koch
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Alexander Koch @ 2016-03-29 19:03 UTC (permalink / raw)
  To: Jean Delvare
  Cc: Guenter Roeck, lm-sensors, linux-kernel, Michael Hornung, Alexander Koch

The ADC128D818 offers four different chip operation modes which vary in the
number and measurement types of the available input signals (see datasheet
sec. 8.4.1).

The current version of the driver only supports the default chip operation mode
(mode 0), providing seven analog values and a temperature reading.

This patch series adds support for operation mode 1 (eight analog inputs but no
temperature), selectable through the device tree attribute 'mode':

        adc1: adc128d818@1d {
                compatible = "ti,adc128d818";
                reg = <0x1d>;
                mode = /bits/ 8 <1>;
        };

The changes are transparent as 'mode' defaults to mode 0 which yields the
previous behaviour. Code has been tested on real hardware using an evaluation
board.

Alexander Koch (2):
  hwmon: adc128d818: Implement chip mode selection
  hwmon: adc128d818: Implement operation mode 1

 drivers/hwmon/adc128d818.c | 113 +++++++++++++++++++++++++++++++++++++--------
 1 file changed, 95 insertions(+), 18 deletions(-)

-- 
2.7.4

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

end of thread, other threads:[~2016-12-22 19:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-29 19:03 [PATCH 0/2] hwmon: adc128d818: Support operation mode 1 Alexander Koch
2016-03-29 19:03 ` [PATCH 1/2] hwmon: adc128d818: Implement chip mode selection Alexander Koch
2016-03-29 19:53   ` Guenter Roeck
2016-12-22 13:02     ` Alexander Koch
2016-12-22 19:09       ` Guenter Roeck
2016-03-29 19:03 ` [PATCH 2/2] hwmon: adc128d818: Implement operation mode 1 Alexander Koch
2016-03-29 20:01   ` Guenter Roeck
2016-03-29 20:02 ` [PATCH 0/2] hwmon: adc128d818: Support " Guenter Roeck

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).