From patchwork Mon May 20 13:13:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10951101 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2A11C17D2 for ; Mon, 20 May 2019 13:14:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 18A5128807 for ; Mon, 20 May 2019 13:14:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0AF7428833; Mon, 20 May 2019 13:14:15 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 AC1BF28820 for ; Mon, 20 May 2019 13:14:14 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=6UnSV/V+TmJXUZ0TtbFR+bZkW95mh5/w0q9L/0Q/tms=; b=b2hQ4OAsFM9uoz kviE8dTuT8v6BRSQ8qIpY/lItSkX5TzH4SfLIu4uzG3H+Bw7T4T3+lsfMSQkVX/a5IHOILGyTWHKq aNfV6N8XTmV9yjz/Tk6cr8PXTRR+RIIxmlXrVulCn8/YMyY4MnrzGuRyRXYWFkuJlI/KhY1t0Q2Uv aLNpGqd7gsEHe5SLTOq065hSOFuS0NMKViqhNVrO/g0JhIw+b3QBTqh5BZ/iICxZvCCB2q70VI03F LmC0rOyHFgYNuaH/edWKYB3B4R49ICdc+eL90dXPOPoRBokQd8PzK35c4aquK795yU5i7NpZ8AtbA e/CfEKwdAl1OJU6xTjnw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hSi7J-0004hu-Sw; Mon, 20 May 2019 13:14:13 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hSi7H-0004g7-51 for linux-amlogic@lists.infradead.org; Mon, 20 May 2019 13:14:12 +0000 Received: by mail-wr1-x443.google.com with SMTP id h4so14566128wre.7 for ; Mon, 20 May 2019 06:14:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6IVz8trHJceMtUKXTFJMf0iW5MQvs73+t7piDB6eEsY=; b=t/Oa0ug/gh8v2UjVr9u3N68HSxROAKAU5Vtzp2apfkj9WbuYMDnkHj+q72LYrLC+TI Vwpq3Z75dZl3Kx+wZyvibkDZZh3NQ7YI9b28qhCE+V4lVhsyqBdyG8Ut6H6MnSguqTYd uHWU84E6TFWLsyZrnx+iAqdKAtr2jh2wseTpmO23TXm/sghNTJTnFBYS7/2/BGNbp5LI eL6i2hKjI1bmAvL4kbamX6FCKlnLIwhyYgiV3dntXgpN+nExsgxA9sP5RGuXaQRCVPYD rfw6obIdU4gzhxk1LSO6sCnKwCjCENsNFOugK0Z7OY/b4+wLmK7o1hfBI83zDAi/nT1y 0/Vg== 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:mime-version:content-transfer-encoding; bh=6IVz8trHJceMtUKXTFJMf0iW5MQvs73+t7piDB6eEsY=; b=plKFXe9PGS/xeg2LpyAWwXgHI99RtkIqyc5vFUvGJ1RRYnlnzaQM9ev1bZJJtTw1Qi gDrF3A6JGg+UVieNcmtDvYadqPJfd7HRoY1MT+229IUh1vDe10IqROzEn+cLfuQGPk/n 7VNQjpfyTDEQc02wmnR1OPh460eWQGhgdu+xlcdYjMzWMwUK6SUgQKKFHwnbV8iZ9/CI UdtvL6OcEOFPpZKFVET8OFCQPJljSs/ti+3rieCIc2aXUaTDOeXJwqxpSmh9JzjLeJEP ulnBlukHuLchJeYEJTslpGaqqosAceZpDNDGoHVkH+dRVcgalmW4M14P4xFnXbt4rpYz aMsw== X-Gm-Message-State: APjAAAUdueC66OSX2Xcki7QsLHxiu+WneUz32BttlYsxI8VddhqMDGmx z9BrzXR8ZyuOg+YnteHYzYJx1Q== X-Google-Smtp-Source: APXvYqz9K/jjyMysacjgfl7KOksQHYbNEnXEErMcqBtLCrHy7XK7fIn7QXtDN0QBRM8DBBymdtlRGg== X-Received: by 2002:a5d:6982:: with SMTP id g2mr29721861wru.223.1558358049506; Mon, 20 May 2019 06:14:09 -0700 (PDT) Received: from boomer.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id z8sm18054284wrh.48.2019.05.20.06.14.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 20 May 2019 06:14:09 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman Subject: [PATCH v2 1/5] arm64: dts: meson: g12a: add ethernet mac controller Date: Mon, 20 May 2019 15:13:57 +0200 Message-Id: <20190520131401.11804-2-jbrunet@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190520131401.11804-1-jbrunet@baylibre.com> References: <20190520131401.11804-1-jbrunet@baylibre.com> MIME-Version: 1.0 X-Patchwork-Bot: notify X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190520_061411_188889_DE523C1D X-CRM114-Status: UNSURE ( 8.83 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@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, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Jerome Brunet Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add the synopsys ethernet mac controller embedded in the g12a SoC family. Signed-off-by: Jerome Brunet Reviewed-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index fd24fd29f4ed..1d16cd2107ea 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi @@ -137,6 +137,27 @@ #size-cells = <2>; ranges; + ethmac: ethernet@ff3f0000 { + compatible = "amlogic,meson-axg-dwmac", + "snps,dwmac-3.70a", + "snps,dwmac"; + reg = <0x0 0xff3f0000 0x0 0x10000 + 0x0 0xff634540 0x0 0x8>; + interrupts = ; + interrupt-names = "macirq"; + clocks = <&clkc CLKID_ETH>, + <&clkc CLKID_FCLK_DIV2>, + <&clkc CLKID_MPLL2>; + clock-names = "stmmaceth", "clkin0", "clkin1"; + status = "disabled"; + + mdio0: mdio { + #address-cells = <1>; + #size-cells = <0>; + compatible = "snps,dwmac-mdio"; + }; + }; + apb: bus@ff600000 { compatible = "simple-bus"; reg = <0x0 0xff600000 0x0 0x200000>;