All of lore.kernel.org
 help / color / mirror / Atom feed
From: Quentin Schulz <quentin.schulz@free-electrons.com>
To: Chen-Yu Tsai <wens@csie.org>
Cc: jdelvare@suse.com, "Guenter Roeck" <linux@roeck-us.net>,
	jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de,
	pmeerw@pmeerw.net,
	"Maxime Ripard" <maxime.ripard@free-electrons.com>,
	"Lee Jones" <lee.jones@linaro.org>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	linux-hwmon@vger.kernel.org, linux-iio@vger.kernel.org,
	linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
	"Thomas Petazzoni" <thomas.petazzoni@free-electrons.com>,
	"Antoine Ténart" <antoine.tenart@free-electrons.com>
Subject: Re: [PATCH 0/3] add support for Allwinner SoCs ADC
Date: Fri, 1 Jul 2016 11:45:23 +0200	[thread overview]
Message-ID: <57763BB3.20706@free-electrons.com> (raw)
In-Reply-To: <CAGb2v67pK1Gkqxy2LJ0MMVry4P5C0RTqVGPHhqq+4jOFvvEA7g@mail.gmail.com>

On 29/06/2016 05:28, Chen-Yu Tsai wrote:
> Hi,
> 
> On Tue, Jun 28, 2016 at 4:45 PM, Quentin Schulz
> <quentin.schulz@free-electrons.com> wrote:
>> The Allwinner SoCs all have an ADC that can also act as a touchscreen controller
>> and a thermal sensor. The first four channels can be used either for the ADC or
>> the touchscreen and the fifth channel is used for the thermal sensor. We
>> currently have a driver for the two latter functions in
>> drivers/input/touchscreen/sun4i-ts.c but we don't have access to the ADC feature
>> at all.
>>
>> This adds initial support for Allwinner SoCs ADC with all features. Yet, the
>> touchscreen is not implemented but will be added later. To switch between
>> touchscreen and ADC modes, you need to poke few bits in registers and
>> (de)activate an interrupt (pen-up).
>> A MFD is provided to let the input driver activate the pen-up interrupt through
>> virtual interrupt, poke few bits via regmap and read data from the ADC driver
>> while both (and iio_hwmon) are probed by the MFD.
> 
> I take it that we are going to replace the original sun4i-ts driver
> with this new mfd one, and various sub device drivers?
> 

Yes, that's the spirit.

[...]

> One thing about iio-hwmon is that it doesn't support hwmon labels.
> Any chance you could improve this, so we see the same names in userspace?

Should be an easy patch: reading datasheet_name from iio_chan_spec of
the iio_channel in iio_hwmon_probe, if none then fall back to current
naming convention.

I don't think it is linked to this serie of patches so I prefer to look
at it later.

Thanks!

WARNING: multiple messages have this Message-ID (diff)
From: quentin.schulz@free-electrons.com (Quentin Schulz)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 0/3] add support for Allwinner SoCs ADC
Date: Fri, 1 Jul 2016 11:45:23 +0200	[thread overview]
Message-ID: <57763BB3.20706@free-electrons.com> (raw)
In-Reply-To: <CAGb2v67pK1Gkqxy2LJ0MMVry4P5C0RTqVGPHhqq+4jOFvvEA7g@mail.gmail.com>

On 29/06/2016 05:28, Chen-Yu Tsai wrote:
> Hi,
> 
> On Tue, Jun 28, 2016 at 4:45 PM, Quentin Schulz
> <quentin.schulz@free-electrons.com> wrote:
>> The Allwinner SoCs all have an ADC that can also act as a touchscreen controller
>> and a thermal sensor. The first four channels can be used either for the ADC or
>> the touchscreen and the fifth channel is used for the thermal sensor. We
>> currently have a driver for the two latter functions in
>> drivers/input/touchscreen/sun4i-ts.c but we don't have access to the ADC feature
>> at all.
>>
>> This adds initial support for Allwinner SoCs ADC with all features. Yet, the
>> touchscreen is not implemented but will be added later. To switch between
>> touchscreen and ADC modes, you need to poke few bits in registers and
>> (de)activate an interrupt (pen-up).
>> A MFD is provided to let the input driver activate the pen-up interrupt through
>> virtual interrupt, poke few bits via regmap and read data from the ADC driver
>> while both (and iio_hwmon) are probed by the MFD.
> 
> I take it that we are going to replace the original sun4i-ts driver
> with this new mfd one, and various sub device drivers?
> 

Yes, that's the spirit.

[...]

> One thing about iio-hwmon is that it doesn't support hwmon labels.
> Any chance you could improve this, so we see the same names in userspace?

Should be an easy patch: reading datasheet_name from iio_chan_spec of
the iio_channel in iio_hwmon_probe, if none then fall back to current
naming convention.

I don't think it is linked to this serie of patches so I prefer to look
at it later.

Thanks!

  reply	other threads:[~2016-07-01  9:45 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-28  8:45 [PATCH 0/3] add support for Allwinner SoCs ADC Quentin Schulz
2016-06-28  8:45 ` Quentin Schulz
2016-06-28  8:18 ` [PATCH 1/3] mfd: " Quentin Schulz
2016-06-28  8:18   ` Quentin Schulz
2016-06-28  8:30   ` Antoine Tenart
2016-06-28  8:30     ` Antoine Tenart
2016-06-28  8:51   ` Antoine Tenart
2016-06-28  8:51     ` Antoine Tenart
2016-07-03 11:17   ` Jonathan Cameron
2016-07-03 11:17     ` Jonathan Cameron
2016-07-03 16:49     ` Lars-Peter Clausen
2016-07-03 16:49       ` Lars-Peter Clausen
2016-07-03 17:38       ` Guenter Roeck
2016-07-03 17:38         ` Guenter Roeck
2016-06-28  8:18 ` [PATCH 2/3] iio: adc: " Quentin Schulz
2016-06-28  8:18   ` Quentin Schulz
2016-06-28  8:32   ` Antoine Tenart
2016-06-28  8:32     ` Antoine Tenart
2016-06-28  9:24   ` Peter Meerwald-Stadler
2016-06-28 13:39     ` Quentin Schulz
2016-06-28 14:18       ` Peter Meerwald-Stadler
2016-06-28 16:25         ` Jonathan Cameron
2016-07-03 11:54   ` Jonathan Cameron
2016-07-03 11:54     ` Jonathan Cameron
2016-07-03 12:48     ` Jonathan Cameron
2016-07-03 12:48       ` Jonathan Cameron
2016-07-03 15:43     ` Guenter Roeck
2016-07-03 15:43       ` Guenter Roeck
2016-07-04  7:26       ` Quentin Schulz
2016-07-04  7:26         ` Quentin Schulz
2016-07-04 16:29         ` Guenter Roeck
2016-07-04 16:29           ` Guenter Roeck
2016-07-05  7:40           ` Quentin Schulz
2016-07-05  7:40             ` Quentin Schulz
2016-06-28  8:18 ` [PATCH 3/3] hwmon: iio_hwmon: defer probe when no channel is found Quentin Schulz
2016-06-28  8:18   ` Quentin Schulz
2016-06-30  3:47   ` [3/3] " Guenter Roeck
2016-06-30  3:47     ` Guenter Roeck
2016-06-30 13:59     ` Jonathan Cameron
2016-06-30 13:59       ` Jonathan Cameron
2016-06-30 14:49       ` Lars-Peter Clausen
2016-06-30 14:49         ` Lars-Peter Clausen
2016-06-30 14:51       ` Guenter Roeck
2016-06-30 14:51         ` Guenter Roeck
2016-07-03 10:47         ` Jonathan Cameron
2016-07-03 10:47           ` Jonathan Cameron
2016-07-03 15:48           ` Guenter Roeck
2016-07-03 15:48             ` Guenter Roeck
2016-06-29  3:28 ` [PATCH 0/3] add support for Allwinner SoCs ADC Chen-Yu Tsai
2016-06-29  3:28   ` Chen-Yu Tsai
2016-07-01  9:45   ` Quentin Schulz [this message]
2016-07-01  9:45     ` Quentin Schulz

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=57763BB3.20706@free-electrons.com \
    --to=quentin.schulz@free-electrons.com \
    --cc=antoine.tenart@free-electrons.com \
    --cc=jdelvare@suse.com \
    --cc=jic23@kernel.org \
    --cc=knaack.h@gmx.de \
    --cc=lars@metafoo.de \
    --cc=lee.jones@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=maxime.ripard@free-electrons.com \
    --cc=pmeerw@pmeerw.net \
    --cc=thomas.petazzoni@free-electrons.com \
    --cc=wens@csie.org \
    /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 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.