Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3545785ybi; Tue, 18 Jun 2019 02:33:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqPRI9U6qM9wMQq9qBFK+wXP5Z6RWyNe6AAPa1kIRvYKHeU84GVjEoqzxnHRYC2gIcrNmU X-Received: by 2002:a63:1658:: with SMTP id 24mr959954pgw.167.1560850404589; Tue, 18 Jun 2019 02:33:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560850404; cv=none; d=google.com; s=arc-20160816; b=jRI31wW0Fy8Q+M8ULD44qcSMqO2Rm8cNTx3143bxXBzeAUmeFKfg1vTtUjI0+OPLpr cMvWYZW6m4M6MOBa5iIEpo05D/dlt6Kc+nWDwxn0oj5aJ/9pXN83Q80yaBoqKB/wwXPd hpnUDbCFmjvUBTbuyXd2CgtlYBAVjtfYO5H1AwTV7mXrXLmx8bc+o1pSGRb7n+wYtnvt Zk6p7PX9jyVJUe+7j0UqtmCdAUbRyTmtG6pboK+ixzxXKriRf1FSl0uGrL/YsMkbBwNy iM1IV58EYEy/dCHCMaVe2dnboA1KgP5e4ghlfUs1dkE4z30VS9yPQjo3x63qvC2+Mj7U l3Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=6krmeNN+08w4aZmGNN3h+dlYsILeKrK5WU7Jp0wdoWs=; b=d/RWus0nQTFBQvpqHkxjKJqVhdLf5iU4Wu1+nfIjvqRl+SaFERCk6OMkrDJFijXVl0 djfh8W74/ezwWaTwPeNEGkVaJ0EP+udcgHPz+iIyfP+g7JEhrGGs57gYeEWgjk1jRihR 9RQgmFWgeMbORxNzT9qRwnTxXN3zoI8TiBqgvx7tHeQC4W5b4Wj8SUDQxZ5buepv0bLl 01vuuLOvsHlLoG6C40SLmT3p6+4hVyv5IfH5P887tFb3ryHwOKYwJffagA5dW6oXZmXF DGiJia+YvKOz4hWkogISpJmkUvBQ8HmXOcla4lQPxFYUXYSfCTzdfNT+1Les54mXsIVD aJQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=NdnjhosX; 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 u16si1869444pjb.15.2019.06.18.02.33.08; Tue, 18 Jun 2019 02:33:24 -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=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=NdnjhosX; 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 S1729488AbfFRJc7 (ORCPT + 99 others); Tue, 18 Jun 2019 05:32:59 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:40025 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729476AbfFRJc7 (ORCPT ); Tue, 18 Jun 2019 05:32:59 -0400 Received: by mail-wr1-f68.google.com with SMTP id p11so13156188wre.7 for ; Tue, 18 Jun 2019 02:32:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=6krmeNN+08w4aZmGNN3h+dlYsILeKrK5WU7Jp0wdoWs=; b=NdnjhosXFrDiWKVkMzKrfuNnC4Dzu8CXW0FOJhJgeETdUkVYW1kmRX9Y2dF0JenWQo jXIjUlYZgbzF8baHW5adsWSgLUVfRGFI26MuHrwvDUsVgjh8Bn9D4vD7SozM9cWf7Yiz 3P4oG3EoIiDEJ9k+bI6a6BkrbvV17DLryVwE/Oug5eOUnm2aM583waVttWPa8TjvrtKq y+1RovbIJ8UE55anfWKi0ffEjhAsMvYbmPXiedZ9ogzxQSX9ChNvHXBQMoPD7P+rEVFq wNQQpMKkIsMoSt6aSRQ1LwSEidwNtCwvdMA5jnNc9IeiwzqKcm/hPLypyIfVRHnjErGh jNjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=6krmeNN+08w4aZmGNN3h+dlYsILeKrK5WU7Jp0wdoWs=; b=NTBWPRDco4UAwgf1u5UpfTXOliHz9+dEx7uhcghc1XcG+XB9Nl0JV4QgTFqJyuVjzU ui7fA93NIy5izuz4x5QVrmeqVruam4pFfJi1FV4m9cieUXLOIg/njc7iS5JRgA6azyhm oJT2AfCWRMR5itCZAE669lQcLhRF6DXe24SWeLW8rRznhCjAHCbC7S3amQdWnrJNX5Pd TUXQgZgU0pKJDpS03bsDqdLLST0VCckocBvVaXCcr4eggFhtwhJkmNN3khw3LsJ2MtMP wfJEhT2fJyC7eKMwXbZK7gatU7BkXqWglVcjTJjCMSOVPmhDlZB4qoC7ilQ4dzuCci3n Ui/w== X-Gm-Message-State: APjAAAWpGGqTIopQYTARYe7J0CsK0ZmO6MKiBU0fdUYh/+J9qEn0+nsb z23o/ACYxRCvaxcIrhITMM8lDhwkxVfYJc6il4YDeQ== X-Received: by 2002:a5d:4e50:: with SMTP id r16mr29230086wrt.227.1560850376836; Tue, 18 Jun 2019 02:32:56 -0700 (PDT) MIME-Version: 1.0 References: <1560745167-9866-1-git-send-email-yash.shah@sifive.com> In-Reply-To: From: Anup Patel Date: Tue, 18 Jun 2019 15:02:45 +0530 Message-ID: Subject: Re: [PATCH v2 0/2] Add macb support for SiFive FU540-C000 To: Paul Walmsley , "palmer@sifive.com" Cc: Alistair Francis , "troy.benjegerdes@sifive.com" , "jamez@wit.com" , "linux-riscv@lists.infradead.org" , "davem@davemloft.net" , "schwab@suse.de" , "nicolas.ferre@microchip.com" , "mark.rutland@arm.com" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "aou@eecs.berkeley.edu" , "sachin.ghadi@sifive.com" , "netdev@vger.kernel.org" , "ynezz@true.cz" , "yash.shah@sifive.com" , "robh+dt@kernel.org" , Atish Patra , Bin Meng , Lukas Auer Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 18, 2019 at 8:56 AM Paul Walmsley wr= ote: > > On Mon, 17 Jun 2019, Alistair Francis wrote: > > > > The legacy M-mode U-boot handles the phy reset already, and I=E2=80= =99ve 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=3D72296bde4f4207566872ee355950a59cbc29f852 > > and > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit= /?id=3Dc35f1b87fc595807ff15d2834d241f9771497205 > > 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 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