Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1351772ybp; Wed, 9 Oct 2019 12:43:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1BwEIa1CTG1yH8k4aE5+6TJ0Iwc2xFrdslZgeTLgx4mOV9FPqLxXJla4u6g1CC7J4Aed7 X-Received: by 2002:a17:906:1f44:: with SMTP id d4mr4428671ejk.16.1570650207508; Wed, 09 Oct 2019 12:43:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570650207; cv=none; d=google.com; s=arc-20160816; b=sMTJv1W0Kan+eF1Zpjow7TvDr4xFQQmjZ9ILmXpJ6oBHk4gbUNFrDfh96BUt/2zEnM DvQSeOUWvKglZSE79csbQ7wJV4bRh2NZC/oQUBOtfKymRErmi3NZvDvLQLFTAwztINXv 2QfR2xoQRZcSz9Rs7Nebp/2cvHX4YgFYdmZDiDCRKvOjmMyQ8t57FE2xJsTv0aX11DI3 JCuT25ffMyYUTaIlS5LtLQ7kokt0jfPdY9DOzd135isBIlv37de6VoDFELQrkm4Wo2QP Yj7QnCBiFo/3nGWxIhtvXtbr23UHLKJeSrst5icSHWzT5wFAx2wP4ZkQaCLeBBBSIDhQ GT9A== 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:message-id :subject:cc:to:from:date:dkim-signature; bh=+KlI9AjuWQfTR2YtyJ47gFugrYwenbbGRumyyrkEG94=; b=qBkLhR8B68NCGONN/594eDMuOXu/qiKdYWtoiyRLVmgoWpLM/iM3AvaWJpVVsZEg+p YlORqebnPekWQKkLhoPNZ85q4Z/IUe388KKviZ3LPLzRuRQaRkrcYxfehC+d6fHBsVhZ 2B2CEHEEUjyEJdFLuophFsyl5EXns28qN/uEa4hgodXxMk2DSb89XOf9OLUCY91Q80aV pjLzbs89pYNhxSRHjwRU2QnpMr1DtzpfzWVNZPUGDg1gaydDDDAJ2L7HiPHtAHL+vzQQ 9BKhjsMQWoaJJQgcsXSLjDjcTwqQWD/EXd+4SEPPIAjHB/mzLeSyoVLtpBSfWwp2mo2j W79w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=JqmPT+MZ; 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 i40si1860089eda.225.2019.10.09.12.43.03; Wed, 09 Oct 2019 12:43:27 -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=JqmPT+MZ; 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 S1731748AbfJITmr (ORCPT + 99 others); Wed, 9 Oct 2019 15:42:47 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:32817 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730708AbfJITmr (ORCPT ); Wed, 9 Oct 2019 15:42:47 -0400 Received: by mail-io1-f66.google.com with SMTP id z19so7910512ior.0 for ; Wed, 09 Oct 2019 12:42:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:from:to:cc:subject:message-id:user-agent:mime-version; bh=+KlI9AjuWQfTR2YtyJ47gFugrYwenbbGRumyyrkEG94=; b=JqmPT+MZwUh6TV8RvMkIBN6mPdYVJZ1Z/j2BObiv9kgi4hgwgS9RInTkhBldMtR0l0 gjqPGFqoqofsQkGHS+nXQSY6gBU1Corb1haodDV+xq6YpB42/k8MvBBuPF3H/eHV5vpP dTd6TBc8W7e5FDWlMJNm8ImM4PncaGF1XsbJu6Y3Lmv+/C6vABuSqYLAPciSLM2Zikx4 oox7CGDOJV2j4RbFjZ17KSqE9mNQK5BWZZ2P0lHYNWj212rakCbUMXQEzJBfpF4HRVYU u7bzRcrnlQMDFpw5pqiM/bG77qg27PuSbuBDxXxvzsjJQl8x16huu2VPhyW2dddnROB+ xx9A== 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:message-id:user-agent :mime-version; bh=+KlI9AjuWQfTR2YtyJ47gFugrYwenbbGRumyyrkEG94=; b=Dn6v7g6ra0XXoyxfXabYGZlb1n0i4fFQcHwrEwlv97SH8Jog50MXZTzSqH35SNp7ig PlfV8qrhQCNKjHvrP9rLHknwNN5swaLHw4YpHtKd+2FS2mVYFVNx+KrKwuSBhLDdTnqO qpXyv3W4ui/8A+OylrQtkPCe422x5aZHYsF2hMsFYWFy0tNX5GWB0RFi0HntHMfvdMhK PzQirdtG5LuuliXoiDs0iuhfQfhQeZDCDsKufAe3A2KHOxp8b3PM/9+c8UN53QGuExBF Zgcyff4RP/rlriElLiIURT4MD5MDhEupJR4RTKuXKIpQ6fSUUp5AV66aCNN8gelVOaMY yt/A== X-Gm-Message-State: APjAAAU1RlJOHGF+m6JKXHVNXl8BRWHVRWHaic8lQ3bSYx9AJDwX3pv9 GuFUHX4e1MK9WjTQnin+XhoJhCAMDzM= X-Received: by 2002:a02:6d08:: with SMTP id m8mr5157249jac.34.1570650165999; Wed, 09 Oct 2019 12:42:45 -0700 (PDT) Received: from localhost (c-73-95-159-87.hsd1.co.comcast.net. [73.95.159.87]) by smtp.gmail.com with ESMTPSA id h70sm1614658iof.48.2019.10.09.12.42.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 12:42:45 -0700 (PDT) Date: Wed, 9 Oct 2019 12:42:44 -0700 (PDT) From: Paul Walmsley X-X-Sender: paulw@viisi.sifive.com To: linux-riscv@lists.infradead.org cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH] riscv: dts: HiFive Unleashed: add default chosen/stdout-path Message-ID: 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 Add a default "stdout-path" to the kernel DTS file, as is present in many of the board DTS files elsewhere in the kernel tree. With this line present, earlyconsole can be enabled by simply passing "earlycon" on the kernel command line. No specific device details are necessary, since the kernel will use the stdout-path as the default. Signed-off-by: Paul Walmsley --- Tested on a HiFive Unleashed using BBL. arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts index 104d334511cd..88cfcb96bf23 100644 --- a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts +++ b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts @@ -13,6 +13,7 @@ compatible = "sifive,hifive-unleashed-a00", "sifive,fu540-c000"; chosen { + stdout-path = "serial0"; }; cpus { -- 2.23.0