From patchwork Wed Sep 3 10:27:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 4832491 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6D3A79F32E for ; Wed, 3 Sep 2014 10:32:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 948192020F for ; Wed, 3 Sep 2014 10:32: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 CC863201FB for ; Wed, 3 Sep 2014 10:32:16 +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 1XP7l3-0002wg-Km; Wed, 03 Sep 2014 10:25:45 +0000 Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XP7kn-0002kK-RW; Wed, 03 Sep 2014 10:25:30 +0000 Received: by mail-wg0-f42.google.com with SMTP id b13so8132312wgh.1 for ; Wed, 03 Sep 2014 03:25:07 -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=WiaV5XHo664vkpkRISWmAMv4UW+6GNWJQmkUGgC/2iHT6HFoEQZpiGJmFJ8lAvNCuk Q4dYW32BEQ4GZfiQr947op3PGebTAkDD1f+I4lgFrLY3IKgEh3wcWtHSIGBuWYLmQiJg UywD3/f0gkXGBrbvnskg0esoBdKlmV4EcLb1INSUiOtWD/QCWrMsl+nol1SNREMGajap TTBQakg/r++IT8VqRkmq000QeBJRBpo7GMkqQxndEZY1H0Lysuo9PoAfeYdeKWVyyfau JdLlMR2EpedVCuY4YOWKNdQ3jrixGeTsOZaNBqxfDobDAuaDqkRJDlDE7yJ/S+Bj+xoA ZRYg== X-Received: by 10.180.21.199 with SMTP id x7mr34715375wie.73.1409739907580; Wed, 03 Sep 2014 03:25:07 -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 z5sm3780139wib.20.2014.09.03.03.25.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Sep 2014 03:25:06 -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 10:27:15 +0000 Message-Id: <1409740036-8117-3-git-send-email-romain.perier@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1409740036-8117-1-git-send-email-romain.perier@gmail.com> References: <1409740036-8117-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_032530_033362_8B595520 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-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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>;