Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp270615rwl; Tue, 4 Apr 2023 23:42:27 -0700 (PDT) X-Google-Smtp-Source: AKy350YJ1CuMBaX7zWO0ijibNWsLIl9YXudBQgrOhk3iXIWXnk+Gr3jtKZ2Q/GYOMFXjuCOFDrAQ X-Received: by 2002:a17:906:b10f:b0:93f:b391:9a07 with SMTP id u15-20020a170906b10f00b0093fb3919a07mr1507987ejy.15.1680676947621; Tue, 04 Apr 2023 23:42:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680676947; cv=none; d=google.com; s=arc-20160816; b=QXFKV/iMRIRdElQmMbwlT//zBOHXjsblwEjhyGKJPNa1DCuh4csk5vr2A3NdBkOiOg igRoWERQcRQy5F6JSH2RpGyLh34o9HWdKaklyW9xbCEIjOOnpcKH9jnWyYArnbHfgL7u QxpebeouZ7pzQSqjLStukoRWBECaoUSyW/n2tXDRO6crjK/n6hHtva7Q1LKGL9ZGDFpJ BqUT6KdD46pAgLKRYRYKGnfaXvlhMmebr4Oii08+NP0MCwhA9aumOhPJSrXgFMV0Ys4R Aeh+xTFyI0+1hoxp+D70FZhV9VJXXRTOpikn+HMHz/xWEdmaKuJnz/wQlWtGimeGmFs5 RioA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=VX8BaURDAmMiXn1X2BAcvGxFigvEA3txrLdW+Fx+IZw=; b=t48TJEvKhXe2dugZG4sRfLZoLXga2ToKZfe915/GDclfdul6V1g/604CCsCLGd2xq/ KU9Tra4lXke+ztn5T8Apoiuy7aFXb1WWburkrmjuKbicjVm6AJp7GYkojmuozz+P6lMG BIwAEFfGalpVAdePTxsMaxNfP7Bg3kd+IA88hbQxplC8BtLAJiWurQBqykm5DoA9aeH5 XGhsVQ9uQPRfP33LQU55XLAwhuygX5/QTC/zdzdvuGTZokIPzQ6FaConr+IPrTr1bcPd /H4d8Syovc74n5wAJiiCReeoaYt1NoAjcOE4Dpa7AhcBa/nOsS/xi3DdySXimcHJANqf VzYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rIPpaehp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u11-20020a17090626cb00b009332bb8b1fcsi11458964ejc.842.2023.04.04.23.42.02; Tue, 04 Apr 2023 23:42:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rIPpaehp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237076AbjDEGeO (ORCPT + 99 others); Wed, 5 Apr 2023 02:34:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236906AbjDEGeM (ORCPT ); Wed, 5 Apr 2023 02:34:12 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88FDD3588 for ; Tue, 4 Apr 2023 23:34:11 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id cn12so138532840edb.4 for ; Tue, 04 Apr 2023 23:34:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680676450; 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=VX8BaURDAmMiXn1X2BAcvGxFigvEA3txrLdW+Fx+IZw=; b=rIPpaehpS5oSvYCoz67/ZyQz6Xbcw80aD8pJkdxX7S9OyExVaWPgYW1gcHrc9Qql8x 7NwMpEsrh/wgRye2wvUKhikhv/9XlS2ZMG/5NDiGs0162GrMDG2/ztg/Uvgr746m82R7 BY75kP7HRUgH8QcPYB3QLrcE9AaT3F2ePLLEtIgvYG9UQKCztVEMiKo3+yWEjQU0oDAO 1oDDFFX02//OkSrSzTvUIohQsonuFPbJV3pVq652hJ7l7DrQhE6ViMOctlEZsdBso/8R 16uqGLf+oNf7TCU4a5Yo4nIar70+moeNI5PJAtgGyqez5HD4dzcyyxCotM9sqx5k1sas 5RUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680676450; 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=VX8BaURDAmMiXn1X2BAcvGxFigvEA3txrLdW+Fx+IZw=; b=mPjQotGkU9ZhbLLR2Yt0At1EvsvCLd/rzilyJp4Pdu39hNlcbfE80gFfrtVDR9Swm5 ahvog6pdVwIOpllAIx2iy6p00Ca2xbuwW/hEnlpqVaBv8nxTt4YjoNW1k47Ga7EQ17rh 2a6GRMbHXZxc82feTLGZWvoqQ3DvbKGPnjX4Ldw96OOD6b1nAc688USSZei12BmQ8w+a 4MusvQa+1xybGp0/YAE3TdijSMcUurum8xNbNLWnRS4vPmmQaEwcVg5Ga55Cp14XZB75 BNtXyS6LdIzYnweTGB2gPJA1lDot0ROJc3TROV75kv1/ehP+HIoCll8eLcqgz4fkGHDk 3Wsg== X-Gm-Message-State: AAQBX9fGecebn2Z9hlttUjUQrH+2Cxr+HCWKVDFsMkQsSugr1X5PF2TP aYTEqquzwzNwKDR1MfJrdZzGyQ== X-Received: by 2002:a17:906:8602:b0:946:b942:ad6f with SMTP id o2-20020a170906860200b00946b942ad6fmr1441549ejx.8.1680676450041; Tue, 04 Apr 2023 23:34:10 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:3f:6b2:54cd:498e? ([2a02:810d:15c0:828:3f:6b2:54cd:498e]) by smtp.gmail.com with ESMTPSA id a24-20020a509b58000000b005027d356613sm6430185edj.63.2023.04.04.23.34.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Apr 2023 23:34:09 -0700 (PDT) Message-ID: <42dea5c9-96a7-9ab7-21ec-b545059659a0@linaro.org> Date: Wed, 5 Apr 2023 08:34:08 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [net-next v9 4/6] dt-bindings: net: Add support StarFive dwmac Content-Language: en-US To: Samin Guo , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Jose Abreu , Richard Cochran , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Andrew Lunn , Heiner Kallweit , Peter Geis , Yanhong Wang , Tommaso Merciai References: <20230328062009.25454-1-samin.guo@starfivetech.com> <20230328062009.25454-5-samin.guo@starfivetech.com> From: Krzysztof Kozlowski In-Reply-To: <20230328062009.25454-5-samin.guo@starfivetech.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/03/2023 08:20, Samin Guo wrote: > From: Yanhong Wang > > Add documentation to describe StarFive dwmac driver(GMAC). > > Signed-off-by: Yanhong Wang > Signed-off-by: Samin Guo > --- > .../devicetree/bindings/net/snps,dwmac.yaml | 1 + > .../bindings/net/starfive,jh7110-dwmac.yaml | 144 ++++++++++++++++++ > MAINTAINERS | 6 + > 3 files changed, 151 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..5861426032bd > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml > @@ -0,0 +1,144 @@ > +# 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: > + minItems: 3 > + maxItems: 3 > + > + interrupt-names: > + minItems: 3 > + maxItems: 3 > + > + 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 > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + - interrupts > + - interrupt-names > + - resets > + - reset-names This is a friendly reminder during the review process. It seems my previous comments were not fully addressed. Maybe my feedback got lost between the quotes, maybe you just forgot to apply it. Please go back to the previous discussion and either implement all requested changes or keep discussing them. Thank you. Best regards, Krzysztof