From patchwork Wed May 31 07:18:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9756089 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 7342160360 for ; Wed, 31 May 2017 07:50:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 60F65265B9 for ; Wed, 31 May 2017 07:50:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 53C6E284AA; Wed, 31 May 2017 07:50:56 +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 235B0265B9 for ; Wed, 31 May 2017 07:50:55 +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=fiWVxPkQh+9hXVXXhCZwbqzS+TKBCZZGtDRM95OX1JU=; b=SMRyA5Dju41zmVsV4jKHjcpT4X /68Bukouof8riOSXAogjzSk+kT8+LAoicRkabYaYcuWIVlPbJ2fIL+sQmOhhzTPftF7sMzGf1oQgn U7UK51nmcFnVh1trmMdGD5tAJchZcm2Yo2vwnyCigtWVskn5wi7rAF9njBkZA3aggoScLyS9Im8ib HRBV3StZRc7iWgAYRVo0QQRiXU7vLoRHRkSVaIJOohDO4kmZbybM2EjShy64scWrVCyNQM/MDjI+o 8dMe6jImseoiiiV1TEG9Lny4iIO0F+QAlVXlF40T4Gq8AQMQOuiR6xA2xvN7w7K8iCG7YfWH2Rw+I X3PzgV3Q==; 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 1dFyP6-0008UE-UH; Wed, 31 May 2017 07:50:52 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dFyDY-0000yU-8A for linux-arm-kernel@bombadil.infradead.org; Wed, 31 May 2017 07:38:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=1jK/LpNoAC1lKqyVuVv2nu423WVyrBEb3G3PgwecEDU=; b=KkBh9558GNqaqm1S8vzsB4urW YJTxnwAvafdIkF/P7ZlMGCcCFOZTyjxAYGQUfJ2fC1SWZWsYhhWH3MFa8LpEhLnKvRN0D9SbjfNsK uUQco3ytHc44d+nF66t4CRdqzA/tfsJnfzRHw+c8zMJbMc+gDUZf/aesQZr/x77iYAe+8BL2+i7Jz IpWrbae5u18Ti+va91IVPhiNhq/2PSrfgHFpE4DaHTEUyeMdlzk0JHVFc89lf+8OtfWPHJORQpJnR wwEVtSVSWdknzb/PRReahLZS39Rpw/cuIWmIX5xfCCniOCGYw1no041+W4SAPBG6t5t7uXsJRW4sI Iu002PnTw==; Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dFxxb-0002p7-0R for linux-arm-kernel@lists.infradead.org; Wed, 31 May 2017 07:22:28 +0000 Received: by mail-wm0-x243.google.com with SMTP id b84so1666693wmh.0 for ; Wed, 31 May 2017 00:22:06 -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=1jK/LpNoAC1lKqyVuVv2nu423WVyrBEb3G3PgwecEDU=; b=ctSPCT7I3HdDpZft3/9JH80Bqp0VYxGUExU/THzbOdgLydXFmIsKGXQpIEjV1xD5Dj sAfNKMCbRlNl6vfPE7f7OsgQKiYxitDO53jqXWjKcpl+2wt9R0W93tXMPBvWHJqk/wOm kCpfTpxGRPNIxmMdGkreaS2Wv1Mb0ByyG8YSLWFwYC3WeGWGVdNdh+Hcw3YqHXc/a92o M+SS4k6kzY5iADJEsmLl21TPlwKwBrnnCpZymV6yWGtE8RqZQolwh1Rs1THDlLIBudT5 9W1HM1NlDnR3CmEeK3Ro7i/DqEpRk66SRKnhSZW2CXA6aq8dyg8617+G20WT7xrwAH0B pn6A== 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=1jK/LpNoAC1lKqyVuVv2nu423WVyrBEb3G3PgwecEDU=; b=TlnktVGXaPXfJvcZDZNNvSzeFeH4b9Zv8RWDXAvQggnDiy/aTPSPLyH+lubqzoCgXl SUbiTIMFtNWsHU2UVewpxGhlk2GzEM2Rhu47379PhZL9Jfvbp3YL5+2Vqz/Xspu+8AWN hWfJK4s+P+5aqpl4H9SInfqrenBZ2EUKOXO9cUDKy6JRSIXdYSizzhy7IQvaJHFmkqHV z6z82hLwN6MTMSYAlGhatDFXuPlgJtEw1Q9zYv+pGzBl1k1bzkJLDcPVivOGGaFaIAee lc7a7jMAFO0Rz2jjmzYZKbMM7zO6TrfPukGVxauq1DAPt7PLka+1zKSqBAs9Vv7gRAHT vqeQ== X-Gm-Message-State: AODbwcC1RVNBDSjr7R3jLiD/CgDMUqMmrF78NIqOWsU1i3IdpyjcdfbS YnhFAVP869vI8g== X-Received: by 10.28.165.80 with SMTP id o77mr4378171wme.109.1496215325855; Wed, 31 May 2017 00:22:05 -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 r130sm12528169wmg.4.2017.05.31.00.22.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 May 2017 00:22:05 -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 v6 13/21] arm: sun8i: nanopi-neo: Enable dwmac-sun8i Date: Wed, 31 May 2017 09:18:44 +0200 Message-Id: <20170531071852.12422-14-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170531071852.12422-1-clabbe.montjoie@gmail.com> References: <20170531071852.12422-1-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170531_082227_087470_499C8710 X-CRM114-Status: GOOD ( 10.33 ) 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 NanoPi Neo. It uses the internal PHY. This patch create the needed emac node. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts b/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts index 8d2cc6e9a03f..78f6c24952dd 100644 --- a/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts +++ b/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts @@ -46,3 +46,10 @@ model = "FriendlyARM NanoPi NEO"; compatible = "friendlyarm,nanopi-neo", "allwinner,sun8i-h3"; }; + +&emac { + phy-handle = <&int_mii_phy>; + phy-mode = "mii"; + allwinner,leds-active-low; + status = "okay"; +};