[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a1076669-f044-4a84-aa1c-478573bf3c64@kernel.org>
Date: Tue, 15 Jul 2025 11:00:20 +0200
From: Krzysztof Kozlowski <krzk@...nel.org>
To: 韦尚娟 <weishangjuan@...incomputing.com>
Cc: andrew+netdev@...n.ch, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, robh@...nel.org, krzk+dt@...nel.org, conor+dt@...nel.org,
netdev@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, mcoquelin.stm32@...il.com,
alexandre.torgue@...s.st.com, rmk+kernel@...linux.org.uk,
yong.liang.choong@...ux.intel.com, vladimir.oltean@....com,
jszhang@...nel.org, jan.petrous@....nxp.com,
prabhakar.mahadev-lad.rj@...renesas.com, inochiama@...il.com,
boon.khai.ng@...era.com, dfustini@...storrent.com, 0x1207@...il.com,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, ningyu@...incomputing.com,
linmin@...incomputing.com, lizhi2@...incomputing.com,
pinkesh.vaghela@...fochips.com
Subject: Re: [PATCH v3 1/2] dt-bindings: ethernet: eswin: Document for EIC7700
SoC
On 15/07/2025 10:54, 韦尚娟 wrote:
>>> +
>>> +allOf:
>>> + - $ref: snps,dwmac.yaml#
>>> +
>>> +properties:
>>> + compatible:
>>> + items:
>>> + - const: eswin,eic7700-qos-eth
>>> + - const: snps,dwmac-5.20
>>> +
>>> + reg:
>>> + minItems: 1
>>
>> Nope. Changelog does not explain that, it is not correct and no one ever
>> requested something like that. See also writing bindings about constraints.
>
> I have reviewed the writing method from other YAML files in the source code,
> and they all use “reg: maxItems: 1 ” instead of “reg: minItems: 1”. So we also
> need to use “reg: maxItems: 1 ” in our YAML file. Is this understanding correct?
Yes, assuming you have here one entry.
>
>>> +
>>> + interrupt-names:
>>> + const: macirq
>>> +
>>> + interrupts:
>>> + maxItems: 1
>>> +
>>> + phy-mode:
>>> + $ref: /schemas/types.yaml#/definitions/string
>>> + enum:
>>> + - rgmii
>>> + - rgmii-rxid
>>> + - rgmii-txid
>>> + - rgmii-id
>>> +
>>> + phy-handle:
>>> + $ref: /schemas/types.yaml#/definitions/phandle
>>> + description: Reference to the PHY device
>>> +
>>> + clocks:
>>> + minItems: 2
>>> + maxItems: 2
>>> +
>>> + clock-names:
>>> + minItems: 2
>>> + maxItems: 2
>>> + contains:
>>> + enum:
>>> + - stmmaceth
>>> + - tx
>>
>> Not much changed, nothing explained in the changelog in cover letter.
>>
>
> For clocks and clock-names, other YAML files have no minItems
> and maxItems. Remove minItems and maxItems from
> clocks and clock-names and as we have fix 2 clocks. Add description in clocks:items.
> Ref yaml: sophgo,sg2044-dwmac.yaml, starfive,jh7110-dwmac.yaml
>
> All the changes will be added in cover letter in the next version. Is this understanding correct?
Yes.
Best regards,
Krzysztof
Powered by blists - more mailing lists