From patchwork Tue Nov 7 20:13:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 118202 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp4421047qgn; Tue, 7 Nov 2017 12:15:36 -0800 (PST) X-Google-Smtp-Source: ABhQp+SBHU7PTvUkHzq+VH7jBtz9i81viWmpN6e40rk2IpZiaqfMkFAR13iBp0vC4WUufjrFY6qU X-Received: by 10.101.98.72 with SMTP id q8mr19340951pgv.71.1510085736355; Tue, 07 Nov 2017 12:15:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510085736; cv=none; d=google.com; s=arc-20160816; b=OHwwRfnSKSMbChGj2EP0paB81I12SRbJ60F8CH/rO5N3wVTEguj7kgu0lS7rQHgKgX JT9TiIGtiUdhU+1z4ybP+J6gMfz+pb5gZr7zaqfRRHB3k59bAz/+F+fOARwSA65lyrvI kUz7tJTJ9v+guFSkTzoN3E2VhiIy4eR6pGdJPIqCjT6zOJNjQ2JgNJ5uzAmePGLLOvkg 9bSis7BSC2Ic1dv0tuviz+oJlC4rZbD1fXMA0nB2oBqlkoLS3JPr6Djd59gMFnYjn6nm nusbPwmO1wO0ApY1uWuZ8oj0vmb9Bgvg22UTVB2efCXlpUmq5MDXPAaVtSYLKbaltpvK DYhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=fCcovcw7wlbtd20Lu5Oa50u1PT91PPZcIArUf+fphbY=; b=EaszfMz+n/Z1n4kFM2c6XdieY0zssWmpjLZLPNUN/wqwgKlINRdPirwyhASYtpfPAv XNE/ffQBq19nHC4+WDEFDdGIWdARG5bgkNc4X85Qk+ma4SfFTTGeVfrql/3wuzErvhrG UaD/Ixb7GtbrlF91FUgLRW4PGsOINGKAK9rYBW/nvvW5a5xrPGwN2vgsiCOjgdddnoMt d5Jx0hyyUWZglbtsClRBCxxYAa2vKVf3V9XDXBLul2s+20rCx3VOXKJgloPgfzeLwkK/ lN2M5y4ewENgVFo3V7obsphndhJ8PUiGzAatQGdsPbESLWZbp3DHg1KNpkVQt+M9hrYM 9OmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=hIxUemSD; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s6si1956340pgc.54.2017.11.07.12.15.36; Tue, 07 Nov 2017 12:15:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=hIxUemSD; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932760AbdKGUPe (ORCPT + 6 others); Tue, 7 Nov 2017 15:15:34 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:53092 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932356AbdKGUPd (ORCPT ); Tue, 7 Nov 2017 15:15:33 -0500 Received: by mail-wr0-f196.google.com with SMTP id j23so374512wra.9; Tue, 07 Nov 2017 12:15:33 -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; bh=Mj7eUGZQ73pa+9ZueZADDmbpQdvu7O068UdhsOB7obc=; b=hIxUemSDxQUUERc0sfGadzLsGz50xVkxC1JwomUB51GiljEEmQgoit1lJ3jGUk2Wcp cS6TM/XKE36WgVs/WjZ6Wt8SXQiZvpInQyBi/9UZicri075kDCtxzq9mJxLpz3OwNt41 vB9N6cT3kNWwG5RyGc7kTlmwXP4JXRph5ZJ8aaY9qkgTTJb12S57q95ld+k9oJGrhDVY TzxHJK4Tg3OLhcwliHLWKe7yVTn3j5en31DystU844r/329ls61x7eYc01Jfgbc77ESO DK5pSH5DIYOaMAgiftREgW40kANIpRkiqQniM2sY7KFydQixSPLkkpdLpkre++97+Q5q z0iw== 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; bh=Mj7eUGZQ73pa+9ZueZADDmbpQdvu7O068UdhsOB7obc=; b=uBNcFL9+x+54AHZHRJsCAe02BirEB/LCo16tuBbzkvp2tlZyrOO2cp47iFMENGK/X4 9G8TWtgKrICYSnfdM0C+Qo4PlaRgQlMYu26UrLG9WpZ4o1o9s9O9L09kwfOP3vupr27T VirAy+liau2Ch+CDz+cEKrIGSwVn4y013Cb/tQ2CFShXZ7mSWRFIGcEFxmzeNCrWqmK+ q2pdF5WDd/6lGPn06etFLiE8VEd5RYIZOZtWkbEMO0zqwIidjkKV/8vSwWqtj2N4ovsa LM+CMc62baQmxiEDDYjG/+ZI0Uoh5ec/XJMVF/B9+aoQHsyO38xjFtgo2ZFK9QLunkru K2eQ== X-Gm-Message-State: AMCzsaW6IRnuKF7pk1dbF025pFVWINRWANXwAL8jBlmAXMHCbVQ3ZhPN HJX8zlz9jQpok8SWST1nofk= X-Received: by 10.223.199.137 with SMTP id l9mr17588108wrg.113.1510085732369; Tue, 07 Nov 2017 12:15:32 -0800 (PST) Received: from Red.local (LFbn-MAR-1-580-96.w90-118.abo.wanadoo.fr. [90.118.159.96]) by smtp.googlemail.com with ESMTPSA id u7sm1714595wmf.15.2017.11.07.12.15.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Nov 2017 12:15:31 -0800 (PST) From: Corentin Labbe To: robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, maxime.ripard@free-electrons.com, wens@csie.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH 1/2] ARM: sun8i: a83t: add dwmac-sun8i ethernet driver Date: Tue, 7 Nov 2017 21:13:25 +0100 Message-Id: <20171107201326.17401-1-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.6 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The dwmac-sun8i is an ethernet MAC hardware that support 10/100/1000 speed. This patch enable the dwmac-sun8i on the Allwinner a83t SoC Device-tree. Signed-off-by: Corentin Labbe Reviewed-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a83t.dtsi | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) -- 2.13.6 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index 19acae1b4089..68e5135410ec 100644 --- a/arch/arm/boot/dts/sun8i-a83t.dtsi +++ b/arch/arm/boot/dts/sun8i-a83t.dtsi @@ -336,6 +336,14 @@ #interrupt-cells = <3>; #gpio-cells = <3>; + emac_rgmii_pins: emac-rgmii-pins { + pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", + "PD11", "PD12", "PD13", "PD14", "PD18", + "PD19", "PD21", "PD22", "PD23"; + function = "gmac"; + drive-strength = <40>; + }; + mmc0_pins: mmc0-pins { pins = "PF0", "PF1", "PF2", "PF3", "PF4", "PF5"; @@ -440,6 +448,27 @@ status = "disabled"; }; + emac: ethernet@1c30000 { + compatible = "allwinner,sun8i-a83t-emac"; + syscon = <&syscon>; + reg = <0x01c30000 0x104>; + interrupts = ; + interrupt-names = "macirq"; + resets = <&ccu 13>; + reset-names = "stmmaceth"; + clocks = <&ccu 27>; + clock-names = "stmmaceth"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + + mdio: mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + }; + }; + gic: interrupt-controller@1c81000 { compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic"; reg = <0x01c81000 0x1000>,