From patchwork Thu Jul 30 22:24:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joachim Eastwood X-Patchwork-Id: 6907231 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2589B9F358 for ; Thu, 30 Jul 2015 22:29:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 464C120592 for ; Thu, 30 Jul 2015 22:29:12 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5F9782052D for ; Thu, 30 Jul 2015 22:29:11 +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 1ZKwI6-00053h-Ky; Thu, 30 Jul 2015 22:27:06 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZKwGR-00043V-Aw for linux-arm-kernel@bombadil.infradead.org; Thu, 30 Jul 2015 22:25:23 +0000 Received: from mail-lb0-x231.google.com ([2a00:1450:4010:c04::231]) by merlin.infradead.org with esmtps (Exim 4.85 #2 (Red Hat Linux)) id 1ZKwGP-000678-BM for linux-arm-kernel@lists.infradead.org; Thu, 30 Jul 2015 22:25:22 +0000 Received: by lbbyj8 with SMTP id yj8so35831807lbb.0 for ; Thu, 30 Jul 2015 15:24:55 -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=NfdeXXYQPFDfyW7Q+YSfbDWsYixWCguaeYwqMdrqxYE=; b=o+MjnHHYxe0wK7WnIVu4PbvxotXlSxTEuNxUqsbtrevYi6JsS0W9aqyADVEmzzxRnY GfpRStdUP5tf8AecLERVjquCzXTOVfJDL21Anm4IUhbT+E9+yGCHQ9GmngFKd8d5E1PV I6UN2XywmE+uS/vZ64Tzgh6Vza1MuMf2fkbySZH12wQSfjSvfdGehAGsoKrZKQMzbGx9 MCTdZEWGB42aj0gAy8+/AGq7tF6ESwwoVuOeBg4c9cyNn2B566H0Vs15mIzPfpYjKRim zvVf4NVcivalBbNCp0jnXtSSSEiL28s/+bwvIDcaqtdLvX8dQZf7taVzHawmjPuUDxDW YR6g== X-Received: by 10.152.25.169 with SMTP id d9mr47342631lag.80.1438295095910; Thu, 30 Jul 2015 15:24:55 -0700 (PDT) Received: from localhost.localdomain ([89.11.213.141]) by smtp.gmail.com with ESMTPSA id lm12sm519923lac.11.2015.07.30.15.24.54 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 30 Jul 2015 15:24:55 -0700 (PDT) From: Joachim Eastwood To: arm@kernel.org, olof@lixom.net Subject: [PATCH 8/9] ARM: dts: lpc4350-hitex-eval: add ethernet Date: Fri, 31 Jul 2015 00:24:26 +0200 Message-Id: <1438295067-24407-9-git-send-email-manabian@gmail.com> X-Mailer: git-send-email 1.8.0 In-Reply-To: <1438295067-24407-1-git-send-email-manabian@gmail.com> References: <1438295067-24407-1-git-send-email-manabian@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150730_182521_684790_CF1BAD9F X-CRM114-Status: GOOD ( 10.82 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Joachim Eastwood , ezequiel@vanguardiasur.com.ar, linux-arm-kernel@lists.infradead.org, Ariel D'Alessandro 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=-5.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, 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 From: Ariel D'Alessandro Enable Ethernet and add pin muxing and set the correct frequency on the enet tx clock input. Signed-off-by: Ariel D'Alessandro Signed-off-by: Joachim Eastwood --- arch/arm/boot/dts/lpc4350-hitex-eval.dts | 60 ++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/arch/arm/boot/dts/lpc4350-hitex-eval.dts b/arch/arm/boot/dts/lpc4350-hitex-eval.dts index 1dab22150510..1150052731af 100644 --- a/arch/arm/boot/dts/lpc4350-hitex-eval.dts +++ b/arch/arm/boot/dts/lpc4350-hitex-eval.dts @@ -37,6 +37,55 @@ }; &pinctrl { + enet_mii_pins: enet-mii-pins { + enet_mii_rxd0_3_cfg { + pins = "p1_15", "p0_0", "p9_3", "p9_2"; + function = "enet"; + bias-disable; + input-enable; + }; + + enet_mii_txd0_3_cfg { + pins = "p1_18", "p1_20", "p9_4", "p9_5"; + function = "enet"; + bias-disable; + }; + + enet_mii_crs_col_cfg { + pins = "p9_0", "p9_6"; + function = "enet"; + bias-disable; + input-enable; + }; + + enet_mii_rx_clk_dv_er_cfg { + pins = "pc_0", "p1_16", "p9_1"; + function = "enet"; + bias-disable; + input-enable; + }; + + enet_mii_tx_clk_en_cfg { + pins = "p1_19", "p0_1"; + function = "enet"; + bias-disable; + input-enable; + }; + + enet_mdio_cfg { + pins = "p1_17"; + function = "enet"; + bias-disable; + input-enable; + }; + + enet_mdc_cfg { + pins = "pc_1"; + function = "enet"; + bias-disable; + }; + }; + uart0_pins: uart0-pins { uart0_rx_cfg { pins = "pf_11"; @@ -54,6 +103,17 @@ }; }; +&enet_tx_clk { + clock-frequency = <25000000>; +}; + +&mac { + status = "okay"; + phy-mode = "mii"; + pinctrl-names = "default"; + pinctrl-0 = <&enet_mii_pins>; +}; + &uart0 { status = "okay"; pinctrl-names = "default";