From patchwork Wed May 31 07:18:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9756073 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 1518A60360 for ; Wed, 31 May 2017 07:39:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0716B265B9 for ; Wed, 31 May 2017 07:39:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EFE8D284AA; Wed, 31 May 2017 07:39:51 +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 86E7A265B9 for ; Wed, 31 May 2017 07:39:51 +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=e15Er0T1wIopaPkPFa14HVVkNYHEGuSlsPRDPQ/TS84=; b=YXY4soEFWT123NNxfYqzTPtWfw 6KGQVpDKNw4I9wUpJyXYjQS5yCK2J/+3WTxKRZqeEBdmMY+twrQfzKuM3+5Effdzr1rS7gsnyJOZE yHbxJTWRDShU/QjF9lFdlsMPVMDo87ttFqVn/U4eFZENGaSX+v0rg1g9VJQo/8ZXNpuM0jjX42TGH Q1Gs7buEBaiU4AKmO0+2JHZ6vKhs8H9lBdRK1/B3Qt5kh7uqE6hP5hdvR58MgfwXg33KVgotV+cXb S4bKFbJ3y/wC/984sBtrBwEZuX6ul54/Q/4YNo2ZiqpJwFggFpnVap+VRk2IbXgZRAsRa8oe9z1nq +qEsEUkA==; 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 1dFyEP-0002TT-Ji; Wed, 31 May 2017 07:39:49 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dFyDY-0001P9-Mk for linux-arm-kernel@bombadil.infradead.org; Wed, 31 May 2017 07:38:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=6TLEImHjaRGgdklqgNGgSeCDiBiiBXD+aUqFWrIlDi4=; b=MPDmp/UVblXDeJ/abu84jyIXs mj2vRWzCjX9rCKPDCj4/Y20+4tJR7NzuixBec9bPsHWhyxrG3hELxlkKYoYFfN7/34o4kwXM5PHGC MtD74LaCJsvuFja3U54m/F9istC4rJzEVSDtTWiikFafE4ozGQhs7DiQDE1H4GsyDsJELa+DQiJX2 oI+8VSnFOwlm+siUfnbdhV8jPtcnu6rpYkgM4RgJ3KmeUMF7g5CY/qVGVBsa8gz8wTzG7F4rZowGK ZYU2lxpr1KfPLvxVdEgzlOW/HlCLhM/PQiJH+i2zBVZ9AkYDVwjdKBn6xAGIHXjCF7BXkcyyMFKAs 8m4B375Ig==; Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dFxxX-0002oW-W1 for linux-arm-kernel@lists.infradead.org; Wed, 31 May 2017 07:22:28 +0000 Received: by mail-wr0-x243.google.com with SMTP id v104so689671wrb.0 for ; Wed, 31 May 2017 00:22:03 -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=6TLEImHjaRGgdklqgNGgSeCDiBiiBXD+aUqFWrIlDi4=; b=ZLTjS21BgRGB72kdVJmkKeDxAxNcCDSh29w3KnmTntM8NwnKAy8SKtGq9rCjchgGmt SLLJ3Jed9lMG0djiiPDQewjumC/Fs9R9BkHj6onIC5AYPZbRWRSGnoyaA9c36pYfRBrP kd+u4vs1BDXuPa5EBZ64WdB/ozDskagpN5eFKwsPhyoNTchWr9l1vYr2g6sKohMm1uH1 V/5PJauuPvRHJ66HmYWVENbOFVy6iahqWGNczOyGeHdYLalll8lWI7tdAs/IWa3Wo6wa 9NV0scE+Nlh36+74Tdh8jmG+K5dNCI9wrYA/ZxDeFxUogEg5XqiaHM460xRW3FHUbdvS aOwA== 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=6TLEImHjaRGgdklqgNGgSeCDiBiiBXD+aUqFWrIlDi4=; b=FuHQICoVrO0iqwXA7ho9FGnF+gAa5hS+FDfzHE/eaOWfGJFYNEhQN9aOcpAxNXYL1j tyrVinULS64a24LkFfvrJA8uIZTY6Xmh40XsGuhiQuqXY/7VemGyWJxiahGhJGpsP0IU tUUwOok9s2kIA7qnL/sKrX8Amcp79sTTdojBDh/GlRkugEGAj0H51n61iqQrX//l9w6S wY1SrUlpvriu1ERlPGs0RjI1N5MFOQD2J8BfVkA25En46YRftOz3Rh0flLBf2aKkCjq2 ZVnHHZM6X687gess2i0nldCIeMvCdCxGkYv9tegOvsE0DV2ZUgjWHDHmmMAZUC8b2yH+ 97tw== X-Gm-Message-State: AODbwcA46OKuVZEvftfu/PABlk9fTLJiQcrMty6B0OsKED/0jr0+PCyR BMMw3TAtmqwbyw== X-Received: by 10.223.178.168 with SMTP id g37mr5433258wrd.158.1496215322774; Wed, 31 May 2017 00:22:02 -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.22.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 May 2017 00:22:02 -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 10/21] arm: sun8i: orangepi-one: Enable dwmac-sun8i Date: Wed, 31 May 2017 09:18:41 +0200 Message-Id: <20170531071852.12422-11-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_082224_139392_BF7E67FD X-CRM114-Status: GOOD ( 10.55 ) 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 5fea430e0eb1..6880268e8b87 100644 --- a/arch/arm/boot/dts/sun8i-h3-orangepi-one.dts +++ b/arch/arm/boot/dts/sun8i-h3-orangepi-one.dts @@ -52,6 +52,7 @@ compatible = "xunlong,orangepi-one", "allwinner,sun8i-h3"; aliases { + ethernet0 = &emac; serial0 = &uart0; }; @@ -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>;