From patchwork Tue Mar 14 14:18:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9623541 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 F0BD0604CC for ; Tue, 14 Mar 2017 14:25:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E10BC285A3 for ; Tue, 14 Mar 2017 14:25:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D5645285B5; Tue, 14 Mar 2017 14:25:39 +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 869B0285A3 for ; Tue, 14 Mar 2017 14:25:39 +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=PxBXhvJ/vTSvaZIO7ThfJwTB8UlV1uVwvM6UeS4bq+U=; b=SkrKi0fQ3vv5d444sI5mQzYJ2Z Gx9n77ucpzmhD/7rZ9/XGCFZeNA0IRcJO8B3pcYZqMqtfNBaodH0nhJMdR1sbmR0Bw50sfkrQFFdO ZVIqwqmv18yM5hHiZx5wb2PMiNmi7k5zOm8cMyUdbUwy/kgSuCZcok2S7JF++/3wlinPhySG+p3X2 e3RgpfDZose9524qbzJl4RJhW+xD+Ue6+ZV1CJ67WfS7CoXlj5ZjQ/OBlkEHeEZjYpsCsKR/IXVd8 +xyIE+7CHvyNtQHegmQFqr+PsyPpW7/h976vsrvMA9S8kImf+vOhEgbqyBeQ1KALzV9LwmQj4XI8r 4mwfNpDw==; 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 1cnnOM-0002Qi-Kq; Tue, 14 Mar 2017 14:25:38 +0000 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cnnKX-0006t8-O1 for linux-arm-kernel@lists.infradead.org; Tue, 14 Mar 2017 14:21:44 +0000 Received: by mail-wr0-x244.google.com with SMTP id u48so24181339wrc.1 for ; Tue, 14 Mar 2017 07:21:26 -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=eQGC1nlvav2QzVYrIwrQSL/iRmVQsOS+Zb/iBtVPUHo=; b=CbT4qL/WZw39HS9DKodOsR4cgWlAMljJiwj5YrwlSv+ro0/5kX4QG29/dcm0PXgGj9 GbUXuhhuVj0U7NP4FQQi1us2q32osPsjUeFP2b3jxdBMa7r9m5hErvyX/mZTHJ0+qVOD XRyBFAWmgC5AQ8VAR3A7gJJWf+CPD7CCo4riGKCyKdgBQJwN7mTsQco+RZVFdVSQBUke 0zn8p/BCifs0Or4URelq8vhGg/LP36e3+YV6merUXQOm84wGmKWbnbyf1VGMIH3KfxTf ZidxVyyR3wKvaLXs3T/S3eTDTFzOYnKPkIUHcaWgkvj0CCeQKg01XeimItjM8q9UbCYO MXVA== 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=eQGC1nlvav2QzVYrIwrQSL/iRmVQsOS+Zb/iBtVPUHo=; b=eY/rEIM+06ceognwhHtCQYB6Dug5v/cXHxCE9pH4hRQzBgCZUdv4JP00YiIGne2VlP tJwmQXUVNFT2XyX6B9b257lLuwgKjLxbbNwwpZ4oUU4p5Or9zZVEk5Ai+gWCll6lTX/A jR4JMnjB8miJXSVuWJVndDD0Ng0ZijPJmThFLQGQ3nD/RVj2Wt4SDItz0x5juijmupJW egUXtBzvIRuTe743u8Dttv7fBTTZwK0bOu7QYxV6hCIF7LEMIwwncFYEeo9WgB3/UiCx MY1VqEK3l+ttUTymgKIJM9BeT9uhJgmGfZf2X8LLmPDg0QxJqzVsGbKBgJhTYvD6br5/ X6jw== X-Gm-Message-State: AMke39kdl+wAkRzOMh8WnUu4bZ4wmJt1WBxBtSxr6g9zHwwyxKenjI5xgrF6myow1ZTRGQ== X-Received: by 10.223.134.229 with SMTP id 34mr32773431wry.104.1489501285398; Tue, 14 Mar 2017 07:21:25 -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 o143sm49526wmd.3.2017.03.14.07.21.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Mar 2017 07:21:24 -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, davem@davemloft.net Subject: [PATCH v2 11/20] ARM: dts: sun8i: Enable dwmac-sun8i on the Orange PI One Date: Tue, 14 Mar 2017 15:18:47 +0100 Message-Id: <20170314141856.24560-12-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170314141856.24560-1-clabbe.montjoie@gmail.com> References: <20170314141856.24560-1-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170314_072142_050639_B094E005 X-CRM114-Status: UNSURE ( 9.41 ) 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, f.fainelli@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, 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 ea8fd13..1f98ddc 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 { @@ -93,6 +94,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>;