Received: by 10.223.185.116 with SMTP id b49csp2086838wrg; Sat, 17 Feb 2018 11:56:14 -0800 (PST) X-Google-Smtp-Source: AH8x225FPQ84RvG3HKML42SWFvyt4zX1sWTebJA+UXIzeeB6e1WfLOYcbC6XF7uouq2DTlpVmPxo X-Received: by 10.98.19.15 with SMTP id b15mr9943383pfj.113.1518897374191; Sat, 17 Feb 2018 11:56:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518897374; cv=none; d=google.com; s=arc-20160816; b=VjPuVgstmzJOlIftfO1yNS28YPGP5JoJnx9nscC+mrPxgJw7Nna2FH4Ny5T0hMReJz +P333pECxJfrS0KltXx11BqoDej3FHZN8790KOgOIjuU4yojUu45x8BrrWmvExh6nOGt nfIwWPhCLJZnwjjq5pu6tlvNFmSywlgw/daDLh8iRuvUmc4xdGNlfYVCPGoNE8qv88cC w7jLzfQyG1TZy9Udy/AY+2VoV+V2bSmonXqra9776HuOgGqzvFQ1evIzpXVldLHEH7nR phP7xOkd1+Lco4ruQAeOjA0TVh0u6kzT2AHe15e10qjLsbIodUWgqMdH/MU5gdn+JtmZ bcfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=dz+VdanX9R/5m0l1FdPqZ8Ah04uXMQB7g7e1snMDCio=; b=VwOax7DGhYa9IHJn9cL5pRkRfbCZblynlV4Qe82bpl+IIntZDqkEwZTX+CsfI+qeaK 8kSlvtBJmQ8iYxaigls1mcKT3csMWE4Y6g3/G4ss8Uhorp7zbMOS6MLB7RfFXVUN7/YB HusQbQimCfLKDgt6ligqRfcynow5i0mLh0q0sx0zLiIWvJkB/KLKE6PltLpSFOvctPGB RzI27xhgsxe3iCfUHglJwMWad1fY2pChRW7RVY/fEW9p2CJuB1m6oehABxOhzAWiUsYo d8446K/awGODoDdHBI+pmVcrPtK4A/YbRjui2z/7YVEPeczzIc2Aa3WC/fKseAQ9fx/S ov5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u85si1443334pfi.5.2018.02.17.11.55.59; Sat, 17 Feb 2018 11:56:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751357AbeBQTzN (ORCPT + 99 others); Sat, 17 Feb 2018 14:55:13 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:14702 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751280AbeBQTzJ (ORCPT ); Sat, 17 Feb 2018 14:55:09 -0500 X-UUID: 6c6a3422872544dd83fd073285ace98f-20180218 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 461172722; Sun, 18 Feb 2018 03:55:04 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Sun, 18 Feb 2018 03:55:02 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Sun, 18 Feb 2018 03:55:02 +0800 From: To: , , , , CC: , , Sean Wang Subject: [PATCH v3 10/15] arm64: dts: mt7622: add ethernet device nodes Date: Sun, 18 Feb 2018 03:54:45 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Wang add ethernet device nodes which enable GMAC1 with SGMII interface Signed-off-by: Sean Wang --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 22 ++++++++++++++++++++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 31 ++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts index 48c5ba4..e2bd93e 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts +++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts @@ -249,6 +249,28 @@ status = "okay"; }; +ð { + pinctrl-names = "default"; + pinctrl-0 = <ð_pins>; + status = "okay"; + + gmac1: mac@1 { + compatible = "mediatek,eth-mac"; + reg = <1>; + phy-handle = <&phy5>; + }; + + mdio-bus { + #address-cells = <1>; + #size-cells = <0>; + + phy5: ethernet-phy@5 { + reg = <5>; + phy-mode = "sgmii"; + }; + }; +}; + &i2c1 { pinctrl-names = "default"; pinctrl-0 = <&i2c1_pins>; diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi index d287d75..95f947e 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi @@ -550,6 +550,37 @@ #reset-cells = <1>; }; + eth: ethernet@1b100000 { + compatible = "mediatek,mt7622-eth", + "mediatek,mt2701-eth", + "syscon"; + reg = <0 0x1b100000 0 0x20000>; + interrupts = , + , + ; + clocks = <&topckgen CLK_TOP_ETH_SEL>, + <ðsys CLK_ETH_ESW_EN>, + <ðsys CLK_ETH_GP0_EN>, + <ðsys CLK_ETH_GP1_EN>, + <ðsys CLK_ETH_GP2_EN>, + <&sgmiisys CLK_SGMII_TX250M_EN>, + <&sgmiisys CLK_SGMII_RX250M_EN>, + <&sgmiisys CLK_SGMII_CDR_REF>, + <&sgmiisys CLK_SGMII_CDR_FB>, + <&topckgen CLK_TOP_SGMIIPLL>, + <&apmixedsys CLK_APMIXED_ETH2PLL>; + clock-names = "ethif", "esw", "gp0", "gp1", "gp2", + "sgmii_tx250m", "sgmii_rx250m", + "sgmii_cdr_ref", "sgmii_cdr_fb", "sgmii_ck", + "eth2pll"; + power-domains = <&scpsys MT7622_POWER_DOMAIN_ETHSYS>; + mediatek,ethsys = <ðsys>; + mediatek,sgmiisys = <&sgmiisys>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + sgmiisys: sgmiisys@1b128000 { compatible = "mediatek,mt7622-sgmiisys", "syscon"; -- 2.7.4