Linux IIO development
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Alexandru Ardelean <ardeleanalex@gmail.com>,
	Puranjay Mohan <puranjay12@gmail.com>
Cc: linux-iio <linux-iio@vger.kernel.org>, linux-hwmon@vger.kernel.org
Subject: Re: IIO Driver for TMP117 Temperature sensor
Date: Wed, 9 Dec 2020 11:48:40 -0800	[thread overview]
Message-ID: <dd7f7015-aed4-8628-0f23-e144fdacc9e7@roeck-us.net> (raw)
In-Reply-To: <CA+U=Dsr=SCdSsbsbdY++NwD4xQjr6PZuoOqa_Ctq6ig+GuvO=w@mail.gmail.com>

On 12/9/20 12:11 AM, Alexandru Ardelean wrote:
> On Tue, Dec 8, 2020 at 6:10 PM Puranjay Mohan <puranjay12@gmail.com> wrote:
>>
>> I have this TI's TMP117 sensor with me and I was thinking about writing an
>> IIO driver for it as a hobby project. Is the IIO subsystem the correct
>> place for this driver? if yes, can someone help me get started with this,
>> I haven't written an IIO driver before. I have this sensor and also a
>> raspberry pi with me for testing.
> 
> This could also fit into drivers/hwmon.
> Looking at the HWMON subsystem there are more TMP drivers there
> (TMP102/103/108/401/513).
> The first 3 seem a bit more similar to TMP117 (in terms of register map).
> 

It would probably be better suited for hwmon (it has limit registers,
suggesting a common use as hardware monitoring device).

> Let's see what others have to add.
> But, all-in-all whatever driver you end up writing, the easiest method
> is to copy an existing similar driver and extend it.
> Sometimes, a part can be added to an existing driver.
> At a quick scan through existing drivers, it doesn't look like TMP117
> is similar to existing drivers, so it may require a new driver
> altogether.

I don't see an immediate match either, but the tmp102 hwmon driver
might be a good start.

Guenter

> I may have missed something though.
> 
> Thanks
> Alex
> 
>>
>> --
>> Thanks and Regards
>>
>> Yours Truly,
>>
>> Puranjay Mohan


  reply	other threads:[~2020-12-09 19:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-08 16:06 IIO Driver for TMP117 Temperature sensor Puranjay Mohan
2020-12-09  8:11 ` Alexandru Ardelean
2020-12-09 19:48   ` Guenter Roeck [this message]
2020-12-13 15:12     ` Jonathan Cameron
2020-12-13 16:08       ` Guenter Roeck
2020-12-13 16:50         ` Jonathan Cameron
2020-12-13 20:14           ` Puranjay Mohan
2020-12-14 15:10             ` Jonathan Cameron
2020-12-13 20:10         ` Puranjay Mohan
2020-12-14 15:11           ` Jonathan Cameron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dd7f7015-aed4-8628-0f23-e144fdacc9e7@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=ardeleanalex@gmail.com \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=puranjay12@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox