From patchwork Sun Oct 26 13:23:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 5154191 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 8DCA1C11AC for ; Sun, 26 Oct 2014 13:21:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B63C0202F2 for ; Sun, 26 Oct 2014 13:21:24 +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 DFFEA202F8 for ; Sun, 26 Oct 2014 13:21:23 +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 1XiNl5-0003YJ-7H; Sun, 26 Oct 2014 13:21:23 +0000 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XiNko-0003U2-AN; Sun, 26 Oct 2014 13:21:07 +0000 Received: by mail-wi0-f177.google.com with SMTP id ex7so4387529wid.16 for ; Sun, 26 Oct 2014 06:20:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cmpSC4Mtv2CypAwbgQqHnzj5VX9RPB8PIL5ghqKIbdk=; b=YIkYKNaP6m7zQC52M902zhfIXORWpU3vEVn9xmqglWHbgqLRnFwjMwZYpHl9Dt7eK1 rGywqjlar4htKgLL4bKS2JyD0DTER+aV2smYJN7caRhIRhoqCcf159AArwgJh4Y9Arzr C6Z9k2sNZYA1FzRXcbHdIwGIzz5r1HFt1V3ufoouVLBhu440WklGA2hVdU8RjeA2rdHj tVIELovpTaAlJSjkyAQ3oMppUmKBXxj/NdAq6N4ujqhhwQ7tBx6pMEAYqGLX6C4HOVJU qZg5ZzZ7D1j/dX3+WnuAV6Shc0jfba9/jyxmJ4DpXkpsaR+QSxqO8AI7CXEPhPvvCnXt 4WgA== X-Received: by 10.180.206.171 with SMTP id lp11mr14824593wic.33.1414329643871; Sun, 26 Oct 2014 06:20:43 -0700 (PDT) Received: from localhost.localdomain (AToulouse-554-1-17-219.w92-149.abo.wanadoo.fr. [92.149.96.219]) by mx.google.com with ESMTPSA id bg10sm11978193wjc.47.2014.10.26.06.20.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 26 Oct 2014 06:20:43 -0700 (PDT) From: Romain Perier To: heiko@sntech.de Subject: [PATCH v1 4/4] ARM: dts: rockchip: Enable emac node in rk3066a-marsboard Date: Sun, 26 Oct 2014 13:23:49 +0000 Message-Id: <1414329829-8031-4-git-send-email-romain.perier@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1414329829-8031-1-git-send-email-romain.perier@gmail.com> References: <1414329829-8031-1-git-send-email-romain.perier@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141026_062106_552611_2A91F24F X-CRM114-Status: UNSURE ( 8.60 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) Cc: linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org 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.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 This enables EMAC Rockchip and adds initial ethernet support for the MarsBoard RK3066. Signed-off-by: Romain Perier --- arch/arm/boot/dts/rk3066a-marsboard.dts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/rk3066a-marsboard.dts b/arch/arm/boot/dts/rk3066a-marsboard.dts index d7d4cd1..d4a1dfe 100644 --- a/arch/arm/boot/dts/rk3066a-marsboard.dts +++ b/arch/arm/boot/dts/rk3066a-marsboard.dts @@ -122,6 +122,30 @@ /* must be included after &tps gets defined */ #include "tps65910.dtsi" +&emac { + status = "okay"; + + phy = <&phy0>; + phy-supply = <&vaux33_reg>; + + pinctrl-names = "default"; + pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>; + + phy0: ethernet-phy@0 { + reg = <0>; + interrupt-parent = <&gpio1>; + interrupts = <26 IRQ_TYPE_LEVEL_LOW>; + }; +}; + +&pinctrl { + lan8720a { + phy_int: phy-int { + rockchip,pins = ; + }; + }; +}; + &uart0 { status = "okay"; };