From patchwork Thu Feb 16 12:48:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9577083 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 CA920600F6 for ; Thu, 16 Feb 2017 12:55:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B2236285C5 for ; Thu, 16 Feb 2017 12:55:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A7042285C8; Thu, 16 Feb 2017 12:55:34 +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 47519285C5 for ; Thu, 16 Feb 2017 12:55:34 +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=SeSbmwp0ThSCz26qmHFNu3E2b+ce5as7dnSQASusapY=; b=bUFAoi1WENDRw3pqPgi0njVzM9 edbCoRmUbBKXcY9jxn0RjDg7i/UzSvEOzmVKsb4ycqV2y4BuPBiP7Lki5BHbdgxqPycbg+fTDc7j8 KeJtDuaCEV5mWanspyCgB5EEiP2w8Z5cJycIX2FnWsxU+DCzBRNLy7UQWExcmpYtlie5XtDTmgrCK D3uliWNVT9ozJ2WupJlgUQFOwHYI3p7lpMHRPrgRV9L1QvXbUzuYMCpv8dGd+Zh5sO+shR4nw5N0a P274vufTy8FekDOOYI8oK12/lkQ62XHJQSq+hpXGSDA6kK/Ge/pOmHFDx3DKPFTd2FcZ9YYu2NDss d8oe9U6A==; 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 1ceLap-0005m3-4J; Thu, 16 Feb 2017 12:55:27 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ceLXJ-0001Lu-Cz for linux-arm-kernel@lists.infradead.org; Thu, 16 Feb 2017 12:52:01 +0000 Received: by mail-wm0-x244.google.com with SMTP id v77so2993367wmv.0 for ; Thu, 16 Feb 2017 04:51:31 -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=FuXkOfiHdJ/75aaRGD1r9y/+TBfW4S7uYJTwpfnK3GU=; b=Cyb7cGMMKY3v5mosKYVlKV45zuRPyB7yCuVjs3wx7NnqFknHX6h8aIRhD215+z56qf DLdwyt8vNKQG+4aQa4O/SQ+y/Mr3Shzwosvjr9c0z0SqgITG2FGFC3l4qNbQGLLE7z6/ a1yMBlP4jBURkX4jPX7VsD3n9DF2nRjCnpl9MdA3gVJ3tKRfZH8RU7jLTEcSo0sJiH08 PUvrcW16n8HojTKxggyUklIP/TLN+pjG7u9MzZ5izmqME6gVQP7QoK4ysSNf320jlUNx gwjRwwgAqdnJAjppEGtsm9eZN8HlTPMlLFqUPCWrykjutUxkZ8Gjpr8vWoSwXFBe/0U8 zAXA== 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=FuXkOfiHdJ/75aaRGD1r9y/+TBfW4S7uYJTwpfnK3GU=; b=SrHmF8rZxoZecZAlX2lbresHDMaihNT0iZmR9PJhRtipHDNZZm4Vwed2SsvVliOENP QZjxEF9JEiolQcJMEbOWWu0vOSXqYZnvNk4L7hYIUywwcqlkF2wuAYevdHnyN6ZqR8t5 hxANArCllLmR6H4Uiz+q2fAjTJWU8cbrvqOJ8AA+yQUhhZNE8vvCCAUFfuBRbFTs7j6T owSRWglQz90PaKXpFXrd2ZuBwZJgPC0Q2PEhlsYIH4h2A7dz8mv5UTo39rmS5BjrXYSt oK0v29I2NwUB5z5Yn4vV9ZMigqw0X4++Zl4K1iqQmXNRnB6pfzWeBQOo9WUPXOhp0V69 uhMw== X-Gm-Message-State: AMke39mhmzf6I+Mqv1VViM453UKBaq4b9GsNi6iQ18fXMJlMcwBKPR8z8rodyOdoFbVTqQ== X-Received: by 10.28.212.82 with SMTP id l79mr12186775wmg.101.1487249490155; Thu, 16 Feb 2017 04:51:30 -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.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Feb 2017 04:51:29 -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 11/21] ARM: dts: sun8i: Enable dwmac-sun8i on the Orange Pi 2 Date: Thu, 16 Feb 2017 13:48:49 +0100 Message-Id: <20170216124859.14346-12-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_045150_514650_BBFA1C91 X-CRM114-Status: GOOD ( 10.00 ) 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, Corentin Labbe , 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 The dwmac-sun8i 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 047e9e1..4b5077c 100644 --- a/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts +++ b/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts @@ -56,6 +56,7 @@ serial0 = &uart0; /* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */ ethernet1 = &rtl8189; + ethernet0 = &emac; }; chosen { @@ -204,3 +205,10 @@ usb1_vbus-supply = <®_usb1_vbus>; status = "okay"; }; + +&emac { + phy-handle = <&int_mii_phy>; + phy-mode = "mii"; + allwinner,leds-active-low; + status = "okay"; +};