Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4518638imm; Sat, 21 Jul 2018 22:43:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpduShuzU55nf6GoDQxKAWAzbEpxbg/rV55OOIFjYkAzP7e64URUg6lmTDLWcnS+LwjX7pJh X-Received: by 2002:a17:902:2702:: with SMTP id c2-v6mr7675818plb.248.1532238226107; Sat, 21 Jul 2018 22:43:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532238226; cv=none; d=google.com; s=arc-20160816; b=ehScH0IBnZNl9cJHM8iFZmNmH4F3t0FHDkTlEMAjkkZ9AUw9EQNx4JPpObI7Skv58P NvOSNUeTtIkWdTecEUMUObkrl9sUm7o4PQS9Tdlf6FF9MznQozBlTCWO41fRu+9xAKRz 6zNa1TNxollkfvk5O8sm2I8nPFmtVUf3jHtwoP9kDF/Aj8EDtTuR8uxselXns8bFLWX1 VS5M/pGj5jo9O83v7B3RPxVwOu+K8LfKGbB7+r+W+RPFrhUJc+MN24x+4KxayXQL3f6w +iHFGaiTS/jykvtgVDUbCACRIk3819AdXGbmSL/ixcs5RCoXd6cyVk0Dpy5t8ai+tm8a BXeg== 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:arc-authentication-results; bh=bx4poZYVzcxNry3gH9WzRjCIpSiFFdBTp5UuJkYEjyQ=; b=PprvH3U7+6NbtsfSraBE69QkUotLlbUdjAM7H3GjxLdBEX44XJznOr0It4DQgqkUY+ 6PnN67xr+9LvsyT8mwFGiwoevaXbVmzE8FZsBVfl8ajc8eHkRkldYaw2Bnf5gLcdWQ75 v2gA0PZkl3HK06gZzLS3AT6bqzA+vjosx42wk00u0GsSGnegQECA4obCfIDISimDZ/Wm NhyFgm8OwOa35Vw0uwmWJvaQEhZucR2nEoVWOx9yi3IJnqpAt+4+tr38uF+al4OwiAgV 07ZHXxGRJprO8B2PASq23xUoJQ8ln7R4t7ue3iQrQiwlTzBeY1rHf9NMWhgTCK9Rgr3K FiYA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p26-v6si5085618pgv.344.2018.07.21.22.43.31; Sat, 21 Jul 2018 22:43:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728408AbeGVGhH (ORCPT + 99 others); Sun, 22 Jul 2018 02:37:07 -0400 Received: from hermes.aosc.io ([199.195.250.187]:44885 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727880AbeGVGhG (ORCPT ); Sun, 22 Jul 2018 02:37:06 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 9D41C9F536; Sun, 22 Jul 2018 05:41:34 +0000 (UTC) From: Icenowy Zheng To: Rob Herring , Maxime Ripard , Chen-Yu Tsai , "David S. Miller" , Corentin Labbe Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Icenowy Zheng Subject: [PATCH 4/5] arm64: allwinner: h6: add EMAC device nodes Date: Sun, 22 Jul 2018 13:39:54 +0800 Message-Id: <20180722053955.25266-5-icenowy@aosc.io> In-Reply-To: <20180722053955.25266-1-icenowy@aosc.io> References: <20180722053955.25266-1-icenowy@aosc.io> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allwinner H6 SoC has an EMAC like the one in A64. Add device tree nodes for the H6 DTSI file. Signed-off-by: Icenowy Zheng --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 30 ++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index 3ab6cf0256ca..c65311de301a 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -149,6 +149,14 @@ interrupt-controller; #interrupt-cells = <3>; + ext_rgmii_pins: rgmii_pins { + pins = "PD0", "PD1", "PD2", "PD3", "PD4", + "PD5", "PD7", "PD8", "PD9", "PD10", + "PD11", "PD12", "PD13", "PD19", "PD20"; + function = "emac"; + drive-strength = <40>; + }; + mmc0_pins: mmc0-pins { pins = "PF0", "PF1", "PF2", "PF3", "PF4", "PF5"; @@ -258,6 +266,28 @@ status = "disabled"; }; + emac: ethernet@5020000 { + compatible = "allwinner,sun50i-a64-emac", + "allwinner,sun50i-h6-emac"; + syscon = <&syscon>; + reg = <0x05020000 0x10000>; + interrupts = ; + interrupt-names = "macirq"; + resets = <&ccu RST_BUS_EMAC>; + reset-names = "stmmaceth"; + clocks = <&ccu CLK_BUS_EMAC>; + clock-names = "stmmaceth"; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; + + mdio: mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + }; + }; + r_ccu: clock@7010000 { compatible = "allwinner,sun50i-h6-r-ccu"; reg = <0x07010000 0x400>; -- 2.18.0