Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2638948pxb; Thu, 11 Feb 2021 19:04:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGUL/KOxG38LtnOLXhskxkD1isKvNuObwwXbAv3PVOJSGnhcQm4oDLfGAmck6BEsIihMsY X-Received: by 2002:a50:fe89:: with SMTP id d9mr1224091edt.57.1613099040294; Thu, 11 Feb 2021 19:04:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613099040; cv=none; d=google.com; s=arc-20160816; b=T3LVsdSTkXhA7U2tiXp3F1x0u7Ua0wSrCWnrr5XhZH8QrDnmndifQYLlsAvC7KSxh9 wpCusAtOTzMZ64VE3WsL8v4aszxfpYr39EJyQcbZF4yw7ZTtDaBa9PlpaiZQSr6VcO8H TGkz08iU5pXiM+RSmRdKfL89hpkKtu8/tbr/PShyPmrNz/W8/XGJ2nMd8BB7p5OSfiYQ k56mNiFyLoAFxfZeU084rxtkM42AQcpmOWO3bZqsc2XgXB0XsY2SMBF9swyrE0ye6wmS Kv57JihHeCfkRLT3LP5MS1tp2igPSkjKvmRhk4BPM3GoxAOedphU7PC04Lt+2IhHCBaR GX6A== 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; bh=MDuQMmlD++DBw8LjxesFWAsNut2Ijl/wPyt/FP6mNN0=; b=qX/oJmwDjZlhxm8gOnS3+vpiTUKDlbZkYIk25p9YdCqrTZ+utBkyYNhxCLgTH+CHkb ZI2WX76d0VFB5+OUTnNTZkyn0ND6fFhRwpZnHl2YA8fB+3o8zvoFpGsKk6Jmw83bCSxf 1EctdrFF5Z9d1zhqSPDJoXhccfC3G4eHGrL/JhfmyBEw6UN82tvn7NVCkt9u0XAdwo8A jtQGvYOYFEZ//T43PGunZx/jJXKhB2wR3yeth4tsEVfR5rBFsI/snH3Ain9z6f/aWyhB EKsKDACJAvfGbmFhLyE7iciCHseUX978yqHNdb1RkwsqeDfNsjUriTR0js7rqyzl7rWV UlRA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=toshiba.co.jp Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j15si5526078edw.310.2021.02.11.19.03.37; Thu, 11 Feb 2021 19:04:00 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=toshiba.co.jp Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230110AbhBLDBl (ORCPT + 99 others); Thu, 11 Feb 2021 22:01:41 -0500 Received: from mo-csw1516.securemx.jp ([210.130.202.155]:56586 "EHLO mo-csw.securemx.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230014AbhBLDBB (ORCPT ); Thu, 11 Feb 2021 22:01:01 -0500 Received: by mo-csw.securemx.jp (mx-mo-csw1516) id 11C2wKdu006939; Fri, 12 Feb 2021 11:58:20 +0900 X-Iguazu-Qid: 34tKUV8MihhtQgcHLw X-Iguazu-QSIG: v=2; s=0; t=1613098700; q=34tKUV8MihhtQgcHLw; m=nRYY4YP/THjVbadpKDf6ToY9gB2Eq8mnnFWU7W6Ng3I= Received: from imx2.toshiba.co.jp (imx2.toshiba.co.jp [106.186.93.51]) by relay.securemx.jp (mx-mr1512) id 11C2wJek010337; Fri, 12 Feb 2021 11:58:19 +0900 Received: from enc01.toshiba.co.jp ([106.186.93.100]) by imx2.toshiba.co.jp with ESMTP id 11C2wJJ4017964; Fri, 12 Feb 2021 11:58:19 +0900 (JST) Received: from hop001.toshiba.co.jp ([133.199.164.63]) by enc01.toshiba.co.jp with ESMTP id 11C2wImw003979; Fri, 12 Feb 2021 11:58:18 +0900 From: Nobuhiro Iwamatsu To: "David S . Miller" , Jakub Kicinski , Rob Herring Cc: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , devicetree@vger.kernel.org, netdev@vger.kernel.org, punit1.agrawal@toshiba.co.jp, yuji2.ishikawa@toshiba.co.jp, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Nobuhiro Iwamatsu Subject: [PATCH v2 1/4] dt-bindings: net: Add DT bindings for Toshiba Visconti TMPV7700 SoC Date: Fri, 12 Feb 2021 11:58:03 +0900 X-TSB-HOP: ON Message-Id: <20210212025806.556217-2-nobuhiro1.iwamatsu@toshiba.co.jp> X-Mailer: git-send-email 2.30.0.rc2 In-Reply-To: <20210212025806.556217-1-nobuhiro1.iwamatsu@toshiba.co.jp> References: <20210212025806.556217-1-nobuhiro1.iwamatsu@toshiba.co.jp> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add device tree bindings for ethernet controller of Toshiba Visconti TMPV7700 SoC series. Signed-off-by: Nobuhiro Iwamatsu --- .../bindings/net/toshiba,visconti-dwmac.yaml | 87 +++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/toshiba,visconti-dwmac.yaml diff --git a/Documentation/devicetree/bindings/net/toshiba,visconti-dwmac.yaml b/Documentation/devicetree/bindings/net/toshiba,visconti-dwmac.yaml new file mode 100644 index 000000000000..21ae140cfd5c --- /dev/null +++ b/Documentation/devicetree/bindings/net/toshiba,visconti-dwmac.yaml @@ -0,0 +1,87 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/net/toshiba,visconti-dwmac.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Toshiba Visconti DWMAC Ethernet controller + +maintainers: + - Nobuhiro Iwamatsu + +select: + properties: + compatible: + contains: + enum: + - toshiba,visconti-dwmac + required: + - compatible + +allOf: + - $ref: "snps,dwmac.yaml#" + +properties: + compatible: + oneOf: + - items: + - enum: + - toshiba,visconti-dwmac + - const: snps,dwmac-4.10a + + reg: + items: + - description: + A register range should be the one of the DWMAC controller + + clocks: + items: + - description: main clock + - description: PHY reference clock + + clock-names: + items: + - const: stmmaceth + - const: phy_ref_clk + +required: + - compatible + - reg + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + piether: ethernet@28000000 { + compatible = "toshiba,visconti-dwmac", "snps,dwmac-4.10a"; + reg = <0 0x28000000 0 0x10000>; + interrupts = ; + interrupt-names = "macirq"; + clocks = <&clk300mhz>, <&clk125mhz>; + clock-names = "stmmaceth", "phy_ref_clk"; + snps,txpbl = <4>; + snps,rxpbl = <4>; + dma-coherent; + phy-mode = "rgmii"; + phy-handle = <&phy0>; + + mdio0 { + #address-cells = <0x1>; + #size-cells = <0x0>; + compatible = "snps,dwmac-mdio"; + + phy0: ethernet-phy@1 { + device_type = "ethernet-phy"; + reg = <0x1>; + }; + }; + }; + }; -- 2.30.0.rc2