[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d6159eb6-7777-478a-8bb0-298bfa607c06@lucaweiss.eu>
Date: Mon, 18 Aug 2025 19:45:39 +0200
From: Luca Weiss <luca@...aweiss.eu>
To: Rob Herring <robh@...nel.org>
Cc: Loic Poulain <loic.poulain@....qualcomm.com>,
Robert Foss <rfoss@...nel.org>, Andi Shyti <andi.shyti@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley
<conor+dt@...nel.org>, Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konradybcio@...nel.org>, Bartosz Golaszewski <brgl@...ev.pl>,
~postmarketos/upstreaming@...ts.sr.ht, phone-devel@...r.kernel.org,
linux-arm-msm@...r.kernel.org, linux-i2c@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/7] dt-bindings: eeprom: at24: Add compatible for Belling
BL24S64
Hi Rob,
On 18-08-2025 5:51 p.m., Rob Herring wrote:
> On Sun, Aug 10, 2025 at 05:37:54PM +0200, Luca Weiss wrote:
>> Add the compatible for an 64Kb EEPROM from Belling.
>
> It is generally not required to add a compatible here assuming
> "atmel,24c64" is enough to identify the specific device (i.e. read the
> device's ID registers). If it is not sufficient, then some details here
> about why would be useful.
I thought DT was meant to describe the hardware, and this specific
EEPROM on the device is a Belling BL24S64, and it's software-compatible
to this generic atmel compatible.
That's why we have compatible = "belling,bl24s64", "atmel,24c64";
Am I missing something, or misunderstanding how DT is meant to be written?
Regards
Luca
>
>>
>> Signed-off-by: Luca Weiss <luca@...aweiss.eu>
>> ---
>> Documentation/devicetree/bindings/eeprom/at24.yaml | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/Documentation/devicetree/bindings/eeprom/at24.yaml b/Documentation/devicetree/bindings/eeprom/at24.yaml
>> index 0ac68646c077790c67c424d0f9157d6ec9b9e331..1e88861674ac8525335edec1b214675c8efa3ffe 100644
>> --- a/Documentation/devicetree/bindings/eeprom/at24.yaml
>> +++ b/Documentation/devicetree/bindings/eeprom/at24.yaml
>> @@ -131,6 +131,7 @@ properties:
>> - const: atmel,24c32
>> - items:
>> - enum:
>> + - belling,bl24s64
>> - onnn,n24s64b
>> - puya,p24c64f
>> - const: atmel,24c64
>>
>> --
>> 2.50.1
>>
Powered by blists - more mailing lists