[PATCH 2/2] DT: add binding documentation for STTS751

2016-09-07 Thread Andrea Merello
Signed-off-by: Andrea Merello Cc: Rob Herring Cc: Mark Rutland --- Documentation/devicetree/bindings/hwmon/stts751.txt | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/stts751.txt diff --git a/Documentation/devicetree

[PATCH 1/2] hwmon: new driver for ST stts751 thermal sensor

2016-09-07 Thread Andrea Merello
the DT). Thanks-to: LABBE Corentin [for suggestions] Signed-off-by: Andrea Merello Cc: LABBE Corentin Cc: Guenter Roeck Cc: Jean Delvare --- drivers/hwmon/Kconfig | 12 +- drivers/hwmon/Makefile | 2 +- drivers/hwmon/stts751.c | 948

Re: [PATCH 1/2] hwmon: new driver for ST stts751 thermal sensor

2016-09-08 Thread Andrea Merello
On Thu, Sep 8, 2016 at 3:35 PM, Guenter Roeck wrote: > > On 09/08/2016 12:42 AM, Andrea Merello wrote: >> >> > [ ... ] > >> >> Will look if I can find another driver with similar issue to snoop >> at.. >> >> Try lm90.c:lm90_read16

[PATCH v2 0/2] Add driver for ST stts751 thermal sensor

2016-09-27 Thread Andrea Merello
This series adds new driver for ST stts751 thermal sensor Changes since v1: - removed the "manual mode" logic; always use automatic mode - changed the way 16-bit data is read from two 8-bit regs (now similar to lm90) - code simplifications - comment style fixes Andrea Merello (2):

[PATCH v2 2/2] hwmon: new driver for ST stts751 thermal sensor

2016-09-27 Thread Andrea Merello
ned-off-by: Andrea Merello Cc: LABBE Corentin Cc: Guenter Roeck Cc: Jean Delvare --- drivers/hwmon/Kconfig | 12 +- drivers/hwmon/Makefile | 2 +- drivers/hwmon/stts751.c | 805 3 files changed, 817 insertions(+), 2 deletions(-) create m

[PATCH v2 1/2] DT: add binding documentation for STTS751

2016-09-27 Thread Andrea Merello
Signed-off-by: Andrea Merello Cc: Rob Herring Cc: Mark Rutland --- Documentation/devicetree/bindings/hwmon/stts751.txt | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/stts751.txt diff --git a/Documentation/devicetree

Re: [PATCH v2 2/2] hwmon: new driver for ST stts751 thermal sensor

2016-10-19 Thread Andrea Merello
On Wed, Oct 5, 2016 at 1:51 AM, Guenter Roeck wrote: > On Tue, Sep 27, 2016 at 02:07:27PM +0200, Andrea Merello wrote: >> This patch adds a HWMON driver for ST Microelectronics STTS751 >> temperature sensors. >> >> It does support temperature reading (of course), SMBUS

Re: [PATCH v2 2/2] hwmon: new driver for ST stts751 thermal sensor

2016-10-31 Thread Andrea Merello
On Wed, Oct 19, 2016 at 4:50 PM, Guenter Roeck wrote: > On 10/19/2016 05:16 AM, Andrea Merello wrote: >> >> On Wed, Oct 5, 2016 at 1:51 AM, Guenter Roeck wrote: >>> >>> On Tue, Sep 27, 2016 at 02:07:27PM +0200, Andrea Merello wrote: >>>&g

Re: [PATCH v2 2/2] hwmon: new driver for ST stts751 thermal sensor

2016-11-02 Thread Andrea Merello
On Mon, Oct 31, 2016 at 5:18 PM, Guenter Roeck wrote: > On 10/31/2016 08:27 AM, Andrea Merello wrote: > >>>> >>>>>> + if (ret < 0) >>>>>> + return ret; >>>>>> + >>>>>> + priv->ma

Re: [PATCH v2 2/2] hwmon: new driver for ST stts751 thermal sensor

2016-11-03 Thread Andrea Merello
On Wed, Nov 2, 2016 at 11:48 PM, Guenter Roeck wrote: > On Wed, Nov 02, 2016 at 09:11:35AM +0100, Andrea Merello wrote: >> On Mon, Oct 31, 2016 at 5:18 PM, Guenter Roeck wrote: >> > On 10/31/2016 08:27 AM, Andrea Merello wrote: >> > >>

Re: [PATCH v2 2/2] hwmon: new driver for ST stts751 thermal sensor

2016-11-04 Thread Andrea Merello
On Thu, Nov 3, 2016 at 10:16 PM, Guenter Roeck wrote: > On Thu, Nov 03, 2016 at 08:35:27AM +0100, Andrea Merello wrote: >> On Wed, Nov 2, 2016 at 11:48 PM, Guenter Roeck wrote: >> > On Wed, Nov 02, 2016 at 09:11:35AM +0100, Andrea Merello wrote: >> >> On Mon, Oc

Re: [PATCH v2 2/2] hwmon: new driver for ST stts751 thermal sensor

2016-11-04 Thread Andrea Merello
On Fri, Nov 4, 2016 at 4:09 PM, Guenter Roeck wrote: > On Fri, Nov 04, 2016 at 09:24:25AM +0100, Andrea Merello wrote: >> On Thu, Nov 3, 2016 at 10:16 PM, Guenter Roeck wrote: >> > On Thu, Nov 03, 2016 at 08:35:27AM +0100, Andrea Merello wrote: >> >> On Wed, No

Re: [PATCH v2 2/2] hwmon: new driver for ST stts751 thermal sensor

2016-11-08 Thread Andrea Merello
On Fri, Nov 4, 2016 at 5:01 PM, Guenter Roeck wrote: > On Fri, Nov 04, 2016 at 04:43:46PM +0100, Andrea Merello wrote: >> On Fri, Nov 4, 2016 at 4:09 PM, Guenter Roeck wrote: >> > On Fri, Nov 04, 2016 at 09:24:25AM +0100, Andrea Merello wrote: >> >> On Thu, Nov 3, 2

[PATCH v3 1/2] hwmon: new driver for ST stts751 thermal sensor

2017-01-24 Thread Andrea Merello
the DT). Thanks-to: LABBE Corentin [for suggestions] Signed-off-by: Andrea Merello Cc: LABBE Corentin Cc: Guenter Roeck Cc: Jean Delvare --- drivers/hwmon/Kconfig | 10 + drivers/hwmon/Makefile | 1 + drivers/hwmon/stts751.c | 809

[PATCH v3 2/2] DT: add binding documentation for STTS751

2017-01-24 Thread Andrea Merello
Signed-off-by: Andrea Merello Cc: Rob Herring Cc: Mark Rutland --- Documentation/devicetree/bindings/hwmon/stts751.txt | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/stts751.txt diff --git a/Documentation/devicetree/bindings

Re: [PATCH v3 1/2] hwmon: new driver for ST stts751 thermal sensor

2017-01-25 Thread Andrea Merello
On Tue, Jan 24, 2017 at 9:18 PM, Guenter Roeck wrote: > On Tue, Jan 24, 2017 at 04:02:20PM +0100, Andrea Merello wrote: >> This patch adds a HWMON driver for ST Microelectronics STTS751 >> temperature sensors. >> >> It does support manual-triggered conversions as well

Re: [PATCH v3 1/2] hwmon: new driver for ST stts751 thermal sensor

2017-01-25 Thread Andrea Merello
On Wed, Jan 25, 2017 at 11:53 AM, Guenter Roeck wrote: > On 01/25/2017 01:51 AM, Andrea Merello wrote: >> >> On Tue, Jan 24, 2017 at 9:18 PM, Guenter Roeck wrote: >>> >>> On Tue, Jan 24, 2017 at 04:02:20PM +0100, Andrea Merello wrote: >>>&g

[PATCH v4 2/2] DT: add binding documentation for STTS751

2017-01-26 Thread Andrea Merello
Signed-off-by: Andrea Merello Cc: Rob Herring Cc: Mark Rutland --- Documentation/devicetree/bindings/hwmon/stts751.txt | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/stts751.txt diff --git a/Documentation/devicetree/bindings

[PATCH v4 1/2] hwmon: new driver for ST stts751 thermal sensor

2017-01-26 Thread Andrea Merello
larify clear-on-read behaviour of status reg alarm flags - simplify mDEG to HW conversion function - fix chip stops due to incorrect resolution configuration - fix incorrectly reading negative numbers from HW Thanks-to: LABBE Corentin [for suggestions] Signed-off-by: Andrea Merello Cc: LABBE Corent

Re: [PATCH v4 1/2] hwmon: new driver for ST stts751 thermal sensor

2017-01-29 Thread Andrea Merello
On Sun, Jan 29, 2017 at 7:13 PM, Guenter Roeck wrote: > On 01/26/2017 06:17 AM, Andrea Merello wrote: >> >> This patch adds a HWMON driver for ST Microelectronics STTS751 >> temperature sensors. >> >> Changes since V3: >> - fix sysfs_notify() fi

Re: [PATCH v4 1/2] hwmon: new driver for ST stts751 thermal sensor

2017-01-29 Thread Andrea Merello
On Sun, Jan 29, 2017 at 7:18 PM, Guenter Roeck wrote: > On 01/26/2017 06:17 AM, Andrea Merello wrote: >> >> This patch adds a HWMON driver for ST Microelectronics STTS751 >> temperature sensors. >> >> Changes since V3: >> - fix sysfs_notify() fi

[PATCH v5 2/2] DT: add binding documentation for STTS751

2017-01-30 Thread Andrea Merello
Signed-off-by: Andrea Merello Cc: Rob Herring Cc: Mark Rutland --- Documentation/devicetree/bindings/hwmon/stts751.txt | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/stts751.txt diff --git a/Documentation/devicetree/bindings

[PATCH v5 1/2] hwmon: new driver for ST stts751 thermal sensor

2017-01-30 Thread Andrea Merello
e) - add further checks in i2c detect function - fix i2c detect function read wrong reg while checking for manufacturer ID Thanks-to: LABBE Corentin [for suggestions] Thanks-to: Guenter Roeck [for suggestion and discussions] Signed-off-by: Andrea Merello Cc: LABBE Corentin Cc: Guenter Roeck Cc: Je

Re: [PATCH v5 1/2] hwmon: new driver for ST stts751 thermal sensor

2017-01-30 Thread Andrea Merello
On Mon, Jan 30, 2017 at 3:24 PM, Guenter Roeck wrote: > On 01/30/2017 01:40 AM, Andrea Merello wrote: >> >> This patch adds a HWMON driver for ST Microelectronics STTS751 >> temperature sensors. >> > > Overall looks good. One thing I noticed, though: In the log f

Re: [PATCH v5 1/2] hwmon: new driver for ST stts751 thermal sensor

2017-01-31 Thread Andrea Merello
On Tue, Jan 31, 2017 at 12:47 PM, Guenter Roeck wrote: > On 01/30/2017 11:11 PM, Andrea Merello wrote: >> >> On Mon, Jan 30, 2017 at 3:24 PM, Guenter Roeck wrote: >>> >>> On 01/30/2017 01:40 AM, Andrea Merello wrote: >>>> >>>> >>&g

[PATCH v6 2/2] DT: add binding documentation for STTS751

2017-02-01 Thread Andrea Merello
Signed-off-by: Andrea Merello Cc: Rob Herring Cc: Mark Rutland --- Documentation/devicetree/bindings/hwmon/stts751.txt | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/stts751.txt diff --git a/Documentation/devicetree/bindings

[PATCH v6 1/2] hwmon: new driver for ST stts751 thermal sensor

2017-02-01 Thread Andrea Merello
nter Roeck [for suggestion and discussions] Signed-off-by: Andrea Merello Cc: LABBE Corentin Cc: Guenter Roeck Cc: Jean Delvare --- drivers/hwmon/Kconfig | 10 + drivers/hwmon/Makefile | 1 + drivers/hwmon/stts751.c | 834 3 files changed, 845 ins