From patchwork Fri Oct 7 08:25:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9365759 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1BEA160752 for ; Fri, 7 Oct 2016 08:30:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B4D72938F for ; Fri, 7 Oct 2016 08:30:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F12F7293B7; Fri, 7 Oct 2016 08:30:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id 00E402938F for ; Fri, 7 Oct 2016 08:30:47 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bsQX1-0007v6-6Z; Fri, 07 Oct 2016 08:29:27 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bsQWM-0007ll-V2 for linux-arm-kernel@lists.infradead.org; Fri, 07 Oct 2016 08:28:48 +0000 Received: by mail-wm0-x244.google.com with SMTP id i130so1771342wmg.0 for ; Fri, 07 Oct 2016 01:28:30 -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=7DpgBaPFvgfwdxHqbdR7js5ZOdL6vy1RPegyhs+dQGg=; b=Mo7FVJplnJwJ1Ll/4XoJFka1Coo0djuYf1ATq7ebj6uATz1OZ/FqjePxVYOtfylSo8 dWHOdMQfVt/YNqfOHLzY2vQZ9wy2k+Y4ILwhBtPAA21JNsTc8ZWCM0kniEBf3wcBr/lI MzNBBqzwN7sW/3B8sZh02c3uuoOmtUI3wnkjWiYPOM1rQB7Xu30ib4upbE7gohxuFDIx M4VfYwpZT1915GI5hhpX2lUjVXIQumFTEzG6liipxxam3odbfZdncCyqhlxhcGrBegJi KOQvR9V6tJW2KuYdztLefMBRG9EBXeXOXGWP3gypOWWFO+qdH+Y+YHd8bPFma6Zkp7uv g9iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7DpgBaPFvgfwdxHqbdR7js5ZOdL6vy1RPegyhs+dQGg=; b=m+4F7qtsFpPA468C03v4bFPfWoo6f+Hi8MSRb3KFCK0PP0IkGBuYCFRfJNVFBQjfEl GLK1XqCgIfY+z/p7/db1tfsIfBpY4JdTlEUSbMp4ooNcs2/YLD12YGD7BjBU3XZz39CR 2xnnpP/hLgxsYx6HuCQHynCKMZSCOh6tjh0Oiutld2fBy9z1d+DvL6kdCbwRELf+YdIu RAVHEMNWgTwFFI4JKZs/BVTM5raP0aggg7lTmz3wBtmRcB/iVQ0OGLYQ2KRT3h7MQSUg sTcLDN3WF5O9mUvaQb3325csMafoXAnAiBncSKnTZsoAse7btcO+e7xX3KkH/D58ZVa0 iT6A== X-Gm-Message-State: AA6/9RlJdyTDOGhWREkz79Z0YgYFYL9FyBsuwcuoapgRFN0MXZ7W0K7Xf+tRssfqWj/eDg== X-Received: by 10.194.109.42 with SMTP id hp10mr6518482wjb.24.1475828908938; Fri, 07 Oct 2016 01:28:28 -0700 (PDT) Received: from Red.local (LFbn-1-7035-57.w90-116.abo.wanadoo.fr. [90.116.208.57]) by smtp.googlemail.com with ESMTPSA id 193sm1850999wmo.14.2016.10.07.01.28.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Oct 2016 01:28:28 -0700 (PDT) From: Corentin Labbe To: robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@free-electrons.com, wens@csie.org, linux@armlinux.org.uk, davem@davemloft.net, f.fainelli@gmail.com, andrew@lunn.ch Subject: [PATCH v4 06/10] ARM: dts: sun8i: Enable sun8i-emac on the Orange PI PC Date: Fri, 7 Oct 2016 10:25:53 +0200 Message-Id: <1475828757-926-7-git-send-email-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1475828757-926-1-git-send-email-clabbe.montjoie@gmail.com> References: <1475828757-926-1-git-send-email-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161007_012847_216306_67410FD6 X-CRM114-Status: GOOD ( 10.08 ) 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: netdev@vger.kernel.org, Corentin Labbe , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The sun8i-emac hardware is present on the Orange PI PC. It uses the internal PHY. This patch create the needed emac node. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts index daf50b9a6..71717cc 100644 --- a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts +++ b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts @@ -54,6 +54,7 @@ aliases { serial0 = &uart0; + ethernet0 = &emac; }; chosen { @@ -165,3 +166,10 @@ /* USB VBUS is always on */ status = "okay"; }; + +&emac { + phy-handle = <&int_mii_phy>; + phy-mode = "mii"; + allwinner,leds-active-low; + status = "okay"; +};