From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 30 Sep 2022 18:22:16 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oeImG-001ZFD-6b for lore@lore.pengutronix.de; Fri, 30 Sep 2022 18:22:16 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1oeImD-0006L8-Ix; Fri, 30 Sep 2022 18:22:13 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oeImA-0006GL-HS; Fri, 30 Sep 2022 18:22:10 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1oeImB-003pqT-Ar; Fri, 30 Sep 2022 18:22:09 +0200 Received: from afa by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1oeIm8-003SJ5-OJ; Fri, 30 Sep 2022 18:22:08 +0200 From: Ahmad Fatoum To: distrokit@pengutronix.de Date: Fri, 30 Sep 2022 18:21:58 +0200 Message-Id: <20220930162159.814389-10-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220930162159.814389-1-a.fatoum@pengutronix.de> References: <20220930162159.814389-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH 09/10] v7a: rpi4: place DT into /boot for VideoCore consumption X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ahmad Fatoum Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false This is a somewhat ugly hack. The VideoCore will pass this device tree to barebox, which doesn't care much for it. As a side effect of the device tree passing, the VideoCore parses the device tree and will detect that the mini-uart is enabled and take care not to scale clock rate on the VideoCore, which the mini-uart is sourced from as that would upset the baudrate. There may be some config.txt entry we can use to avoid this, but for now, just place the device tree into the boot partition. Signed-off-by: Ahmad Fatoum --- configs/platform-v7a/config/images/rpi2.config | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/platform-v7a/config/images/rpi2.config b/configs/platform-v7a/config/images/rpi2.config index 08bb33b125a5..3dc404d36379 100644 --- a/configs/platform-v7a/config/images/rpi2.config +++ b/configs/platform-v7a/config/images/rpi2.config @@ -2,6 +2,7 @@ image rpi2-boot.vfat { vfat { files = { @FIRMWARE_RPI2@ } file barebox.img { image = barebox-raspberry-pi.img } + file bcm2711-rpi-4-b.dtb { image = barebox-bcm2711-rpi-4.dtb } } size = 32M } -- 2.30.2