From patchwork Thu Feb 16 12:48: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: 9577067 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 A732B600F6 for ; Thu, 16 Feb 2017 12:53:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8CD13285BA for ; Thu, 16 Feb 2017 12:53:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 810C9285C2; Thu, 16 Feb 2017 12:53:49 +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 1BCC0285BA for ; Thu, 16 Feb 2017 12:53:49 +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=aEFrs0I4cr/e0M+fvW9b2uyBELXWZ+Us2eUP+4HsFXg=; b=QqpouhUMQKTpMZKn5dQ0/2trTi ze9WOXLRBmnO2nNje+WGR02HrIkbmWq3M+LALBAfpaHg5JpiM3uKR3eXcIERdVC44psXOtNEqHYeS kXUTA2Q26vXgpwlOb7cHHvj+cbAKpQ81YYpbZPwxpDOUIthVDBF3QxTKtWC3Bd0f7J2kZRPx8JUrq 5vqw0UzGZJzRNcz6lsRycz38hQfpf/ztsRoE/6AVUSaBQDzgdML6vmvesXCb77z/a8mAOdE/Te9ol mDwWIZdIJe29ASilNfCZPnsG+LNRqvcu8Ne9SFyBFj3IUGXwwuLHEANA2Sbh53gdb7lVRRT01vfQU EWt21ONA==; 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 1ceLZ7-0002zW-2j; Thu, 16 Feb 2017 12:53:41 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ceLXH-0001Lb-0C for linux-arm-kernel@lists.infradead.org; Thu, 16 Feb 2017 12:51:55 +0000 Received: by mail-wm0-x242.google.com with SMTP id u63so2969377wmu.2 for ; Thu, 16 Feb 2017 04:51:26 -0800 (PST) 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=GZr9g56p/SbMbN8wmGDI8tzcsLmdlOvIoE5qv3o3jEE=; b=JPNKm8+1G9NmanLBK0XtCRbBAiLahniNzTZv6Wd52pLk+ZoHAqbKwDRRN7lLJ1hF2p nJ4yp8r8AKywsiI/gfCfhy8Wh9+r2/G0ZJX9p+zvP/98R2ja7W+Nn9A/r291l5eeDguo AZ7Rd8kdaWnPM3x5e5ib8jk8MADoyxk6cZRtRCEFtW1vIpPn1dyQnRB53twrb7MIDsLd kfd6xX1eUnPNtnKGnQzYvQNY64poD+rsDvffQ8+tl40G2yRqHgeQ6902uavVNNWio+zc la3M90ya0FCuVAT9Qcnjj5EtCYbWQ51w+tyzWmldi+K4uP99zZs1gmResk+FeDMqRDwg lBOg== 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=GZr9g56p/SbMbN8wmGDI8tzcsLmdlOvIoE5qv3o3jEE=; b=mZ2Hw46IFXJuaYAgqwBUZZTpEV0eiVMi6QHSzz1753mpVtTzg49nd2q9XHhHRYGl+v MgLvk6wLQDmRYeZhY/hjTrt+wQqHh+9su6opbwUk3BbhS1QfXOKOdMXT9OwG2HymM5Vr 1s8z1dNasTbMtZh6b8r1sPQ41IhIfKEjpoPjnEV6hmugGD77Thqmcg5MZJW9OfI1Re6K VaUlUqU6s6LKzWCBqQTqQni2sk2IqwIvLgE8SnDTJ+TNLo/+4TNZN5hMRs0R23igEe8N 56eOvCDKVwvHXEoEAQkCkB3dKYLx44Rn6OPX7MLc0RrQxTRjfDcXbVGxSGRdxO6okcpY aj8w== X-Gm-Message-State: AMke39mo28NttC+nPDCUtH1aXts2EuU0yTgRfuwEG87JyvP1A+sBPpEcEYMOd6p3+vR4Uw== X-Received: by 10.28.105.68 with SMTP id e65mr2279783wmc.44.1487249485144; Thu, 16 Feb 2017 04:51:25 -0800 (PST) Received: from Red.local (LFbn-1-7035-57.w90-116.abo.wanadoo.fr. [90.116.208.57]) by smtp.googlemail.com with ESMTPSA id o143sm144705wmd.3.2017.02.16.04.51.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Feb 2017 04:51:24 -0800 (PST) From: Corentin Labbe To: peppe.cavallaro@st.com, 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, alexandre.torgue@st.com Subject: [PATCH 07/21] ARM: dts: sun8i-h3: add dwmac-sun8i ethernet driver Date: Thu, 16 Feb 2017 13:48:45 +0100 Message-Id: <20170216124859.14346-8-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170216124859.14346-1-clabbe.montjoie@gmail.com> References: <20170216124859.14346-1-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170216_045147_671125_52BFB299 X-CRM114-Status: UNSURE ( 9.42 ) 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, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, 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 is an ethernet MAC hardware that support 10/100/1000 speed. This patch enable the dwmac-sun8i on the Allwinner H3 SoC Device-tree. The SoC H3 have an internal PHY, so optionals syscon and ephy are set. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-h3.dtsi | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi index 9f91aaa..61d56d2 100644 --- a/arch/arm/boot/dts/sun8i-h3.dtsi +++ b/arch/arm/boot/dts/sun8i-h3.dtsi @@ -594,6 +594,31 @@ #size-cells = <0>; }; + emac: ethernet@1c30000 { + compatible = "allwinner,sun8i-h3-emac"; + syscon = <&syscon>; + reg = <0x01c30000 0x104>; + interrupts = ; + interrupt-names = "macirq"; + resets = <&ccu RST_BUS_EMAC>; + reset-names = "stmmaceth"; + clocks = <&ccu CLK_BUS_EMAC>; + clock-names = "stmmaceth"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + + mdio: mdio { + #address-cells = <1>; + #size-cells = <0>; + int_mii_phy: ethernet-phy@1 { + reg = <1>; + clocks = <&ccu CLK_BUS_EPHY>; + resets = <&ccu RST_BUS_EPHY>; + }; + }; + }; + gic: interrupt-controller@01c81000 { compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic"; reg = <0x01c81000 0x1000>,