From: Julien Panis <jpanis@baylibre.com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
lee@kernel.org, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, corbet@lwn.net, arnd@arndb.de,
gregkh@linuxfoundation.org, derek.kiernan@xilinx.com,
dragan.cvetic@xilinx.com
Cc: eric.auger@redhat.com, jgg@ziepe.ca, razor@blackwall.org,
stephen@networkplumber.org, davem@davemloft.net,
christian.koenig@amd.com, contact@emersion.fr,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-doc@vger.kernel.org, sterzik@ti.com, u-kumar1@ti.com,
eblanc@baylibre.com, jneanne@baylibre.com
Subject: Re: [PATCH v4 1/4] dt-bindings: mfd: Add TI TPS6594 PMIC
Date: Tue, 28 Mar 2023 16:20:17 +0200 [thread overview]
Message-ID: <fc519231-dd00-8ce3-ecdb-a1e1364cd0c4@baylibre.com> (raw)
In-Reply-To: <f69d7b3a-6b30-5f30-9e72-7197a3a62a2c@linaro.org>
On 3/28/23 13:21, Krzysztof Kozlowski wrote:
> On 28/03/2023 12:45, Julien Panis wrote:
>>
>> On 3/28/23 08:51, Krzysztof Kozlowski wrote:
>>> On 27/03/2023 17:40, Julien Panis wrote:
>>>> TPS6594 is a Power Management IC which provides regulators and others
>>>> features like GPIOs, RTC, watchdog, ESMs (Error Signal Monitor), and
>>>> PFSM (Pre-configurable Finite State Machine) managing the state of the
>>>> device.
>>>> TPS6594 is the super-set device while TPS6593 and LP8764X are derivatives.
>>>>
>>>> Signed-off-by: Julien Panis <jpanis@baylibre.com>
>>>> ---
>>>> .../devicetree/bindings/mfd/ti,tps6594.yaml | 231 ++++++++++++++++++
>>>> 1 file changed, 231 insertions(+)
>>>> create mode 100644 Documentation/devicetree/bindings/mfd/ti,tps6594.yaml
>>>>
>>>> diff --git a/Documentation/devicetree/bindings/mfd/ti,tps6594.yaml b/Documentation/devicetree/bindings/mfd/ti,tps6594.yaml
>>>> new file mode 100644
>>>> index 000000000000..4498e6361b34
>>>> --- /dev/null
>>>> +++ b/Documentation/devicetree/bindings/mfd/ti,tps6594.yaml
>>>> @@ -0,0 +1,231 @@
>>>> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
>>>> +%YAML 1.2
>>>> +---
>>>> +$id: http://devicetree.org/schemas/mfd/ti,tps6594.yaml#
>>>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>>>> +
>>>> +title: TI TPS6594 Power Management Integrated Circuit
>>>> +
>>>> +maintainers:
>>>> + - Julien Panis <jpanis@baylibre.com>
>>>> +
>>>> +description:
>>>> + TPS6594 is a Power Management IC which provides regulators and others
>>>> + features like GPIOs, RTC, watchdog, ESMs (Error Signal Monitor), and
>>>> + PFSM (Pre-configurable Finite State Machine) managing the state of the device.
>>>> + TPS6594 is the super-set device while TPS6593 and LP8764X are derivatives.
>>> LP8764X? Compatible says LP8764.
>>>
>>>> +
>>>> +properties:
>>>> + compatible:
>>>> + enum:
>>>> + - ti,lp8764
>>> It's confusing. If x was wildcard, didn't you remove part of model name?
>> OK, I will remove 'X' from model name in v5.
> There is no x in compatible. What is (are) the model name(s)?
Basically, the model names are:
- lp8764-q1 ('x' came from an error in internal documentation)
- tps6593-q1
- tps6594-q1
But...for these 3 pmics, there are 19 PN provided
by TI. For instance: tps659413f, tps659411f, ...
Each PN gives information about non-volatile memory
settings and firmware. So, there can be several PN
for a given model name.
Which solution is recommended in such situation ?
IMO, using the 3 'xxxxxx-q1' names for compatible
strings makes sense (that's what already exists in
linux for others TI pmics).
But if you think that full PN names should be specified
to differentiate internal FW/NVM configurations, I will do
that and we will get 19 compatible strings.
>
>>>
>>>> + - ti,tps6593
>>>> + - ti,tps6594
> (...)
>
>>>> +
>>>> + rtc:
>>>> + type: object
>>>> + description: RTC provided by this controller.
>>>> + $ref: /schemas/rtc/rtc.yaml#
>>> I doubt that you can have here any RTC and any watchdog (below). This
>>> should be specific binding instead. Or list of compatibles if you have 3
>>> or more possible bindings.
>>>
>>> Additionally, judging by your DTS you do not have any resources in rtc
>>> and watchdog, so these should not be nodes by themself in such case.
>> It seems that I can't figure out what you and Rob mean by saying that
>> "binding must be complete" and that "RTC and watchdog may or may not
>> need binding changes".
>> What does "specific binding" mean ?
> Specific means not loose, not generic, precise with some accurate
> properties.
>
>> Should we add some specific property
>> for RTC/WDG provided by the PMIC ?
> You know ask me to know what is in your device. I don't know. You should
> know.
>
>> Should we write another yaml for both
>> of them ?
> Depends. Pretty often yes, but think what do you want to put there?
There's nothing to put there actually.
>
>> Why shouldn't they use the generic rtc/watchdog yaml ?
> There are no properties in these nodes, so you do not need nodes. Or if
> you have properties then you need specific binding, not generic one.
We do not need nodes indeed, since we do not have properties to put in them.
>
>> I don't
>> understand why they would need some "binding changes". Any example
>> I could refer to ? (I might have not looked at the relevant ones for my case
>> before sending this v4)
> git grep $ref | grep rtc.yaml
>
>
> Best regards,
> Krzysztof
>
next prev parent reply other threads:[~2023-03-28 14:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-27 15:40 [PATCH v4 0/4] TI TPS6594 PMIC support (Core, ESM, PFSM) Julien Panis
2023-03-27 15:40 ` [PATCH v4 1/4] dt-bindings: mfd: Add TI TPS6594 PMIC Julien Panis
2023-03-28 6:51 ` Krzysztof Kozlowski
2023-03-28 10:45 ` Julien Panis
2023-03-28 11:21 ` Krzysztof Kozlowski
2023-03-28 14:20 ` Julien Panis [this message]
2023-03-28 14:44 ` Krzysztof Kozlowski
2023-03-27 15:40 ` [PATCH v4 2/4] mfd: tps6594: Add driver for " Julien Panis
2023-03-29 14:50 ` Lee Jones
2023-03-27 15:41 ` [PATCH v4 3/4] misc: tps6594-esm: Add driver for TI TPS6594 ESM Julien Panis
2023-03-27 15:41 ` [PATCH v4 4/4] misc: tps6594-pfsm: Add driver for TI TPS6594 PFSM Julien Panis
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=fc519231-dd00-8ce3-ecdb-a1e1364cd0c4@baylibre.com \
--to=jpanis@baylibre.com \
--cc=arnd@arndb.de \
--cc=christian.koenig@amd.com \
--cc=contact@emersion.fr \
--cc=corbet@lwn.net \
--cc=davem@davemloft.net \
--cc=derek.kiernan@xilinx.com \
--cc=devicetree@vger.kernel.org \
--cc=dragan.cvetic@xilinx.com \
--cc=eblanc@baylibre.com \
--cc=eric.auger@redhat.com \
--cc=gregkh@linuxfoundation.org \
--cc=jgg@ziepe.ca \
--cc=jneanne@baylibre.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=lee@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=razor@blackwall.org \
--cc=robh+dt@kernel.org \
--cc=stephen@networkplumber.org \
--cc=sterzik@ti.com \
--cc=u-kumar1@ti.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
all inboxes | Powered by JetHome®