From patchwork Mon May 1 12:45:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9706479 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 EFF1560387 for ; Mon, 1 May 2017 12:50:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DED1D22B27 for ; Mon, 1 May 2017 12:50:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D3AFE28066; Mon, 1 May 2017 12:50:33 +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 7B27922B27 for ; Mon, 1 May 2017 12:50:33 +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=gu1azT+SIqeOp03xq9iPG7a15LbHW9VTN8FD0VqCLkI=; b=j4aLNVQ1bJraKd5Z/t5KhRdhx+ BT+i7sdeaqmzDXWeaZpL6J5FnUDfjYuVJbkTesBh//mO6ivXHxuEuQo/XjNXqGjdOJ+2k/sh4gduq eZWGaOdF4HhjTuC4jMMP2XXkR9rgZnX/1SX569KEyeip8RDN3mrpFX/rZ21Gd1iBcZg/ztJNSZYDC Jprz29ydhnGl7Ao3UKsG7sbMWtH7Y13f9y9AfHIXMCZgOPxYOAWu5sgGguSxPr8OHAL9OPoU+odnW TnDui1iN38/NXCwQSfyfYU1ZGp9GzyEBGwJ4BwLtJC9tuDXo2RIdGUwcxSQptsjkHEF5ukJUAVtQg 7B50cYDg==; 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 1d5Amd-0005mo-OM; Mon, 01 May 2017 12:50:31 +0000 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d5Akl-0002KF-KR for linux-arm-kernel@lists.infradead.org; Mon, 01 May 2017 12:48:37 +0000 Received: by mail-wr0-x243.google.com with SMTP id w50so13709648wrc.0 for ; Mon, 01 May 2017 05:48:16 -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=w7nnbKpobZSrrLAGbVn/Q/qdwXLxm2+EtVkh1OJghfg=; b=PBOaPvb7kjO8zBGAWbHpnXpHMX7tKF/lqPnZZZ9/aso0k/k0PANeZUqYiNGuVzBs2H /ecui1AVlZl+Y1cxKVptON0NHXjnibLio5ETIMz7s2Zc47u6gkNNNKV/2S06xwK8gGEr zqKvovOhzc6BO/mGxC8iR1jt8MKTpWTlns8Plyw7eAa6Y3yxTBgJ0LuSp94FXLlInQ6n CRIy55tFp1Qah4xE9g5Eu+f6lJS/nLTcnVW052hGiL/2cbpnVPhV6HCXxOTRXww14qSv TspBRH0L4W1T+kwErMolPC6APwOzpp2W+2FgPhV43IqGsv/wz5NHeN72IYUCgnvNWKLt 9OEQ== 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=w7nnbKpobZSrrLAGbVn/Q/qdwXLxm2+EtVkh1OJghfg=; b=e9HKdHoKyxVxcvfJ5XkKPH/cfYPhhfRfjkJxpDsmp66lmvcR38XXmlYMO45YAeMEdw YQoNf960aT0rM8wjt68/YyF941oi8HH4zSHNLxX7HlckagNvAj+C8nhPkQrlOyQnXFf8 Tmgh/jekUCs7jrYybVQHW4uVcteUE0oO8ihBISyl39AVFHs1hRmWJAH9y3JyTZB28Le8 1cM6kpBYnEg5bzYjHA5hcmeBC3UDpWrp9MXIQ1syLUkUOOBOMTT5m3WD66Rik3w/hwgL YvSevEH846L+EYN9ZIWYU/MCSpGM9FRpgldGNB0EK01oq0k/XJbC3GCMNYFTiducgtN9 nDZQ== X-Gm-Message-State: AN3rC/4pRcwA94sVmxu6LEPnRC0fl/yE3NnDkr3u2gVoIY2mTRDybMCD ZPqKd+7zdi/N/A== X-Received: by 10.223.164.81 with SMTP id e17mr15034796wra.133.1493642895238; Mon, 01 May 2017 05:48:15 -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 4sm3364514wrv.33.2017.05.01.05.48.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 May 2017 05:48:14 -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 v5 08/20] arm: sun8i: orangepi-pc: Enable dwmac-sun8i Date: Mon, 1 May 2017 14:45:08 +0200 Message-Id: <20170501124520.3769-9-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170501124520.3769-1-clabbe.montjoie@gmail.com> References: <20170501124520.3769-1-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170501_054835_827916_6D252A53 X-CRM114-Status: UNSURE ( 9.32 ) 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, Corentin Labbe , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@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 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 f148111..52e6575 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; }; @@ -109,6 +110,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>;