Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp533456ybi; Fri, 21 Jun 2019 03:58:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9o+SLBkdF7k2FvDc89hP5giYrZQ86iQUPc5rQtdvPsgs6yzhcepUrs8+V2fK7aqZRwl7T X-Received: by 2002:a17:902:ac1:: with SMTP id 59mr53188942plp.168.1561114707849; Fri, 21 Jun 2019 03:58:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561114707; cv=none; d=google.com; s=arc-20160816; b=hjDy+C+qVpE/kL1Z+db/Z0fo9vODmCeKL2ZbatR43SfXK2Fpgiv1VSG7VAPZ3Sh8Dh /CdaWyqW9mpBFqpTr4C5wQgmnzuJbQXXruaiSdsmxSQuOayjdw+IZKoKVoz8v4VYfOUt Zg6xs3GDEcBZffTPhER/nmdj4oCgf+nep7qwKTnftLaxWWNWA3KrZFuzUVDXchCpdiSr XH8TVx/RyA5LmsGX1yNfuLDB94gzeqh0jI/xaD9tFluUye4J48xz70rNWYU6oFCpwwML ruz/XeJYtc6+m8RVPRzYd6rRNMycDi6hs9aIoITfyFEKBHdEjyS/0qe1G/y1BOSEwSpA zPLg== 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; bh=LfS7OaPkDmyWohtCv6+omHOKQ0iNU10OGK6bYTnhcSo=; b=bk0YxjefivkFrkkfzAXpuojDVUGd3kXsHdoGaLBBYmJt3oNutAKtfj5+vT0d0Dnzxr Sh0KcT4u71ENFchQFPXeiu8evEvWeh0sx888WunbO5Dyuj67iUFAV9iON7tM1jDtVv+9 k2XsZu8+98GpzyzaGePrM48R/3TrVSfKo6ZUZwaKxYXisZxniSFkMTdHYj7AoHlpb7T5 OkAlY6gLHf/jdwGR/NlfbczHbMw25iFfU+S2sJyUXk0VK6YStHX9xUvJhWzntWOmhuM+ W6uhBYCGdHyzRH8YzWrJiNREN0WcSHQMVwHoQssRPoY9AST488OJS/EAgEqZCzhKmtF5 MBWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=EkbAXsmi; 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 30si2588770plb.30.2019.06.21.03.58.12; Fri, 21 Jun 2019 03:58:27 -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; dkim=pass header.i=@sifive.com header.s=google header.b=EkbAXsmi; 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 S1726549AbfFUK5q (ORCPT + 99 others); Fri, 21 Jun 2019 06:57:46 -0400 Received: from mail-pg1-f173.google.com ([209.85.215.173]:35410 "EHLO mail-pg1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726232AbfFUK5q (ORCPT ); Fri, 21 Jun 2019 06:57:46 -0400 Received: by mail-pg1-f173.google.com with SMTP id s27so3211073pgl.2 for ; Fri, 21 Jun 2019 03:57:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LfS7OaPkDmyWohtCv6+omHOKQ0iNU10OGK6bYTnhcSo=; b=EkbAXsmiKWaXo7lR4QUiVCL3Qlcv5VjgIRJ0aK6NFuKAuTyEiZcnI5vTp9lBKiydzN xC6cvtuwUV1tyZvDArgTgmcBgirg3MR79RamUeHI3xMVLq3/7R4M+MpAfyvVGEYeJgbB PgwRRsU2ZoNIary8F1SjsWrxcWSY9vgdB9LcSLnOPck0160+E3v24EbE6LFUfKbFe29l R4CRTdtb5UzyEfPhQsBfPQ+9AIlDmOJAaZh1qXb9rJbiVMWQEQijVf75CF4IUZ7OnKvH HyLmU0RoHIVMnqj5BScwaEgx/hRKR1sUx6u8RRqdgnfJLVulA4vv4axkwpc17aFOdJzk YJhA== 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=LfS7OaPkDmyWohtCv6+omHOKQ0iNU10OGK6bYTnhcSo=; b=LxaW+jvJQu8ScqOUsh3Rkqp1WhWWI3YmjXGVKekyhsg4HYaN0bCs1GR38RMYC6aPnz 2YxpKGBdjaTbkolsK3PgOxZSZIpNHVcJjlh31ut3rXRVGbnWNGQfJIX2UozQAvBKnpvI XIbMHn62Ao0sjcX8KHbw4MpnZyODghuvnkcaSO3zEf78DPvgpDSm84+Bj2Cu7ic+tZVQ 7dfccexZAArgxWXFE2FSCWE7yxajFZFQMwBPr1r1m5WK1L3PfBN+xULVsPyNLTeQzkUk 4cKMj2doctCsmF0kfwx0qX/LnuZT4KHkurziloDBmRAU80Ur/maWCUohLe1gXcqiFyfN G2nw== X-Gm-Message-State: APjAAAUg/6s5mol3bFy6NsMwmp/xPAMcf3iY+lul0ynxKGQyY/0fRtRO CVm72ROR4bJL2M7Mt6WNgnpokg== X-Received: by 2002:a63:f817:: with SMTP id n23mr17900412pgh.35.1561114665299; Fri, 21 Jun 2019 03:57:45 -0700 (PDT) Received: from buildserver-90.open-silicon.com ([114.143.65.226]) by smtp.googlemail.com with ESMTPSA id q63sm3889442pfb.81.2019.06.21.03.57.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 21 Jun 2019 03:57:44 -0700 (PDT) From: Yash Shah To: robh+dt@kernel.org, paul.walmsley@sifive.com, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: mark.rutland@arm.com, palmer@sifive.com, aou@eecs.berkeley.edu, sachin.ghadi@sifive.com, Yash Shah Subject: [PATCH v2] riscv: dts: Add DT node for SiFive FU540 Ethernet controller driver Date: Fri, 21 Jun 2019 16:23:49 +0530 Message-Id: <1561114429-29612-2-git-send-email-yash.shah@sifive.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1561114429-29612-1-git-send-email-yash.shah@sifive.com> References: <1561114429-29612-1-git-send-email-yash.shah@sifive.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DT node for SiFive FU540-C000 GEMGXL Ethernet controller driver added Signed-off-by: Yash Shah --- arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 16 ++++++++++++++++ arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts | 9 +++++++++ 2 files changed, 25 insertions(+) diff --git a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi b/arch/riscv/boot/dts/sifive/fu540-c000.dtsi index 4e8fbde..c53b4ea 100644 --- a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi +++ b/arch/riscv/boot/dts/sifive/fu540-c000.dtsi @@ -225,5 +225,21 @@ #address-cells = <1>; #size-cells = <0>; }; + eth0: ethernet@10090000 { + compatible = "sifive,fu540-macb"; + interrupt-parent = <&plic0>; + interrupts = <53>; + reg = <0x0 0x10090000 0x0 0x2000 + 0x0 0x100a0000 0x0 0x1000>; + reg-names = "control"; + status = "disabled"; + local-mac-address = [00 00 00 00 00 00]; + clock-names = "pclk", "hclk"; + clocks = <&prci PRCI_CLK_GEMGXLPLL>, + <&prci PRCI_CLK_GEMGXLPLL>; + #address-cells = <1>; + #size-cells = <0>; + }; + }; }; diff --git a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts index 4da8870..d783bf2 100644 --- a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts +++ b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts @@ -63,3 +63,12 @@ disable-wp; }; }; + +ð0 { + status = "okay"; + phy-mode = "gmii"; + phy-handle = <&phy1>; + phy1: ethernet-phy@0 { + reg = <0>; + }; +}; -- 1.9.1