Message ID | 20170412111400.2296-10-clabbe.montjoie@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 7A21860325 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 12 Apr 2017 11:18:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 691E52861C for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 12 Apr 2017 11:18:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5A63028635; Wed, 12 Apr 2017 11:18: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 EFA762861C for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 12 Apr 2017 11:18:50 +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=llIC1liK98j60/6VXjjSAqTE4n3tj4zHaYV9nZ5B9ww=; b=gt2JxqbOuKyYSGVZUHayFCFLqb +XXL7Os/YD53BnPgvH+/UP6+Xz0uOJGOp9MQb9E0Slh3FsaH4CAnleN2UXQwUfjxx0/euMyzR12Gw hXSEy/Iqd4nIwmk6jcvG16d4nNwU41ry1DswZngOX68s8+YYvy1NVIZi4TtR6m9pkUL0Osg9Tsdfm dQ8e2OIgpQlDydAiJ23lOwtkNMTsXr5UOaM2g4wBdKYjGYrNRtRbT2xgfETmqAhUC/JTzaN371OAi 3xC2qZtGAIQt63kOwOoFIVemQNvNAIP89zwlWv1RDDp8POCp+WANbbdH8J06jrtualUVQfhR8XSsW EKCaHrDA==; 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 1cyGIS-0006i3-6y; Wed, 12 Apr 2017 11:18:48 +0000 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cyGGM-0003mk-AL for linux-arm-kernel@lists.infradead.org; Wed, 12 Apr 2017 11:16:42 +0000 Received: by mail-wr0-x242.google.com with SMTP id o21so3682931wrb.3 for <linux-arm-kernel@lists.infradead.org>; Wed, 12 Apr 2017 04:16:17 -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=1VaMKRehveRdUvcDzt+pLRtdbcYsZyrEToKOAH344FU=; b=Y5rRpgH3rc1/MSfKluvT896V9zJEIkB6oepx19GH0d8RHKlP2WRDsJuOVCQDifXQ2h L2kOIBp18dE0RivtxX/plGu72bqEsATP8VxMN9ndPFrC7j/eKvb4XAqkZlgTm2jV2HKD pcS8qyW93OFr3cBL0myeuDObN4XGdlh16SjBS+FJBQ17oOvUj7+QWvOFlsVshijuYLmq PfUY08N+Zuaxb53U74y9AzdHqpMEt4Ncif/cENlSSM/qwMYfoPfi+/3DFEMHWXEhQ24K I1qoahgD/OTQlxPD5sC3NEVRuGv3OhqHpkJxw1LjXlW3GVvWZW9vO54sMVQ4TyNafEFr 375w== 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=1VaMKRehveRdUvcDzt+pLRtdbcYsZyrEToKOAH344FU=; b=ZesjHxdLpAywYPs6Nz61yKJZ9DEIKj3ItvXNEHd5RPLF5RzZXARFvZOAYDAVPVvQ+V ePyEpwck4YZm9jzkDg1yYfINnPhnCopeid/giqL2YYCwBYqt8W2J/TCgo6UPZvMu5ckK qw2urMdyjGzFiYZT/1uw+DRoOJHx0+eh+N0S6M04A2AqaVj4n7RmtZk/NNoP9BR2e3UW 7+f8rbfwY1x2texDNc3fBWdjGdDLObPF8jjTLXAn6cgwqnPEr4mhQi2T28VDSXc81+4e L8URNhqST6X+Tv1VnzLvZxwso6TIPClSD5HpQcEae2lYZ7eBKwdjZj+z9a7RmGyqcM/1 Usdg== X-Gm-Message-State: AN3rC/5YRntgOhhcjV2QehWn0Rl9IBJmgoBfRahXNnTN/6cQHMXo6/aMdQ3AzqqEMjFuhA== X-Received: by 10.223.179.195 with SMTP id x3mr2466752wrd.80.1491995776745; Wed, 12 Apr 2017 04:16:16 -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.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 12 Apr 2017 04:16:16 -0700 (PDT) From: Corentin Labbe <clabbe.montjoie@gmail.com> 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 09/18] arm: sun8i: orangepi-2: Enable dwmac-sun8i Date: Wed, 12 Apr 2017 13:13:51 +0200 Message-Id: <20170412111400.2296-10-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_041638_770329_D7CAE413 X-CRM114-Status: GOOD ( 10.08 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Corentin Labbe <clabbe.montjoie@gmail.com>, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts index 5b6d145..3f54b12 100644 --- a/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts +++ b/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts @@ -55,6 +55,7 @@ serial0 = &uart0; /* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */ ethernet1 = &rtl8189; + ethernet0 = &emac; }; chosen { @@ -203,3 +204,10 @@ usb1_vbus-supply = <®_usb1_vbus>; status = "okay"; }; + +&emac { + phy-handle = <&int_mii_phy>; + phy-mode = "mii"; + allwinner,leds-active-low; + status = "okay"; +};
The dwmac-sun8i hardware is present on the Orange PI 2. It uses the internal PHY. This patch create the needed emac node. Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com> --- arch/arm/boot/dts/sun8i-h3-orangepi-2.dts | 8 ++++++++ 1 file changed, 8 insertions(+)