[PATCH v3 1/2] dt-bindings: ethernet: eswin: Document for EIC7700 SoC
Krzysztof Kozlowski
krzk at kernel.org
Tue Jul 15 02:00:20 PDT 2025
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
More information about the linux-arm-kernel
mailing list