All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matti Vaittinen <mazziesaccount@gmail.com>
To: Conor Dooley <conor@kernel.org>
Cc: Andreas Kemnade <andreas@kemnade.info>,
	lee@kernel.org, robh+dt@kernel.org,
	krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] dt-bindings: mfd: Add ROHM BD71879
Date: Wed, 10 Apr 2024 13:57:06 +0300	[thread overview]
Message-ID: <dd78b1ef-366a-41e4-8046-e368539839df@gmail.com> (raw)
In-Reply-To: <20240410-possum-lecturer-716185901aa5@spud>

On 4/10/24 13:03, Conor Dooley wrote:
> On Wed, Apr 10, 2024 at 10:57:08AM +0300, Matti Vaittinen wrote:
>> On 4/4/24 22:54, Andreas Kemnade wrote:
>>> As this chip was seen in several devices in the wild, add it.
>>>
>>> Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
>>> Suggested-by: Matti Vaittinen <mazziesaccount@gmail.com>
>>> ---
>>>    .../devicetree/bindings/mfd/rohm,bd71828-pmic.yaml         | 7 ++++++-
>>>    1 file changed, 6 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml b/Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml
>>> index 0b62f854bf6b..07f99738fcf6 100644
>>> --- a/Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml
>>> +++ b/Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml
>>> @@ -17,7 +17,12 @@ description: |
>>>    properties:
>>>      compatible:
>>> -    const: rohm,bd71828
>>> +    oneOf:
>>> +      - const: rohm,bd71828
>>> +
>>> +      - items:
>>> +          - const: rohm,bd71879
>>> +          - const: rohm,bd71828
>>>      reg:
>>>        description:
>>
>> Am I correct, this reads as:
>>
>> Either
>> 	compatible = rohm,bd71828
>> or
>> 	compatible = rohm,bd71879, rohm,bd71828
>>
>> but not compatible = rohm,bd71879?
> 
> Correct.

Thanks Conor!

I guess that if we later find out that there is a 'gizmo' in BD71828 
which is not present on BD71879 - and if we write driver supporting 
this, then we need to have handling for both the BD71879 and BD71828 in 
this driver to ensure the fall-back wont happen. It's a bit ugly as I 
think the fall-back compatible should be used only in case where the 
"fall-back" HW can be guaranteed to have exactly same, or a subset of, 
features of the "full board".

Well, I've been told these are similar by HW colleagues. I have my 
doubts if 'similar' really is '_similar_', or if it's 'similar, except 
of course...' - but let's trust the HW guys on this. We have the above 
mentioned workaround if we should not have trusted...

Acked-By: Matti Vaittinen <mazziesaccount@gmail.com>

-- 
Matti Vaittinen
Linux kernel developer at ROHM Semiconductors
Oulu Finland

~~ When things go utterly wrong vim users can always type :help! ~~


  reply	other threads:[~2024-04-10 10:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-04 19:54 [PATCH v2 0/2] mfd: Add ROHM BD71879 Andreas Kemnade
2024-04-04 19:54 ` [PATCH v2 1/2] dt-bindings: " Andreas Kemnade
2024-04-05  6:56   ` Krzysztof Kozlowski
2024-04-10  7:57   ` Matti Vaittinen
2024-04-10 10:03     ` Conor Dooley
2024-04-10 10:57       ` Matti Vaittinen [this message]
2024-04-11 16:31   ` (subset) " Lee Jones
2024-04-04 19:54 ` [PATCH v2 2/2] mfd: rohm-bd71828: Add software-compatible variant BD71879 Andreas Kemnade
2024-04-05  7:00   ` Krzysztof Kozlowski

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=dd78b1ef-366a-41e4-8046-e368539839df@gmail.com \
    --to=mazziesaccount@gmail.com \
    --cc=andreas@kemnade.info \
    --cc=conor+dt@kernel.org \
    --cc=conor@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=lee@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh+dt@kernel.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.