From: Aurelien Jarno <aurelien@aurel32.net> To: Arnd Bergmann <arnd@arndb.de>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Olof Johansson <olof@lixom.net>, Rob Herring <robh+dt@kernel.org>, bcm-kernel-feedback-list@broadcom.com Cc: Stefan Wahren <stefan.wahren@i2se.com>, Nicolas Saenz Julienne <nsaenz@kernel.org>, Linus Walleij <linus.walleij@linaro.org>, devicetree@vger.kernel.org, Phil Elwell <phil@raspberrypi.com>, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, soc@kernel.org, Aurelien Jarno <aurelien@aurel32.net> Subject: [PATCH RESEND 1/2] arm64: dts: broadcom: Enable device-tree overlay support for RPi devices Date: Thu, 28 Apr 2022 01:36:06 +0200 [thread overview] Message-ID: <20220427233607.1225419-2-aurelien@aurel32.net> (raw) In-Reply-To: <20220427233607.1225419-1-aurelien@aurel32.net> 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 <aurelien@aurel32.net> --- 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 \ -- 2.35.1
WARNING: multiple messages have this Message-ID (diff)
From: Aurelien Jarno <aurelien@aurel32.net> To: Arnd Bergmann <arnd@arndb.de>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Olof Johansson <olof@lixom.net>, Rob Herring <robh+dt@kernel.org>, bcm-kernel-feedback-list@broadcom.com Cc: Stefan Wahren <stefan.wahren@i2se.com>, Nicolas Saenz Julienne <nsaenz@kernel.org>, Linus Walleij <linus.walleij@linaro.org>, devicetree@vger.kernel.org, Phil Elwell <phil@raspberrypi.com>, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, soc@kernel.org, Aurelien Jarno <aurelien@aurel32.net> Subject: [PATCH RESEND 1/2] arm64: dts: broadcom: Enable device-tree overlay support for RPi devices Date: Thu, 28 Apr 2022 01:36:06 +0200 [thread overview] Message-ID: <20220427233607.1225419-2-aurelien@aurel32.net> (raw) In-Reply-To: <20220427233607.1225419-1-aurelien@aurel32.net> 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 <aurelien@aurel32.net> --- 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 \ -- 2.35.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2022-04-27 23:36 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-04-27 23:36 [PATCH RESEND 0/2] arm/arm64: dts: Enable device-tree overlay support for RPi devices Aurelien Jarno 2022-04-27 23:36 ` Aurelien Jarno 2022-04-27 23:36 ` Aurelien Jarno [this message] 2022-04-27 23:36 ` [PATCH RESEND 1/2] arm64: dts: broadcom: " Aurelien Jarno 2022-04-27 23:36 ` [PATCH RESEND 2/2] arm: dts: " Aurelien Jarno 2022-04-27 23:36 ` Aurelien Jarno 2022-05-18 19:52 ` [PATCH RESEND 0/2] arm/arm64: " Florian Fainelli 2022-05-18 19:52 ` Florian Fainelli 2022-07-06 20:51 ` Aurelien Jarno 2022-07-06 20:51 ` Aurelien Jarno 2023-06-27 1:56 ` Moessbauer Felix 2023-06-27 1:56 ` Moessbauer Felix 2023-06-27 5:59 ` Stefan Wahren 2023-06-27 5:59 ` Stefan Wahren 2023-06-27 6:52 ` Moessbauer Felix 2023-06-27 6:52 ` Moessbauer Felix
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220427233607.1225419-2-aurelien@aurel32.net \ --to=aurelien@aurel32.net \ --cc=arnd@arndb.de \ --cc=bcm-kernel-feedback-list@broadcom.com \ --cc=devicetree@vger.kernel.org \ --cc=krzk+dt@kernel.org \ --cc=linus.walleij@linaro.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-rpi-kernel@lists.infradead.org \ --cc=nsaenz@kernel.org \ --cc=olof@lixom.net \ --cc=phil@raspberrypi.com \ --cc=robh+dt@kernel.org \ --cc=soc@kernel.org \ --cc=stefan.wahren@i2se.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.