Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4738506rdb; Fri, 15 Sep 2023 10:43:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHtOPRSost21ComVQzwQq0SbOxKyw+H+2XWKI6nqZeFoeqhBaiCAWbMvpNpdaRZ1KU8g0jt X-Received: by 2002:a05:6358:5928:b0:13a:db5c:e614 with SMTP id g40-20020a056358592800b0013adb5ce614mr2721110rwf.7.1694799790932; Fri, 15 Sep 2023 10:43:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694799790; cv=none; d=google.com; s=arc-20160816; b=pboCyi2/dR06dM+Rl9cfcHCnmT5yAG1c3hWmg1XdaMM2+SqczEs4ojHAsssFqH6im6 vpSbRIa0pl1jBaLsaEY0BPUSl/xqVXvid3pO2Mt/t857XKqwtQ4BYo2e8TDGwYMmcNbJ 5zXIQiR5ux3Fa7CnEbhdFkXsPHi11EhtyIYuLI4pGIhpQIixpYHaTae/Zd+5kcBxUPZ5 sDCYTiwuxggXgwK6RxJdscuejWSJz3YiDUS+y2jGk8gknhgqla2sYylZDU1QJGsEWN1v bGCz3QvLfackzCJQdks+3xtOXc3hFU0Vn2HEgNSj6SUq9Qj35x5133tUQJe4U1/SIRlg /K+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=aMiSvg4Yw3aEFjiZx3jQ2DPRS3tXitXjq3AL84CvKNk=; fh=td5UQdVdssYnMSk9sFqji1JYO04ESkANgiXjaHMVap4=; b=ENV94L06zEfAUQ+FY+3EUlRTOEhMae7ZLDBE6ZEEVmvlj9Y+bHE4HEIAJetZbILt3j +vbFbXfOXHbFTvhM7HLGmERMvIjjQVj7mBfO+fEEtJ5m1qDF7kcDco2uG9JoZVW+o/+K dW2HP2pUKdYw+s9lPxYd4naU/Eyj5mwdtm6ik0rtAlFz0R6oV3wX8PRhm1J0K61GF9y7 dRNf/SFMFh8ODrrqQAwOm1BNSKHWFL2wp1YddNkBS+kPlAUNTQ8h636uDfFaNn7I1Wc+ Jr2z6LNG1xiWcaN5d5u+4fgo0XnvZQ6ObqINRk1nKBdtGM+LXB4CXlfAZqAiqsFR+Z/A s+Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Fh9WkBeN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id o25-20020a635a19000000b00573fd9be4bdsi3559969pgb.493.2023.09.15.10.43.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 10:43:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Fh9WkBeN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id B0D7B82972F4; Fri, 15 Sep 2023 02:58:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233999AbjIOJ6j (ORCPT + 99 others); Fri, 15 Sep 2023 05:58:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233854AbjIOJ6h (ORCPT ); Fri, 15 Sep 2023 05:58:37 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22A0B3AB0; Fri, 15 Sep 2023 02:56:56 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2b9d07a8d84so30238641fa.3; Fri, 15 Sep 2023 02:56:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694771814; x=1695376614; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=aMiSvg4Yw3aEFjiZx3jQ2DPRS3tXitXjq3AL84CvKNk=; b=Fh9WkBeN3ND4cFbgw7GuyP5XAo3lJrg8ZRn8+lMw1QV9cbp2pY4d7jgP3LCDzuIREb f84EeouUGUlytvtgOKybUee3HQe4/FU3R03p04YcYUGdSuYEAaKcEZhhqdOLWIMisvGG EThlhErpTsnAUIBNeLaBLe9xvU6KlP42v2CvuiymYwuVxIEV41Cb6eUleMUUnf9hwOaF bF8Jx4sle4WNPiQIjs/U/EgHPd/T/kDLCfp22WcSVcRfSSQr/t9LbyO6WpFYtE6Tdvaa sBx6XXkCvWQUzEHDMpwdeYH1mYg+4pELEKsrkYeVQBKWAs4mCtAJR4lb7CCiV0o6q3E1 cE6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694771814; x=1695376614; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=aMiSvg4Yw3aEFjiZx3jQ2DPRS3tXitXjq3AL84CvKNk=; b=Gmn95mXLUyzMk09ZNGtST80wPdLzCJjREG52qm0xdxgBCQ/B7UXtJleMJ5dgXMOTkh SjVliwAFDrH4DouSMyFlRWBFWKQoK8F6D15VX8bXiwkBnv7ytdpwIMJlucH/Y50Os7Ja hHfX/pA4rALu4FSknDaNEhh7HhHKFbyS7fa2FuLf8fhdTMnIbOPzXp6qnKwFriNQgDYI nQ7ZnGJGTk0EGmpykzKd7OFfuSJp1HWEqbOZzVQydS7amsk9DEYdgMe1XSdNlbowcEe1 pENcKskgDG4SNo7+Tgh0hGqVUkNF4dBgKwi97D3OLFLT+MfSFNYsJZiIvu8S4sokx9cP IBdQ== X-Gm-Message-State: AOJu0YzSKvEEgbzHn+0T5jEZtJdtk4VmpaSACWgAEjrjcRT+8LDVg7m7 GMCNWG3fRkomFiEkOCo4fWk= X-Received: by 2002:a2e:950c:0:b0:2bf:ab17:d48b with SMTP id f12-20020a2e950c000000b002bfab17d48bmr1085429ljh.34.1694771813921; Fri, 15 Sep 2023 02:56:53 -0700 (PDT) Received: from mobilestation ([178.176.56.174]) by smtp.gmail.com with ESMTPSA id l16-20020a2ea310000000b002bcbae4c21fsm651828lje.50.2023.09.15.02.56.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:56:53 -0700 (PDT) Date: Fri, 15 Sep 2023 12:56:51 +0300 From: Serge Semin To: Keguang Zhang Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Thomas Bogendoerfer , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Serge Semin , Krzysztof Kozlowski Subject: Re: [PATCH v5 2/3] dt-bindings: net: Add Loongson-1 Ethernet Controller Message-ID: References: <20230914114435.481900-1-keguang.zhang@gmail.com> <20230914114435.481900-3-keguang.zhang@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230914114435.481900-3-keguang.zhang@gmail.com> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 15 Sep 2023 02:58:40 -0700 (PDT) On Thu, Sep 14, 2023 at 07:44:34PM +0800, Keguang Zhang wrote: > Add devicetree binding document for Loongson-1 Ethernet controller. > And modify MAINTAINERS to add a new F: entry for > Loongson1 dt-binding documents. > > Signed-off-by: Keguang Zhang > Reviewed-by: Krzysztof Kozlowski Reviewed-by: Serge Semin -Serge(y) > --- > V4 -> V5: Add a new F: entry for Loongson1 dt-binding documents > V3 -> V4: Add "|" to description part > Amend "phy-mode" property > V2 -> V3: Split the DT-schema file into loongson,ls1b-gmac.yaml > and loongson,ls1c-emac.yaml (suggested by Serge Semin) > Change the compatibles to loongson,ls1b-gmac and loongson,ls1c-emac > Rename loongson,dwmac-syscon to loongson,ls1-syscon > Amend the title > Add description > Add Reviewed-by tag from Krzysztof Kozlowski(Sorry! I'm not sure) > V1 -> V2: Fix "clock-names" and "interrupt-names" property > Rename the syscon property to "loongson,dwmac-syscon" > Drop "phy-handle" and "phy-mode" requirement > Revert adding loongson,ls1b-dwmac/loongson,ls1c-dwmac > to snps,dwmac.yaml > > .../bindings/net/loongson,ls1b-gmac.yaml | 114 ++++++++++++++++++ > .../bindings/net/loongson,ls1c-emac.yaml | 113 +++++++++++++++++ > MAINTAINERS | 1 + > 3 files changed, 228 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/loongson,ls1b-gmac.yaml > create mode 100644 Documentation/devicetree/bindings/net/loongson,ls1c-emac.yaml > > diff --git a/Documentation/devicetree/bindings/net/loongson,ls1b-gmac.yaml b/Documentation/devicetree/bindings/net/loongson,ls1b-gmac.yaml > new file mode 100644 > index 000000000000..c4f3224bad38 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/loongson,ls1b-gmac.yaml > @@ -0,0 +1,114 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/loongson,ls1b-gmac.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Loongson-1B Gigabit Ethernet MAC Controller > + > +maintainers: > + - Keguang Zhang > + > +description: | > + Loongson-1B Gigabit Ethernet MAC Controller is based on > + Synopsys DesignWare MAC (version 3.50a). > + > + Main features > + - Dual 10/100/1000Mbps GMAC controllers > + - Full-duplex operation (IEEE 802.3x flow control automatic transmission) > + - Half-duplex operation (CSMA/CD Protocol and back-pressure support) > + - RX Checksum Offload > + - TX Checksum insertion > + - MII interface > + - RGMII interface > + > +select: > + properties: > + compatible: > + contains: > + enum: > + - loongson,ls1b-gmac > + required: > + - compatible > + > +properties: > + compatible: > + items: > + - enum: > + - loongson,ls1b-gmac > + - const: snps,dwmac-3.50a > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + clock-names: > + items: > + - const: stmmaceth > + > + interrupts: > + maxItems: 1 > + > + interrupt-names: > + items: > + - const: macirq > + > + loongson,ls1-syscon: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: > + Phandle to the syscon containing some extra configurations > + including PHY interface mode. > + > + phy-mode: > + enum: > + - mii > + - rgmii-id > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + - interrupts > + - interrupt-names > + - loongson,ls1-syscon > + > +allOf: > + - $ref: snps,dwmac.yaml# > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + #include > + > + gmac0: ethernet@1fe10000 { > + compatible = "loongson,ls1b-gmac", "snps,dwmac-3.50a"; > + reg = <0x1fe10000 0x10000>; > + > + clocks = <&clkc LS1X_CLKID_AHB>; > + clock-names = "stmmaceth"; > + > + interrupt-parent = <&intc1>; > + interrupts = <2 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-names = "macirq"; > + > + loongson,ls1-syscon = <&syscon>; > + > + phy-handle = <&phy0>; > + phy-mode = "mii"; > + snps,pbl = <1>; > + > + mdio { > + #address-cells = <1>; > + #size-cells = <0>; > + compatible = "snps,dwmac-mdio"; > + > + phy0: ethernet-phy@0 { > + reg = <0x0>; > + }; > + }; > + }; > diff --git a/Documentation/devicetree/bindings/net/loongson,ls1c-emac.yaml b/Documentation/devicetree/bindings/net/loongson,ls1c-emac.yaml > new file mode 100644 > index 000000000000..99001b940b83 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/loongson,ls1c-emac.yaml > @@ -0,0 +1,113 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/loongson,ls1c-emac.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Loongson-1C Ethernet MAC Controller > + > +maintainers: > + - Keguang Zhang > + > +description: | > + Loongson-1C Ethernet MAC Controller is based on > + Synopsys DesignWare MAC (version 3.50a). > + > + Main features > + - 10/100Mbps > + - Full-duplex operation (IEEE 802.3x flow control automatic transmission) > + - Half-duplex operation (CSMA/CD Protocol and back-pressure support) > + - IEEE 802.1Q VLAN tag detection for reception frames > + - MII interface > + - RMII interface > + > +select: > + properties: > + compatible: > + contains: > + enum: > + - loongson,ls1c-emac > + required: > + - compatible > + > +properties: > + compatible: > + items: > + - enum: > + - loongson,ls1c-emac > + - const: snps,dwmac-3.50a > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + clock-names: > + items: > + - const: stmmaceth > + > + interrupts: > + maxItems: 1 > + > + interrupt-names: > + items: > + - const: macirq > + > + loongson,ls1-syscon: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: > + Phandle to the syscon containing some extra configurations > + including PHY interface mode. > + > + phy-mode: > + enum: > + - mii > + - rmii > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + - interrupts > + - interrupt-names > + - loongson,ls1-syscon > + > +allOf: > + - $ref: snps,dwmac.yaml# > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + #include > + > + emac: ethernet@1fe10000 { > + compatible = "loongson,ls1c-emac", "snps,dwmac-3.50a"; > + reg = <0x1fe10000 0x10000>; > + > + clocks = <&clkc LS1X_CLKID_AHB>; > + clock-names = "stmmaceth"; > + > + interrupt-parent = <&intc1>; > + interrupts = <2 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-names = "macirq"; > + > + loongson,ls1-syscon = <&syscon>; > + > + phy-handle = <&phy0>; > + phy-mode = "mii"; > + snps,pbl = <1>; > + > + mdio { > + #address-cells = <1>; > + #size-cells = <0>; > + compatible = "snps,dwmac-mdio"; > + > + phy0: ethernet-phy@13 { > + reg = <0x13>; > + }; > + }; > + }; > diff --git a/MAINTAINERS b/MAINTAINERS > index fa7487b7729b..e514b53fb225 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -14379,6 +14379,7 @@ MIPS/LOONGSON1 ARCHITECTURE > M: Keguang Zhang > L: linux-mips@vger.kernel.org > S: Maintained > +F: Documentation/devicetree/bindings/*/loongson,ls1*.yaml > F: arch/mips/include/asm/mach-loongson32/ > F: arch/mips/loongson32/ > F: drivers/*/*loongson1* > -- > 2.39.2 > >