From patchwork Wed Aug 16 21:59:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 9904649 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2F8E860244 for ; Wed, 16 Aug 2017 22:01:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2115C28A67 for ; Wed, 16 Aug 2017 22:01:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 15F5B28A6A; Wed, 16 Aug 2017 22:01:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_LOW, RCVD_IN_SORBS_SPAM autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9DD7528A6C for ; Wed, 16 Aug 2017 22:01:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject: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=KhE3hbIMF7PxjwqaqzghOV/fKr2BeEYQVPA8OkSb4LM=; b=ELh YsM8lX5ct4xWELbLUX7f4oZzUrrmDdK4V/CPXe4Dy6B4mAr0mulTqQZfR6+j2mjESZdVvffEiXRRL eTh3HahwM4d72yvQL2q/Hm6HaAHVhBu/0pCjBerPkX8Pkm6GlY6guUdgjFb7lUdBvhJbRwrZq6EI+ d2O5E2O7JHpkpFuEgCc+4DjjyqvPsRV+Z4+KxTZS0X1QQ71Jg9mlUAGeQvgkHqzQdQ0UvU/zFqWgl nQ94ySTy6HOZ76xivfcQq293eaysEEbnn8Rc8VevkHX3UPwu458QHB95VSIPg5zRKjoIyLCiZudxf XUokPRJj5eWl+P514nGct3pz2cTr/5w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1di6MO-0001Ss-OV; Wed, 16 Aug 2017 22:00:20 +0000 Received: from mail-yw0-f194.google.com ([209.85.161.194]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1di6Lj-00087Z-6A for linux-arm-kernel@lists.infradead.org; Wed, 16 Aug 2017 21:59:44 +0000 Received: by mail-yw0-f194.google.com with SMTP id u207so3112823ywc.0 for ; Wed, 16 Aug 2017 14:59:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=seJHzHbVCbAaFGUltptl9+bTwqv1zwbiFIB1xW3C88s=; b=M+C86T4WjHSPYQPjB/qoeNoNQrdBJdn/1XbPopl+0R+hprDSDgoiTFhPcd6CZjZFrW Dip7KInjT7l9A/NPOFQ852X5VOnzmUm4C0/iarvKmkFuxC7gfx7hUFNJWEOrbSJ4p3aI aLNkRMQK6Aa/R6pO4BhFZFoMk2cRhgJQeu1I9WtdrojaSoU8GQ3xHgNEffNSv6ql4XDS qlNxL6pNO/K+twBXbn8ADCwmP7U69xlXT2bse3buLG+mUy+3QKiaVFCRNERJM1HqFdxf 8RSexCsY8Dtz1rDWj/1H9rmfDV22Wt5d2c1+g5j7H6U0hKcT6gT0n2PM3lnTlEDeSPA+ tGhw== X-Gm-Message-State: AHYfb5jMV9UYHWhXDvF48uqmh/kRgwj8cSKzc2F39N2BsdcNy6Gg4ewh Gbne/8zdyh3f+Q== X-Received: by 10.129.157.3 with SMTP id u3mr203877ywg.300.1502920752490; Wed, 16 Aug 2017 14:59:12 -0700 (PDT) Received: from localhost.localdomain (cpe-174-106-0-58.ec.res.rr.com. [174.106.0.58]) by smtp.gmail.com with ESMTPSA id u189sm654675ywe.72.2017.08.16.14.59.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 Aug 2017 14:59:11 -0700 (PDT) From: Tom Rini To: devicetree@vger.kernel.org Subject: [PATCH] ARM: dts: TI: Enable __symbols__ in dtb files for some platforms Date: Wed, 16 Aug 2017 17:59:11 -0400 Message-Id: <1502920751-11121-1-git-send-email-trini@konsulko.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170816_145939_448387_46952BF2 X-CRM114-Status: GOOD ( 12.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nishanth Menon , Mark Rutland , Drew Fustini , Frank Rowand , Sekhar Nori , Russell King , Rob Herring , linux-kernel@vger.kernel.org, Tero Kristo , Lokesh Vutla , Tomi Valkeinen , Jason Kridner , Robert Nelson , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Build the dtb file for these platfroms with __symbol__ information included. This will reduce the size of the dtb (and resident memory usage) in exchange for allowing more types of overlays to be applied to the dtb file prior to passing it to Linux and additional functionality within the kernel when OF_OVERLAY is enabled. Cc: Jason Kridner Cc: Drew Fustini Cc: Robert Nelson Cc: Lokesh Vutla Cc: Frank Rowand Cc: Rob Herring Cc: Mark Rutland Cc: Russell King Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Tom Rini --- This patch takes the path that Rob encouraged in my previous patch of enabling __symbols__ in some platforms now (that can use it) and see if a critical mass evolves that pushes towards -@ being default for all dtbs. I would suggest that the dra76 series be respun to include a hunk like this at least as well, and if there's another Beagle X15 patch, that too. Russell, per some of our conversations, something like would also be needed as part of using overlays to solve some of the problems with Hummingboard, etc. --- 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 4b17f35dc9a7..6f98422ca00e 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1063,3 +1063,17 @@ dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dts always := $(dtb-y) clean-files := *.dtb + +# enable creation of __symbols__ node +DTC_FLAGS_am335x-bone += -@ +DTC_FLAGS_am335x-boneblack += -@ +DTC_FLAGS_am335x-boneblack-wireless += -@ +DTC_FLAGS_am335x-boneblue += -@ +DTC_FLAGS_am335x-bonegreen += -@ +DTC_FLAGS_am335x-bonegreen-wireless += -@ +DTC_FLAGS_am57xx-beagle-x15 += -@ +DTC_FLAGS_am57xx-beagle-x15-revb1 += -@ +DTC_FLAGS_dra7-evm += -@ +DTC_FLAGS_dra72-evm += -@ +DTC_FLAGS_dra72-evm-revc += -@ +DTC_FLAGS_dra71-evm += -@