Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp557524ybi; Fri, 21 Jun 2019 04:21:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqywriRxPhE1WfwizRuL06E2hsCdVHghZyxq8kNXg3YlWWcXeAAIWLSFOOCnHWzu7YHzj7Iq X-Received: by 2002:a17:902:be10:: with SMTP id r16mr67756146pls.294.1561116117577; Fri, 21 Jun 2019 04:21:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561116117; cv=none; d=google.com; s=arc-20160816; b=GJQ7jMTy4A9wsACpx1vm2dnEt5RDhSmjVYwUHTatLb/FHWSLscTbT7mJcNpKxQ43aC srd0+k7HLILrjPcjp+nhd6FmKjSzF8DtsEpi8jMCVsHWXqMhvmj2UnUwHMOcBMxBuRf+ tOlvaAaL42n7HTCOsUzY9eU8gvqjslB7T9vIjstMHe5f28QG9kW8JLl+V1qMbVXNkObZ 0G8gf59vkwNyT1qYYjUfW63zsOeu3hyrU3j0qJ4R3symQTXv8heyWBDaGan0t3rYsx5z nV3rL9g5jUgEDEtdoNib/5Bzr8Vv1KzyG8wWwS14jpVdG4gA2V58COcdFcyVCdn7yb1D uD1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=XAz5+1ZugVE5GkUQUctoaFL1CCKytfPvugsjxndG7cg=; b=UvZx9PhGtSclg1HgUKKuYRwo4XVIToo1bO5NpJxZHn0mKtjP2aD3QvsWNIH/zz433l sUpUp7Rl3zAbD0VqA5EjXw/nKx2A+dXAxbeRni6m6mTtaPCYY5vaAnVAfFU1102kz1lr YcZV6p2hYZDweVlrqU9Gea5Tw525fSYAVWXOjr94TqhlNUENHzSvuIFTAjFLbEZnFRA9 Pd0fbC3jHG7SQcJWEAetwF11c+2eFTqIJ8Xh353Ahm0TImyFu4HobQxjcsVAHk+XtStE nt48za7hJPnKVXZgUO3bhbolq3hpFIblKGfj2CYuqeu2OA1chPxSWQgwbZj4nikASU4b VHqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b="tto/SWz3"; 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 m24si2188561pgj.127.2019.06.21.04.21.42; Fri, 21 Jun 2019 04:21:57 -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=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b="tto/SWz3"; 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 S1726525AbfFULVL (ORCPT + 99 others); Fri, 21 Jun 2019 07:21:11 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:40175 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726232AbfFULVK (ORCPT ); Fri, 21 Jun 2019 07:21:10 -0400 Received: by mail-wm1-f66.google.com with SMTP id v19so6183429wmj.5 for ; Fri, 21 Jun 2019 04:21:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XAz5+1ZugVE5GkUQUctoaFL1CCKytfPvugsjxndG7cg=; b=tto/SWz336iwBga4qSfNB9bs/TG22rJdxD0IgYr48cvF+K3ateyntpV/dUlyNZDL61 ZLmokGp2bumZ7ODNLi9hYawLy0ew4Tk4C8HYpY1KSFzvlUZ0JQy8pe5muHT9SrWzTdQB yS9mlZ5DdniDCQDobAj8u4NHQNZWlHRXhQOTnjF6h9uk3/UQGqKgWVLKuVyeh4FolkiB XsndbKlT3d5S3p5Tuq6uyLwJrbLlRk6APCom3X6vj3bR+ZP6fvBER+KgTzvkADIwJFj1 NDW4ZTD04S0vvZS9mhTv5HU6C8OzFt/MmxYbz6ppjN/DcMTLKCClTY084IXbfdw9Vlke n89A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XAz5+1ZugVE5GkUQUctoaFL1CCKytfPvugsjxndG7cg=; b=MCoiIrzlO0URNnX8oOcmS//Zo5Jr6MsCu7CKUORcAkDywS36/yMxu1iABkug5FZaKl Nz+WBIhyMDIIQfQOzsgBtwLtgwMbe10LNPCH54QoQXc3VZPBf7X3XTbGgq5AELvaSUTH o0Zu8tU+hLfAU/l38+ANkBtM7DECSkSofsIVAx1uRkbiJMmNLIOZQ3x/I2EqawkZIXL+ 601Oiq+LRpd/tKOWl4BpkRJtX3bF29Tl7SBlC8+TTXPU+0AQGrdSTiozURS6YYhis1x6 qmWq9zGtCncsFBAQRnPgsYxVWpLidUAPtKCo8Sl/SiYGBC12sGv+FY+6Mx4nraQDZKHf Y/9Q== X-Gm-Message-State: APjAAAULgzYD64zqMbwh1Aq+EIQDDhri2hqlGG5dtBt5EBVdfy2fzMIi yqEHBRR2RIT7+k8bJ620lojiUzz/OVM3sx4FS5xMAQ== X-Received: by 2002:a1c:2dc2:: with SMTP id t185mr3889348wmt.52.1561116068934; Fri, 21 Jun 2019 04:21:08 -0700 (PDT) MIME-Version: 1.0 References: <1561114429-29612-1-git-send-email-yash.shah@sifive.com> <1561114429-29612-2-git-send-email-yash.shah@sifive.com> In-Reply-To: <1561114429-29612-2-git-send-email-yash.shah@sifive.com> From: Anup Patel Date: Fri, 21 Jun 2019 16:50:58 +0530 Message-ID: Subject: Re: [PATCH v2] riscv: dts: Add DT node for SiFive FU540 Ethernet controller driver To: Yash Shah Cc: Rob Herring , Paul Walmsley , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, "linux-kernel@vger.kernel.org List" , Mark Rutland , Palmer Dabbelt , Albert Ou , sachin.ghadi@sifive.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 21, 2019 at 4:27 PM Yash Shah wrote: > > 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 > LGTM. Reviewed-by: Anup Patel Regards, Anup