Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96148C7618A for ; Thu, 16 Mar 2023 08:04:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230401AbjCPIEU (ORCPT ); Thu, 16 Mar 2023 04:04:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230184AbjCPIEM (ORCPT ); Thu, 16 Mar 2023 04:04:12 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 806FD4DBEB for ; Thu, 16 Mar 2023 01:03:55 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id y4so4200381edo.2 for ; Thu, 16 Mar 2023 01:03:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678953834; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=b+cZwh2hI/bgGeKTrAQebGxqZCqqNNagfDg/OgVtVDg=; b=cLqpe5KxXJEEEdU7lSOKM8wQALxgGMFJ7k3H3uZCLHZcwJt7RArA6ZlrxFXuc5L0PA VY1qvxAs/j/HrGwfjHNXU5zEw8BerQ079NdnCkbydxb7QLjUT8xtYEDNP5IVymC+rT9X 2xZ/ztafdHhNtxpn4EHuLsL8d4CZ8uDrH5NzHLoNTcFQ4q5yYyGXOPjW6U0WQB/7aRsO 19asYfeQm60/lND7aq+D/a3VEyGqxStBfZobn3bbP0KKlrBr006iUZZ+ynG/7DGSn0F5 KQrmsmYhVMMt84ps4528f2AwuljVQiuVNQ38eb+zuaB4ri/W4XSpn9Wh9HUvf96tbb66 XXTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678953834; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=b+cZwh2hI/bgGeKTrAQebGxqZCqqNNagfDg/OgVtVDg=; b=2emGZudhoeTrjsRZDbJpQgE4sRBPy4KsYnBy/an/QMD21DAQAJDGEY3ImxNIvi+nI3 qY9H/r/W4HtwjUjwMudxVXjcE7dazRuJ8lxA811ZdFV8V9/wcJnjPdhMjJ9dGeBe8wbE Ajbk/D3kVPDYF1ZoFzQjJUQzdDPARWSAU9jobAWtVgLHYGeGj/5jeC0a6ITbE7NEKXcR 43NHYW+4YOFgXk7IM5EPPzONfv6KgDKzH1lPLT4d6p36feGL864szuZwV2Hzw2KmgLYb zfvz6WOGTK+3zt8gkbXSnuxGQ5APENn5yTJkZ/s8UgvgAx+gkdQ78Gns2Vqmt4uOFHEf 6UDw== X-Gm-Message-State: AO0yUKX8D/NEeyPRNj/ETIQlR2HJFR34oTreEZ+8PzCV+zq1SyxGavsr tcIKhAzbgZnaVu76dPf8Ub4qUQ== X-Google-Smtp-Source: AK7set++cHuluKT9KRDqdqU7M4iRO64R+sbBtAPAQnOnNLB7bIOQ5c0wLOiKR0IEg24HPnbLTZ1r2w== X-Received: by 2002:a17:906:7687:b0:8a6:e075:e364 with SMTP id o7-20020a170906768700b008a6e075e364mr8804524ejm.26.1678953833948; Thu, 16 Mar 2023 01:03:53 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:9827:5f65:8269:a95f? ([2a02:810d:15c0:828:9827:5f65:8269:a95f]) by smtp.gmail.com with ESMTPSA id md21-20020a170906ae9500b0092b546b57casm3475456ejb.195.2023.03.16.01.03.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Mar 2023 01:03:53 -0700 (PDT) Message-ID: <9038dba0-6f72-44a1-9f57-1c08b03b9c31@linaro.org> Date: Thu, 16 Mar 2023 09:03:52 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v7 4/6] dt-bindings: net: Add support StarFive dwmac Content-Language: en-US To: Guo Samin , linux-riscv@lists.infradead.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Richard Cochran , Andrew Lunn , Heiner Kallweit , Peter Geis , Yanhong Wang , Tommaso Merciai References: <20230316043714.24279-1-samin.guo@starfivetech.com> <20230316043714.24279-5-samin.guo@starfivetech.com> <93a3b4bb-35a4-da7c-6816-21225b42f79b@starfivetech.com> From: Krzysztof Kozlowski In-Reply-To: <93a3b4bb-35a4-da7c-6816-21225b42f79b@starfivetech.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/03/2023 09:02, Guo Samin wrote: > > > -------- 原始信息 -------- > 主题: Re: [PATCH v7 4/6] dt-bindings: net: Add support StarFive dwmac > From: Krzysztof Kozlowski > 收件人: Samin Guo , linux-riscv@lists.infradead.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org > 日期: 2023/3/16 > >> On 16/03/2023 05:37, Samin Guo wrote: >>> From: Yanhong Wang >>> >>> Add documentation to describe StarFive dwmac driver(GMAC). >>> >> Thank you for your patch. There is something to discuss/improve. >> >>> Signed-off-by: Yanhong Wang >>> Signed-off-by: Samin Guo >>> Tested-by: Tommaso Merciai >>> --- >>> .../devicetree/bindings/net/snps,dwmac.yaml | 1 + >>> .../bindings/net/starfive,jh7110-dwmac.yaml | 130 ++++++++++++++++++ >>> MAINTAINERS | 6 + >>> 3 files changed, 137 insertions(+) >>> create mode 100644 Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml >>> >>> diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml >>> index e4519cf722ab..245f7d713261 100644 >>> --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml >>> +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml >>> @@ -91,6 +91,7 @@ properties: >>> - snps,dwmac-5.20 >>> - snps,dwxgmac >>> - snps,dwxgmac-2.10 >>> + - starfive,jh7110-dwmac >>> >>> reg: >>> minItems: 1 >>> diff --git a/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml b/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml >>> new file mode 100644 >>> index 000000000000..b59e6bd8201f >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml >>> @@ -0,0 +1,130 @@ >>> +# 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/starfive,jh7110-dwmac.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: StarFive JH7110 DWMAC glue layer >>> + >>> +maintainers: >>> + - Emil Renner Berthing >>> + - Samin Guo >>> + >>> +select: >>> + properties: >>> + compatible: >>> + contains: >>> + enum: >>> + - starfive,jh7110-dwmac >>> + required: >>> + - compatible >>> + >>> +properties: >>> + compatible: >>> + items: >>> + - enum: >>> + - starfive,jh7110-dwmac >>> + - const: snps,dwmac-5.20 >>> + >> >> reg: >> maxItems: 1 > >> >>> + clocks: >>> + items: >>> + - description: GMAC main clock >>> + - description: GMAC AHB clock >>> + - description: PTP clock >>> + - description: TX clock >>> + - description: GTX clock >>> + >>> + clock-names: >>> + items: >>> + - const: stmmaceth >>> + - const: pclk >>> + - const: ptp_ref >>> + - const: tx >>> + - const: gtx >>> + >> >> interrupts: ??? >> > > Hi Krzysztof, > > snps,dwmac.yaml has defined the reg/interrupt/interrupt-names nodes, > and the JH7110 SoC is also applicable. > Maybe just add reg/interrupt/interrupt-names to the required ? You need to constrain them. > > > required: > - compatible > + - reg > - clocks > - clock-names > + - interrupts > + - interrupt-names > - resets > - reset-names Best regards, Krzysztof