Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1257435ybi; Fri, 21 Jun 2019 17:33:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqzbUFA5w4USYi/M6SHGSZyjeAtB2FRBpmuwMKAnk7kWXWd84jbTeJaQXvig8oTZ+Dyli8RW X-Received: by 2002:a63:4e10:: with SMTP id c16mr20707946pgb.214.1561163630925; Fri, 21 Jun 2019 17:33:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561163630; cv=none; d=google.com; s=arc-20160816; b=F4YQAhXrMnAC3L8PTNt6XBqa1cCM4Utrm9eJ5DU11Ld3OawCRO0pmsLqxmY+dWptFO EN4Z45fvLSARctT9JGqJzIHBDTvVLKoNVCZ0UZsP0XxNVsqvH1bwwF29E/71PpOgukLZ +UdNpoe+7SEy7AuB+R1cYv2mVLZiSzxF96e8Po17QDgQMup9SCHZR2bpNioQEdIgaURg SCqBhAvFEonkHhn29eIOOXEcEllH3ir5TsAkAHw54Pc162go321HnLf6qP8nwQKuSBN+ Q+z/gNoPFq4YkKlt+W39oP7gzHHyjJkoxw4EgLBE8tAftcvH5fdZ8OYiSDJg8IKMyNv9 9xBA== 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=NHLr//yQH3FibWWGf0VOdOavz2CGejgKb89IUY1MXFo=; b=vkq4M5ZnWRRVMaEQGQzu39ylfkApyo9q8NPsvTtlmXK21l4UE0zcZa6rVYeGzeCEY9 7ns5CRtVXH6cIgd9OPnVBlqJWy1LNGw65jsIv3QMsiUau7KGUZpXqyO0W0kVzJPkC6eE 6xuICkGRmtECqRdlCsIlExNDi8JHddlg72V+Iw3TtbBanlr9zddK4WDLlCQEGhUhhbUM vmro1H/1KItNZeopejDe56p4k/uqipzs/kGwtwmoyeG/rX3JeaTXop/IPcEc0t8CAlDk /Pb85OO0WrZHU3RiN0i/W72/3SvHrTyZC6+mEmfAYMfvh6+XQ2fLIP7mKNWU2PaTXld4 VKxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=Qrs+9teS; 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 e4si3900342pjj.34.2019.06.21.17.33.34; Fri, 21 Jun 2019 17:33:50 -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=Qrs+9teS; 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 S1726307AbfFVAdb (ORCPT + 99 others); Fri, 21 Jun 2019 20:33:31 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:45393 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726259AbfFVAda (ORCPT ); Fri, 21 Jun 2019 20:33:30 -0400 Received: by mail-io1-f65.google.com with SMTP id e3so5219175ioc.12 for ; Fri, 21 Jun 2019 17:33:29 -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=NHLr//yQH3FibWWGf0VOdOavz2CGejgKb89IUY1MXFo=; b=Qrs+9teS7UTpNo2fGNSwnTnrhefMfzdW8D6HsbxK6k6IJ3rUcPChijTddejlho5w0k lNhWWeMdKb7GSy5o9Wt/kZH6YUAlxG5bwjlHgjlqtwbYNjFgmSFrDySBkOH8VYiLFVog BUPhcxeEr/MaJIiquLdplXElopUWHZT3bPTFr3cfFG7EfzGovHA9gRfEwdKuPQO5UqZu MKDfFUcB5ltI9K145I5ktm68luneLChPyFgiorD4CMrNLC4j2MXFJEY6M7RjX9h3ctgo 48HG7QRrtcb37BD1k09Gw1yi3BKlSuxuaYLYXCYNDTE0B/XoRndnGTAMYA4ERncr/HxK dazA== 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=NHLr//yQH3FibWWGf0VOdOavz2CGejgKb89IUY1MXFo=; b=lRnaD+jwD0YEGUbRoLhtOa9KrE99H7t+BxvO6vDr20grj+mGGzBNTmX7qtoG7a9EXB ATK9B8XPPR+exWObYKzo0RObZ22ciVFql8sgf2HY1xIJaTZ/SRnIVqtx+2BJqYfwljVe E5nLZxFksoC/VhSTceOTuCojpvNYKlZzh+lXI/8W0nNByMUKJN4EXmQ1kDXc1Vbeo/qn WXRpF71VHl5UB1s3vneapGTIXy1dJuowyDKFXQQXOrISkhzPxE928/m0cZL1aVOVBemm 4TyIr46PLAQiq2GkjitosKvor9QvQVz8j+nhn5MpgQbN0K4u0+ZBs+rE1k8QfXCWpeqW 2cHQ== X-Gm-Message-State: APjAAAXysRjgK8uVcL5xynyNb6ObKNGQExrZcc7ZQvAWWNZnEYrKPsUF A+QjcAmKCMzJ5P2P1b8pLFGssg== X-Received: by 2002:a5d:9c46:: with SMTP id 6mr3383520iof.6.1561163609280; Fri, 21 Jun 2019 17:33:29 -0700 (PDT) Received: from [192.168.1.196] ([216.160.37.230]) by smtp.gmail.com with ESMTPSA id q13sm4895543ioh.36.2019.06.21.17.33.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Jun 2019 17:33:28 -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: <43da99709709d2a480b78f25356cda9255205372.camel@wdc.com> Date: Fri, 21 Jun 2019 19:33:27 -0500 Cc: "linux-riscv@lists.infradead.org" , "sachin.ghadi@sifive.com" , "devicetree@vger.kernel.org" , "paul.walmsley@sifive.com" , "linux-kernel@vger.kernel.org" , "mark.rutland@arm.com" , "aou@eecs.berkeley.edu" , "robh+dt@kernel.org" , "yash.shah@sifive.com" , "palmer@sifive.com" Content-Transfer-Encoding: 7bit Message-Id: 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> <3f91c8032e113a19dcec10ca71b017af1427ef7e.camel@wdc.com> <43da99709709d2a480b78f25356cda9255205372.camel@wdc.com> To: Atish Patra 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 4:59 PM, Atish Patra wrote: > > On Fri, 2019-06-21 at 14:46 -0700, Atish Patra wrote: >> On Fri, 2019-06-21 at 14:18 -0500, Troy Benjegerdes wrote: >>> Can you post the fsbl and other images you used to boot/test this? >>> >> > > Resending it without the attachment. Obviously, the mail did not go > through with the binary blob attached :( :(. My bad. > > Let me know if you still want me to share the binary with you. I will > probably share it via some other method. The bl came through as it was sent direct to me, and I can deal with the tftp config manually. I have a kernel image, but not the boot.scr.uimg that it looks like you are using. Is that from Yocto? > >> I have not changed fsbl. It's the default one came with the board. >> Here are the heads of OpenSBI + U-Boot + Linux repo. >> >> OpenSBI: cd2dfdc870ed (master) >> U-boot: 77f6e2dd0551 + Anup's patch series (v4) >> https://github.com/atishp04/u-boot/tree/unleashed_working >> >> Linux: bed3c0d84e7e + Yash's Macb Series + this patch >> https://github.com/atishp04/linux/tree/5.2-rc6-pre >> >> I have also attached the OpenSBI + U-boot binary as well. But this is >> pre-configured with my tftpboot server. You need to change that. >> >>> I keep running into various failures when I build from source and I >>> want to rule out potential hardware issues related to clock and/or >>> ddr initialization >>> >>> On Fri, Jun 21, 2019, 2:14 PM Atish Patra >>> 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 >>>>> --- >>>>> 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@10090000 { >>>>> + 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 >>>> >>>> Regards, >>>> Atish >>>> _______________________________________________ >>>> linux-riscv mailing list >>>> linux-riscv@lists.infradead.org >>>> http://lists.infradead.org/mailman/listinfo/linux-riscv