linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: manabian@gmail.com (Joachim Eastwood)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 14/17] ARM: dts: lpc4357-ea4357: add ethernet
Date: Tue, 14 Jul 2015 15:39:49 +0200	[thread overview]
Message-ID: <1436881192-23930-15-git-send-email-manabian@gmail.com> (raw)
In-Reply-To: <1436881192-23930-1-git-send-email-manabian@gmail.com>

Enable Ethernet and add pin muxing and set the correct
frequency on the enet tx clock input.

Signed-off-by: Joachim Eastwood <manabian@gmail.com>
---
 arch/arm/boot/dts/lpc4357-ea4357-devkit.dts | 73 +++++++++++++++++++++++++++++
 1 file changed, 73 insertions(+)

diff --git a/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts b/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts
index ee9d97350d34..0d04a8e8dbc1 100644
--- a/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts
+++ b/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts
@@ -88,6 +88,68 @@
 };
 
 &pinctrl {
+	enet_rmii_pins: enet-rmii-pins {
+		enet_rmii_rxd_cfg {
+			pins = "p1_15", "p0_0";
+			function = "enet";
+			slew-rate = <1>;
+			bias-disable;
+			input-enable;
+			input-schmitt-disable;
+		};
+
+		enet_rmii_txd_cfg {
+			pins = "p1_18", "p1_20";
+			function = "enet";
+			slew-rate = <1>;
+			bias-disable;
+			input-enable;
+			input-schmitt-disable;
+		};
+
+		enet_rmii_rx_dv_cfg {
+			pins = "p1_16";
+			function = "enet";
+			bias-disable;
+			input-enable;
+			input-schmitt-disable;
+		};
+
+		enet_rmii_tx_en_cfg {
+			pins = "p0_1";
+			function = "enet";
+			bias-disable;
+			input-enable;
+			input-schmitt-disable;
+		};
+
+		enet_ref_clk_cfg {
+			pins = "p1_19";
+			function = "enet";
+			slew-rate = <1>;
+			bias-disable;
+			input-enable;
+			input-schmitt-disable;
+		};
+
+		enet_mdio_cfg {
+			pins = "p1_17";
+			function = "enet";
+			bias-disable;
+			input-enable;
+			input-schmitt-disable;
+		};
+
+		enet_mdc_cfg {
+			pins = "pc_1";
+			function = "enet";
+			slew-rate = <1>;
+			bias-disable;
+			input-enable;
+			input-schmitt-disable;
+		};
+	};
+
 	gpio_joystick_pins: gpio-joystick-pins {
 		gpio_joystick_cfg {
 			pins =	"p9_0", "p9_1", "pa_1", "pa_2", "pa_3";
@@ -145,6 +207,17 @@
 	};
 };
 
+&enet_tx_clk {
+	clock-frequency = <50000000>;
+};
+
+&mac {
+	status = "okay";
+	phy-mode = "rmii";
+	pinctrl-names = "default";
+	pinctrl-0 = <&enet_rmii_pins>;
+};
+
 &mmcsd {
 	status = "okay";
 	bus-width = <4>;
-- 
1.8.0

  parent reply	other threads:[~2015-07-14 13:39 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-14 13:39 [PATCH 00/17] LPC18xx DTS changes for 4.3 Joachim Eastwood
2015-07-14 13:39 ` [PATCH 01/17] ARM: dts: lpc18xx: add cgu and ccu clock-controller nodes Joachim Eastwood
2015-07-14 13:39 ` [PATCH 02/17] ARM: dts: lpc18xx: add uart new compat string and clk names Joachim Eastwood
2015-07-14 13:39 ` [PATCH 03/17] ARM: dts: lpc18xx: add pinctrl node Joachim Eastwood
2015-07-14 13:39 ` [PATCH 04/17] ARM: dts: lpc18xx: add gpio node Joachim Eastwood
2015-07-14 13:39 ` [PATCH 05/17] ARM: dts: lpc18xx: add ssp nodes Joachim Eastwood
2015-07-14 13:39 ` [PATCH 06/17] ARM: dts: lpc18xx: add can nodes Joachim Eastwood
2015-07-14 13:39 ` [PATCH 07/17] ARM: dts: lpc18xx: add mmcsd node Joachim Eastwood
2015-07-14 13:39 ` [PATCH 08/17] ARM: dts: lpc18xx: add creg (syscon) node Joachim Eastwood
2015-07-14 13:39 ` [PATCH 09/17] ARM: dts: lpc18xx: add ethernet node Joachim Eastwood
2015-07-14 13:39 ` [PATCH 10/17] ARM: dts: lpc18xx: add usb nodes Joachim Eastwood
2015-07-14 13:39 ` [PATCH 11/17] ARM: dts: lpc4357-ea4357: add pinctrl and uart0 muxing Joachim Eastwood
2015-07-14 13:39 ` [PATCH 12/17] ARM: dts: lpc4357-ea4357: add mmcsd Joachim Eastwood
2015-07-14 13:39 ` [PATCH 13/17] ARM: dts: lpc4357-ea4357: add gpio joystick Joachim Eastwood
2015-07-14 13:39 ` Joachim Eastwood [this message]
2015-07-14 13:39 ` [PATCH 15/17] ARM: dts: lpc4357-ea4357: add uart3 Joachim Eastwood
2015-07-14 13:39 ` [PATCH 16/17] of: add vendor prefix for CIAA project Joachim Eastwood
2015-07-14 13:39 ` [PATCH 17/17] ARM: dts: add DT for CIAA LPC4337 industrial computer Joachim Eastwood
2015-07-17 16:54 ` [PATCH 00/17] LPC18xx DTS changes for 4.3 Olof Johansson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1436881192-23930-15-git-send-email-manabian@gmail.com \
    --to=manabian@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).