Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp594460rwd; Thu, 25 May 2023 00:46:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ45UxqhEAhk6wLt2oFPFQJ4Wdb5I+oeRilTXdPeKyZKFa/1YD/T5gTsyQ+WiU2qctSsrFqj X-Received: by 2002:a17:90a:17ee:b0:255:5bde:e6c2 with SMTP id q101-20020a17090a17ee00b002555bdee6c2mr911279pja.12.1685000814661; Thu, 25 May 2023 00:46:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685000814; cv=none; d=google.com; s=arc-20160816; b=E2JzR7EP/etRuFp2xvPsX27b8ScvU+zRAgcQyh+lMwVJQG6/ztk5PmG4jBGS60NF9p nn1lSY7v+rmknzJNDUAw+RcF6nr8ZYAYPg49k1xngRNoRhtB8XhBMyMu+obkynVU+19y ti0VX0+J4igHfLruvaE8vvN/pKBJEu0jHcSPFnBlZZsklX8Cf5IUla8u2Vz2isR1JvrR mJ7qfY9W7ioZxCgCrLm9Pec/ovgwI3+gOCbmDKiKkhX/FM01PJWn4zcH7/d79C4ZN/72 5ZahU6sQKMg/LpKfz7x51N2m7faEW2oxjOkVMSij3ma7mh18tFqvUsFiz97e+pD0ckNa T6Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=PBog+Lv0m5VnWdrFjhCSOQGE86PMD4go2h4Jx0lCcoI=; b=b/2YmdeXn6pJQYhmen4kNBNH/O0MXk58wBMOzikRhgV/bFfQxr+0C+wNm9zu0OD22f 4QTTLuufuBr9HK5CmPrZhiVAUvIM/gZ+Qw2Z7ZdPQ5pol5wUmpjnroAaZ7+3c8h+HWmy HGPQiNce3Nrvu1s6WPyuAw5yrgvCBb0QKBOhjQU9Y07TVYvGqCDlv0gJpa0ZvKKxTvLn 37iTZB++MmErb0ttaI7S0/l9t3uSESqQlAn5e4N2lu4w6u7pgaxCObrsCprbeyZHtTEx aBJyaT8hnGBIYqerISbH47xHNq1fdamar6OmLyEqCGZijpcrqyxOm8BqAIOo8FGpVjNA 7/Ow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h7-20020a17090aea8700b00252f5383678si1371547pjz.141.2023.05.25.00.46.40; Thu, 25 May 2023 00:46:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240063AbjEYHij (ORCPT + 99 others); Thu, 25 May 2023 03:38:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236131AbjEYHiR (ORCPT ); Thu, 25 May 2023 03:38:17 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8883710C4 for ; Thu, 25 May 2023 00:36:51 -0700 (PDT) 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 1q25We-0004vQ-Pz; Thu, 25 May 2023 09:36:44 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1q25Wc-002fnD-G8; Thu, 25 May 2023 09:36:42 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1q25Wb-007mL8-T6; Thu, 25 May 2023 09:36:41 +0200 Date: Thu, 25 May 2023 09:36:41 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Aurelien Jarno Cc: linux-kernel@vger.kernel.org, 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, William Zhang , Florian Fainelli Subject: Re: [PATCH 1/2] arm64: dts: broadcom: Enable device-tree overlay support for RPi devices Message-ID: <20230525073641.macyt5h6uiylbytb@pengutronix.de> References: <20220410225940.135744-1-aurelien@aurel32.net> <20220410225940.135744-2-aurelien@aurel32.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="s2mw4zp2wclyjf5b" Content-Disposition: inline In-Reply-To: <20220410225940.135744-2-aurelien@aurel32.net> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --s2mw4zp2wclyjf5b Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, [expanded Cc: to include William Zhang and Florian Fainelli] On Mon, Apr 11, 2022 at 12:59:39AM +0200, Aurelien Jarno wrote: > 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. >=20 > 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. >=20 > 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: >=20 > 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 >=20 > Signed-off-by: Aurelien Jarno > --- > arch/arm64/boot/dts/broadcom/Makefile | 11 +++++++++++ > 1 file changed, 11 insertions(+) >=20 > 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 :=3D -@ > +DTC_FLAGS_bcm2711-rpi-4-b :=3D -@ > +DTC_FLAGS_bcm2711-rpi-cm4-io :=3D -@ > +DTC_FLAGS_bcm2837-rpi-3-a-plus :=3D -@ > +DTC_FLAGS_bcm2837-rpi-3-b :=3D -@ > +DTC_FLAGS_bcm2837-rpi-3-b-plus :=3D -@ > +DTC_FLAGS_bcm2837-rpi-cm3-io3 :=3D -@ > +DTC_FLAGS_bcm2837-rpi-zero-2-w :=3D -@ Instead of setting these all explicitly a single DTC_FLAGS :=3D -@ would work, too, without changing how the dts in subdirs are compiled. IMHO this would be suiteable for arch/arm64/boot/dts/broadcom. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --s2mw4zp2wclyjf5b Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmRvEAkACgkQj4D7WH0S /k6oCggAgumevLsiZb0L7EgnrAbT9p/8jCBn/6Fj3sxTeILFFAl5+fj2/DNvaOxh EOU4KxfAYrWB+RCnCBgF+KkNbwMUu0vSZLkR/zQrXCYxYpbCCkwcr0SnygdR9mka +42Br0w2kZXH/PeniQfa+8jb6YWEnjOVEyMXderruUt6X3kO+JrFfBGS5QMFJZjK b0S/UZZKKfaGwDpRMqEjxOPxGyqyg6Wm0VVaa7rgf/e4g3ifAq4L6H3auR+uJmBF NAKJ7P5FfeXIt4KYFNVGQQlC1AhrGNfDtYNs5nnDPO0rLkMY7ALCjCzhJqM8V7E5 5YJ+ugJ4w9glR9YKMgwb8wl1GHRWIw== =4STT -----END PGP SIGNATURE----- --s2mw4zp2wclyjf5b--