Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp65032pxj; Wed, 16 Jun 2021 20:26:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwn6NvHl5rU8ETUwVqa3bs67SCizrhH1+EOGV/JGqbb6+IwGYd9wpJClbsoBMjjgpUAhTIo X-Received: by 2002:a17:906:1790:: with SMTP id t16mr2764195eje.203.1623900378935; Wed, 16 Jun 2021 20:26:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623900378; cv=none; d=google.com; s=arc-20160816; b=cXOxVpYX8c/GVYLYhNl4Fc2ZinbFYAtZYIlaAsX5/E7B1jwxU8XRozLIWM2KgXVc3N 7DO+FzEsmPNM1mURx3WiuGYAQsl811rwJFjPEYBzIH4vw67sGGvHSdLQALOkxQVtZg+e +csvl4jQU8INY/92xhe660K4tzYSiPGuTlP+JK2Z0lmXBeeEUpzcNcbF8Xf4wahd3Ykg DzOdqCo71bXfW9ATUUVGb7NFmYmU3Ny3FND9ViZMjUIwvTozoeveOS7Hg7N+KEQNfe/A /KGrpGLDax8QWAUl/T9JirK+Wh8pkClOntcQ2d0//5T9FdO4aKJ1cceAMl6gSi8rMUjL ZHUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=3JXDpWVRLHzOxTHi6DslWW6jf9D78eMiMkeU7o762Aw=; b=psE2I0nubJN3ZMLete2kegAf9zPjFYSXiis8GlEOGs7J4Wt6UZYE/AF31PsxrOBCJb uthjXgA/DDG3ASEbJUPu33rmxWY6Rn39mrPOC5UVB5wF88JzvJB+yzqsbj+ifWbqMImH Ifikfe4fSRAJGC3K/we4dh19HwhUw/UqNGz00KzRlsLpZnj5H+keyGT0raFrBWJVywit D175TeaUqXeQFXt/3uhesx40YwvkfJ0oWZY8IWPEfvl8PB744asFcHVzb5Y7+4nPy8PD v+HNTi0Iq21/l/PqUbsXeHM3Ncc7Hk7nX5fhK1Eixi2vNiqbqto2pC68pPtnWLfWSvaM +w/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v13si4786780edl.474.2021.06.16.20.25.55; Wed, 16 Jun 2021 20:26:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230211AbhFQD0T convert rfc822-to-8bit (ORCPT + 99 others); Wed, 16 Jun 2021 23:26:19 -0400 Received: from out28-169.mail.aliyun.com ([115.124.28.169]:43652 "EHLO out28-169.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230118AbhFQD0P (ORCPT ); Wed, 16 Jun 2021 23:26:15 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.3630309|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.546091-0.00633987-0.447569;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047188;MF=zhouyanjie@wanyeetech.com;NM=1;PH=DS;RN=21;RT=21;SR=0;TI=SMTPD_---.KTXxsUV_1623900243; Received: from zhouyanjie-virtual-machine(mailfrom:zhouyanjie@wanyeetech.com fp:SMTPD_---.KTXxsUV_1623900243) by smtp.aliyun-inc.com(10.147.40.2); Thu, 17 Jun 2021 11:24:05 +0800 Date: Thu, 17 Jun 2021 11:24:00 +0800 From: =?UTF-8?B?5ZGo55Cw5p2w?= To: Rob Herring , sihui.liu@ingenic.com Cc: David Miller , Jakub Kicinski , Giuseppe CAVALLARO , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Matthias Brugger , Alexandre Torgue , netdev , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , "moderated list:ARM/STM32 ARCHITECTURE" , linux-arm-kernel , "moderated list:ARM/Mediatek SoC support" , dongsheng.qiu@ingenic.com, aric.pzqi@ingenic.com, rick.tyliu@ingenic.com, jun.jiang@ingenic.com, sernia.zhou@foxmail.com Subject: Re: [PATCH v3 1/2] dt-bindings: dwmac: Add bindings for new Ingenic SoCs. Message-ID: <20210617112400.5e68c172@zhouyanjie-virtual-machine> In-Reply-To: <20210616154526.54481912@zhouyanjie-virtual-machine> References: <1623690937-52389-1-git-send-email-zhouyanjie@wanyeetech.com> <1623690937-52389-2-git-send-email-zhouyanjie@wanyeetech.com> <20210616154526.54481912@zhouyanjie-virtual-machine> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, 于 Wed, 16 Jun 2021 15:45:26 +0800 周琰杰 写道: > Hi Rob, > > 于 Tue, 15 Jun 2021 17:05:45 -0600 > Rob Herring 写道: > > > On Mon, Jun 14, 2021 at 11:18 AM 周琰杰 (Zhou Yanjie) > > wrote: > > > > > > Add the dwmac bindings for the JZ4775 SoC, the X1000 SoC, > > > the X1600 SoC, the X1830 SoC and the X2000 SoC from Ingenic. > > > > > > Signed-off-by: 周琰杰 (Zhou Yanjie) > > > --- > > > > > > Notes: > > > v1->v2: > > > No change. > > > > > > v2->v3: > > > Add "ingenic,mac.yaml" for Ingenic SoCs. > > > > > > .../devicetree/bindings/net/ingenic,mac.yaml | 76 > > > ++++++++++++++++++++++ .../devicetree/bindings/net/snps,dwmac.yaml > > > | 15 +++++ 2 files changed, 91 insertions(+) > > > create mode 100644 > > > Documentation/devicetree/bindings/net/ingenic,mac.yaml > > > > > > diff --git > > > a/Documentation/devicetree/bindings/net/ingenic,mac.yaml > > > b/Documentation/devicetree/bindings/net/ingenic,mac.yaml new file > > > mode 100644 index 00000000..5fe2e81 --- /dev/null > > > +++ b/Documentation/devicetree/bindings/net/ingenic,mac.yaml > > > @@ -0,0 +1,76 @@ > > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/net/ingenic,mac.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: Bindings for MAC in Ingenic SoCs > > > + > > > +maintainers: > > > + - 周琰杰 (Zhou Yanjie) > > > + > > > +description: > > > + The Ethernet Media Access Controller in Ingenic SoCs. > > > + > > > +properties: > > > + compatible: > > > + enum: > > > + - ingenic,jz4775-mac > > > + - ingenic,x1000-mac > > > + - ingenic,x1600-mac > > > + - ingenic,x1830-mac > > > + - ingenic,x2000-mac > > > + > > > + reg: > > > + maxItems: 1 > > > + > > > + interrupts: > > > + maxItems: 1 > > > + > > > + interrupt-names: > > > + const: macirq > > > + > > > + clocks: > > > + maxItems: 1 > > > + > > > + clock-names: > > > + const: stmmaceth > > > + > > > + mode-reg: > > > + description: An extra syscon register that control ethernet > > > interface and timing delay > > > > Needs a vendor prefix and type. > > > > > + > > > + rx-clk-delay-ps: > > > + description: RGMII receive clock delay defined in pico > > > seconds + > > > + tx-clk-delay-ps: > > > + description: RGMII transmit clock delay defined in pico > > > seconds + > > > +required: > > > + - compatible > > > + - reg > > > + - interrupts > > > + - interrupt-names > > > + - clocks > > > + - clock-names > > > + - mode-reg > > > + > > > +additionalProperties: false > > > + > > > +examples: > > > + - | > > > + #include > > > + > > > + mac: ethernet@134b0000 { > > > + compatible = "ingenic,x1000-mac", "snps,dwmac"; > > > > Doesn't match the schema. > > Sorry for that, somehow when I run "make dt_bindings_check", there is > no warrning or error message about this file. I am sure that yamllint > is installed and dtschema has been upgraded to 2021.6. I found that it seems to be because 5.13 newly introduced "DT_CHECKER_FLAGS=-m", and I am still using the old "make dt_binding_check" command, so this error is not prompted. Now I can see this error message after using the "make DT_CHECKER_FLAGS=-m dt_binding_check" command, and I will send a fix soon. Thanks and best regards! > > I will send a fix. > > Thanks and best regards! > > > > > > + reg = <0x134b0000 0x2000>; > > > + > > > + interrupt-parent = <&intc>; > > > + interrupts = <55>; > > > + interrupt-names = "macirq"; > > > + > > > + clocks = <&cgu X1000_CLK_MAC>; > > > + clock-names = "stmmaceth"; > > > + > > > + mode-reg = <&mac_phy_ctrl>; > > > + }; > > > +... > > > diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml > > > b/Documentation/devicetree/bindings/net/snps,dwmac.yaml index > > > 2edd8be..9c0ce92 100644 --- > > > a/Documentation/devicetree/bindings/net/snps,dwmac.yaml +++ > > > b/Documentation/devicetree/bindings/net/snps,dwmac.yaml @@ -56,6 > > > +56,11 @@ properties: > > > - amlogic,meson8m2-dwmac > > > - amlogic,meson-gxbb-dwmac > > > - amlogic,meson-axg-dwmac > > > + - ingenic,jz4775-mac > > > + - ingenic,x1000-mac > > > + - ingenic,x1600-mac > > > + - ingenic,x1830-mac > > > + - ingenic,x2000-mac > > > - rockchip,px30-gmac > > > - rockchip,rk3128-gmac > > > - rockchip,rk3228-gmac > > > @@ -310,6 +315,11 @@ allOf: > > > - allwinner,sun8i-r40-emac > > > - allwinner,sun8i-v3s-emac > > > - allwinner,sun50i-a64-emac > > > + - ingenic,jz4775-mac > > > + - ingenic,x1000-mac > > > + - ingenic,x1600-mac > > > + - ingenic,x1830-mac > > > + - ingenic,x2000-mac > > > - snps,dwxgmac > > > - snps,dwxgmac-2.10 > > > - st,spear600-gmac > > > @@ -353,6 +363,11 @@ allOf: > > > - allwinner,sun8i-r40-emac > > > - allwinner,sun8i-v3s-emac > > > - allwinner,sun50i-a64-emac > > > + - ingenic,jz4775-mac > > > + - ingenic,x1000-mac > > > + - ingenic,x1600-mac > > > + - ingenic,x1830-mac > > > + - ingenic,x2000-mac > > > - snps,dwmac-4.00 > > > - snps,dwmac-4.10a > > > - snps,dwmac-4.20a > > > -- > > > 2.7.4 > >