[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87fa4a7e-8bd1-0be2-083d-c87aabb05af6@starfivetech.com>
Date: Fri, 2 Dec 2022 15:07:20 +0800
From: yanhong wang <yanhong.wang@...rfivetech.com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
<linux-riscv@...ts.infradead.org>, <netdev@...r.kernel.org>,
<devicetree@...r.kernel.org>, <linux-kernel@...r.kernel.org>
CC: "David S . Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Emil Renner Berthing <kernel@...il.dk>,
Richard Cochran <richardcochran@...il.com>,
Andrew Lunn <andrew@...n.ch>,
Heiner Kallweit <hkallweit1@...il.com>,
Peter Geis <pgwipeout@...il.com>
Subject: Re: [PATCH v1 3/7] dt-bindings: net: Add bindings for StarFive dwmac
On 2022/12/2 0:21, Krzysztof Kozlowski wrote:
> On 01/12/2022 10:02, Yanhong Wang wrote:
>> Add bindings for the StarFive dwmac module on the StarFive RISC-V SoCs.
>
> Subject: drop second, redundant "bindings".
>
I'll fix the title in the next version.
>>
>> Signed-off-by: Yanhong Wang <yanhong.wang@...rfivetech.com>
>> ---
>> .../devicetree/bindings/net/snps,dwmac.yaml | 1 +
>> .../bindings/net/starfive,dwmac-plat.yaml | 106 ++++++++++++++++++
>> MAINTAINERS | 5 +
>> 3 files changed, 112 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/net/starfive,dwmac-plat.yaml
>>
>> diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
>> index d8779d3de3d6..13c5928d7170 100644
>> --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml
>> +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
>> @@ -33,6 +33,7 @@ select:
>> - snps,dwmac-5.20
>> - snps,dwxgmac
>> - snps,dwxgmac-2.10
>> + - starfive,dwmac
>>
>> # Deprecated
>> - st,spear600-gmac
>> diff --git a/Documentation/devicetree/bindings/net/starfive,dwmac-plat.yaml b/Documentation/devicetree/bindings/net/starfive,dwmac-plat.yaml
>> new file mode 100644
>> index 000000000000..561cf2a713ab
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/net/starfive,dwmac-plat.yaml
>
> Filename should base on compatible.
>
Will update file name.
>> @@ -0,0 +1,106 @@
>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
>> +# Copyright (C) 2022 StarFive Technology Co., Ltd.
>> +%YAML 1.2
>> +---
>> +$id: "http://devicetree.org/schemas/net/dwmac-starfive.yaml#"
>
> Does not look like you tested the bindings. Please run `make
> dt_binding_check` (see
> Documentation/devicetree/bindings/writing-schema.rst for instructions).
>
>> +$schema: "http://devicetree.org/meta-schemas/core.yaml#"
>
> Drop quotes from both lines.
>
Will remove quotes.
>> +
>> +title: StarFive DWMAC glue layer
>> +
>> +maintainers:
>> + - Yanhong Wang <yanhong.wang@...rfivetech.com>
>> +
>> +select:
>> + properties:
>> + compatible:
>> + contains:
>> + enum:
>> + - starfive,dwmac
>> + required:
>> + - compatible
>> +
>> +allOf:
>> + - $ref: "snps,dwmac.yaml#"
>
> Drop quotes.
>
Will remove quotes.
>> +
>> +properties:
>> + compatible:
>> + oneOf:
>
> Drop oneOf. You do not have more cases here.
>
Will remove oneOf.
>> + - items:
>> + - enum:
>> + - starfive,dwmac
>
> Wrong indentation.... kind of expected since you did not test the bindings.
>
Will fix.
>> + - const: snps,dwmac-5.20
>> +
>> + clocks:
>> + items:
>> + - description: GMAC main clock
>> + - description: GMAC AHB clock
>> + - description: PTP clock
>> + - description: TX clock
>> + - description: GTXC clock
>> + - description: GTX clock
>> +
>> + clock-names:
>> + contains:
>> + enum:
>> + - stmmaceth
>> + - pclk
>> + - ptp_ref
>> + - tx
>> + - gtxc
>> + - gtx
>
> Names should be specific and with fixed order, just like clocks are.
>
Will fix.
>> +
>> +required:
>> + - compatible
>> + - clocks
>> + - clock-names
>> + - resets
>> + - reset-names
>> +
>> +unevaluatedProperties: false
>> +
>
> Best regards,
> Krzysztof
>
Powered by blists - more mailing lists