From patchwork Fri Sep 9 12:45:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9323273 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 0EC5E60752 for ; Fri, 9 Sep 2016 12:50:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 00965284ED for ; Fri, 9 Sep 2016 12:50:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E92712854E; Fri, 9 Sep 2016 12:49: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=-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 8BEEB284ED for ; Fri, 9 Sep 2016 12:49:59 +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 1biLEQ-0006Ir-9N; Fri, 09 Sep 2016 12:48:34 +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 1biLD8-0005oS-RS for linux-arm-kernel@lists.infradead.org; Fri, 09 Sep 2016 12:47:16 +0000 Received: by mail-wm0-x244.google.com with SMTP id w12so2620512wmf.1 for ; Fri, 09 Sep 2016 05:46:55 -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=qxNrc5MXSisCSOVYHHf3m33RP8wVMhReTmulP/0hW9I=; b=f6d1aN8q8FSW5yxXIrpVuBaLChY3H1uDfy14FA9jt390knlBcLmbZ72Ofvy5DUDheu w3jvx9MR2zlHdvmjvR7iMlEBGnmKk6BfM5WK1D/8J4DwxHA4hC5e7K7yhEwGszxnMshY 78sqwODRva6/cP3s+54fYyGJyl1q+ORHoKIVLX2tHnNwDGgHoI+Iv3lreSJH7pBxgpka Tj+JzopnV6VQJGfH3Ilu6d3+G6MW9RL5pqFplDpUaKG3wlSZCsaM9iPewPIZMCL/i7jL 3qEYG3btGpGm7XjT/b4eZh6yw5admwa9HbGKLzNErwLq/jrQDRCvIQ/VSZb+uWFGW9LB dk7A== 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=qxNrc5MXSisCSOVYHHf3m33RP8wVMhReTmulP/0hW9I=; b=NsVkMv+q2UNfg6TzdnLe6X+s4o71nM3950OFKY3a115TZ/P2Fw+2/Z0HLSvP9WeYho n4CwtwIXsIVrioLaL/M+Fs3Ue/sbM3WdVMjuB4ev8+mpnRKYvidZP8zcH7mqhCRFM8MM mGM0kf1ZSU2q/+Szz4+vSnEYz32kM0sSUav0J93YRJYnAB+pSMwXCAgAqRWKslhTdaol EMpUmnhndiYQUfoJiv4vjvNpWVW/3r5SmtsULVFOuf1aEXA/nHjvxc4GM/sp4ExH/GsP DhkWpIKaD1tlJPQ5wG8ssSOGyj7m74Is60i90mlWGq5MRDz2i4a8EJx+pNlJuN+jeKZY rE+Q== X-Gm-Message-State: AE9vXwOgkvD7fPAYF2Zy0M78Eu3uQ+VKESrAKEAIC9d2C6vj2P1CpwCgyGdvA0aNe9ICXg== X-Received: by 10.28.66.6 with SMTP id p6mr2689241wma.59.1473425213918; Fri, 09 Sep 2016 05:46:53 -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 b188sm3192572wmg.24.2016.09.09.05.46.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Sep 2016 05:46:53 -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 Subject: [PATCH v3 6/9] ARM: dts: sun8i: Enable sun8i-emac on the Orange PI PC Date: Fri, 9 Sep 2016 14:45:14 +0200 Message-Id: <1473425117-18645-7-git-send-email-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1473425117-18645-1-git-send-email-clabbe.montjoie@gmail.com> References: <1473425117-18645-1-git-send-email-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160909_054715_282920_7598A959 X-CRM114-Status: UNSURE ( 9.99 ) 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 PC. It uses the internal PHY. This patch create the needed emac and phy nodes. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 10 ++++++++++ 1 file changed, 10 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..24f8e97 100644 --- a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts +++ b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts @@ -165,3 +165,13 @@ /* USB VBUS is always on */ status = "okay"; }; + +&emac { + phy = <&phy1>; + phy-mode = "mii"; + allwinner,leds-active-low; + status = "okay"; + phy1: ethernet-phy@1 { + reg = <1>; + }; +};