From patchwork Wed Sep 3 16:52:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 4835881 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 AC1EBC0338 for ; Wed, 3 Sep 2014 16:51:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DF0652021B for ; Wed, 3 Sep 2014 16:51:17 +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 10CF320221 for ; Wed, 3 Sep 2014 16:51:17 +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 1XPDm8-00061P-Nt; Wed, 03 Sep 2014 16:51:16 +0000 Received: from mail-wi0-x22e.google.com ([2a00:1450:400c:c05::22e]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XPDls-0005fu-1F; Wed, 03 Sep 2014 16:51:00 +0000 Received: by mail-wi0-f174.google.com with SMTP id d1so1331161wiv.1 for ; Wed, 03 Sep 2014 09:50:37 -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=HR87STjPXaenFkiJQ4CLhhKyuTJBFatYa9WUfUeaBsQ=; b=Z2q0cpkDg5ZDN+tcrfDne0lR5kdbF5xKEpwnxwwWX9SrY60pEs/0//rYq6B1Awd+md 2ZdleSSYhMJBA3GcU73J9q7bCTv1Vi/x0m+Y+yB5bJq+cB9SVWw48Pkzte+QY6qSAe0F IdAlx0yLdIrXeN4NlggkK2fVF2WitFEjrS/2L/GECq3I+Fi+zGg/i1iT6YQpTfZwcXPL p7LELj4mC9PAP4HGtZeq8ELcdD750DzKrY84mJtm8C2URx6l5OGAfVGv0ZjSn0sTy98l +XQ0hejMJ2aYjwjnAyh34+zjAxVU08do3zxhbdiHPeR/YLL5yvrML0zinQ62NjZq6h6F +0QA== X-Received: by 10.180.95.169 with SMTP id dl9mr36848744wib.51.1409763037315; Wed, 03 Sep 2014 09:50:37 -0700 (PDT) Received: from localhost.localdomain (AToulouse-554-1-44-245.w92-149.abo.wanadoo.fr. [92.149.235.245]) by mx.google.com with ESMTPSA id h6sm16557703wjb.33.2014.09.03.09.50.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Sep 2014 09:50:36 -0700 (PDT) From: Romain Perier To: heiko@sntech.de Subject: [PATCH 3/4] ARM: dts: Add emac nodes to the rk3188 device tree Date: Wed, 3 Sep 2014 16:52:44 +0000 Message-Id: <1409763165-16461-3-git-send-email-romain.perier@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1409763165-16461-1-git-send-email-romain.perier@gmail.com> References: <1409763165-16461-1-git-send-email-romain.perier@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140903_095100_258141_DAE737E4 X-CRM114-Status: UNSURE ( 8.56 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) Cc: linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, arnd@arndb.de, linux-arm-kernel@lists.infradead.org, netdev@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=-3.5 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=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 This adds support for EMAC Rockchip driver on RK3188 SoCs. Signed-off-by: Romain Perier --- arch/arm/boot/dts/rk3188.dtsi | 18 ++++++++++++++++++ arch/arm/boot/dts/rk3xxx.dtsi | 17 +++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/rk3188.dtsi b/arch/arm/boot/dts/rk3188.dtsi index ee801a9..a182713 100644 --- a/arch/arm/boot/dts/rk3188.dtsi +++ b/arch/arm/boot/dts/rk3188.dtsi @@ -147,6 +147,24 @@ bias-disable; }; + emac { + emac_xfer: emac-xfer { + rockchip,pins = , //tx_en + , //txd1 + , //txd0 + , //rxd0 + , //rxd1 + , //mac_clk + , //rx_err + ; //crs_dvalid + }; + + emac_mdio: emac-mdio { + rockchip,pins = , + ; + }; + }; + i2c0 { i2c0_xfer: i2c0-xfer { rockchip,pins = , diff --git a/arch/arm/boot/dts/rk3xxx.dtsi b/arch/arm/boot/dts/rk3xxx.dtsi index 8caf85d..208b1df 100644 --- a/arch/arm/boot/dts/rk3xxx.dtsi +++ b/arch/arm/boot/dts/rk3xxx.dtsi @@ -91,6 +91,23 @@ status = "disabled"; }; + emac: ethernet@10204000 { + compatible = "snps,arc-emac"; + reg = <0x10204000 0x3c>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + + rockchip,grf = <&grf>; + + clocks = <&cru HCLK_EMAC>, <&cru SCLK_MAC>; + clock-names = "hclk", "macref"; + max-speed = <100>; + phy-mode = "rmii"; + + status = "disabled"; + }; + mmc0: dwmmc@10214000 { compatible = "rockchip,rk2928-dw-mshc"; reg = <0x10214000 0x1000>;