From patchwork Wed May 31 07:18:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9756007 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 C700D602CC for ; Wed, 31 May 2017 07:23:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B95662848B for ; Wed, 31 May 2017 07:23:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ACFD5284A4; Wed, 31 May 2017 07:23:59 +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 45C912848B for ; Wed, 31 May 2017 07:23:59 +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=beZ9LAmugZ7uHDh62DCYy4YGMzPcn7nksFDyyt9vqfs=; b=agpSWkK0AbvJOMH4BPh95tsfAt oZ7unqLfDuK6DrRSz5OaHlwF0WUux/JZFCmN2hugNU0gxC4bkSEbqWSgrQid9BUo6Vwv8h5EcsHYR rRLd0McVZD79nRCCyrONW32cn3zvBWfjhSMX8i8edcDVCNeRLpz1GC2K/tQ2lKkv035slt042+T6k MYjRtPgI2q3aDaB4RXxlTXjKolDwb9jOBgp6k+xEyQxdZ60iIIKZqZU8I1kn21h2cUa/JYHRsLU14 IqQMYSDT5l4PxM7xnQFr5TfdPrD0ERUFrfVcV7I0P4Ihq/cBQxshAf4Kq1j/TkSg969bq9EIAiq2Y vQD44p1w==; 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 1dFxz3-0000GJ-Ir; Wed, 31 May 2017 07:23:57 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dFxxZ-0007CG-GL for linux-arm-kernel@bombadil.infradead.org; Wed, 31 May 2017 07:22:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=4vIYD5cJUB0faT2NOW+rvUqaROc0feGJTSGv54VVdLU=; b=hD4qGgvCsiaRUuWZhy4BLZ1Ky tEkfZ1X9+h4kARnBhVppyMhwE7tBdAfJ+bZmGnw1yoRDRonDP3CTIVTz6yIZoJ3AuXV0BClhr2VUw 3nsv31aVOorLrtv9cR24GXha50g+PMS8sJ7ve2oqplFWydct73/Yy7r7pGmXyaONKsw2ar+ahqacZ NSNJ9lfR9+lDBICCf57K7p9g2JBnnqxYxPoSrCn8PPCSHUOy2pgy/ZGoF3fRAeQPSdZitoJy3J8LQ f1i5VT2GvqAkfygup6lDx/gwVQakbbZhvetz0hjCAjxAIZGMVMRp4VF8aDL0DUGbeNiLI6jeeLD2B KGli36ZLg==; Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dFxxW-0007Np-W4 for linux-arm-kernel@lists.infradead.org; Wed, 31 May 2017 07:22:24 +0000 Received: by mail-wm0-x244.google.com with SMTP id g15so1652363wmc.2 for ; Wed, 31 May 2017 00:22:02 -0700 (PDT) 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=4vIYD5cJUB0faT2NOW+rvUqaROc0feGJTSGv54VVdLU=; b=OQzqZiauMhdgP83Ep7U5HoaiV5FXUFTDD+Nd44jce7/qD8KF5FiP3MKzOsY6AqdtTS vaIBBeOb2xF3V6ehlzmz5rhC2/Eu4f+qneFh6+JtjYLMqLuPrs88eKYQvyR35OEG3pcH EMT9VC0hl0BOTGt74yqptUxEcj7r2h5r22F3an2cFAoESSFxf3IXJ7W6qglDhnLBohQX 0Ro3MGa7Ij5zb9B90Ug6Ur30S1PIFVTgWEX76AYJZDfZVDNFt3YK3f1MGQ3s+YOIMNOl ExNRHTlHJY7MoyLGu2ASg49nAJBU86Fkbx6wfaESE2AZSKi6a8jCqHpYda/IIPGXiGyd qP1w== 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=4vIYD5cJUB0faT2NOW+rvUqaROc0feGJTSGv54VVdLU=; b=qgB482k0xfAh7Nli8tbYcumtJXFp6iBetXjY29XQZBZjGueH6PPjU9AxtVSICnJVhl hSQMXkACMSg9NIOyxDarPr3Jb9W7H0a5nHoYafscDzR6XIsU3xj2KTkrLxKTWJvWklDm 21Dkvr0G+fj7F3a7bx1qmIzXohMAXFYYjQHMd22GMjYsoXfb6fEJeyTmrVM+ZPDv9iXe HZi60rboD5fOPoXHL5xLiRkQJXLFyIfAOnTmsUBgL5bXmQXcEGhv2Nn8aSaVX3xr+O2Y 5tlPqfz019BIATwIyR6w0dvkMDYJQLmFYHSPdLQhlKVKalCcPM59lnmVfAthblk7iXSJ saHw== X-Gm-Message-State: AODbwcBVEWb1LrXhVK8JBCwsXERdU1Uibe8aohGaiJwIAKvO6uwn+xTa +R2sb+aHc3fKUA== X-Received: by 10.28.45.143 with SMTP id t137mr4547926wmt.6.1496215320855; Wed, 31 May 2017 00:22:00 -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 r130sm12528169wmg.4.2017.05.31.00.21.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 May 2017 00:22:00 -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, catalin.marinas@arm.com, will.deacon@arm.com, peppe.cavallaro@st.com, alexandre.torgue@st.com Subject: [PATCH v6 08/21] arm: sun8i: orangepi-pc: Enable dwmac-sun8i Date: Wed, 31 May 2017 09:18:39 +0200 Message-Id: <20170531071852.12422-9-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170531071852.12422-1-clabbe.montjoie@gmail.com> References: <20170531071852.12422-1-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170531_032223_210750_2CA1BF65 X-CRM114-Status: UNSURE ( 9.59 ) X-CRM114-Notice: Please train this message. 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 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 1a044b17d6c6..998b60f8d295 100644 --- a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts +++ b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts @@ -52,6 +52,7 @@ compatible = "xunlong,orangepi-pc", "allwinner,sun8i-h3"; aliases { + ethernet0 = &emac; serial0 = &uart0; }; @@ -113,6 +114,13 @@ status = "okay"; }; +&emac { + phy-handle = <&int_mii_phy>; + phy-mode = "mii"; + allwinner,leds-active-low; + status = "okay"; +}; + &ir { pinctrl-names = "default"; pinctrl-0 = <&ir_pins_a>;