All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 1/1] hwmon: (jc42) Add support for S-34TS04A
@ 2022-04-24  5:13 Guenter Roeck
  0 siblings, 0 replies; only message in thread
From: Guenter Roeck @ 2022-04-24  5:13 UTC (permalink / raw)
  To: Oleksandr Shamray; +Cc: linux-hwmon, vadimp

On Mon, Apr 18, 2022 at 03:12:59PM +0300, Oleksandr Shamray wrote:
> S-34TS04A is a JC42 compatible 2-wire serial EEPROM with temperature sensor
> from Seiko Instruments/ABLIC.
> 
> Signed-off-by: Oleksandr Shamray <oleksandrs@nvidia.com>
> Reviewed-by: Vadim Pasternak <vadimp@nvidia.com>

Applied.

Thanks,
Guenter

> ---
>  drivers/hwmon/jc42.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/hwmon/jc42.c b/drivers/hwmon/jc42.c
> index f40df2f..07f7f8b 100644
> --- a/drivers/hwmon/jc42.c
> +++ b/drivers/hwmon/jc42.c
> @@ -63,6 +63,7 @@ static const unsigned short normal_i2c[] = {
>  #define STM_MANID		0x104a  /* ST Microelectronics */
>  #define GT_MANID		0x1c68	/* Giantec */
>  #define GT_MANID2		0x132d	/* Giantec, 2nd mfg ID */
> +#define SI_MANID		0x1c85	/* Seiko Instruments */
>  
>  /* SMBUS register */
>  #define SMBUS_STMOUT		BIT(7)  /* SMBus time-out, active low */
> @@ -156,6 +157,10 @@ static const unsigned short normal_i2c[] = {
>  #define STTS3000_DEVID		0x0200
>  #define STTS3000_DEVID_MASK	0xffff
>  
> +/* Seiko Instruments */
> +#define S34TS04A_DEVID		0x2221
> +#define S34TS04A_DEVID_MASK	0xffff
> +
>  static u16 jc42_hysteresis[] = { 0, 1500, 3000, 6000 };
>  
>  struct jc42_chips {
> @@ -186,6 +191,7 @@ static struct jc42_chips jc42_chips[] = {
>  	{ ONS_MANID, CAT34TS04_DEVID, CAT34TS04_DEVID_MASK },
>  	{ ONS_MANID, N34TS04_DEVID, N34TS04_DEVID_MASK },
>  	{ NXP_MANID, SE98_DEVID, SE98_DEVID_MASK },
> +	{ SI_MANID,  S34TS04A_DEVID, S34TS04A_DEVID_MASK },
>  	{ STM_MANID, STTS424_DEVID, STTS424_DEVID_MASK },
>  	{ STM_MANID, STTS424E_DEVID, STTS424E_DEVID_MASK },
>  	{ STM_MANID, STTS2002_DEVID, STTS2002_DEVID_MASK },
> -- 
> 2.8.4
> 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-24  5:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-24  5:13 [PATCH 1/1] hwmon: (jc42) Add support for S-34TS04A Guenter Roeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.