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 47674C7618A for ; Thu, 16 Mar 2023 07:27:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229974AbjCPH15 (ORCPT ); Thu, 16 Mar 2023 03:27:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229850AbjCPH1y (ORCPT ); Thu, 16 Mar 2023 03:27:54 -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 7B55673029 for ; Thu, 16 Mar 2023 00:27:51 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id y4so3905083edo.2 for ; Thu, 16 Mar 2023 00:27:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678951670; 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=XK209g2VbExh/TqurSdOwtwH2IufznodX/JmW/3KLmc=; b=HChaTJc3kHVEAb6hVQADOZpU05dX3YjTZxKyDvkpBFOo1Oe4dPjb+DMmdM14GNyeIS 6JRluNCuzmDmCmE7bSlEA4J4RTmi6HSugb5kpT65Jb6FjFTJbSApl6cd9zx1arvIHTEg ShmjqyCKMqbOtfPgiVNOwlu2VFKGo4XaHnzNET0qVG3WeZLajFMbDEu8N7NGGUYwqNcD 7HD0yqK4Hsuo9OLS2JxWg10s4JB7f/263Amjs5sIJTlaeHT4bv94CS9612bSWAE/rT2/ kIXdmlmM8eC5JUa4B9+S7APiUC45tc3cTaBPdglv1N+IfqoaZFW7fqo8fzADdN52nLE3 8yCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678951670; 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=XK209g2VbExh/TqurSdOwtwH2IufznodX/JmW/3KLmc=; b=ln96DfhLn2ZdGNS4jK6DMSOcozv54OzPNULsqZHUrjf/v+Y4wzLnxnirdBgZ7qBetV pzmCiUGKvdob4Uk31yA40l0MkxEPUf6ClQUQtqC9Pha0Yd3inTO1VhUSgtxd2hEsI1+c NgwcaV3ULtaqLmZA45TkU4axXv5ld3VbpLfQFhKXsCzWnpnRa9fjzlO/u/ckrD0/i/zV /fFuVcIrTOjNLNnq8wbEG0aCFrPB5y52vmTafJFMA2r4aSAKslATrQhplWsF545555UD 34DDyCAlfeLlbQ+3WUKAmMALGP6/3VofufzN4IL5JfWIxwnzGxN0R121E8upfUifVwfQ bmfQ== X-Gm-Message-State: AO0yUKUvw9GaPGCZfpJxPmUqx18qQVk1gO80i02SANDKFvmidUULTU/o +K0gBq3ZB2BZdjy31Byotr2o6w== X-Google-Smtp-Source: AK7set/Dr0fYdr41RCJNO5h+athWj3NTIYT68gO1NkqweUmCPxsQgXs+rJYrxMRigcX9FdXMNWx5XA== X-Received: by 2002:a17:907:e93:b0:92f:22b1:57f9 with SMTP id ho19-20020a1709070e9300b0092f22b157f9mr5914949ejc.2.1678951669987; Thu, 16 Mar 2023 00:27:49 -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 si2-20020a170906cec200b008e68d2c11d8sm3458672ejb.218.2023.03.16.00.27.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Mar 2023 00:27:49 -0700 (PDT) Message-ID: Date: Thu, 16 Mar 2023 08:27:48 +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: Samin Guo , 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> From: Krzysztof Kozlowski In-Reply-To: <20230316043714.24279-5-samin.guo@starfivetech.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: ??? > + resets: > + items: > + - description: MAC Reset signal. > + - description: AHB Reset signal. > + > + reset-names: > + items: > + - const: stmmaceth > + - const: ahb > + > + starfive,tx-use-rgmii-clk: > + description: > + Tx clock is provided by external rgmii clock. > + type: boolean > + > + starfive,syscon: > + $ref: /schemas/types.yaml#/definitions/phandle-array > + items: > + - items: > + - description: phandle to syscon that configures phy mode > + - description: Offset of phy mode selection > + - description: Shift of phy mode selection > + description: > + A phandle to syscon with two arguments that configure phy mode. > + The argument one is the offset of phy mode selection, the > + argument two is the shift of phy mode selection. > + > +allOf: > + - $ref: snps,dwmac.yaml# > + > +unevaluatedProperties: false > + Best regards, Krzysztof