[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <24385C38-D1FC-46B0-8AAA-0FB0B371784A@sifive.com>
Date: Sat, 22 Jun 2019 13:15:33 -0500
From: Troy Benjegerdes <troy.benjegerdes@...ive.com>
To: Atish Patra <Atish.Patra@....com>,
"yash.shah@...ive.com" <yash.shah@...ive.com>
Cc: "paul.walmsley@...ive.com" <paul.walmsley@...ive.com>,
"linux-riscv@...ts.infradead.org" <linux-riscv@...ts.infradead.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"robh+dt@...nel.org" <robh+dt@...nel.org>,
"mark.rutland@....com" <mark.rutland@....com>,
"sachin.ghadi@...ive.com" <sachin.ghadi@...ive.com>,
"palmer@...ive.com" <palmer@...ive.com>,
"aou@...s.berkeley.edu" <aou@...s.berkeley.edu>
Subject: Re: [PATCH v2] riscv: dts: Add DT node for SiFive FU540 Ethernet
controller driver
> On Jun 21, 2019, at 2:14 PM, Atish Patra <Atish.Patra@....com> wrote:
>
> On Fri, 2019-06-21 at 16:23 +0530, Yash Shah 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 | 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@...90000 {
>> + 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>;
>> + };
>> +};
>
> Thanks. I am able to boot Unleashed with networking enabled with this
> patch.
>
> FWIW,
> Tested-by: Atish Patra <atish.patra@....com>
>
> Regards,
> Atish
I am able to boot using a build from the dev/new-dts branch of
my freedom-u-sdk development tree [1] which has this patch
with an additional reset-gpios entry for the ethernet phy in the
DTS provided by the legacy U-boot[2].
Tested-by: Troy Benjegerdes <troy.benjegerdes@...ive.com>
[1] https://github.com/tmagik/freedom-u-sdk
[2] https://github.com/sifive/HiFive_U-Boot/blob/081373fa3eb0ca79ba3f4a703e8e83a15135a6d1/arch/riscv/dts/hifive_u540.dts#L73
Powered by blists - more mailing lists