Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp430187ybi; Fri, 21 Jun 2019 02:04:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5LzWqCKBb2wJ3n66Varkbqdh1slJIaUOXoT0o/cYUmVrcVsu5+z9P5Lt+BpQxHuneUOBB X-Received: by 2002:a63:5c19:: with SMTP id q25mr17598478pgb.215.1561107855046; Fri, 21 Jun 2019 02:04:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561107855; cv=none; d=google.com; s=arc-20160816; b=WqEsrFsPCp4sVN+g0zEhCSMbTKPDr7ODoFw3Q6q5ldzpfZQ7TbGwyG1GiiFpX6oMeR MncsiQ8L/ORJTeDHMP/+dQfzIK8HFX7JY3ogWP8fqmJrh8WogHiYZ+N1LBuC4RUmzza4 54XI4qzQDjHusOX3sh2IBJLGx5K0d3SEvcHRrvpnFT65Vo8eoW48jQFhnhg2RMPySebx sT31SOPEUqXzF+4Y2aG/6Xoh8SAzulDIwBmpfGSsaIJogs1qKRm+e76PMkLJ9d55KzXh riRPGbAtFE2wWypMxqUdxfcLD8ILN5/886PfAIf2MP83nA4TlZ6s4Dzw7mkoJmERTHrx ratA== 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=PhJ5lM9SlnKYa02k5MazR2be+0vjCQ5zI7j0EPBUS+8=; b=eSAWQkddzq3SwFfrsCxMJtZ1PYK3KHYQmlzUDkFAdXrH6O2SpAMCSODvIzIMrHL+hG RmVz97mR4dOWY9nR9grjkZSjixxcgmNtGcNd73gxerGWxLda9cqK6JP2eb8oC/D5DeDh Uj5zCSDtXsG/I4X4fZL7zM2x+e+S21AhFMpcmhonBdpNsUV3PV6Ruw7RMG3tIn8Czcfd HtjfsryVKMNHC6ksC7hfyVsHhi6+oT1YkP/HO43xx5QRqzWvvoYygTgcGubUr+fAtSf7 x1qRWS2Y2fp96rBI9jyKxajF2Hip+6b6Q9LngVEUlPNJ1kwf8Z7pE8kjZ5vdLj2MDSaE vAqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=O+sP4P2d; 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 v19si1930841pgh.510.2019.06.21.02.03.57; Fri, 21 Jun 2019 02:04:15 -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=O+sP4P2d; 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 S1726390AbfFUJBg (ORCPT + 99 others); Fri, 21 Jun 2019 05:01:36 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:46089 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726045AbfFUJBf (ORCPT ); Fri, 21 Jun 2019 05:01:35 -0400 Received: by mail-wr1-f68.google.com with SMTP id n4so5721188wrw.13 for ; Fri, 21 Jun 2019 02:01:34 -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=PhJ5lM9SlnKYa02k5MazR2be+0vjCQ5zI7j0EPBUS+8=; b=O+sP4P2dWSo99F+WM+aneeiKuNCkGrHe0jBV/hU1Wk+iZFjbunHTPxPqH5idH8e8EJ HDbIrEdt+maab64kQ+MXFytkNwk0t7QJxiXrpMXe4YyDS5+FOUeiH2NFPqHKTd4ZI/X+ KhkJHMUD4JBbhLUNqpjzSOR+6iEjHZAbgkOg/NxfBaBC6GbGYVcFTz2FFHlEXeqkZtKh WGCwa30qut6W2U0M5dhJzttoIJQcKNRwHn5UMpGxA/fQ1Kp2Eqiuz8HyKnj08ZIUM+HF dJKz/LliHBOw4iz8Y13dCH1V2yMgHecTVxviU0bPYTLgKb/T5AuXb9ZGQ6jYQN5n/DRs 4phw== 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=PhJ5lM9SlnKYa02k5MazR2be+0vjCQ5zI7j0EPBUS+8=; b=GSpx2lEHfPesEHX8rDM+TXI9L0Q3hb+OeEKhwSKqDW0lV6rsFAKoUVB+tnSR6+LUmQ 8TlVU4nU0DSL6yVeowxXzDz0Qz6a4dsMXlqVxjze2NIRjmJrWah7tIOJ43h+h6LtcHdE TEcTSm6RrklttRKUC50F8Hb0iUy+QGuQEf0I305xqoM5p1oHdJvc/zkg2wBn/xW9uk8G lYp9q/F9vjNBTr0cWG4wloVOjq/T8uSqO40DI+VBsbHryRmsmiqFtQWl8NxgMS8eWPBe K+850hbFIfgbcQ8J10e7OuV5uRo9DIf2l/Stkvp1hSbemHtqcAgQvR94XRd9Tws9umC1 mK6w== X-Gm-Message-State: APjAAAXQxPHrkSz6zePad+/tbm4cY6dliS6jRbzGpAA96zsbgBbpkmeW J7+c5GqxwWpzpCMbq4PMFB0jMR9STPsd/Q4wceqwmA== X-Received: by 2002:a5d:5448:: with SMTP id w8mr62546020wrv.180.1561107693128; Fri, 21 Jun 2019 02:01:33 -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: <1561097422-25130-2-git-send-email-yash.shah@sifive.com> From: Anup Patel Date: Fri, 21 Jun 2019 14:31:22 +0530 Message-ID: Subject: Re: [PATCH] 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 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. 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. Regards, Anup