From patchwork Sat Jan 24 04:59:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Hintz X-Patchwork-Id: 432374 X-Patchwork-Delegate: luka@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 288EF1402A6 for ; Sat, 24 Jan 2015 15:59:56 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 0B6AE28BE6C; Sat, 24 Jan 2015 05:57:29 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 776BD28BE30 for ; Sat, 24 Jan 2015 05:57:22 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .hotmail. - helo: .blu004-omc2s25.hotmail. - helo-domain: .hotmail.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5 Received: from BLU004-OMC2S25.hotmail.com (blu004-omc2s25.hotmail.com [65.55.111.100]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sat, 24 Jan 2015 05:57:21 +0100 (CET) Received: from BLU436-SMTP67 ([65.55.111.71]) by BLU004-OMC2S25.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Fri, 23 Jan 2015 20:59:43 -0800 X-TMN: [ChALCXZx8slgkLTBSkhYPpD8eNBGiqzN] X-Originating-Email: [nlhintz@hotmail.com] Message-ID: From: Nathan Hintz To: openwrt-devel@lists.openwrt.org Date: Fri, 23 Jan 2015 20:59:39 -0800 X-Mailer: git-send-email 1.9.3 X-OriginalArrivalTime: 24 Jan 2015 04:59:42.0567 (UTC) FILETIME=[90ABB770:01D03792] MIME-Version: 1.0 Cc: Nathan Hintz Subject: [OpenWrt-Devel] [PATCH] kirkwood: define ethernet aliases in the device tree X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" The aliases are needed for u-boot to update the ethernet mac addresses using the values from the u-boot environment. Signed-off-by: Nathan Hintz --- .../patches-3.14/180-kirkwood-ethernetn.patch | 33 ++++++++++++++++++++++ .../patches-3.18/180-kirkwood-ethernetn.patch | 17 +++++++++++ 2 files changed, 50 insertions(+) create mode 100644 target/linux/kirkwood/patches-3.14/180-kirkwood-ethernetn.patch create mode 100644 target/linux/kirkwood/patches-3.18/180-kirkwood-ethernetn.patch diff --git a/target/linux/kirkwood/patches-3.14/180-kirkwood-ethernetn.patch b/target/linux/kirkwood/patches-3.14/180-kirkwood-ethernetn.patch new file mode 100644 index 0000000..137fc98 --- /dev/null +++ b/target/linux/kirkwood/patches-3.14/180-kirkwood-ethernetn.patch @@ -0,0 +1,33 @@ +--- a/arch/arm/boot/dts/kirkwood.dtsi ++++ b/arch/arm/boot/dts/kirkwood.dtsi +@@ -22,8 +22,10 @@ + }; + + aliases { +- gpio0 = &gpio0; +- gpio1 = &gpio1; ++ gpio0 = &gpio0; ++ gpio1 = &gpio1; ++ ethernet0 = ð0port; ++ ethernet1 = ð1port; + }; + + mbus { +@@ -242,7 +244,7 @@ + marvell,tx-checksum-limit = <1600>; + status = "disabled"; + +- ethernet0-port@0 { ++ eth0port: ethernet0-port@0 { + compatible = "marvell,kirkwood-eth-port"; + reg = <0>; + interrupts = <11>; +@@ -273,7 +275,7 @@ + marvell,tx-checksum-limit = <1600>; + status = "disabled"; + +- ethernet1-port@0 { ++ eth1port: ethernet1-port@0 { + compatible = "marvell,kirkwood-eth-port"; + reg = <0>; + interrupts = <15>; diff --git a/target/linux/kirkwood/patches-3.18/180-kirkwood-ethernetn.patch b/target/linux/kirkwood/patches-3.18/180-kirkwood-ethernetn.patch new file mode 100644 index 0000000..93608c4 --- /dev/null +++ b/target/linux/kirkwood/patches-3.18/180-kirkwood-ethernetn.patch @@ -0,0 +1,17 @@ +--- a/arch/arm/boot/dts/kirkwood.dtsi ++++ b/arch/arm/boot/dts/kirkwood.dtsi +@@ -22,9 +22,11 @@ + }; + + aliases { +- gpio0 = &gpio0; +- gpio1 = &gpio1; +- i2c0 = &i2c0; ++ gpio0 = &gpio0; ++ gpio1 = &gpio1; ++ i2c0 = &i2c0; ++ ethernet0 = ð0port; ++ ethernet1 = ð1port; + }; + + mbus {