From patchwork Mon Apr 3 09:14:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9659065 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 0E59D60352 for ; Mon, 3 Apr 2017 09:18:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F3D5C28437 for ; Mon, 3 Apr 2017 09:18:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E8015284BC; Mon, 3 Apr 2017 09:18:41 +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 9CD9128437 for ; Mon, 3 Apr 2017 09:18:41 +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=PaVN3Ws8f7kQysoXKvH7t/J1Mx sLPb2e0EWowdFpwl/n6msjH9S2/oD+rNcO5I3+xS+H1HtiUjhAzLtLk+lof5/ZPYHBxvGbDe2HYUR R5NPD4qCQoYuvz5FC4ji2yNVJtk//qgiIymVICZeMYxqooHDNNTDR89wMofyJCPlAOH21e/kxCFOL R/eeliuDJVTBCmCkDV1sZ5KmC1MoR8Fiiz0NH6fPSkIL4mJ1V4fheYaheqXIQrYKngzJRjsQ4mmdF M7MNMfX462sqM3N12kRmx9LmRvG5DJuFDP0vMh7TkYNc3n6AD9glS6P55rMlq5aCkprsEtFgx32ix I1IBK5uA==; 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 1cuy8F-0004XE-LR; Mon, 03 Apr 2017 09:18:39 +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 1cuy7C-000336-CI for linux-arm-kernel@lists.infradead.org; Mon, 03 Apr 2017 09:17:37 +0000 Received: by mail-wr0-x242.google.com with SMTP id u18so31666679wrc.0 for ; Mon, 03 Apr 2017 02:17:18 -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=O/YLYH/CNBlNL3lQkxKbJyI/0pdANaKpKVZqnKe1qTNWy6jV1RNpL5tO3oeDZovyjO nzqBs7oFDP8MpKENFBkbsFQrkZIZM9LffH1OyDeICZYTbjc69JbsIVZBYh65KalDuzac KEbmO5NgEH5Tz3RCzqXUqChVIHNAVT5YpwChSaMv+Wlt40t8QGVfXmH3PbRaLhf0JcxF 1Cox/EN0MRSbhiidOOJOzfGCv1y7LLRRF9wavie8KorPWQ30TogkB7ehfNfUl6doa0au zsfDImz+JLsf4EidaN2+3efqr0mXoW46ltdH9NLiYy/MbzCMeAKHfM3eMmXUWi5DZwnz JRXQ== 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=a8woV/aIUmAIKSFOsQwfXqbYV3bY1bO1Q+ItRCMQFoXc+RK2qkF+8f9pweeFqX8qfN CG6kM4zEezdphHur/hduYWzlsXhaMGCK5Tw3D8qrlS1DLWhfwtg2bRA/di9Y9TLhn+4G XdouQM0jU4djrtW5Jxxq+XBz2h01aBJUMmCbfIeRcBktSFSUFC5Qp1tohm3IiQTImMXa yoniGWf5eT53mkLWTc0e6147Lb6K26rGPw6oIjJ0BksSeoyAmtJrYxV8qwEDZuWFm2zR 88n+2Zp9r7GEy7HxDoPdgvg5RSbK0uuNoGEpCTE8OUWhG5fTk+H/Djh9tGv20y1B7AI/ XrFA== X-Gm-Message-State: AFeK/H2fgJevIYb3D5J2QE3kW8EZTePbkOU9r56jmbn8VfbDyIDH4DVX 1DlDkc5WlqAWpQ== X-Received: by 10.28.225.69 with SMTP id y66mr9042349wmg.84.1491211037052; Mon, 03 Apr 2017 02:17:17 -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 v14sm13457558wmv.24.2017.04.03.02.17.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Apr 2017 02:17:16 -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 v3 09/20] ARM: dts: sun8i: Enable dwmac-sun8i on the Orange PI PC Date: Mon, 3 Apr 2017 11:14:33 +0200 Message-Id: <20170403091444.29876-10-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170403091444.29876-1-clabbe.montjoie@gmail.com> References: <20170403091444.29876-1-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170403_021734_911071_6F3E4E3C X-CRM114-Status: UNSURE ( 9.90 ) 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, LABBE Corentin , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.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"; +};