Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2A697C38142 for ; Wed, 1 Feb 2023 08:17:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EA23785BF6; Wed, 1 Feb 2023 09:17:21 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=walle.cc Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=walle.cc header.i=@walle.cc header.b="P4Qtft+y"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EAB5085C04; Wed, 1 Feb 2023 09:17:19 +0100 (CET) Received: from mail.3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0063A85BF6 for ; Wed, 1 Feb 2023 09:17:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=walle.cc Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michael@walle.cc Received: from 3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id 2102F3C3; Wed, 1 Feb 2023 09:17:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1675239436; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=huTr4lli2HrNAAUIah3bo2yNSrNhWyWZLiaMd0DJa+g=; b=P4Qtft+yx7MCVj0lLNhY4TFLIBS7NGHWvBkgnSqSoOKJ9AN2MULO1ZH/PYiKPjsYVcAqAw TBeJ6Gmgj7YdI28MW9G20EjtDA7SbEhnrFhoVM882I47CECB0xj3eXrf5ozUHrReenTtI8 phjR1nFo8xp3xBAs7YLDv5dfSuBOgICSgCNl+s3waWTm7u6q/yk5Ooz59oWPRtgZlg3QxB awmVkftK7PckOZxfsVhKAIc+KXFa6XLSsKoaPl7/jd7SM6EOjtsXJThNRGXmHjKBth5Yfq +JSFZ9zc7SeFEcYbZIsSP/eKMVxVei4i3J4a3T2eRc64FlsQjY/Boewa19IohQ== MIME-Version: 1.0 Date: Wed, 01 Feb 2023 09:17:15 +0100 From: Michael Walle To: =?UTF-8?Q?Pali_Roh=C3=A1r?= Cc: Tony Dinh , Stefan Roese , U-Boot Mailing List , Tom Rini Subject: Re: [PATCH] arm: kirkwood: Enable uart0 dm-pre-reloc for Kirkwood boards In-Reply-To: <20230201080210.ypz4nrj4y2igwxz3@pali> References: <20230201011116.17699-1-mibodhi@gmail.com> <1ab1b2faa95c5ec618a7aad5ce0903ea@walle.cc> <20230201080210.ypz4nrj4y2igwxz3@pali> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <0e3399e8eb49432c810a574b6ee612d1@walle.cc> X-Sender: michael@walle.cc Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean >> > When DM_SERIAL is enabled, the device-tree property dm-pre-reloc is >> > required to boot over UART with kwboot. Enable this in a Kirkwood >> > common u-boot dtsi. >> >> My (dev) board unfortunately, have a bootloader which can't boot over >> serial. > > This is feature of Marvell BootROM and does not require any special > from > Bootloader. So you should be able to boot over UART (if you have > accessible pins). I know, but there are known versions ob the bootrom where uart boot isn't supported (correctly). I also have another board which can boot over uart. But thats in daily use ;) >> Could you elaborate that a bit more? Why is this required for >> uart boot? kwboot will talk with the bootrom why does u-boot need >> anything? Or will there just be no output until the uart is >> initialized? > > On mvebu/armada boards this dm-pre-reloc is required to ensure that DT > nodes are present in SPL DTB file. Otherwise build process drop all > non-pre-realoc nodes from SPL version of DTB file. And because SPL use > DM serial, it is required to have uart DT nodes in DTB file. Btw, same > problem is with SPI in SPL. > > But... kirkwood does not use SPL, so I do not know what is reason for > this here. Yes thats what puzzled me, too. >> > >> > Signed-off-by: Tony Dinh >> > --- >> > >> > arch/arm/dts/kirkwood-u-boot.dtsi | 7 +++++++ >> > 1 file changed, 7 insertions(+) >> > create mode 100644 arch/arm/dts/kirkwood-u-boot.dtsi >> >> Is this new? AFAIK only -u-boot.dtsi is included >> automatically. > > It is not new, Tom wrote about it quite ago: > https://lore.kernel.org/u-boot/20220802121113.GG1146598@bill-the-cat/ Thats relatively new for someone not following the u-boot development that closely ;) Thanks for the pointer. -michael