Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6194860yba; Thu, 11 Apr 2019 14:12:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwqbonTE56y+kphoN29MAACLTPmjSSwgDRi4lkDGgiehDRZ4GhB+LvohkvrGe6ya+R1glDO X-Received: by 2002:a63:1048:: with SMTP id 8mr50315368pgq.70.1555017170973; Thu, 11 Apr 2019 14:12:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555017170; cv=none; d=google.com; s=arc-20160816; b=ZFJXeDvhm94OuGe9xZQhG0vrkf4fxI2MWl+Igv4vgk5gbJaBRioJYhtnXEbYmAsG3w eJIE6/WC32PiFZpoSu0YY87QkK6rxnmiQfJS78LjuRq8M4AFGGLzGjK6mHBCzhcM5ab4 /kduvF21mh9w7v18EkthJUOb07v5tuS9pETVTbal5HHSyebAx+atMgSRCRXazv9aCM/h x377PIFTEjcPHGfWQ3sHy0iYBNHoWwwg1Ae5pcVeZ99qTHOoZBLBree5mlLcPKtUjNhK WM3Lq22in8Chw8/mu/Gv/qmwr+2YXvRyKBaekF0ex8j0lkZL1F8td7uhTfDar9MtsIod dCXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=IkuarGGVKCQsG79ZJK4mrZNMD40jUbFO5RJo6N6EJrQ=; b=SA4Iy6uA6M8p/NwZ203aIrglOKs8sAJsJ1YvUaG9ojfArvUrmK2S0DJn+bPk0JOodp mm5jjnIkuyvrQVV2mT6MU1SNzKGFKusZ1AVNblcbQMjnEHfUduqBlF6rBHTQ+MlpD95f Acm0AekAm+D/qlmkPDtBuFUWGiPfW4nCR5ACUEFRHQ4pjmCBvnOavpASamjaahRGJz/H maRlUVy8pLokCxRbmbXtQZxBTxFxh2xIAjs7RPzakaNFLYlhr9KylqCcSIpNDoQ9UZjM jDnYstAEQVvu2QEunJkUTJ4/3JEamJlxV72xVHtOU2TAeI+YXWL3/sBe47g8zBeJKBmz /wsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=fAyjEW4Y; 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 k16si36165347pgb.587.2019.04.11.14.12.34; Thu, 11 Apr 2019 14:12: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=fAyjEW4Y; 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 S1727186AbfDKVMA (ORCPT + 99 others); Thu, 11 Apr 2019 17:12:00 -0400 Received: from mail-it1-f196.google.com ([209.85.166.196]:36784 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726697AbfDKVMA (ORCPT ); Thu, 11 Apr 2019 17:12:00 -0400 Received: by mail-it1-f196.google.com with SMTP id y10so12028432itc.1 for ; Thu, 11 Apr 2019 14:11:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=IkuarGGVKCQsG79ZJK4mrZNMD40jUbFO5RJo6N6EJrQ=; b=fAyjEW4Yx1t1hT+431iRw8huCVDlNbsu9i1y3gQX+1JtUn6uB7Zp3/6/Q+D7JR9B4f 4UfpJ+qTSuENZH/fEPTdb8ltie3rmYv48KE4cuNUd2lpPaHq84Ri636NG+73cTurJy8P d0TlWUcYY3Bz5Tr+uUT5l6JPzB5uFUi0Lx5JKgf05VBHygvm8ZemOzNHIYPbZcdacyiC 7KyOxUqgATenkn0ZmLMtn7ZWbFVjbZbhk02O65/kLKnRLNPrfIZBV/QbJAY3dLKiy1T1 7vWPSAwfJsA6Ic9ZvyBg6mtbVXW9JCDLjAgBGyiFbeLOG9S2FW75EAZOn8wA2koVyouh My6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=IkuarGGVKCQsG79ZJK4mrZNMD40jUbFO5RJo6N6EJrQ=; b=gCAUCIncIBjZEhN4n1Ufd5LBfYTV/PQc0/ecBeitKw+Xg97RzZGEqJSvaa6r7rw21k AmX77YS4LFjWUU8eOGNDWWN181RUY/zOfdn2Og87xfiQJ2vN2z0cDmvri9004Jsd4wB+ JnmB27G18qMCsWNURvoHtJCPTbotP2ORrGQC7bF7Gp1GaExqhOnWDycD085GLos6AQhQ HRtkFK9PerykbLUg1I/xc3uHSYPtey1a/B6fL5z3eHkp1857ybigjd69fLaAL156VJQF xx/h9qHBXSONgD8WNwTCLLioNcsXgIr0NzGTnfQEOaBthJuviuvwTTLyFj7bYke8zqf8 4TsA== X-Gm-Message-State: APjAAAWCuH3pDNNGt17gpnGoMi2aW8E/w39ixBCX6h1dKyDW8febEUZp MTEeL/vCIg89Xnsm9AD0b9SMZQ== X-Received: by 2002:a24:80c2:: with SMTP id g185mr9042453itd.11.1555017119267; Thu, 11 Apr 2019 14:11:59 -0700 (PDT) Received: from localhost (63-238-229-145.dia.static.qwest.net. [63.238.229.145]) by smtp.gmail.com with ESMTPSA id l68sm3080312itb.29.2019.04.11.14.11.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Apr 2019 14:11:58 -0700 (PDT) Date: Thu, 11 Apr 2019 14:11:58 -0700 (PDT) From: Paul Walmsley X-X-Sender: paulw@viisi.sifive.com To: Christoph Hellwig cc: Paul Walmsley , devicetree@vger.kernel.org, Paul Walmsley , Albert Ou , Palmer Dabbelt , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH 1/6] arch: riscv: add support for building DTB files from DT source data In-Reply-To: <20190411114616.GA10032@infradead.org> Message-ID: References: <20190411084304.5072-2-paul.walmsley@sifive.com> <20190411114616.GA10032@infradead.org> User-Agent: Alpine 2.21.9999 (DEB 301 2018-08-15) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 11 Apr 2019, Christoph Hellwig wrote: > On Thu, Apr 11, 2019 at 01:42:59AM -0700, Paul Walmsley wrote: > > Similar to ARM64, add support for building DTB files from DT source > > data for RISC-V boards. > > > > This patch starts with the infrastructure needed for SiFive boards. > > Boards from other vendors would add support here in a similar form. > > What do we build it for? We'd really need something like this: > > http://git.infradead.org/users/hch/misc.git/commitdiff/d6242aa147baf57e05e2932199c74d8d24b9926e > http://git.infradead.org/users/hch/misc.git/commitdiff/0cd5413c8094ab57b68e0629dacfed695f4c1ef1 > > To actually use the DT files. Those patches might be useful - I have not reviewed them closely - but they are not necessary. The FSBL already supplies a DTB to Linux. I assume the U-boot port works the same way. I haven't switched to U-boot yet for these driver tests, so I personally have been using the open-source FSBL (freedom-u540-c000-bootloader) with the following trivial patches applied: https://github.com/sifive/freedom-u540-c000-bootloader/tree/dev/paulw/supply-fsbl-dtb-v5.1-rc4 The fsbl/ux00_fsbl.dtb file can be symlinked to the kernel DTB output, e.g., ~/linux/arch/riscv/boot/dts/sifive/hifive-unleashed-a00-fu540.dtb. - Paul