From patchwork Wed Apr 12 11:13:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9677207 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 56C6160325 for ; Wed, 12 Apr 2017 11:18:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47BAA2861C for ; Wed, 12 Apr 2017 11:18:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3BCD428635; Wed, 12 Apr 2017 11:18:36 +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 B4F292861C for ; Wed, 12 Apr 2017 11:18:35 +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=RjL/fHIssS4oiQRMWB4qfuutl2pTCaE+KQvfzdUm2po=; b=CPg2CERfsmgdMJOzQHvhELkcM9 iUb/uw+ylQ7k518b9TaKx4jro0LzFbNbUimGNbXAEwbDHTsQzLcrzIzmhDUAuHe0z6jqVP12hrHAo nIevzEQ7eFpGih518jbhdQHWeC/GMlu75l7dBnVJB6Xws4kQFqnNnliRbTYbA4EL65Ul14jF8HXIe XAmQziBVv0sDHlekXdMfSShuoaGYEIeLiNmwIiUNcn3lPd1T5ZJv7qcLxVXk4qL+u13lr+S3EqVxO qyHHaKhi4s/944tfpaL1ejCK4ks1i842V0Dgum7zVNVN4qD+ex49xJ9Aeyo3tx2soo7VhFJA11QMr TC2xvW6Q==; 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 1cyGID-0006NA-Bp; Wed, 12 Apr 2017 11:18:33 +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-0003me-AN for linux-arm-kernel@lists.infradead.org; Wed, 12 Apr 2017 11:16:41 +0000 Received: by mail-wr0-x242.google.com with SMTP id o21so3682885wrb.3 for ; Wed, 12 Apr 2017 04:16:16 -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=VenQ7aFfHPxgsS8ZhktgMNPlWHDGQq8L8MxsqrMOeSQ=; b=efIC3dljw+GPJnNDgem/Yb/Fmqg1pYCgpLN/PAl+SRpVu6LOT6PUMfYAO9SHdhH3ji VhzAxYEdWKJejNMG5ni/Y96y3MEUcFjAs3TAPbNs8hdChmT5v1L3mhNpb/u7W8TvMHR6 ym8iHK67CX/5obvFXX/tp9CW1eek90cwJveIw+Hd0tcw+eEiecA16CZhDpY5ZDEDJHrw Rcret6Bdm7tQsfafrNcEEpdhDsAD4Cf/0yJxak35XtAWgHwU9clo61+Q1mc9staqPWto cg0i/IIPIQ5qLwuHYyJ3yj03Mhr3Zw2XU8MF7w5t2dgQgInN8/dr1u6pdNsbfOulWKHP T6yg== 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=VenQ7aFfHPxgsS8ZhktgMNPlWHDGQq8L8MxsqrMOeSQ=; b=FRGHssgxGTUiPx731bE7ZYSxKKoM7zXQKGma/mjo/1sGQPaHDzCOSG5obuKLrr6xJQ JXAzlladBmz54LDNJn9Lx6F8DYaEwn1tSQAvoqZfkuPWHhUvEtE5cSwdTYElVX4X/NT7 DStfmGTwf6E8EjDDKMhOv9gfLMhdWXNjG6TvW+8PUScXFbjKefHO7RWMRqHnnyV08mVW 4ZsdU8zXBq0UN8VnwD4yHSi1P+/3TFaJP2OYB7PzxQQ2yDlc4vptU1d7/5qe/OG66dmA KS8yqaWLCpxTDZ6EpShOiNZvHUqQG4ntNLZLvSgX053eYF0wuM0LxP6IS2xlWgpqf/OQ 4n3Q== X-Gm-Message-State: AN3rC/7QLPdiY97tHGZK8ncXKKZQUQnGJsjz8UhDwWZovlx+NJ6RtqgBCs35NOc2aeyxFg== X-Received: by 10.223.168.18 with SMTP id l18mr2820605wrc.46.1491995775761; Wed, 12 Apr 2017 04:16:15 -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.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 12 Apr 2017 04:16:15 -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 v4 08/18] arm: sun8i: orangepi-pc: Enable dwmac-sun8i Date: Wed, 12 Apr 2017 13:13:50 +0200 Message-Id: <20170412111400.2296-9-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_823350_7B2FF0C1 X-CRM114-Status: GOOD ( 10.03 ) 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 PC. It uses the internal PHY. This patch create the needed emac node. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts index f148111..746c25a 100644 --- a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts +++ b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts @@ -53,6 +53,7 @@ aliases { serial0 = &uart0; + ethernet0 = &emac; }; chosen { @@ -184,3 +185,10 @@ /* USB VBUS is always on */ status = "okay"; }; + +&emac { + phy-handle = <&int_mii_phy>; + phy-mode = "mii"; + allwinner,leds-active-low; + status = "okay"; +};