From patchwork Wed Apr 12 11:13:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9677203 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 52E4160325 for ; Wed, 12 Apr 2017 11:18:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 448FA2861C for ; Wed, 12 Apr 2017 11:18:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3884128635; Wed, 12 Apr 2017 11:18:09 +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 E3E872861C for ; Wed, 12 Apr 2017 11:18:08 +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=s3fF9DCkkW2wUftA28U7JKVqocnUAvGDH4ptxInTHAo=; b=AB5V/Q+HZQZwpsytLwiGJYjBGl LhiS6U71RH7H39T9fW+d5iUCmarCQHZgdkQloBUX+6WV57QKfiPv3Cq0u3yVQX4Rxw2c6l40HjLvs Gi0hhLT01EZUIDxT+pbYn2dQQX++U2/b8MdMzHdORINnkNH0TwOx1B/N+dSGOEUPnAMJpp86wG0l6 G/GN/XhiaLbNoHLGwXLS3Vyh3BEUsuq3F07TkaYF1sc1W2rzgyGeJY3FVl8ywH66J4xvDxnUOZ6ql dekOhJD5utN9Bpd+UERGpner3IzWR/15OFdx4c/e0tcHaNS9U2p9dR8qOQXv+WUWnw/+pNpPecqAZ ViZRfkGA==; 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 1cyGHm-0005lX-HJ; Wed, 12 Apr 2017 11:18:06 +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 1cyGGJ-0003ms-5E for linux-arm-kernel@lists.infradead.org; Wed, 12 Apr 2017 11:16:38 +0000 Received: by mail-wr0-x243.google.com with SMTP id l44so3680485wrc.2 for ; Wed, 12 Apr 2017 04:16:18 -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=mQGtEJxcUf9xdyD593ujY95gRye6JlwtgzDhoefAXQ0=; b=QNUE3sB0/dYCjWq9dUddb7KzYmxRhJU5Z9HVr8sdKya6Tn6vM1rqg/mQExO/gR5NZu CIVqI30LJdY7JJiNI14UlfQ41rvn03RU2Ebk1ygMLNjz4xdoej+gYYsKZ3wMDHZyvcUM YoRyj/PYAbop8Loh80mOgXJY/YY1KhuPSMros3Owfq2nE4dgDYdv30QKD7sDS7et9ffE pWkGyh3wwaLg+d2j6EorexJFsbwjmMMUM3TQ2YVo6/r86VtrIC5OKiY55MWiD3cmlDV/ hgX7SiWOuhlW1jOsfiDOfBMMCtf/+6UaPaxxGgyvcp/mxly/eTm2GpJ320sHLKukY/TL niKw== 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=mQGtEJxcUf9xdyD593ujY95gRye6JlwtgzDhoefAXQ0=; b=AfjwK0Do7KS1qPWRe7P46IqdiOBgIqesplkNVQuFj+oR3V1iHJSH5nyAL5VOHIh5a/ +Pyj5T7nlz29h/Ch7O2YLYdRn9Kgkyyipr6E/wl7G2zSiyUQQ9V1ihxbdLtLWJhb10BQ 8b9x0iJAWR9Pc63uRurFbSzraLhHayyLqj4ZFiFhypGdr7zQlGR6g05UtMec84oNFEjA j0PObdjgr/N1NlVg2yCXkajIwiqgAln956wvg7nCmkiRGP4rnlVBNGfe86T7Ah9QJ9tJ x6Rh98W4s0LtvE9RUHma1B2b4Mp+T54rhegbqxyCOq9v+nf2t0q9oc6C0MyZ82D2zXC5 DObQ== X-Gm-Message-State: AN3rC/6G9jejhVxIF4h8iV8x+P6hMkR8MILZ9ga12ToBwQqNLEGGFXKmT8DM/flIQMt9gw== X-Received: by 10.223.134.74 with SMTP id 10mr2512807wrw.200.1491995777703; Wed, 12 Apr 2017 04:16:17 -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 z84sm4727104wmh.27.2017.04.12.04.16.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 12 Apr 2017 04:16:17 -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 v4 10/18] arm: sun8i: orangepi-one: Enable dwmac-sun8i Date: Wed, 12 Apr 2017 13:13:52 +0200 Message-Id: <20170412111400.2296-11-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170412111400.2296-1-clabbe.montjoie@gmail.com> References: <20170412111400.2296-1-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170412_041635_452557_EB233957 X-CRM114-Status: UNSURE ( 8.96 ) 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 One. It uses the internal PHY. This patch create the needed emac node. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-h3-orangepi-one.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-one.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-one.dts index 5fea430..2ffa4c1 100644 --- a/arch/arm/boot/dts/sun8i-h3-orangepi-one.dts +++ b/arch/arm/boot/dts/sun8i-h3-orangepi-one.dts @@ -53,6 +53,7 @@ aliases { serial0 = &uart0; + ethernet0 = &emac; }; chosen { @@ -97,6 +98,13 @@ status = "okay"; }; +&emac { + phy-handle = <&int_mii_phy>; + phy-mode = "mii"; + allwinner,leds-active-low; + status = "okay"; +}; + &mmc0 { pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>;