Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp480868ybi; Fri, 21 Jun 2019 03:00:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOqs+J2wZEPGAIBDsKPKDneUxJmwmGumjjMZfgs1iZtjgF+nSZuoga3d9J5bbQcmWvs3UY X-Received: by 2002:a17:902:86:: with SMTP id a6mr64830280pla.244.1561111246450; Fri, 21 Jun 2019 03:00:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561111246; cv=none; d=google.com; s=arc-20160816; b=ubjlraZtBWEicgCCV1gQpJpJBvQyBATADuqfHUCywv7V56m7cH16OSU06+PcIsLrZ+ no8ALIPJk9N0lIb/uBv6LzrpazkGr9nyDK7bOXocZ6sK/IvffUFLc48F7kWwCDQ0QDle 7ZnuG5qBMLHxNuve3Q1nYBMD9QGxpxr8bwS1JxQVaSoJmZFkdUmvD7i7kpAnZDxLXwrw bCDvSbcNbMEEmFnJ84dzLXll8UmO+Xt6LodRgd9NSEq7sXWdiD8WXvn4PhmwweRR7bZR yGS116sDPXCxok06XLBVgQf/06ziZ+N+HiPRMAU4ppwWz3xa5fuM7lsx8pHEoxjTF/31 dMfw== 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=97030ehdzrNq8foq07+AWlHk1qrrPe5jsC3Gs0TUlzM=; b=wcKrNFldcTK+iAYnNmUL7RL89xiw+AHYQqS3xaMr/XUBdanG1uzyzuTN5GrlvNkdEh qDPOhRNrCaimTWFbXrMoWuwJ4X62UmYJzsKmlp+tQhhdbjDf9HyVlNjPhdPzCS72j2BR L9ptOD0Bv2S/Lai9n2GWIQq1KnPidKT27K1zY1b4I6Ee+jOaJqQL4OzdjqUa0OLPn1DU 2lLSpSEKyU5pWYVEP7iLTX/w4OXg7Ojls7e8aucQayE0SblCO7tUy3NWIomqWvf+9BYc qNKeuEyqFljTvetzD7zM/bQdKIZQfG2L3GPm4+6O1KqS3BPS846togbSN6uqgPhN0c+q wfgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=HVP6sfaP; 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 x2si2406474pjp.105.2019.06.21.03.00.30; Fri, 21 Jun 2019 03:00: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; dkim=pass header.i=@sifive.com header.s=google header.b=HVP6sfaP; 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 S1726511AbfFUJ76 (ORCPT + 99 others); Fri, 21 Jun 2019 05:59:58 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:35057 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726210AbfFUJ76 (ORCPT ); Fri, 21 Jun 2019 05:59:58 -0400 Received: by mail-lf1-f66.google.com with SMTP id a25so4614500lfg.2 for ; Fri, 21 Jun 2019 02:59:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=97030ehdzrNq8foq07+AWlHk1qrrPe5jsC3Gs0TUlzM=; b=HVP6sfaP9Gc2v9i5Jjb8nzD8V6DHQyvjJiS4s0FEPn47BcAFqzpye5nAY7ylHt5pKF LvmU5+g67BbcvhGBPiJP3Ff4UIrRJSEgC/sv9ePTwhltpbmaXhQfgGjfwAkaXu1QkKps yZYBpzw5RAIMJ1yZvkikCYw7YRkR+g5qJm82SMVIa+frJXh76qD9japXT2/dQrnWMoEB nlrA/FhwXjnJn8MKpOOX15Ix1Yzf19VGV+rs3wVUqSdi7//UKJBEytIkmxVmPReVzn9p ApMOZn+Yp3652PGvQrz7phLyT0vTGenI1AuXrRsae8IMbmBhidNTTYm98nzaVHt9eL25 rFfw== 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=97030ehdzrNq8foq07+AWlHk1qrrPe5jsC3Gs0TUlzM=; b=JZdaxwfVKt5h9N4ZfHv5zC84yL0CwsCcFOS6mXj5kWynm3H3kilgMdAHEMr0xrejGp fYqnHcxikRF3Ui4xTCmgoIL25A3oWwo9tg9lPNJNOywCV+HhTUYooYfQCWH9XB5CIg3/ ysdbFOslrPrQYC4XqF4WDMwihGQ6rzYX5vTSJYVOwZMVuwY0alCcx+0+/heKWS7KvDTb cZHVGJX480SO98+jVJeIQLKm72PFVhxRpgjcmrfEIVe/ty25d3M+9MtcNePKcF7uchZ0 tjahVEhplYgwCSNJlCZ9ISLkgBKIPI5qrUisQKpCL0ympRn1soPfluZwqKv+MgdeIjSf 3VHQ== X-Gm-Message-State: APjAAAV7Q50M5l05pHvINcsdniMcpwJDtgDHPhNB7gkvwOHYacZuyArv w92w6R7/SaTqPSlHO5NYcw2xm/1SQ4domj6ntS1ozQ== X-Received: by 2002:a19:5046:: with SMTP id z6mr20312857lfj.185.1561111196510; Fri, 21 Jun 2019 02:59:56 -0700 (PDT) MIME-Version: 1.0 References: <1561097422-25130-1-git-send-email-yash.shah@sifive.com> <1561097422-25130-2-git-send-email-yash.shah@sifive.com> In-Reply-To: From: Yash Shah Date: Fri, 21 Jun 2019 15:29:20 +0530 Message-ID: Subject: Re: [PATCH] riscv: dts: Add DT node for SiFive FU540 Ethernet controller driver To: Anup Patel 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 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 2:31 PM Anup Patel wrote: > > On Fri, Jun 21, 2019 at 11:40 AM 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 | 20 ++++++++++++++++++++ > > 1 file changed, 20 insertions(+) > > > > diff --git a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi b/arch/riscv/boot/dts/sifive/fu540-c000.dtsi > > index 4e8fbde..584e737 100644 > > --- a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi > > +++ b/arch/riscv/boot/dts/sifive/fu540-c000.dtsi > > @@ -225,5 +225,25 @@ > > #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"; > > + local-mac-address = [00 00 00 00 00 00]; > > + phy-mode = "gmii"; > > + phy-handle = <&phy1>; > > + clock-names = "pclk", "hclk"; > > + clocks = <&prci PRCI_CLK_GEMGXLPLL>, > > + <&prci PRCI_CLK_GEMGXLPLL>; > > + #address-cells = <1>; > > + #size-cells = <0>; > > Have status = "disabled"; here and have > status = "okay" in board DTS file. > > General convention for any SOC device with external > connection (e.g. ethernet, SPI, SDHC, SATA, PCI, etc) > is: > > 1. Define only device DT node in SOC DTSi file with > status = "disabled" > 2. Enable device in Board DTS file with > status = "okay" > 3. Define PHY or external PIN connection details > in Board DTS file > > > + phy1: ethernet-phy@0 { > > + reg = <0>; > > + }; > > The PHY DT node should be in Board DTS file. Will move all PHY related nodes in board DTS file. > > Of course, same comments apply to SPI DT nodes as well > but I missed reviewing those DT nodes. You can send separate > DT patch to re-organize SPI DT nodes. Sure, will send a separate patch for SPI DT nodes as well. Thanks for your comments. - Yash > > Regards, > Anup