[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJ2_jOGWFaw6G6vjbfz9rwa3jceL0kmykM4B3zLhu0V+qBVZvw@mail.gmail.com>
Date: Fri, 21 Jun 2019 15:29:20 +0530
From: Yash Shah <yash.shah@...ive.com>
To: Anup Patel <anup@...infault.org>
Cc: Rob Herring <robh+dt@...nel.org>,
Paul Walmsley <paul.walmsley@...ive.com>,
devicetree@...r.kernel.org, linux-riscv@...ts.infradead.org,
"linux-kernel@...r.kernel.org List" <linux-kernel@...r.kernel.org>,
Mark Rutland <mark.rutland@....com>,
Palmer Dabbelt <palmer@...ive.com>,
Albert Ou <aou@...s.berkeley.edu>,
Sachin Ghadi <sachin.ghadi@...ive.com>
Subject: Re: [PATCH] riscv: dts: Add DT node for SiFive FU540 Ethernet
controller driver
On Fri, Jun 21, 2019 at 2:31 PM Anup Patel <anup@...infault.org> wrote:
>
> On Fri, Jun 21, 2019 at 11:40 AM Yash Shah <yash.shah@...ive.com> wrote:
> >
> > DT node for SiFive FU540-C000 GEMGXL Ethernet controller driver added
> >
> > Signed-off-by: Yash Shah <yash.shah@...ive.com>
> > ---
> > 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@...90000 {
> > + 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
Powered by blists - more mailing lists