From patchwork Thu Nov 9 08:29:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 118397 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp6310001qgn; Thu, 9 Nov 2017 00:33:16 -0800 (PST) X-Google-Smtp-Source: ABhQp+QxUmIKkvPvf3gliyeMMiZDVEfuZy+8CVxwh0RL8vYh1IlhVu15cJThxVGPQ19e5oV+Q4J1 X-Received: by 10.99.139.195 with SMTP id j186mr3137578pge.231.1510216396332; Thu, 09 Nov 2017 00:33:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510216396; cv=none; d=google.com; s=arc-20160816; b=uNRNKqwFuQEH+Eap8CSnPxhXo6Wr20YQ0GwgCxD/WFieFGbou0wYbBY/VBFuxjoGvk OGgfHYj8ECFPzhHcwpNYU77LX41xVO98rRqyvLHDfWw8fuIdZiK0canQ4Ko76ye6Jr7k zwbXI3q6Xc+zE5n/9Bux3JzN1ybsEjiY4x2qoYa+gVFJE9AhsEDoKvLp1LzIoe8C4hiG wS0Cl5HfY9c4pbXKGnATksY5RSxpNFL4+omstmx1DwXu+Dm5NO5x4k/H3V3AO8sYsyX9 DZvfr+9J96LOh8+iANRaO/mn6xy0sgsJP2G7diyxuzwmLAjOmJTdBpls8wDJG5bQYC8A hPOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=r1C/I9LV9aoLB6693tIF17OC8lw2m7F2Uq+Jn9PXfT8=; b=cA1RnvK6WR6H1dgzxGIGsDngbvpieZLO14/5ntsxEkASdJEXQHZszvv3jTSzxVW7NK 6pjAKN2TcxRdWwW0kcx2jXOHiXk1dU7ieaxSKaGDx8hxtEQT0I0jZ3dYF6LnCqGt/Rd1 TWCOOh7MxFV05AXyC/bC2DVwIHqi++fCMw7ET1qVXDMzmPSALjkeKBcqCIcSlvILChdQ VgWhmLwiKE5afn/6uUtdU4602sjP1KjR5hZixtYQkYFwelc3655UW6E9Ne+CCjJ7lYPr v2OAS1KDzPh73Gfn6uassoC55dRL35xUkUxTt33o2jKzG8CceWH0J4FfsVXQxzfqOyfb 1kAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=ZbkTbzb0; 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 l4si5430690plt.290.2017.11.09.00.33.16; Thu, 09 Nov 2017 00:33:16 -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=ZbkTbzb0; 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 S1753669AbdKIIdP (ORCPT + 6 others); Thu, 9 Nov 2017 03:33:15 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:54496 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753348AbdKIIcO (ORCPT ); Thu, 9 Nov 2017 03:32:14 -0500 Received: by mail-wm0-f67.google.com with SMTP id r68so15807240wmr.3; Thu, 09 Nov 2017 00:32:14 -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=Kx+brlTZ4Lm4xqljD41bRLvV4kJJ/GKxwChkEON3B3g=; b=ZbkTbzb024Yo/Cu+Dr5KagNyo+MiHvyQyFyJsawFqt47HG+kl8j/3faq5eUWCv474Z WfOFQrNCBcqaze/YOx+mrWIKIWs9itdZ65aSS/9E/Kh+SEsN1lfW9cibLu9M7jhbUtxX Hoxz0bfxt2T1H8RZvkW8OtUG89rQzOHjtUER1r0GxoP1SRPDbzfdxggWWLbtUEfS5qdx scYWhdeN/ygqcR+GdY23o55jTZJsAnjDQ3x5Utljm2wHDyat+3rWRFCyZ0RZMsbEWuM/ Mu0g41ubHbj3lvBOTPp3u7cfsewi1KV/CGGkiLbE2xzQf7u1zYVzjnADhGpoJHjZuI4w Mytw== 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=Kx+brlTZ4Lm4xqljD41bRLvV4kJJ/GKxwChkEON3B3g=; b=ouyaDf49LUmp7Khl6gzfz7WMcykkpANMgBXkNf7p7PEENVSVPZIFwhVjkiftq6zvUE MxyuIvelZW9Jc+UaHvdRvCs+sOy1686kMUGJxur5//Irl/dhXAyVzVj+eDACV96GFS8z 0SlKIgpqVcSd8CDhNpdPv4pXuMzBno8kHjfV4q8lgqplLcy1zMnmnUpdrbpj4Ob79UyD 2rzDAVHXOhFZxOQCrranCgUcTwr1vWwNISEOxXsqD3hOwPbY2Ac0eekul5wg7PnMxgWn iZZ2LyM48aBDNqWU3ShgeFEqgfAW8oR4wDAzVAysLHPhdXi0VNx1517QzXQnC+Ja/+yc 3EAQ== X-Gm-Message-State: AJaThX7dpApctzTDo5viVMMTMqRcMri7EU4vPg7YTx1/qjj0cCXmWV+d 8d6bo+sOhhSgBjPXg+yQpak= X-Received: by 10.28.101.4 with SMTP id z4mr2476153wmb.77.1510216333393; Thu, 09 Nov 2017 00:32:13 -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 195sm2813960wmj.3.2017.11.09.00.32.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Nov 2017 00:32:12 -0800 (PST) From: Corentin Labbe To: linux@armlinux.org.uk, mark.rutland@arm.com, maxime.ripard@free-electrons.com, robh+dt@kernel.org, wens@csie.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Corentin Labbe Subject: [PATCH v2 1/2] ARM: sun8i: a83t: add dwmac-sun8i device node Date: Thu, 9 Nov 2017 09:29:49 +0100 Message-Id: <20171109082950.21124-2-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171109082950.21124-1-clabbe.montjoie@gmail.com> References: <20171109082950.21124-1-clabbe.montjoie@gmail.com> 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 add support for it on the Allwinner a83t SoC Device-tree. This patch add the emac device node and the related RGMII pins node. Signed-off-by: Corentin Labbe Reviewed-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a83t.dtsi | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 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..a384b766f3dc 100644 --- a/arch/arm/boot/dts/sun8i-a83t.dtsi +++ b/arch/arm/boot/dts/sun8i-a83t.dtsi @@ -336,6 +336,18 @@ #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"; + /* + * data lines in RGMII mode use DDR mode + * and need a higher signal drive strength + */ + drive-strength = <40>; + }; + mmc0_pins: mmc0-pins { pins = "PF0", "PF1", "PF2", "PF3", "PF4", "PF5"; @@ -440,6 +452,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>,