Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp3653391rwj; Mon, 19 Dec 2022 23:21:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf5KGqp872q5jhTHIpQ0X/bCqkdQDw44LvnWEMaeujZkDW4fHlOMaTYULrP3mrdrz/79nw/T X-Received: by 2002:a17:90a:5d16:b0:218:bb2b:9beb with SMTP id s22-20020a17090a5d1600b00218bb2b9bebmr46426513pji.23.1671520874679; Mon, 19 Dec 2022 23:21:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671520874; cv=none; d=google.com; s=arc-20160816; b=cWSwAn7OWMzDXYUWsQY7npVPekPBJy/1fQ6iwPWoJhqGNzs/iGCha8DmhRS0vzSxBD 28dnI1piN8FAP6/8oMUmMMiae2h2m20uoUapNHhiedk27TJ78bNf6zKiOXJDWRS7oWv6 XSbPdot2uT0YHZycR/b9KawnSU4sJ3756836rJAA0YERuCBszwBdA+iKX3UM3HvqmyI6 xu+s0NhD75c1H4vf3Vgeuz9r26G2dVshzu/+8pPMVS0WI4IpZnLKkRI7XzFUqibS+vaB F8stkcu63icTNKiGxZ8Rmcs9Fa/Dr8UJO4h29PlJdxqdufraxUWI+s/7CK2iM5mg8u/2 K/nQ== 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; bh=yJENe57F8mLQCjVNXfNjJvXTzKA/At6MoVQX6Qo7oV4=; b=RMu58ALw0aAqvjxohq8erP1b/aF6lBpq5lbfuTP691e+/Wvy3KhRVV+sh3l8pJhgEJ kd5tM4jRxIcP07cTaREiETTPCQh3mZeB9mC0p8dgwFG28YYmvPwaigmu3GjL8ZNcRu6v O8QMXUDVZYHfSh5beOx5ToN4Fc/M1H0fbDE3PYjpc9sQ5CsaJVyBcMxUctp5bXU4lqjS iPTQ+y6y7bCME/QoSEl+QFdeIBLhYQkoZPVW4JmzO9iFeJIrZbXVG8lkayRWDPfZ5ztL 6xU/JEQ/zNGJSxMCQ8AweXzvyELEEF6DRxwPaJZc753B8fxv4SKWmFDAHWs3C3ZsTnBn 3qIg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h11-20020a17090ac38b00b002135a4d80d7si12236208pjt.188.2022.12.19.23.21.05; Mon, 19 Dec 2022 23:21:14 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233057AbiLTGx7 (ORCPT + 70 others); Tue, 20 Dec 2022 01:53:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229511AbiLTGx5 (ORCPT ); Tue, 20 Dec 2022 01:53:57 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 378C29FEB; Mon, 19 Dec 2022 22:53:55 -0800 (PST) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id A5EEF24E023; Tue, 20 Dec 2022 14:53:43 +0800 (CST) Received: from EXMBX173.cuchost.com (172.16.6.93) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 20 Dec 2022 14:53:43 +0800 Received: from [192.168.120.49] (171.223.208.138) by EXMBX173.cuchost.com (172.16.6.93) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 20 Dec 2022 14:53:41 +0800 Message-ID: <9bdb7929-a801-d244-2731-dd55541ad2ce@starfivetech.com> Date: Tue, 20 Dec 2022 14:53:41 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH v2 4/9] dt-bindings: net: Add bindings for StarFive dwmac Content-Language: en-US To: Krzysztof Kozlowski , , , , 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: <20221216070632.11444-1-yanhong.wang@starfivetech.com> <20221216070632.11444-5-yanhong.wang@starfivetech.com> <2da394a6-411a-ca2b-90d3-7e97f3637d9f@linaro.org> From: yanhong wang In-Reply-To: <2da394a6-411a-ca2b-90d3-7e97f3637d9f@linaro.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX173.cuchost.com (172.16.6.93) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 2022/12/16 19:05, Krzysztof Kozlowski wrote: > On 16/12/2022 08:06, Yanhong Wang wrote: >> Add documentation to describe StarFive dwmac driver(GMAC). >> >> Signed-off-by: Yanhong Wang >> --- >> .../devicetree/bindings/net/snps,dwmac.yaml | 1 + >> .../bindings/net/starfive,jh71x0-dwmac.yaml | 103 ++++++++++++++++++ >> MAINTAINERS | 5 + >> 3 files changed, 109 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/net/starfive,jh71x0-dwmac.yaml >> >> diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml >> index 7870228b4cd3..cdb045d1c618 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,jh71x0-dwmac.yaml b/Documentation/devicetree/bindings/net/starfive,jh71x0-dwmac.yaml >> new file mode 100644 >> index 000000000000..5cb1272fe959 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/net/starfive,jh71x0-dwmac.yaml >> @@ -0,0 +1,103 @@ >> +# 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,jh71x0-dwmac.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: StarFive JH71x0 DWMAC glue layer >> + >> +maintainers: >> + - Yanhong Wang >> + >> +select: >> + properties: >> + compatible: >> + contains: >> + enum: >> + - starfive,jh7110-dwmac >> + required: >> + - compatible >> + >> +allOf: >> + - $ref: snps,dwmac.yaml# >> + >> +properties: >> + compatible: >> + items: >> + - enum: >> + - starfive,jh7110-dwmac > > Is it going to grow with new models? If yes, when? If not, filename does > not match compatible. I will update the filename in the next version. > >> + - 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 > > missing resets and reset-names. > I will add resets and reset-names in the next version. >> + >> +required: >> + - compatible >> + - clocks >> + - clock-names >> + - resets >> + - reset-names >> + >> +unevaluatedProperties: false >> + > Best regards, > Krzysztof >