From patchwork Thu Feb 16 12:48:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9577101 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 67AE6600F6 for ; Thu, 16 Feb 2017 12:57:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4FC0D285C2 for ; Thu, 16 Feb 2017 12:57:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4465E285C4; Thu, 16 Feb 2017 12:57:22 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C4D6A285C2 for ; Thu, 16 Feb 2017 12:57:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=48npKfitjPGU13NT5eXT6ggaqi5X+Qe3SfjNd50DSRA=; b=S3jgHssliSC0SIJzynbdTItNkv JWjAkpXcnGLVKuFSH1Y0VoAB8kjY9umXFbkQGzzh68HViZPLozPa92BBUIYVusYi7Bj34/7Owqnfw jJf/+jGeC59Wu9y0XNkVQMekUdG2SGOSFQSvEPkT8uPDiXLSG70KnGuB6opM+Gzajs5m2I6AiFnnp 9BxEEqhHDlRmUuInCJ3QJ+oBiMUWQl96jvrN6rrUP0XjFbqk1+MCDAF274h7siRICotpD+5SXHvi9 phCes2wIfWV3VxTXd03b0cop+saH5/KeW/8O8nIDt9tCfVjoIEWs19Hmq56Kg/y5qLJvRl78Mq8JO YrfIQ9KA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ceLcS-0007Kl-Qe; Thu, 16 Feb 2017 12:57:08 +0000 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ceLXG-0001Ls-OP for linux-arm-kernel@lists.infradead.org; Thu, 16 Feb 2017 12:51:54 +0000 Received: by mail-wr0-x242.google.com with SMTP id c4so1945005wrd.1 for ; Thu, 16 Feb 2017 04:51:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7j6LLpt+/ft/zm6sLLrPNSNv85dry236PLDV9Lz+Rxs=; b=mIqDQK9tduwJEP8G/qelSUhRLdFgObS7p2lkkAYnndfMLW3qIWAWqUyETMxt7EdWB3 wAiR1Ezh7PzQ2yoQ2peAYRhYyQ9qpV9hn1FhjwdRgfDXR2RP3y5RkZVAKoSJOsdHpx3Q GPArtNUYlbDOblHdDuHgvzZbb5fQvhIqSxqSoNJa5k3T7kEktelIW8hewAoHPJwp4we8 Hda1hJaynfRE7zE0tPc0B/3xf2pl2+Ii8iURFFauaKE93Bgn3YvW+DzJ8nOd7m5iKmVx u1Wq/q+2hE9DJ5MVkX+f4Ik8g/StT+Rvh7TT73le9qM63IG8N2vFA+FzoDHSDDIfDBcG cQSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7j6LLpt+/ft/zm6sLLrPNSNv85dry236PLDV9Lz+Rxs=; b=NXcEqbLajGyI8gmMYzkN1h60bODEJulh0znHSUKz/2e5+S1364ZPzFqq7WGFJXrEiI EOaBjCHPG5I3DJI8lFre9nfnA1eQ/JxFqqxA7VpsXHYywW/KUDGoLoiQPKWGx3b+ye8K /QCwjVkjEjDo3Ke3vbLEDXYDmLHIyVrYxFihOIWgjKv0zOOpbvEFLAlNX9oF1cE2NY+s sraB9x1LLqEc5dif0QojYQb2U5ASjRsjt2tlNSF30o0HmophkrWAGeuw0OzTqYCqk/zs ysDePiEHZPyd0E8Wf3AaQCbDdnwuYtVJFx8awYPBKFnfHjpl42x87wC5W5bD/JikYbPn iNaw== X-Gm-Message-State: AMke39ncdZIl7q9blEfKZWBH/ZgbGV8krx2Rc5BTHRxqB7qhi2drjAVxpq9EHhHuo+dABQ== X-Received: by 10.223.170.154 with SMTP id h26mr2080991wrc.29.1487249488979; Thu, 16 Feb 2017 04:51:28 -0800 (PST) Received: from Red.local (LFbn-1-7035-57.w90-116.abo.wanadoo.fr. [90.116.208.57]) by smtp.googlemail.com with ESMTPSA id o143sm144705wmd.3.2017.02.16.04.51.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Feb 2017 04:51:28 -0800 (PST) From: Corentin Labbe To: peppe.cavallaro@st.com, robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@free-electrons.com, wens@csie.org, linux@armlinux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com, alexandre.torgue@st.com Subject: [PATCH 10/21] ARM: dts: sun8i: Enable dwmac-sun8i on the Orange PI PC Date: Thu, 16 Feb 2017 13:48:48 +0100 Message-Id: <20170216124859.14346-11-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170216124859.14346-1-clabbe.montjoie@gmail.com> References: <20170216124859.14346-1-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170216_045147_304149_9EE5CBC1 X-CRM114-Status: GOOD ( 10.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, LABBE Corentin , linux-arm-kernel@lists.infradead.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 From: LABBE Corentin The dwmac-sun8i 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 d43978d..13f7267 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 { @@ -185,3 +186,10 @@ /* USB VBUS is always on */ status = "okay"; }; + +&emac { + phy-handle = <&int_mii_phy>; + phy-mode = "mii"; + allwinner,leds-active-low; + status = "okay"; +};