From patchwork Tue Mar 14 14:18:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9623557 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 A899A604CC for ; Tue, 14 Mar 2017 14:27:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 971F7285A1 for ; Tue, 14 Mar 2017 14:27:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 88DFB285B1; Tue, 14 Mar 2017 14:27:43 +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 19AAF285A1 for ; Tue, 14 Mar 2017 14:27:43 +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=llIC1liK98j60/6VXjjSAqTE4n3tj4zHaYV9nZ5B9ww=; b=gU9VHxr/j469xpm5xtmGmyZTaz sEZnZnEaU8OBtdJ+4N5c/sqWbCjOJw57YMaLIyf7+Kx227wuajUQfhONTobdCDtVhTJj1Ebp52riB Bq4oO5WDi8PLJWyqjL4zgdDhmtc+ddSc3VZsopWvhNpLGMpX0L4+D9ZmG1oxzAEphAH4H1lGcGuHE GF3g21SU808ipJWawvFTQEDGMiVedMAjG8KFBd1MlTlzV6p73MLPLvlq7+0/j10D/mKVnmZD0apIE 8/jEO7vX7dN1rSkVAdfcZ+qCDLoX4eOgaJOLOXboDjo80yydwvLq/EFYdwElbIK03FJNWBnAHWCaD D2mk9RUw==; 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 1cnnQM-0003T2-Qw; Tue, 14 Mar 2017 14:27:42 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cnnKY-0006t1-PK for linux-arm-kernel@lists.infradead.org; Tue, 14 Mar 2017 14:21:45 +0000 Received: by mail-wm0-x244.google.com with SMTP id z63so39544wmg.2 for ; Tue, 14 Mar 2017 07:21:25 -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=1VaMKRehveRdUvcDzt+pLRtdbcYsZyrEToKOAH344FU=; b=HZJp31kIeDwaxTCyKMJ/Ekf34V40frawgE5K5R5epQEaaDsMmvThGH/Icy+8mZbqmq XXxrHpenlhtrOgz/zh5PSpC2et/d9HPjvcLeApHssHe1MfG1riOt19Omar/HD65QqAP/ SRJzAI2B7LOJiMGEEvi5EmA7ZEy/piTDil/xzviRwa1Jxi9YOrFp8vJXwUMNpvDUi2uN 0aLNkq0/cKTmbPx5a0XHRnCxOuYWyF4IJWKKEPY6g5SReU9aV4MHft0Z4ykO2TW3chg9 75O1PlOvuDnAMtG+ezt2fLnpEH9jWdksuVwGogrcTBTuNIpKUDUqKKrCdU1+OEghj4ZM LYDg== 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=1VaMKRehveRdUvcDzt+pLRtdbcYsZyrEToKOAH344FU=; b=b65rM08+eETm2xngW3vHXhs3ySEySrVmvlwIIZNVT0T/4AvNZ+4doMxYC0lnxuG6dO SJdJEYeSvvr51hivWfkO4YHxnXvu9gnQO/s40Hsp2ycY9p8eObJMr2Y0HpRJreH5B2dl OGlKTlA/3m5tfBrIAkzCFSnKqHbOvjvUVr2Yfj3vDxPGXnxWQ/tXZuIUM2oqA7vSLPuK smTV0Wzuu72GL1Xg5M3GJYohBSnwuGumhhq7YCpX+SB5GUOt+qEmMPu0gaN+xm4clwGh yGV0Q+8PDWPThs+o69JYV6NbhCWbBx/Q72zd7quzFEqHFhUqoOaVM16H9IBoHDbqIphz ndMg== X-Gm-Message-State: AFeK/H0Pu/e+Fmj/yEmXuiHRiWThfIUfkqwDVWjkCzUuy1pFReR1ZVy9rJeowxUsIEMAOA== X-Received: by 10.28.212.79 with SMTP id l76mr14758698wmg.6.1489501284274; Tue, 14 Mar 2017 07:21:24 -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.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Mar 2017 07:21:23 -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 10/20] ARM: dts: sun8i: Enable dwmac-sun8i on the Orange Pi 2 Date: Tue, 14 Mar 2017 15:18:46 +0100 Message-Id: <20170314141856.24560-11-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_072143_176488_449C8AD4 X-CRM114-Status: GOOD ( 10.16 ) 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 2. It uses the internal PHY. This patch create the needed emac node. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-h3-orangepi-2.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts index 5b6d145..3f54b12 100644 --- a/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts +++ b/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts @@ -55,6 +55,7 @@ serial0 = &uart0; /* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */ ethernet1 = &rtl8189; + ethernet0 = &emac; }; chosen { @@ -203,3 +204,10 @@ usb1_vbus-supply = <®_usb1_vbus>; status = "okay"; }; + +&emac { + phy-handle = <&int_mii_phy>; + phy-mode = "mii"; + allwinner,leds-active-low; + status = "okay"; +};