Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp341448rwb; Fri, 4 Aug 2023 13:43:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IENmruMT8CF75UaAcv1c0Hvbwu9nAvfJudlQVghySK7miVpIU0J/aNCigjDrZG8PoB+XwAF X-Received: by 2002:a05:6a21:338c:b0:13d:1b66:9e16 with SMTP id yy12-20020a056a21338c00b0013d1b669e16mr1116758pzb.10.1691181838528; Fri, 04 Aug 2023 13:43:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691181838; cv=none; d=google.com; s=arc-20160816; b=yf2H9kQ9vzIkjNfE42tHXiFhjZZDhSFrSpUzE8jZFHPM4JJUqdPEF3mfQr77V/qVjl IHiRr54qbnQmbE0NIquN7tpzGDOQhsI+kUTJLNxLAsGQyc/CJoVcuo8l7cCm3EKjfVxG y5VkUJT/zKFfz/T9u00KefC2DPV+aNI55m6+n2N47BcvIXGz547WZPQx0QHfwxoYJTK/ 3YX6aVspQFmmF5G1C/OSmuE5/oEuTwqHeOyMrfB5ucyglxpFC3nglGYwLf5uX2XZoYkt 05RSHIv/PGjykFk9dA/OyJBjFPqbdpb2ZFs5GfR6BpKUlDl0byJGd5YZfodLsKCmSWNY l/iQ== 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 :dkim-signature; bh=9ERIyxOaKvqAZOemDkreU95jvGZ7/2EeuznyqJBxXEE=; fh=hoZbaXYjr+5BaXAvgryn0v/8dzbcdMRq66l00MLiiKY=; b=Qzr5hKLNOpgzBpujaAl871agafpc3C6pL09gpck27Q7P+WuEYkD+4jAumfb1khygRd XQ5MEIIXpyufRR+TmJvgXvMxNqwUTZoUemxEKyoXCR0ltisQYT6WCQiuASJo2vJMfwtB BQJlkUVFwmP01vJBe8/sj7Rt4JBB+quZGOLNMsy5MGvmq8mUy0OR8DqR1rCcPEZy6/JY nq2ppLGxF4DPz0qSoNzJLKk/TbIT0cDMD6CY/DdOYSPdf96vLW5U43a/aIJ5JM10kHDr YM8ArY/RXYXoyfk4Btg3FTDB7SC69AG5AB/HH9cbYc3k2I9aBKW8uIypqf1QxWPgWDGv Kr2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s2hHJlme; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15-20020a63700f000000b005647218b4f9si2253740pgc.225.2023.08.04.13.43.35; Fri, 04 Aug 2023 13:43:58 -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=@kernel.org header.s=k20201202 header.b=s2hHJlme; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229928AbjHDUUk (ORCPT + 99 others); Fri, 4 Aug 2023 16:20:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229564AbjHDUUi (ORCPT ); Fri, 4 Aug 2023 16:20:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E2F84C28; Fri, 4 Aug 2023 13:20:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D604661EF4; Fri, 4 Aug 2023 20:20:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9198C433C8; Fri, 4 Aug 2023 20:20:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691180436; bh=G8udJxOpNHfLfAgVbMDuQU5gAGWI4L+Vi3PvkaOfwkQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=s2hHJlmecTjyoVmvVcMuXBvJqO0HZ7pPNfiAd8TJDBL7TesU+Q87bG+nSo3zlfRWV m6BOgXGLDMhb0qs+7cII969YBJYF9LO/SWKnJ48hUi0C3XR+LLai+rOGB1XcXSIuoX MQAZd2xI4O0O7HOBtp+7QvWtxYgsGUhXAI6aOPg9ZRm2NAZ0UnDNr9r1UCDlbVEoJ5 WlcaBrwthCcocail2sEHxZvPXVMybaIRsU0zeCPRGfOxLYvTbiSYZm4Dy7ACapkMbT 9hAzxe3hOSFaTuKw8PMErKM8yOc60iMqlX4XOwog/kxye2CeEq7HE3TD2y3G7acN9p 0B9tmBOokb/eA== Date: Fri, 4 Aug 2023 13:20:34 -0700 From: Jakub Kicinski To: Ivan Mikhaylov Cc: "David S . Miller" , Eric Dumazet , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Po-Yu Chuang , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Conor Dooley Subject: Re: [PATCH v3] dt-bindings: net: ftgmac100: convert to yaml version from txt Message-ID: <20230804132034.4561f9d7@kernel.org> In-Reply-To: <20230731074426.4653-1-fr0st61te@gmail.com> References: <20230731074426.4653-1-fr0st61te@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 CC: Conor in case the missing CC is the reason for higher than usual review latency :) On Mon, 31 Jul 2023 10:44:26 +0300 Ivan Mikhaylov wrote: > Conversion from ftgmac100.txt to yaml format version. > > Signed-off-by: Ivan Mikhaylov > --- > .../bindings/net/faraday,ftgmac100.yaml | 104 ++++++++++++++++++ > .../devicetree/bindings/net/ftgmac100.txt | 67 ----------- > 2 files changed, 104 insertions(+), 67 deletions(-) > create mode 100644 Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml > delete mode 100644 Documentation/devicetree/bindings/net/ftgmac100.txt > > diff --git a/Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml b/Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml > new file mode 100644 > index 000000000000..965e6db38970 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml > @@ -0,0 +1,104 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/faraday,ftgmac100.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Faraday Technology FTGMAC100 gigabit ethernet controller > + > +allOf: > + - $ref: ethernet-controller.yaml# > + > +maintainers: > + - Po-Yu Chuang > + > +properties: > + compatible: > + oneOf: > + - const: faraday,ftgmac100 > + - items: > + - enum: > + - aspeed,ast2400-mac > + - aspeed,ast2500-mac > + - aspeed,ast2600-mac > + - const: faraday,ftgmac100 > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + minItems: 1 > + items: > + - description: MAC IP clock > + - description: RMII RCLK gate for AST2500/2600 > + > + clock-names: > + minItems: 1 > + maxItems: 2 > + contains: > + enum: > + - MACCLK > + - RCLK > + > + phy-mode: > + enum: > + - rgmii > + - rmii > + > + phy-handle: true > + > + use-ncsi: > + description: > + Use the NC-SI stack instead of an MDIO PHY. Currently assumes > + rmii (100bT) but kept as a separate property in case NC-SI grows support > + for a gigabit link. > + type: boolean > + > + no-hw-checksum: > + description: > + Used to disable HW checksum support. Here for backward > + compatibility as the driver now should have correct defaults based on > + the SoC. > + type: boolean > + deprecated: true > + > + mdio: > + $ref: /schemas/net/mdio.yaml# > + > +required: > + - compatible > + - reg > + - interrupts > + > +unevaluatedProperties: false > + > +examples: > + - | > + ethernet@1e660000 { > + compatible = "aspeed,ast2500-mac", "faraday,ftgmac100"; > + reg = <0x1e660000 0x180>; > + interrupts = <2>; > + use-ncsi; > + }; > + > + ethernet@1e680000 { > + compatible = "aspeed,ast2500-mac", "faraday,ftgmac100"; > + reg = <0x1e680000 0x180>; > + interrupts = <2>; > + > + phy-handle = <&phy>; > + phy-mode = "rgmii"; > + > + mdio { > + #address-cells = <1>; > + #size-cells = <0>; > + > + phy: ethernet-phy@1 { > + compatible = "ethernet-phy-ieee802.3-c22"; > + reg = <1>; > + }; > + }; > + }; > diff --git a/Documentation/devicetree/bindings/net/ftgmac100.txt b/Documentation/devicetree/bindings/net/ftgmac100.txt > deleted file mode 100644 > index 29234021f601..000000000000 > --- a/Documentation/devicetree/bindings/net/ftgmac100.txt > +++ /dev/null > @@ -1,67 +0,0 @@ > -* Faraday Technology FTGMAC100 gigabit ethernet controller > - > -Required properties: > -- compatible: "faraday,ftgmac100" > - > - Must also contain one of these if used as part of an Aspeed AST2400 > - or 2500 family SoC as they have some subtle tweaks to the > - implementation: > - > - - "aspeed,ast2400-mac" > - - "aspeed,ast2500-mac" > - - "aspeed,ast2600-mac" > - > -- reg: Address and length of the register set for the device > -- interrupts: Should contain ethernet controller interrupt > - > -Optional properties: > -- phy-handle: See ethernet.txt file in the same directory. > -- phy-mode: See ethernet.txt file in the same directory. If the property is > - absent, "rgmii" is assumed. Supported values are "rgmii*" and "rmii" for > - aspeed parts. Other (unknown) parts will accept any value. > -- use-ncsi: Use the NC-SI stack instead of an MDIO PHY. Currently assumes > - rmii (100bT) but kept as a separate property in case NC-SI grows support > - for a gigabit link. > -- no-hw-checksum: Used to disable HW checksum support. Here for backward > - compatibility as the driver now should have correct defaults based on > - the SoC. > -- clocks: In accordance with the generic clock bindings. Must describe the MAC > - IP clock, and optionally an RMII RCLK gate for the AST2500/AST2600. The > - required MAC clock must be the first cell. > -- clock-names: > - > - - "MACCLK": The MAC IP clock > - - "RCLK": Clock gate for the RMII RCLK > - > -Optional subnodes: > -- mdio: See mdio.txt file in the same directory. > - > -Example: > - > - mac0: ethernet@1e660000 { > - compatible = "aspeed,ast2500-mac", "faraday,ftgmac100"; > - reg = <0x1e660000 0x180>; > - interrupts = <2>; > - use-ncsi; > - }; > - > -Example with phy-handle: > - > - mac1: ethernet@1e680000 { > - compatible = "aspeed,ast2500-mac", "faraday,ftgmac100"; > - reg = <0x1e680000 0x180>; > - interrupts = <2>; > - > - phy-handle = <&phy>; > - phy-mode = "rgmii"; > - > - mdio { > - #address-cells = <1>; > - #size-cells = <0>; > - > - phy: ethernet-phy@1 { > - compatible = "ethernet-phy-ieee802.3-c22"; > - reg = <1>; > - }; > - }; > - };