From patchwork Fri Oct 7 08:25:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9365767 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 E325260752 for ; Fri, 7 Oct 2016 08:31:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D3570293D5 for ; Fri, 7 Oct 2016 08:31:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C7BC0293D7; Fri, 7 Oct 2016 08:31:28 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 66AAE293D5 for ; Fri, 7 Oct 2016 08:31:28 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bsQXY-0008Bl-BS; Fri, 07 Oct 2016 08:30:00 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bsQWN-0007lu-5P for linux-arm-kernel@lists.infradead.org; Fri, 07 Oct 2016 08:28:49 +0000 Received: by mail-wm0-x243.google.com with SMTP id b201so1766130wmb.1 for ; Fri, 07 Oct 2016 01:28:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NO8LJR0WfpmV7g1rKe1o98dVo6i4gVZiHyz9fM9CAoI=; b=VPaDlWDvF+R7gofyYWhMRgjTwp1AYtHFefIxz57Kpcq6wsmq1wJetWzNPml88F/JR8 s5iFtk7bIkDP7ZhIK1MS0SjAkiXAetj+p9+G1SRvveD3jviwaUYtFnj3bgQ9YfzcCeku 0aZBsK8bkt3AclqRRvHv9z+NxzDr4FUrP7vjTCRKcUDJLV2sfxZ+GhZjJu90Ks2rsDrt 3KHzfytY5/P3jCk/qAwLVaJlYVJQxgKXnHOMZnxtmbKD/2+EXTimDsWoxEJaPyjdoNdl A8r306QRomAtU+DgQl81M/ge3ps8TuBcjlVCq7jJd+KLKbeqhkc7RgslR/ChWmbCelgg G2Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=NO8LJR0WfpmV7g1rKe1o98dVo6i4gVZiHyz9fM9CAoI=; b=SJuFqPGUIVyIKmZ/hiTREIkmXeiGDXWmAI0NdGAleeBdDnY6ZLcO4IpIMGadR+Ubv1 1s3/NVv+E6Rbpg/n0rCFPBhqJWlQ0a5ul3/Hq+gO0qaW+SvnPnDitZlLDEKfg4T5hoy2 42AXHwUCgNUCtf3ahU68MPmDKqbT9AxquYfzHRbeSHHF+ZwyaV26LwmSQafB6P1mrlSu QA1mKBBgNP9KNx1e9qIi4sdUpA0WSx+Ykj/fA9IYLOkqo3BvcMnvryzPj7KOS5ds+vqg p6e1hUXHAROGtiCyv9Cgs0Aahul3mc7FzHkAfzP5it6FNpRuHtvowXDSTBDfsW1WhzaO 5ebw== X-Gm-Message-State: AA6/9RlnWqjo6orDYmqoFNPPXTjEMSXViQBlPBcd3ziFXSbMX1hbUijTq33wIWAGqvbbsQ== X-Received: by 10.194.94.168 with SMTP id dd8mr15216004wjb.96.1475828909924; Fri, 07 Oct 2016 01:28:29 -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 193sm1850999wmo.14.2016.10.07.01.28.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Oct 2016 01:28:29 -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, davem@davemloft.net, f.fainelli@gmail.com, andrew@lunn.ch Subject: [PATCH v4 07/10] ARM: dts: sun8i: Enable sun8i-emac on the Orange PI One Date: Fri, 7 Oct 2016 10:25:54 +0200 Message-Id: <1475828757-926-8-git-send-email-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1475828757-926-1-git-send-email-clabbe.montjoie@gmail.com> References: <1475828757-926-1-git-send-email-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161007_012847_448518_89DF69B3 X-CRM114-Status: UNSURE ( 9.69 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 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, Hans de Goede , 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 From: Hans de Goede The sun8i-emac hardware is present on the Orange PI One. It uses the internal PHY. This patch create the needed emac node. Signed-off-by: Hans de Goede 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 0adf932..25f2455 100644 --- a/arch/arm/boot/dts/sun8i-h3-orangepi-one.dts +++ b/arch/arm/boot/dts/sun8i-h3-orangepi-one.dts @@ -54,6 +54,7 @@ aliases { serial0 = &uart0; + ethernet0 = &emac; }; chosen { @@ -94,6 +95,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>;