Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp946311rdb; Sun, 20 Aug 2023 09:41:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH9pyn7BXE5LsV/avuQXhDtttXIPBNJrzYhexZ1j6gVcOCT8TO/b2irCQA7/KiACDldHbt2 X-Received: by 2002:a17:907:2e01:b0:9a1:9589:b513 with SMTP id ig1-20020a1709072e0100b009a19589b513mr999092ejc.8.1692549717904; Sun, 20 Aug 2023 09:41:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692549717; cv=none; d=google.com; s=arc-20160816; b=lVVKx1pmgckbvb4r8Si4hAqstVEinPkC9RUYdqU7esRAOIKFiKEVnZ3f0xYMCEBh1Z ovmpgyWLtBh/pykQWXvXleb2F5tkr0VGDrGLv4wI40YSVC6WVd7XLZtew1fPwf9Rwfy6 l9zQW0pvL+ExW8VUh2VrfZWy7Rp086E3lv1hBIGI01eCbT+ysiczK3tEPuYhZiz1ZlKU 9L4Dk/wbOYFNbUOyVhxMdg91vh4kZKIELGmATO5CKN0JcufxxYlkY3dZoHN5b7kPCsID b2HlimCY1Mjavyu5P2WBAE3rvo+IkFBoAdFsX5FNNOVZyPz+m1sniWAJskZcs/X33PDG R5wA== 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:date:subject:cc:to:from :dkim-signature; bh=B7TpjZhlAzb14WYWOxW7iNZcTqvUjn7E8K9f1n+r7Lw=; fh=MjWO+TP1oGk2BYJLI/JuO2koKsKwAbcrISUQHBxvn9o=; b=UtisFt388y8LY6VEqUjHVRsmDs61cbfewrraytFuz5tx2Ch3xhcyCqn/sZJFf2VNdB LKEaU3q/lZlaBIWktxynAeNskIpMVbG1vAIXdaZjxUcVxrnPjl+snj9A7/iKXOdlicsI XUab0SOX0H8meTNZFBB6wZ9ou1s4FeKnZOh26A62BOPiDSi1984I9EE5EiMCQfiiVnnM G5gSe0VWV7z3O5aOSxLzCvTSXjyMUNc6ZNESkOLpU87V9oVA9h5oWbDOVJu+VGU9yWjj V+FKoKMZBdYTBVTBH637UswYnY1m4XHsUPwqVlM02HVVERsCcU7z2twMs5jIc0ft0HQd /kew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q2xkdFXW; 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 o9-20020a170906358900b0099319803901si4218358ejb.844.2023.08.20.09.41.31; Sun, 20 Aug 2023 09:41:57 -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=q2xkdFXW; 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 S230476AbjHTMSV (ORCPT + 99 others); Sun, 20 Aug 2023 08:18:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230495AbjHTMSP (ORCPT ); Sun, 20 Aug 2023 08:18:15 -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 D53F4EE; Sun, 20 Aug 2023 05:14:12 -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 641D062016; Sun, 20 Aug 2023 12:14:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54E68C433CB; Sun, 20 Aug 2023 12:14:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692533651; bh=EWb+P3txvbafg7rtyKSyM9vIE84CV5SI1rjEO7WrC7E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q2xkdFXW9IDM4IEr5OO9OFBpFD5VxDqpX80tvSxxF14Z6z+DYDTv3j1UFDSFcqOqL 1EdUE3yXcdCkFyRMOVj767X0ETveH/PRAVcMXH9GOWYkV8CKdAnq/+WQG9bns0kuEU svD7noomEBmZZPBpHeFxJ4NCxGNE18ESX+geeIn9unHfpZVVtxQvZ/YYuHS0vAiMAi uXLkWw6VjzpXND1nYqcXcz9i8z3WBapUs3+KZBtk4IbOkXOYXFpRcELTsSIsJ2xG/1 CU44q1bQp2cObVDRMd8J1vec6VcFmEl35A8HVyLRj90KRvA8Lndt+Xp9wzHdJ4tvnY WlQH4OCv1+r6g== From: Jisheng Zhang To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH net-next 2/3] dt-bindings: net: add T-HEAD dwmac support Date: Sun, 20 Aug 2023 20:02:12 +0800 Message-Id: <20230820120213.2054-3-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230820120213.2054-1-jszhang@kernel.org> References: <20230820120213.2054-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 Add documentation to describe T-HEAD dwmac. Signed-off-by: Jisheng Zhang --- .../devicetree/bindings/net/snps,dwmac.yaml | 1 + .../devicetree/bindings/net/thead,dwmac.yaml | 87 +++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/thead,dwmac.yaml diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml index 7626289157df..b8f61db0e9d9 100644 --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml @@ -96,6 +96,7 @@ properties: - snps,dwxgmac - snps,dwxgmac-2.10 - starfive,jh7110-dwmac + - thead,th1520-dwmac reg: minItems: 1 diff --git a/Documentation/devicetree/bindings/net/thead,dwmac.yaml b/Documentation/devicetree/bindings/net/thead,dwmac.yaml new file mode 100644 index 000000000000..8ab16c408537 --- /dev/null +++ b/Documentation/devicetree/bindings/net/thead,dwmac.yaml @@ -0,0 +1,87 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/thead,dwmac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: T-HEAD DWMAC glue layer + +maintainers: + - Jisheng Zhang + +select: + properties: + compatible: + contains: + enum: + - thead,th1520-dwmac + required: + - compatible + +properties: + compatible: + items: + - enum: + - thead,th1520-dwmac + - const: snps,dwmac-3.70a + + reg: + maxItems: 1 + + clocks: + items: + - description: GMAC main clock + - description: AXI clock + + clock-names: + items: + - const: stmmaceth + - const: axi + + thead,gmacapb: + $ref: /schemas/types.yaml#/definitions/phandle + description: + The phandle to the syscon node that control ethernet + interface and timing delay. + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + - interrupt-names + - phy-mode + - thead,gmacapb + +allOf: + - $ref: snps,dwmac.yaml# + +unevaluatedProperties: false + +examples: + - | + gmac0: ethernet@e7070000 { + compatible = "thead,th1520-dwmac", "snps,dwmac-3.70a"; + reg = <0xe7070000 0x2000>; + clocks = <&clk 1>, <&clk 2>; + clock-names = "stmmaceth", "axi"; + interrupts = <66>; + interrupt-names = "macirq"; + phy-mode = "rgmii-id"; + snps,fixed-burst; + snps,axi-config = <&stmmac_axi_setup>; + snps,pbl = <32>; + thead,gmacapb = <&gmacapb_syscon>; + phy-handle = <&phy0>; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + compatible = "snps,dwmac-mdio"; + + phy0: ethernet-phy@0 { + reg = <0>; + }; + }; + }; -- 2.40.1