Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp641173ybd; Sat, 22 Jun 2019 11:17:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqz+QWATk6OrKYTd8stRT4pUphuUNnivjqc5kF5O05elp4txUr9cxRtU8+5q3s/Cs+0BFPar X-Received: by 2002:a17:902:830b:: with SMTP id bd11mr86262309plb.202.1561227442717; Sat, 22 Jun 2019 11:17:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561227442; cv=none; d=google.com; s=arc-20160816; b=lV4S7bAN/hdc6AXznKGrGw2ghW65VRyxuR+s72VeT6Un27E8myST3q/SJ7AA9Z4Lnd FCz7B1qkn5dne5vHCPXfIMUD5VdE97VwgLuPFkmm2tIGuq0pFo/Rvee68r87iz/w9uCr 6XkJrfVT6rQJJI2hivqKp0jozq4Rki2xrQsLTKhph4aqD27FzepU50OOnoe9OvY66Ivg CBQfx/+ItN4PL5uTi0tyJ4lBaVK0YcgtoOXT7J1c65tPraz7YmV9mI6Ty0npTBhEoimU 31PUQI9r/39emdyv8ACAQzF/S0//8FPMHUrBZtq/uKHNtfR+SQ/fbIPj4iRmGm8exGtz cqzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=BIcRqsgDXayymj+Ku1N955o6u3WrPmmoPvChsB+QKGI=; b=zTtTAsbHWBH038vou0hLZYVhGZ7k/HpR0QB+V21M+elMUwawHhqOH7W9Fz2F1ehQya IQB3hHcpxlUUKVVpq4VU20K9e4xuFlpx8r/fD1sODm96oNwBBzyvUcYUFdYtNX3dvjKC yFuqAFIR3x8sjrOaksiNLYXMMs+x6Zw+A6OciqIOR9pbeplBMjSvoeK/D1uMLu3ZJzDQ PSBYdJayLZT2GogjaLMV64oCzsub5iN12PlZtfJCAsCslDvl9ezQrR55U7PRaHNYEfGb flzrSm0m9fjPIGdJyFbQmWNiX+ZFEBmrcjYGT2WCm0BDWPPYHuY4MIGFTTpiaetXfJwt KZvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=at0ibNP5; 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 g90si5656254plb.282.2019.06.22.11.17.07; Sat, 22 Jun 2019 11:17:22 -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=at0ibNP5; 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 S1726350AbfFVSPg (ORCPT + 99 others); Sat, 22 Jun 2019 14:15:36 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:42435 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726299AbfFVSPg (ORCPT ); Sat, 22 Jun 2019 14:15:36 -0400 Received: by mail-io1-f66.google.com with SMTP id u19so2346614ior.9 for ; Sat, 22 Jun 2019 11:15:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=BIcRqsgDXayymj+Ku1N955o6u3WrPmmoPvChsB+QKGI=; b=at0ibNP5XuqFVFVIo8SswkbJu1g6jk8r4zMQhu18QrNYqV66ulyKPfysi4MW+yonvu dSVYNeWEFEX9BVtKTOvAMRyvH0EUZIk246vNZYA1OmjwXfYbNN2Zx1mpz2Typjt7Yu5a QoRG/aWeaGtoScqn+wmzvpoTblze7EvD/iuLH8xvm5jfDA8BqBxqPpo9WIhJZ2PTLJtn jtR9skmCSNbjwJecOoeNa038Zdc09KlKcqbZKyVRdIFoBs9vcGfcI5+MNb4qwgU8owI6 eycrZ0b5e0qh+ske1yf+RUenwv0Ip5i7dx18JtxGhu/GAzja8We3mYXAhtw5T4kLyrWP ivbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=BIcRqsgDXayymj+Ku1N955o6u3WrPmmoPvChsB+QKGI=; b=SAKHU934eKY7gKep4FHCNgS4szVnIXlJjH50OCNQmcBM7uqKYpysXwIXsh9bLsNTms dwsHc5sxrTv/cCNc7OACIlpfGZzKc2BjK0hl+xdeKMcDKec8y7kbzYZvAwhcHMm0AaHd VhWa9bNLAfutXRMOibfrliAtf2EJzMrwNDy/89ZfVtolkUeb1ns+UNvHqdtHVj4gok73 XSGd/qcaS0QILa3FqrSC9XZ1zjo3ljFk+A1r0TUDGkK1rXSej8b6+Q9DQWi7C/Dq/Sbh OssgR/3zc8xL7Ie+28XjoZCvRx4P2XM1z5uN/U8ZOrK+5JV7CGMww50nZ5N3CsrQTRzz 8b5g== X-Gm-Message-State: APjAAAUasU0pLILTNT/0GxVxF/zuiawHM3NfaTaYKtvCBAVDvQn/WMLd ahhzFp8Xrdt+JYa+lzsRGztcmQ== X-Received: by 2002:a5e:da47:: with SMTP id o7mr8936752iop.83.1561227335113; Sat, 22 Jun 2019 11:15:35 -0700 (PDT) Received: from [192.168.1.196] ([216.160.37.230]) by smtp.gmail.com with ESMTPSA id l11sm7667385ioj.32.2019.06.22.11.15.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Jun 2019 11:15:34 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: [PATCH v2] riscv: dts: Add DT node for SiFive FU540 Ethernet controller driver From: Troy Benjegerdes In-Reply-To: <18c7992607dd1fed062bd295ac0738a759eff078.camel@wdc.com> Date: Sat, 22 Jun 2019 13:15:33 -0500 Cc: "paul.walmsley@sifive.com" , "linux-riscv@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "sachin.ghadi@sifive.com" , "palmer@sifive.com" , "aou@eecs.berkeley.edu" Content-Transfer-Encoding: quoted-printable Message-Id: <24385C38-D1FC-46B0-8AAA-0FB0B371784A@sifive.com> References: <1561114429-29612-1-git-send-email-yash.shah@sifive.com> <1561114429-29612-2-git-send-email-yash.shah@sifive.com> <18c7992607dd1fed062bd295ac0738a759eff078.camel@wdc.com> To: Atish Patra , "yash.shah@sifive.com" X-Mailer: Apple Mail (2.3445.9.1) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Jun 21, 2019, at 2:14 PM, Atish Patra wrote: >=20 > On Fri, 2019-06-21 at 16:23 +0530, Yash Shah wrote: >> DT node for SiFive FU540-C000 GEMGXL Ethernet controller driver added >>=20 >> 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(+) >>=20 >> 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 =3D <1>; >> #size-cells =3D <0>; >> }; >> + eth0: ethernet@10090000 { >> + compatible =3D "sifive,fu540-macb"; >> + interrupt-parent =3D <&plic0>; >> + interrupts =3D <53>; >> + reg =3D <0x0 0x10090000 0x0 0x2000 >> + 0x0 0x100a0000 0x0 0x1000>; >> + reg-names =3D "control"; >> + status =3D "disabled"; >> + local-mac-address =3D [00 00 00 00 00 00]; >> + clock-names =3D "pclk", "hclk"; >> + clocks =3D <&prci PRCI_CLK_GEMGXLPLL>, >> + <&prci PRCI_CLK_GEMGXLPLL>; >> + #address-cells =3D <1>; >> + #size-cells =3D <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 =3D "okay"; >> + phy-mode =3D "gmii"; >> + phy-handle =3D <&phy1>; >> + phy1: ethernet-phy@0 { >> + reg =3D <0>; >> + }; >> +}; >=20 > Thanks. I am able to boot Unleashed with networking enabled with this > patch. >=20 > FWIW,=20 > Tested-by: Atish Patra >=20 > 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 [1] https://github.com/tmagik/freedom-u-sdk=20 [2] = https://github.com/sifive/HiFive_U-Boot/blob/081373fa3eb0ca79ba3f4a703e8e8= 3a15135a6d1/arch/riscv/dts/hifive_u540.dts#L73=