From patchwork Sun Apr 10 22:59:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 12808337 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D0CF2C433FE for ; Sun, 10 Apr 2022 23:01:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=tijxrwHx/+RZE8AxO01bQsPhLVMZBymQ9yoD8RVz7TE=; b=EYL+5gVhSN/Ra/ sx3+yLYqtw1v3VvWGgdc5CGkF2n87ll/OHyhr9IHx7TVP4ElMQEvMJvgjoxD2PLXbyIijE0hj3Z7G HZElMAKI8xAo4X3Xd09bCd+ryfhv23f3pVUx/S2Oziev9gJ5u2PV/iAGlBZIhmI5Ijyc/B3kqceTK 9DAkP7+A1IGcNxPq+KumvZqcM55SQZMzU15wd7SEgUslhGcgtoIRvLl1E5xPxi2DBqHGR6cYF3Q9q Osi3AvM7Pg/OBnYP3v1YIzKvUqfpnNkSS0jsat0MQXVVjxEWtRfHupe6rUC+EmGRdqN4JDyqJOnfT xNopQdWeUw1cJC1YpxcQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ndgYB-005okn-Dh; Sun, 10 Apr 2022 23:00:55 +0000 Received: from hall.aurel32.net ([2001:bc8:30d7:100::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ndgXq-005odU-IM; Sun, 10 Apr 2022 23:00:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aurel32.net ; s=202004.hall; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Content-Type:From:Reply-To: Subject:Content-ID:Content-Description:X-Debbugs-Cc; bh=aJRncnFPGogcci9EJtlIRk6kkiE8YTvJb5FUaqmBsaQ=; b=UNqKglfVHf9nXXqEcm+xSyRD8Y AI6nDI78xyR9QPIjT058FZpb01ltnweaPAA8+9sWpFAgR3EKxB6Tt5mr/E+3M8PXUSp+P40qSJsR+ T+zGFJ5DD88xUhb0/lZX/thFNOfdLUjwFvnjB30OmTQALV3Q0p6hiNpjpcRJgaopdfaGrDR95QjvT IL84JJJ5t12Ei6Gqi2+CmVW4C9soHtsuVx0A7FSWJaSJhwg73B9GRaHi55RxK2cSVeNJBWeyiTM3W ouW/mZ09YDuoZZWPkNMGX8en6Hr2vKCm7hnUdtr/oSyDhJ7aFqTO1Ak7BYQWP99gD46I4YULFRNtO Rfto70gQ==; Received: from [2a01:e34:ec5d:a741:8a4c:7c4e:dc4c:1787] (helo=ohm.rr44.fr) by hall.aurel32.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ndgXe-00BKd0-D1; Mon, 11 Apr 2022 01:00:22 +0200 Received: from aurel32 by ohm.rr44.fr with local (Exim 4.95) (envelope-from ) id 1ndgXd-000ZMa-PF; Mon, 11 Apr 2022 01:00:21 +0200 From: Aurelien Jarno To: linux-kernel@vger.kernel.org Cc: Aurelien Jarno , Arnd Bergmann , Krzysztof Kozlowski , Olof Johansson , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, soc@kernel.org Subject: [PATCH 1/2] arm64: dts: broadcom: Enable device-tree overlay support for RPi devices Date: Mon, 11 Apr 2022 00:59:39 +0200 Message-Id: <20220410225940.135744-2-aurelien@aurel32.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220410225940.135744-1-aurelien@aurel32.net> References: <20220410225940.135744-1-aurelien@aurel32.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220410_160034_848822_E4239949 X-CRM114-Status: GOOD ( 11.80 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add the '-@' DTC option for the Raspberry Pi devices. This option populates the '__symbols__' node that contains all the necessary symbols for supporting device-tree overlays (for instance from the firmware or the bootloader) on these devices. The Rasbperry Pi devices are well known for their GPIO header, that allow various "HATs" or other modules do be connected and this enables users to create out-of-tree device-tree overlays for these modules. Please note that this change does increase the size of the resulting DTB by ~40%. For example, with v5.17 increase in size is as follows: bcm2711-rpi-400.dtb 26481 -> 36830 bytes bcm2711-rpi-4-b.dtb 26537 -> 36886 bytes bcm2711-rpi-cm4-io.dtb 26426 -> 36945 bytes bcm2837-rpi-3-a-plus.dtb 14133 -> 19740 bytes bcm2837-rpi-3-b.dtb 14310 -> 20006 bytes bcm2837-rpi-3-b-plus.dtb 14670 -> 20474 bytes bcm2837-rpi-cm3-io3.dtb 13680 -> 19266 bytes Signed-off-by: Aurelien Jarno --- arch/arm64/boot/dts/broadcom/Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/broadcom/Makefile b/arch/arm64/boot/dts/broadcom/Makefile index 5082fcd1fea5..0aa8ee2afdd5 100644 --- a/arch/arm64/boot/dts/broadcom/Makefile +++ b/arch/arm64/boot/dts/broadcom/Makefile @@ -1,4 +1,15 @@ # SPDX-License-Identifier: GPL-2.0 + +# Enables support for device-tree overlays +DTC_FLAGS_bcm2711-rpi-400 := -@ +DTC_FLAGS_bcm2711-rpi-4-b := -@ +DTC_FLAGS_bcm2711-rpi-cm4-io := -@ +DTC_FLAGS_bcm2837-rpi-3-a-plus := -@ +DTC_FLAGS_bcm2837-rpi-3-b := -@ +DTC_FLAGS_bcm2837-rpi-3-b-plus := -@ +DTC_FLAGS_bcm2837-rpi-cm3-io3 := -@ +DTC_FLAGS_bcm2837-rpi-zero-2-w := -@ + dtb-$(CONFIG_ARCH_BCM2835) += bcm2711-rpi-400.dtb \ bcm2711-rpi-4-b.dtb \ bcm2711-rpi-cm4-io.dtb \