From patchwork Tue Nov 25 09:09:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Chen X-Patchwork-Id: 5374661 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6E015C11AC for ; Tue, 25 Nov 2014 09:09:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C77F8201C0 for ; Tue, 25 Nov 2014 09:09:46 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 723B4201BB for ; Tue, 25 Nov 2014 09:09:45 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XtC80-0007mf-FJ; Tue, 25 Nov 2014 09:09:44 +0000 Received: from regular1.263xmail.com ([211.150.99.140]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XtC7w-0007ZJ-9A for linux-rockchip@lists.infradead.org; Tue, 25 Nov 2014 09:09:42 +0000 Received: from roger.chen?rock-chips.com (unknown [192.168.167.84]) by regular1.263xmail.com (Postfix) with SMTP id 67D274007; Tue, 25 Nov 2014 17:09:12 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.263.net (Postfix) with ESMTP id 469FF1EAF4; Tue, 25 Nov 2014 17:09:08 +0800 (CST) X-RL-SENDER: roger.chen@rock-chips.com X-FST-TO: heiko@sntech.de X-SENDER-IP: 127.0.0.1 X-LOGIN-NAME: roger.chen@rock-chips.com X-UNIQUE-TAG: X-ATTACHMENT-NUM: 0 X-SENDER: cz@rock-chips.com X-DNS-TYPE: 0 Received: from localhost.localdomain (unknown [127.0.0.1]) by smtp.263.net (Postfix) whith ESMTP id 4522D1PYI8; Tue, 25 Nov 2014 17:09:10 +0800 (CST) From: Roger Chen To: heiko@sntech.de Subject: [PATCH 4/4] GMAC: dts: enable gmac on RK3288 evb board Date: Tue, 25 Nov 2014 17:09:09 +0800 Message-Id: <1416906549-26196-1-git-send-email-roger.chen@rock-chips.com> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141125_010941_918672_2FED6514 X-CRM114-Status: UNSURE ( 4.54 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) Cc: netdev@vger.kernel.org, kever.yang@rock-chips.com, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, eddie.cai@rock-chips.com, roger.chen@rock-chips.com, peppe.cavallaro@st.com, mark.yao@rock-chips.com X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP enable gmac in rk3288-evb-rk808.dts Signed-off-by: Roger Chen --- arch/arm/boot/dts/rk3288-evb-rk808.dts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-evb-rk808.dts b/arch/arm/boot/dts/rk3288-evb-rk808.dts index d8c775e6..168b4fa 100644 --- a/arch/arm/boot/dts/rk3288-evb-rk808.dts +++ b/arch/arm/boot/dts/rk3288-evb-rk808.dts @@ -152,3 +152,25 @@ }; }; }; + +&ext_gmac { + clock-frequency = <125000000>; + clock-output-names = "ext_gmac"; +}; + +&gmac { + //pmu_regulator = "act_ldo5"; + //pmu_enable_level = <1>; //1->HIGH, 0->LOW + power-gpio = <&gpio0 6 GPIO_ACTIVE_HIGH>; + reset-gpio = <&gpio4 7 GPIO_ACTIVE_LOW>; + //phyirq-gpio = <&gpio4 2 GPIO_ACTIVE_LOW>; + phy-mode = "rgmii"; + clock_in_out = "input"; + assigned-clocks = <&cru SCLK_MAC>; + assigned-clock-parents = <&ext_gmac>; + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pin>; /*&rmii_pin*/ + tx_delay = <0x30>; + rx_delay = <0x10>; + status = "ok"; +};