[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5172a1fc3b249b84c1f2c65631a7a4fbc47ad571.camel@wdc.com>
Date: Tue, 18 Jun 2019 23:40:20 +0000
From: Atish Patra <Atish.Patra@....com>
To: "anup@...infault.org" <anup@...infault.org>,
"paul.walmsley@...ive.com" <paul.walmsley@...ive.com>,
"palmer@...ive.com" <palmer@...ive.com>
CC: "bmeng.cn@...il.com" <bmeng.cn@...il.com>,
"davem@...emloft.net" <davem@...emloft.net>,
Alistair Francis <Alistair.Francis@....com>,
"nicolas.ferre@...rochip.com" <nicolas.ferre@...rochip.com>,
"aou@...s.berkeley.edu" <aou@...s.berkeley.edu>,
"yash.shah@...ive.com" <yash.shah@...ive.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"ynezz@...e.cz" <ynezz@...e.cz>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"sachin.ghadi@...ive.com" <sachin.ghadi@...ive.com>,
"jamez@....com" <jamez@....com>,
"mark.rutland@....com" <mark.rutland@....com>,
"robh+dt@...nel.org" <robh+dt@...nel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"schwab@...e.de" <schwab@...e.de>,
"lukas.auer@...ec.fraunhofer.de" <lukas.auer@...ec.fraunhofer.de>,
"troy.benjegerdes@...ive.com" <troy.benjegerdes@...ive.com>,
"linux-riscv@...ts.infradead.org" <linux-riscv@...ts.infradead.org>
Subject: Re: [PATCH v2 0/2] Add macb support for SiFive FU540-C000
On Tue, 2019-06-18 at 15:02 +0530, Anup Patel wrote:
> On Tue, Jun 18, 2019 at 8:56 AM Paul Walmsley <
> paul.walmsley@...ive.com> wrote:
> > On Mon, 17 Jun 2019, Alistair Francis wrote:
> >
> > > > The legacy M-mode U-boot handles the phy reset already, and
> > > > I’ve been
> > > > able to load upstream S-mode uboot as a payload via TFTP, and
> > > > then
> > > > load and boot a 4.19 kernel.
> > > >
> > > > It would be nice to get this all working with 5.x, however
> > > > there are
> > > > still
> > > > several missing pieces to really have it work well.
> > >
> > > Let me know what is still missing/doesn't work and I can add it.
> > > At the
> > > moment the only known issue I know of is a missing SD card driver
> > > in U-
> > > Boot.
> >
> > The DT data has changed between the non-upstream data that people
> > developed against previously, vs. the DT data that just went
> > upstream
> > here:
> >
> > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=72296bde4f4207566872ee355950a59cbc29f852
> >
> > and
> >
> > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c35f1b87fc595807ff15d2834d241f9771497205
> >
> > So Upstream U-Boot is going to need several patches to get things
> > working
> > again. Clock identifiers and Ethernet are two known areas.
>
> Done.
>
> I just send-out few patches to fix U-Boot SiFive Clock driver.
>
> The U-Boot SiFive Clock driver fix series can be found in
> riscv_unleashed_clk_sync_v1 branch of:
> https://github.com/avpatel/u-boot.git
>
> Users will also require OpenSBI DTB fix which can be found
> in sifive_unleashed_dtb_fix_v1 branch of:
> https://github.com/avpatel/opensbi.git
>
Additionally, user can also use FW_PAYLOAD_FDT_PATH argument during
build to include the dtb built from kernel.
example:
make -j 32 PLATFORM=sifive/fu540 FW_PAYLOAD_PATH=<u-boot path>/u-
boot.bin FW_PAYLOAD_FDT_PATH=<kernel_dtb_path>
> With above fixes, we can now use same DTB for both U-Boot
> and Linux kernel (5.2-rc1). Although, users are free to pass a
> different DTB to Linux kernel via TFTP.
>
> I have tested SiFive serial and Cadance MACB ethernet on
> both U-Boot and Linux (5.2-rc1)
>
> Regards,
> Anup
--
Regards,
Atish
Powered by blists - more mailing lists