From: Ceclan Dumitru <mitrutzceclan@gmail.com>
To: Conor Dooley <conor@kernel.org>
Cc: linus.walleij@linaro.org, brgl@bgdev.pl, andy@kernel.org,
linux-gpio@vger.kernel.org,
"Lars-Peter Clausen" <lars@metafoo.de>,
"Jonathan Cameron" <jic23@kernel.org>,
"Rob Herring" <robh+dt@kernel.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Michael Walle" <michael@walle.cc>,
"Andy Shevchenko" <andy.shevchenko@gmail.com>,
"Arnd Bergmann" <arnd@arndb.de>,
"ChiaEn Wu" <chiaen_wu@richtek.com>,
"Niklas Schnelle" <schnelle@linux.ibm.com>,
"Leonard Göhrs" <l.goehrs@pengutronix.de>,
"Mike Looijmans" <mike.looijmans@topic.nl>,
"Haibo Chen" <haibo.chen@nxp.com>,
"Hugo Villeneuve" <hvilleneuve@dimonoff.com>,
"David Lechner" <dlechner@baylibre.com>,
"Ceclan Dumitru" <dumitru.ceclan@analog.com>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v12 1/2] dt-bindings: adc: add AD7173
Date: Thu, 18 Jan 2024 17:51:20 +0200 [thread overview]
Message-ID: <b96d5bfc-cc38-44c7-a88f-e7ac5e4eb71d@gmail.com> (raw)
In-Reply-To: <20240118-lunar-anthem-31bf3b9b351d@spud>
On 1/18/24 17:23, Conor Dooley wrote:
> On Thu, Jan 18, 2024 at 02:49:22PM +0200, Dumitru Ceclan wrote:
...
>> + adi,clock-select:
>> + description: |
>> + Select the ADC clock source. Valid values are:
>> + int : Internal oscillator
>> + int-out : Internal oscillator with output on XTAL2 pin
>> + ext-clk : External clock input on XTAL2 pin
>> + xtal : External crystal on XTAL1 and XTAL2 pins
>> +
>> + $ref: /schemas/types.yaml#/definitions/string
>> + enum:
>> + - int
>> + - int-out
>> + - ext-clk
>> + - xtal
>> + default: int
> I am not a fan of properties like this one, that in my view reimplement
> things that are supported by the regular clocks properties. I've got
> some questions for you so I can understand whether or not this custom
> property is required.
>
> Whether or not the ext-clk or xtal is used is known based on
> clock-names - why is the custom property required to determine that?
> If neither of those clocks are present, then the internal clock would be
> used. Choosing to use the internal clock if an external one is provided
> sounds to me like a software policy decision made by the operating
> system.
If there was no int-out, sure. I considered that the choice between int
and int-out could be made here. So better for driver to choose int/int-out?
>
> Finally, if the ADC has a clock output, why can that not be represented
> by making the ADC a clock-controller?
>
Was not familiar with this/did not cross my mind. So if xtal/ext-clk is
present, the driver should detect it and disable the option for clock
output? (Common pin XTAL2)
next prev parent reply other threads:[~2024-01-18 15:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-18 12:49 [PATCH v12 1/2] dt-bindings: adc: add AD7173 Dumitru Ceclan
2024-01-18 12:49 ` [PATCH v12 2/2] iio: adc: ad7173: add AD7173 driver Dumitru Ceclan
2024-01-21 15:50 ` Jonathan Cameron
2024-01-22 10:02 ` Ceclan Dumitru
2024-01-22 11:09 ` Jonathan Cameron
2024-01-18 15:23 ` [PATCH v12 1/2] dt-bindings: adc: add AD7173 Conor Dooley
2024-01-18 15:51 ` Ceclan Dumitru [this message]
2024-01-18 16:06 ` Conor Dooley
2024-01-21 15:41 ` Jonathan Cameron
2024-01-22 17:48 ` Conor Dooley
2024-01-18 22:42 ` David Lechner
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=b96d5bfc-cc38-44c7-a88f-e7ac5e4eb71d@gmail.com \
--to=mitrutzceclan@gmail.com \
--cc=andy.shevchenko@gmail.com \
--cc=andy@kernel.org \
--cc=arnd@arndb.de \
--cc=brgl@bgdev.pl \
--cc=chiaen_wu@richtek.com \
--cc=conor+dt@kernel.org \
--cc=conor@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=dumitru.ceclan@analog.com \
--cc=haibo.chen@nxp.com \
--cc=hvilleneuve@dimonoff.com \
--cc=jic23@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=l.goehrs@pengutronix.de \
--cc=lars@metafoo.de \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michael@walle.cc \
--cc=mike.looijmans@topic.nl \
--cc=robh+dt@kernel.org \
--cc=schnelle@linux.ibm.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;
as well as URLs for NNTP newsgroup(s).