From: Matti Vaittinen <mazziesaccount@gmail.com>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: David Lechner <dlechner@baylibre.com>,
Maxime Chevallier <maxime.chevallier@bootlin.com>,
Jonathan Cameron <jic23@kernel.org>,
nuno.sa@analog.com, Andy Shevchenko <andy@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Marcelo Schmitt <marcelo.schmitt@analog.com>,
Antoniu Miclaus <antoniu.miclaus@analog.com>,
Angelo Dureghello <adureghello@baylibre.com>,
Tobias Sperling <tobias.sperling@softing.com>,
Eason Yang <j2anfernee@gmail.com>,
Marilene Andrade Garcia <marilene.agarcia@gmail.com>,
Cosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>,
duje@dujemihanovic.xyz, herve.codina@bootlin.com,
Rodolfo Giometti <giometti@enneenne.com>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com
Subject: Re: [PATCH 1/2] dt-bindings: iio: adc: add Texas Instruments TLA 2528
Date: Mon, 29 Dec 2025 15:23:50 +0200 [thread overview]
Message-ID: <323d7c6d-3082-4775-b5eb-4bcb3ee9b1ea@gmail.com> (raw)
In-Reply-To: <CAHp75VfDnuyqRyHpVK40qRR59XB3RHV-aDO72UDNhjLDbJHDPg@mail.gmail.com>
On 29/12/2025 11:31, Andy Shevchenko wrote:
> On Mon, Dec 29, 2025 at 10:04 AM Matti Vaittinen
> <mazziesaccount@gmail.com> wrote:
>> On 23/12/2025 20:26, David Lechner wrote:
>>> On 12/23/25 9:55 AM, Maxime Chevallier wrote:
>
> ...
>
>>> It looks like inputs can also be used as GPIOs, so
>>>
>>> gpio-controller: true
>>> #gpio-cells:
>>> const: 2
>>>
>>> would be appropriate (it doesn't matter if the driver doesn't
>>> implement it, we know what the correct bindings are).
>>>
>>>> +
>>>> + "#io-channel-cells":
>>>> + const: 1
>>
>> I didn't check the data-sheet, but if the pins can be set to be GPIOs or
>> ADC inputs, then I would require channels to be specified. It's only 8
>> channels, so always listing channels that are present shouldn't be that
>> big of a problem - and it should avoid one to add extra properties to
>> denote channels used for GPIO if GPIOs need to be supported.
>>
>> Well, I am not insisting this, there are folks that know this stuff
>> better than I :)
>
> Why would we need an extra property for that? GPIO controller has a
> property for valid_mask, should be enough to handle this case, no?
>
Ah. You're right. The "valid_mask" should be perfectly usable.
I might still require the channel information to make it explicit - but
as I said, I leave this for others to decide :)
Yours,
-- Matti
---
Matti Vaittinen
Linux kernel developer at ROHM Semiconductors
Oulu Finland
~~ When things go utterly wrong vim users can always type :help! ~~
next prev parent reply other threads:[~2025-12-29 13:23 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-23 15:55 [PATCH 0/2] Add driver for the TI TLA2528 i2c ADC Maxime Chevallier
2025-12-23 15:55 ` [PATCH 1/2] dt-bindings: iio: adc: add Texas Instruments TLA 2528 Maxime Chevallier
2025-12-23 18:26 ` David Lechner
2025-12-29 8:04 ` Matti Vaittinen
2025-12-29 9:31 ` Andy Shevchenko
2025-12-29 13:23 ` Matti Vaittinen [this message]
2026-01-05 9:17 ` Maxime Chevallier
2026-01-05 9:18 ` Maxime Chevallier
2025-12-23 15:55 ` [PATCH 2/2] iio: adc: add driver for Texas Instruments TLA2528 adc Maxime Chevallier
2025-12-23 17:12 ` Maxime Chevallier
2025-12-23 17:33 ` David Lechner
2025-12-27 14:43 ` Andy Shevchenko
2025-12-23 18:26 ` David Lechner
2026-01-05 10:11 ` Maxime Chevallier
2025-12-27 18:42 ` Jonathan Cameron
2026-01-05 10:16 ` Maxime Chevallier
2026-01-11 12:04 ` Jonathan Cameron
2025-12-29 8:20 ` Matti Vaittinen
2025-12-31 17:12 ` Jonathan Cameron
2026-01-02 7:13 ` Matti Vaittinen
2026-01-11 12:06 ` Jonathan Cameron
2026-01-05 10:25 ` Maxime Chevallier
2025-12-29 9:39 ` Andy Shevchenko
2026-01-05 10:27 ` Maxime Chevallier
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=323d7c6d-3082-4775-b5eb-4bcb3ee9b1ea@gmail.com \
--to=mazziesaccount@gmail.com \
--cc=adureghello@baylibre.com \
--cc=andy.shevchenko@gmail.com \
--cc=andy@kernel.org \
--cc=antoniu.miclaus@analog.com \
--cc=conor+dt@kernel.org \
--cc=cosmin-gabriel.tanislav.xa@renesas.com \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=duje@dujemihanovic.xyz \
--cc=giometti@enneenne.com \
--cc=herve.codina@bootlin.com \
--cc=j2anfernee@gmail.com \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.schmitt@analog.com \
--cc=marilene.agarcia@gmail.com \
--cc=maxime.chevallier@bootlin.com \
--cc=nuno.sa@analog.com \
--cc=robh@kernel.org \
--cc=thomas.petazzoni@bootlin.com \
--cc=tobias.sperling@softing.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
Powered by JetHome