From patchwork Mon Sep 17 06:29:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?QmlhbyBIdWFuZyAo6buE5b2qKQ==?= X-Patchwork-Id: 10602109 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CF41217E0 for ; Mon, 17 Sep 2018 06:30:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C05B929485 for ; Mon, 17 Sep 2018 06:30:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE8DF29635; Mon, 17 Sep 2018 06:30:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2742129485 for ; Mon, 17 Sep 2018 06:30:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=b/NIrKfRYBQudHGkx2mLAvUH7BvEma9alm5qX/+kjKg=; b=vBLRqxRyOiyei/ 3Cjeq/nzu6e7EtLly2k913nGllHLixDaZCy866PviW8zq4MR67TxGl5yV1nfLdthcDx1HZqjfmXfK lTF8SREC7nKr8dXj7fe1vhulU0p2KLip9Rx0dijQR3DgsjWySNixM4i2Wyk6swfDFlTE1CMFRyaW3 37xm1tRB1ZjoQmgxBLdXIaGtohyzyhMWW8ngqDJW9Qne7bieRyyWoEx69LpkVy3J22SkU9kk3E0ym TwCONxv6cKk3xOTXrPe5EG6I2IunRZu6ckBhMWBwLtd7w6hbv0Ul74ISUE5i8oSK5ndEABvtfzpZ1 Cr7FUi+j0dWdIJxA4d5A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g1n3W-0005Ny-IH; Mon, 17 Sep 2018 06:30:46 +0000 Received: from [210.61.82.184] (helo=mailgw02.mediatek.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g1n2o-0003sV-J9; Mon, 17 Sep 2018 06:30:04 +0000 X-UUID: bb5ee283a4f74590972a26b181c3b102-20180917 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 656744510; Mon, 17 Sep 2018 14:29:45 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Mon, 17 Sep 2018 14:29:41 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Mon, 17 Sep 2018 14:29:40 +0800 From: Biao Huang To: , Subject: [PATCH 1/2] dt-binding: mediatek: Add binding document for MediaTek GMAC Date: Mon, 17 Sep 2018 14:29:22 +0800 Message-ID: <1537165763-13112-2-git-send-email-biao.huang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1537165763-13112-1-git-send-email-biao.huang@mediatek.com> References: <1537165763-13112-1-git-send-email-biao.huang@mediatek.com> MIME-Version: 1.0 X-TM-SNTS-SMTP: 499ECE32E55AE2F040A5228BA9BD48D77208C09178222832B9E0D12B0473E4272000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180916_233002_796788_1EAD5658 X-CRM114-Status: GOOD ( 12.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, nelson.chang@mediatek.com, biao.huang@mediatek.com, netdev@vger.kernel.org, sean.wang@mediatek.com, liguo.zhang@mediatek.com, linux-kernel@vger.kernel.org, matthias.bgg@gmail.com, linux-mediatek@lists.infradead.org, honghui.zhang@mediatek.com, yt.shen@mediatek.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The commit adds the device tree binding documentation for the MediaTek GMAC found on Mediatek MT2712. Signed-off-by: Biao Huang --- .../devicetree/bindings/net/mediatek-gmac.txt | 45 ++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/mediatek-gmac.txt diff --git a/Documentation/devicetree/bindings/net/mediatek-gmac.txt b/Documentation/devicetree/bindings/net/mediatek-gmac.txt new file mode 100644 index 0000000..14876ed --- /dev/null +++ b/Documentation/devicetree/bindings/net/mediatek-gmac.txt @@ -0,0 +1,45 @@ +MediaTek Gigabit Ethernet controller +========================================= + +The gigabit ethernet controller can be found on MediaTek SoCs. + +* Ethernet controller node + +Required properties: +- compatible: Should be + "mediatek,mt2712-eth": for MT2712 SoC +- reg: Address and length of the register set for the device +- interrupts: Should contain the MAC interrupts +- interrupt-names: the name of interrupt in the interrupts property. These are + "macirq": For MT2712 SoC +- clocks: the clock used by the controller +- clock-names: the names of the clock listed in the clocks property. These are + "axi", "apb", "mac_ext", "ptp", "ptp_parent", "ptp_top": For MT2712 SoC +- mac-address: See ethernet.txt in the same directory +- power-domains: phandle to the power domain that the ethernet is part of +- phy-mode: See ethernet.txt file in the same directory. +- reset-gpio: gpio number for phy reset. + +Example: + +eth: eth@1101c000 { + compatible = "mediatek,mt2712-eth"; + reg = <0 0x1101c000 0 0x1200>; + interrupts = ; + interrupt-names = "macirq"; + phy-mode ="rgmii"; + mac-address = [00 55 7b b5 7d f7]; + clock-names = "axi", + "apb", + "mac_ext", + "ptp", + "ptp_parent", + "ptp_top"; + clocks = <&pericfg CLK_PERI_GMAC>, + <&pericfg CLK_PERI_GMAC_PCLK>, + <&topckgen CLK_TOP_ETHER_125M_SEL>, + <&topckgen CLK_TOP_ETHER_50M_SEL>, + <&topckgen CLK_TOP_APLL1_D3>, + <&topckgen CLK_TOP_APLL1>; + reset-gpio = <&pio 87 GPIO_ACTIVE_HIGH>; + };