From patchwork Fri Jun 16 15:29:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Birsan X-Patchwork-Id: 13282900 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 D9217EB64DD for ; Fri, 16 Jun 2023 15:30:11 +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: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:In-Reply-To:References: List-Owner; bh=jXQZbmaNRQ0w4awPODIkltYMANsbs7Et7MTOFZBZxD4=; b=q5Lhjv4hxTpg6D PQQOKM9YC4FSP226cba+cUj2ZR+pqw5Ihk1BwJyS8jeCjF2HPvTauFgACz810QJVQ62QFxbPfH1FS lyXruVHpJFEMoe+O+DXsDTiTK1yX5a7IJp2rhKXTf7vIcNbs3LZ4e8GlesRLj63mauLt9eEkDR0jG lVkv9Lcuqh7pp4skI2efR1QFh4olzHQlbWmenjxUQlppZCTze6ZMAJtWRHdrCZcmaBLZ7jmsdrdQ5 2F2SqprybbeSO7XW1FRPFE4Lj5x3psmvUIuye8oGubyOmxm7VV3cIQHCb3r9KkFXloX6nKaHN+m4c zm2cNMxYL6LKkotoUlHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qABOY-000xZg-1a; Fri, 16 Jun 2023 15:29:50 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qABOU-000xXe-2f for linux-arm-kernel@lists.infradead.org; Fri, 16 Jun 2023 15:29:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1686929386; x=1718465386; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=rI9R9UXytJokNpAttrGnBytdwyPaCRl1wE974W1E3pU=; b=SQm1uyyJxnH6f1gFdxgwa3wHMKj6ZACOqppIUWNoQ9r8w9lQDKmQUf7y o6y6/orQwTmRR/QE5wab/aJQ9XlWaXEkryLj1C8Zr2+7Fr4WA2UFQwbbx vYaussvdMSDklgVSFfQ4J27PYGADCdEhGjr/rUJ3hZ60POXAsJuuPfhwS /ZET7YvoiKTtYsLdvihxbt6FvOLp/FhEPMrPoaHtAyT+n9dZdVyCGaTu5 DPPngSytFtCbHpvyY7FWbfUKUJJ0Y0e37K+5ne6Ds6edfvkShQ9hWgBIX vFccTe9+p18GIhO8y4bUqIfMBl9XKsUtoNo+iGWGXN03SKSs4b86moYk5 A==; X-IronPort-AV: E=Sophos;i="6.00,247,1681196400"; d="scan'208";a="218283789" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 16 Jun 2023 08:29:44 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 16 Jun 2023 08:29:44 -0700 Received: from rob-ult-m91496.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Fri, 16 Jun 2023 08:29:42 -0700 From: To: , , , , , CC: , , , Cristian Birsan Subject: [PATCH] arm: dts: Enable device-tree overlay support for AT91 boards Date: Fri, 16 Jun 2023 18:29:32 +0300 Message-ID: <20230616152932.1484154-1-cristian.birsan@microchip.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230616_082946_918795_DEBDB85C X-CRM114-Status: UNSURE ( 8.44 ) X-CRM114-Notice: Please train this message. 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 From: Cristian Birsan Add the '-@' DTC option for AT91 boards that have device-tree overlays. This option populates the '__symbols__' node that contains all the necessary symbols for supporting device-tree overlays (from bootloader) on these devices. This change increases the size of the resulting DTB with ~30%-40%. Below are the measurements performed v6.4-rc6: at91-sam9x60_curiosity.dtb 28499 -> 36641 bytes at91-sam9x60ek.dtb 30867 -> 39609 bytes at91-sama5d27_som1_ek.dtb 26086 -> 34166 bytes at91-sama5d27_wlsom1_ek.dtb 26045 -> 33184 bytes at91-sama5d2_icp.dtb 27521 -> 36155 bytes at91-sama5d2_ptc_ek.dtb 23237 -> 29612 bytes at91-sama5d2_xplained.dtb 27262 -> 35326 bytes at91-sama5d3_eds.dtb 27924 -> 39939 bytes at91-sama5d3_xplained.dtb 28400 -> 40650 bytes at91-sama5d4_xplained.dtb 26456 -> 36107 bytes at91-sama7g5ek.dtb 29212 -> 37289 bytes Signed-off-by: Cristian Birsan --- arch/arm/boot/dts/Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 59829fc90315..38b82af2bf69 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -50,9 +50,21 @@ dtb-$(CONFIG_SOC_AT91SAM9) += \ at91sam9g35ek.dtb \ at91sam9x25ek.dtb \ at91sam9x35ek.dtb +# Enables support for device-tree overlays +DTC_FLAGS_at91-sam9x60_curiosity := -@ +DTC_FLAGS_at91-sam9x60ek := -@ dtb-$(CONFIG_SOC_SAM9X60) += \ at91-sam9x60_curiosity.dtb \ at91-sam9x60ek.dtb +# Enables support for device-tree overlays +DTC_FLAGS_at91-sama5d27_som1_ek := -@ +DTC_FLAGS_at91-sama5d27_wlsom1_ek := -@ +DTC_FLAGS_at91-sama5d2_icp := -@ +DTC_FLAGS_at91-sama5d2_ptc_ek := -@ +DTC_FLAGS_at91-sama5d2_xplained := -@ +DTC_FLAGS_at91-sama5d3_eds := -@ +DTC_FLAGS_at91-sama5d3_xplained := -@ +DTC_FLAGS_at91-sama5d4_xplained := -@ dtb-$(CONFIG_SOC_SAM_V7) += \ at91-kizbox2-2.dtb \ at91-kizbox3-hs.dtb \ @@ -79,6 +91,8 @@ dtb-$(CONFIG_SOC_SAM_V7) += \ at91-sama5d4_xplained.dtb \ at91-sama5d4ek.dtb \ at91-vinco.dtb +# Enables support for device-tree overlays +DTC_FLAGS_at91-sama7g5ek := -@ dtb-$(CONFIG_SOC_SAMA7G5) += \ at91-sama7g5ek.dtb dtb-$(CONFIG_SOC_SP7021) += \