From patchwork Wed May 31 07:18:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9756071 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 7180460360 for ; Wed, 31 May 2017 07:39:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 61748265B9 for ; Wed, 31 May 2017 07:39:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 53CAE284AA; Wed, 31 May 2017 07:39:38 +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 E0408265B9 for ; Wed, 31 May 2017 07:39:37 +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=dEJrwC70+JlU+vlgxEDcYcAiG4iHG6hcFpiESO+2pSE=; b=UxyyrWyO0p12ywQsfZB4iuHSLi 70xyrk+PYngwCPQPzxd6umvr8+6YkisIDVfrn3fCJKhGV5MUrSs7+Bzp25SDUMPkUC+/dfbZd242f chsF5beTSqEn99ZYqE4S/d6ou9XkWfKxNk9BQx9ZTNjFDI7H8JlJS9X8/XIJix108HhkHNuo5GDm4 QnBCEyx5Lsuq1YXu7jdq2f/GQRiEY7nVxbr32ptkal+vZfJo3gvX5rQ5psiAMh46wKIuyN1Rg+DyM +GB39TuqZPngA7E3aY8WksxjcNdyUk7R8AOJ6PsjcV8Tbk2Q1ompYTQllJ0rFKX1hx/KjJKN6zJ15 0cVcgfxg==; 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 1dFyEC-0002EW-Q5; Wed, 31 May 2017 07:39:36 +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-0001Pu-KD 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=bl2CQPH1s8WtfmC0gPTdWMk8BPtawBFs7U2VnD9pslQ=; b=kljyw1UgrWshaJnsVsX2vV1WQ 1/tPXYHgjHP+6WOtbZ0yvqy5VWcUp7127EEuG7axQ2/YAzH3kLkbrGPaSt6fFZGKuQXe4p7/Bm3Tm k+/4XOZyoP1oyG2C1+YCL7x4xRUcNOFTM4+VmNJScJ6HQnwRrAbwvi54kH6PLUs1oZBs6RVt62S2+ o9b3wocdF0ZxkaBDIo/eDPCHNWRuTaDjycLfZ/nqBFhBvn5t3CDLApaSbb7V3uhEQD6WpwpsCmVG2 FeKIYvWpGNte4j1kbOZ3m2GhyzzAWtwZYPAp332guf3DTDgHUjOYDwzyY0u/kF2QG49NaAxXUlQy9 PEm1kW04A==; Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dFxxZ-0002ot-SU for linux-arm-kernel@lists.infradead.org; Wed, 31 May 2017 07:22:28 +0000 Received: by mail-wm0-x242.google.com with SMTP id b84so1666525wmh.0 for ; Wed, 31 May 2017 00:22:04 -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=bl2CQPH1s8WtfmC0gPTdWMk8BPtawBFs7U2VnD9pslQ=; b=LN9r2RMjeoNUGWt1OFgJK+aPWZFzeH2zVAZDuUHgK898GINB/nVhlwJvQVDmWAN21L uNwY2PeYiLh4MUN3ctm2GfNxmaJ/u2W2Hf36mLDUjiV6QSysfKed94Ra3oZEubrbDyO2 3ygVxzjvOAjw2ZUFmFZgyTtak7vISNolnfN4LNw3jjXpgBYvy2gks3Lf399H+esNz0HG ufMayvyfVZAQA6lK/5XpuJdK+ZIAyiTHUP0Hr8eh2Q6R8nMHObGJaEz1imho3Tv03QsA RlFI6D9ewlR2rUhd7bNnrJxg8K4zmW54S9HM+rZlsMfI73p4RNlNz2A3cF4kzK1P0kwC MH4g== 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=bl2CQPH1s8WtfmC0gPTdWMk8BPtawBFs7U2VnD9pslQ=; b=LQvAHV4mj05MURhHOsQe3Lny6e7vC5ccySi3ngLL8p74oVeBDNe4So4t6EZqpn4roY cS9yidx1VLSbWbbORltRi7JGVWf1Ka50ijqEB3DMmiYx3o6nG8V3JrFE0LBBQrwLatpO 96SBC2ZApngpIlyAtMJLpc/cMHk96/lW7jOEriaPWuflbGHPK3WZ4asT8MU7338boSMJ LV+4rdu/oxYA/QWTPhoB+1bYMoyrxYvq6CWg4TOd99ISFe3XmAXMW3/JhXTwK0/NJauZ E+J1Vbdj718tCJl8PC+G1q9+dnXN53eUEyCAPTPjOccTpMPtM3TcLjhIo7ZlBssf1LOj 82Ig== X-Gm-Message-State: AODbwcD+9AOYAlQo+lW/z5zXflcjKrQASQdAjrmqEDpX6BVa5iItgcLA 3gISLkQYAYm1IQ== X-Received: by 10.28.109.29 with SMTP id i29mr4070725wmc.113.1496215323895; Wed, 31 May 2017 00:22:03 -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.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 May 2017 00:22:03 -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 11/21] arm: sun8i: orangepi-2: Enable dwmac-sun8i Date: Wed, 31 May 2017 09:18:42 +0200 Message-Id: <20170531071852.12422-12-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_082226_014434_33512BF7 X-CRM114-Status: GOOD ( 11.44 ) 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 2. It uses the internal PHY. This patch create the needed emac node. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-h3-orangepi-2.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts index 8ff71b1bb45b..17cdeae19c6f 100644 --- a/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts +++ b/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts @@ -54,6 +54,7 @@ aliases { serial0 = &uart0; /* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */ + ethernet0 = &emac; ethernet1 = &rtl8189; }; @@ -117,6 +118,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>;