From patchwork Fri Oct 7 08:25:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9365775 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 EB55360752 for ; Fri, 7 Oct 2016 08:32:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DBE9A293D5 for ; Fri, 7 Oct 2016 08:32:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D0A46293D7; Fri, 7 Oct 2016 08:32:25 +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 690D2293D5 for ; Fri, 7 Oct 2016 08:32:25 +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 1bsQYS-0001cf-S9; Fri, 07 Oct 2016 08:30:56 +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 1bsQWR-0007lw-6n for linux-arm-kernel@lists.infradead.org; Fri, 07 Oct 2016 08:28:52 +0000 Received: by mail-wm0-x244.google.com with SMTP id f193so1762219wmg.2 for ; Fri, 07 Oct 2016 01:28:32 -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=pfGsEKNo+sViO+VkJiYcWJ7VnNAEkivxG4ky53E19PE=; b=HcirPBuhFAPoPar9hV8aWHEg7ONDSmQsFvMlFJsyczOHZSsx9Pu/FITJp8Fx/8Vrym xb8DL7txgC23wjcCjLPHIYY87k8mQZLO2cqcz/k2vkjLFYNXq0oFfZ8//19zQh8Vmupm L7prr1PmL55zAMNqTgHcrdQvfgbLT9SRIFGV34SYPy+wqGQW2YswdWPvefC57PJsy+i5 GFRPqtkmA6b4B7y2GM0bjcq3sTss8Le2f3ELLO97oeDiaQVP2zmtQl2iXIMoF5tJB4uR 2A8OlEeqt88Q76Bpd85o3CPhjzUe+hlsZrZgb6oHf7on+sAcvrPuiTVQtG9J4c0s9sx6 Q6eg== 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=pfGsEKNo+sViO+VkJiYcWJ7VnNAEkivxG4ky53E19PE=; b=Eanj1eu0CSC5qi7ggOn49dyOqa6AT7KHqvi3RDjE3I5eNMbwLZ1m19LwcGJiFxzivk X5g5ryIOBHkoDb1ThMzMQGQV6NCOSli+l6F7uz9Pec0WMmNnW++3U7lPqX0Dy0t1MuP3 2Kst8q+yROrakeQq2oe5ALgQR9F2WLfO6CwpEF2it2OKtCrbwiPuYhbhcfK3EaqMpYvg uLpd+NB2B9vWLA2CsTdn3/LZFYgp3pac5dPE7XSO23/h38eKg6YnXNggm7IyV1MCZMW9 6f41shtQ9iCRJtFdwIL2ik72EsLi2B5rqhXUZEy85zlsopAgGZ8vnTldxol16bz/KB7N 2i/g== X-Gm-Message-State: AA6/9RmvHzUQzW1wNQQRAabWINE8G7j4fSgxP4p9YWWIwHC/D3vZo6KzW4b/WEAVyAanZg== X-Received: by 10.194.153.66 with SMTP id ve2mr3407791wjb.82.1475828910902; Fri, 07 Oct 2016 01:28:30 -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.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Oct 2016 01:28:30 -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 08/10] ARM: dts: sun8i: Enable sun8i-emac on the Orange Pi 2 Date: Fri, 7 Oct 2016 10:25:55 +0200 Message-Id: <1475828757-926-9-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_012851_477997_330FCB00 X-CRM114-Status: UNSURE ( 9.69 ) X-CRM114-Notice: Please train this message. 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 2. It uses the internal PHY. This patch create the needed emac node. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-h3-orangepi-2.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts index f93f5d1..5608eb4 100644 --- a/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts +++ b/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts @@ -54,6 +54,7 @@ aliases { serial0 = &uart0; + ethernet0 = &emac; }; chosen { @@ -184,3 +185,10 @@ usb1_vbus-supply = <®_usb1_vbus>; status = "okay"; }; + +&emac { + phy-handle = <&int_mii_phy>; + phy-mode = "mii"; + allwinner,leds-active-low; + status = "okay"; +};