From patchwork Tue Mar 14 14:18:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9623555 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 82569604CC for ; Tue, 14 Mar 2017 14:26:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 72375285A3 for ; Tue, 14 Mar 2017 14:26:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 66B51285B5; Tue, 14 Mar 2017 14:26: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 20181285A3 for ; Tue, 14 Mar 2017 14:26:51 +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=18mhtWlrU/jY92iWyM6nNTKEIBHIWG+98sP/W4ztZts=; b=SO7XqXgL4SRh3yohpgWLv8V4N8 jCHKxEgmG/xtiUT3NcMjkF7GGl0ooNahT2ckmW6XiQNe9ysE4+Q9s7LhgjUo/tabD0RNyFann87dp /kErFASwKYrTP638VXt+WfinmAX73BlqqCwxwuYb7h/I8kuW/njAhGqaxKRN65++eQOyUskPVPr8q 7TuJeODpeTEDvyoo4gkpDgrntHDWsFlrX/7ZW9C36XJmuyxFXzBqWWxRTKVijs1kaSXDx69KOpvug TNxjN3qEQ1vqE9wKKnTx0RYP16H7IA61S4gCF78vVSAARN9fHzTJZhuhMrpvKtzNBt+CV84b3cla8 bFOISqYQ==; 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 1cnnPW-0003Cd-FM; Tue, 14 Mar 2017 14:26:50 +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-0006su-O3 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 l37so24064136wrc.3 for ; Tue, 14 Mar 2017 07:21:23 -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=c548OXHTtOSImfTZycSErxSkdhYC8NPDjUMVXlNGkX0=; b=Hw2fQ9uE7ncw3za+KwxEl5m+C4fqGbVt1zbtqhH+Ke4Anw8gah+JXiDC+AiQDoMMfw kN9mTQRWdDMX3lDt+l9SkWqZ9hk7xO3TohOUrG0bhw8U0nrmwEXamXiNxbZ+yUjfl6xq WOBpW3tDj4s8dY+tiAa7aqxxAwl2o0sAoTf3xMa2++z1aplBOamxG1+67t/1636T0+d5 m1AEYEb5m9Nj14hDFTCjU9wO7mN+aTRqdTh/fUiSn7fk1mcs8pfeDyprWrBBArmTSUkx 63srCgplXI5O9XMYoUiiE2rrQ+HTYA4g0SrdSzbhJqSMmZrYsh2GgcCG3uksldSw4sTc NZ/w== 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=c548OXHTtOSImfTZycSErxSkdhYC8NPDjUMVXlNGkX0=; b=QUtoLdbgFj/7XefRbJMO/0DDxHN9PIrpqEhBuYnIv7NAdz1jPwnth0Nf3i1lQBRQv1 oRp4aBITN31yybNZ0ECs28nTWt1pxxEg6pAl++UVrPcBASTvmnQYJB/vx0UxsaqXFNZZ EfSpD6mbarL3Kaxba3VistPeBdnX5ZcasIZ92JEeJ4QiXSRi6p+Ro8HxJzoukJAqI0dd 6lOKG1E/G8bj4xJpcOvcYqk2WH6X37kbSaT+8DP+wef0cutsLJ77Gr2FSkThGEA0QfzU 7cfT9DU44YtxH7cbVRVrjmXjx0RQFMT/UH9gvmegqR9COBhxj1c+zjn8+1FBLR9Vsljb HbIA== X-Gm-Message-State: AMke39kZ/HYjvphYA05TIvmOpZruenTOd/BpBcj0qk6EXg0w9jwJHF5viCr04PSBX6T6tg== X-Received: by 10.223.174.164 with SMTP id y33mr32833637wrc.166.1489501282697; Tue, 14 Mar 2017 07:21:22 -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.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Mar 2017 07:21:22 -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 09/20] ARM: dts: sun8i: Enable dwmac-sun8i on the Orange PI PC Date: Tue, 14 Mar 2017 15:18:45 +0100 Message-Id: <20170314141856.24560-10-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_044653_5AE11278 X-CRM114-Status: GOOD ( 10.09 ) 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, LABBE Corentin , 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: LABBE Corentin 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"; +};