Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6735035rwb; Wed, 18 Jan 2023 08:45:20 -0800 (PST) X-Google-Smtp-Source: AMrXdXvOmLt14mhZvspmqc39/2HSY4qLR72hqecnoATeUZBzrRYve8z1gw0BtzsC1isUBTXvziCf X-Received: by 2002:a05:6a20:c197:b0:b8:4c2c:7554 with SMTP id bg23-20020a056a20c19700b000b84c2c7554mr9496824pzb.6.1674060320477; Wed, 18 Jan 2023 08:45:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674060320; cv=none; d=google.com; s=arc-20160816; b=R1rLhAhba2GikVabBgV6UKJXKhAMV1wwS2T6HF+0g97VRbS4ug39G/NoVpAEbekQR6 Q3fzrizC+qDJBmsP2a0VS3VcqQvQHsQYMbeGAyO3e6qpqVUfu6mUl7WZb9eYbCPdNy4U Oe3ac3Foo4kF+rO/hw8dFg3L9pv5N7F74adJp0RhG6sXHDHnVDSpDidUcsRQLrHyZI05 dCGyjo8PUlOnmamQCZSOM1sx4TiAGDQiET8Z/yDE7u0fUJaNrObGX4pkWpzk+XjKY0hi 9Y6sJWzk81kl1XBXv/h3fS3gX5JlfGcGhR/lMFBWRbefisN8ZZLHGJLYyrE1VAfb+XN5 B6WQ== 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=zZKLrjDE6gNxqEyqtKQtAvgreZnol5CzLZ53Y6iptjQ=; b=vGrUQ3kj1r+f8dC5R1CQeLQZ/r6vAUGkoyZb7j/MiaBd8RSGU83Vev6fop5RQOCQyG HzA+lYc17AECevUQorydSDS2TjDd+OgPfWgBCldE56CmhQdr/cryql8+kyuQDKhvGJOu 6tDPFVjHnJR7wK1oRfG7AjpOdES2ljzZ839oCIczfoA1TobYrMZTyx9FoS5IxpLZGDA2 GZVhV0X4R/bafMY55+h8jMjTLqvjsN2ILjj0FzPwq5A2cMeX4Ekv6VeJqPvsTRtmdcMj baCtFU4AO2FYBJ1as+JmTTbvv3MIG1Q7bez6YG19ZHJfUPchC1wF4PKfAdf0iO7S4A5P dUmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DlobVO+f; 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 t63-20020a638142000000b004cfeacfba88si3865919pgd.320.2023.01.18.08.45.13; Wed, 18 Jan 2023 08:45:20 -0800 (PST) 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=DlobVO+f; 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 S229493AbjARPwe (ORCPT + 45 others); Wed, 18 Jan 2023 10:52:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230384AbjARPvc (ORCPT ); Wed, 18 Jan 2023 10:51:32 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5AF3366AC for ; Wed, 18 Jan 2023 07:49:36 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id l41-20020a05600c1d2900b003daf986faaeso1845002wms.3 for ; Wed, 18 Jan 2023 07:49:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=zZKLrjDE6gNxqEyqtKQtAvgreZnol5CzLZ53Y6iptjQ=; b=DlobVO+fkH8lmWsg1Xbf+Les5HoBiix+EaSOkIu5MwtszuT9dbvx5yOdyy679QZS7H CgPzbDI2fqg6KzaW9TiPApqEfeZG3Stt6b1sMjK6A8u1y6ydyF+/E0c8h8xH6g/UN/WG sTmOzb/K64HbvxlGd1RvxKQmH+BSoaJlt1k6dOirDf01+HFJdZPCdvv9YjuYqusHZUPv gYo7DFQ19DZmUNThj8aJBEc2NsecSdoOrJdc5fjupVNSRfI+3b+8kB7LxraGqDeVZMR9 UHp7s/tTfKavPWZOipGA+yzU4HQGkBAuQi9JxOd9PxN3pU6hmk+64iKMMQcs4OVIzuAx ZGHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=zZKLrjDE6gNxqEyqtKQtAvgreZnol5CzLZ53Y6iptjQ=; b=JK+az5PQGcEnXJbJTssczE8xZNNNPJKA6PNtKgpOHcYtutMpNxAnQxnzErEWGH3aPH kd+HThKJWV0XNozZ4zoYkiVoeu9t/NLo+Ksxi3AuONd906wREyjsN2QxXxBY/G0qVdJH W5MOns763k+l9Lfe9cOLQRnPbkh4gQohzXwusL8sU8gJzg9GkBXJQ1U8kYOXQdVaRWon wIQ0NqPCLGroHAp9te5CfJR/uQJVUYimyj8KczIJpInPrjzny0bm5WOSxAlDA9I6w9bg t9FQW3fF23C48L2D9HFHL/oe+nK41OXN0MRJj6DBqfaZvrslr+DFewqD4f6+RC9a3+uQ DnTQ== X-Gm-Message-State: AFqh2kr63j3rqdZUPGWUNqk48QJg0gduMRjlRIwcUdgMKNqFPOh3OLDy /1T+NyZxtp+C3pplsmg3tTFNDw== X-Received: by 2002:a05:600c:511f:b0:3d0:bd9:edd4 with SMTP id o31-20020a05600c511f00b003d00bd9edd4mr7080861wms.0.1674056975399; Wed, 18 Jan 2023 07:49:35 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id b11-20020a05600018ab00b002be2279f100sm5447471wri.96.2023.01.18.07.49.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Jan 2023 07:49:35 -0800 (PST) Message-ID: <102db6ae-742b-ea20-076e-386a0284a185@linaro.org> Date: Wed, 18 Jan 2023 16:49:33 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.0 Subject: Re: [PATCH v4 4/7] dt-bindings: net: Add support StarFive dwmac Content-Language: en-US To: Yanhong Wang , 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 References: <20230118061701.30047-1-yanhong.wang@starfivetech.com> <20230118061701.30047-5-yanhong.wang@starfivetech.com> From: Krzysztof Kozlowski In-Reply-To: <20230118061701.30047-5-yanhong.wang@starfivetech.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 18/01/2023 07:16, Yanhong Wang wrote: > Add documentation to describe StarFive dwmac driver(GMAC). > > Signed-off-by: Yanhong Wang Subject is poor. You miss device prefix and it's not correct sentence. "Add support for XYZ" or better: "Add XYZ" > --- > .../devicetree/bindings/net/snps,dwmac.yaml | 1 + > .../bindings/net/starfive,jh7110-dwmac.yaml | 113 ++++++++++++++++++ > MAINTAINERS | 5 + > 3 files changed, 119 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 baf2c5b9e92d..8b07bc9c8b00 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..eb0767da834a > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml > @@ -0,0 +1,113 @@ > +# 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: > + - Yanhong Wang > + > +select: > + properties: > + compatible: > + contains: > + enum: > + - starfive,jh7110-dwmac > + required: > + - compatible > + > +properties: > + compatible: > + items: > + - enum: > + - starfive,jh7110-dwmac > + - 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: > + items: > + - const: stmmaceth > + - const: pclk > + - const: ptp_ref > + - const: tx > + - const: gtxc > + - const: gtx > + > + resets: > + items: > + - description: MAC Reset signal. Drop trailing dot > + - description: AHB Reset signal. Ditto > + > + reset-names: > + items: > + - const: stmmaceth > + - const: ahb You have two resets. Why do you change them to three for all variants? It's not explained in commit 2/7, so this is confusing. > + > +allOf: > + - $ref: snps,dwmac.yaml# > + > +unevaluatedProperties: true > + > +required: > + - compatible > + - clocks > + - clock-names > + - resets > + - reset-names > + Best regards, Krzysztof