mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: dts: Add an am33xx include file for MLO size reduction
@ 2015-05-22 12:09 Wadim Egorov
  2015-05-22 12:09 ` [PATCH 2/2] ARM: dts: Add strip-am33xx.dtsi to PHYTEC MLOs Wadim Egorov
  2015-05-26  6:16 ` [PATCH 1/2] ARM: dts: Add an am33xx include file for MLO size reduction Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Wadim Egorov @ 2015-05-22 12:09 UTC (permalink / raw)
  To: barebox

AM335x's MLO size limit is 109K.
The am33xx.dtsi file adds spare and never used nodes to the dtb.
With this patch we add a file to remove the unused nodes and reduce the
size of the dtb.

Including this file will reduce the lzo packed MLO size about 8K.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
---
 arch/arm/dts/strip-am33xx.dtsi | 66 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)
 create mode 100644 arch/arm/dts/strip-am33xx.dtsi

diff --git a/arch/arm/dts/strip-am33xx.dtsi b/arch/arm/dts/strip-am33xx.dtsi
new file mode 100644
index 0000000..fe34edc
--- /dev/null
+++ b/arch/arm/dts/strip-am33xx.dtsi
@@ -0,0 +1,66 @@
+/*
+ * Copyright (C) 2015 PHYTEC Messtechnik GmbH,
+ * Author: Wadim Egorov <w.egorov@phytec.de>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+/ {
+	aliases {
+		/delete-property/ i2c1;
+		/delete-property/ i2c2;
+		/delete-property/ mmc0;
+		/delete-property/ mmc1;
+		/delete-property/ mmc2;
+		/delete-property/ gpio0;
+		/delete-property/ gpio1;
+		/delete-property/ gpio2;
+		/delete-property/ gpio3;
+		/delete-property/ serial1;
+		/delete-property/ serial2;
+		/delete-property/ serial3;
+		/delete-property/ serial4;
+		/delete-property/ serial5;
+		/delete-property/ d_can0;
+		/delete-property/ d_can1;
+	};
+};
+
+/delete-node/ &gpio0;
+/delete-node/ &gpio1;
+/delete-node/ &gpio2;
+/delete-node/ &gpio3;
+/delete-node/ &uart1;
+/delete-node/ &uart2;
+/delete-node/ &uart3;
+/delete-node/ &uart4;
+/delete-node/ &uart5;
+/delete-node/ &i2c1;
+/delete-node/ &i2c2;
+/delete-node/ &mmc2;
+/delete-node/ &mmc3;
+/delete-node/ &hwspinlock;
+/delete-node/ &wdt2;
+/delete-node/ &dcan0;
+/delete-node/ &dcan1;
+/delete-node/ &mailbox;
+/delete-node/ &timer1;
+/delete-node/ &timer2;
+/delete-node/ &timer3;
+/delete-node/ &timer4;
+/delete-node/ &timer5;
+/delete-node/ &timer6;
+/delete-node/ &timer7;
+/delete-node/ &spi1;
+/delete-node/ &epwmss0;
+/delete-node/ &epwmss1;
+/delete-node/ &epwmss2;
+/delete-node/ &lcdc;
+/delete-node/ &tscadc;
+/delete-node/ &sham;
+/delete-node/ &aes;
+/delete-node/ &mcasp0;
+/delete-node/ &mcasp1;
+/delete-node/ &rng;
-- 
1.9.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 2/2] ARM: dts: Add strip-am33xx.dtsi to PHYTEC MLOs
  2015-05-22 12:09 [PATCH 1/2] ARM: dts: Add an am33xx include file for MLO size reduction Wadim Egorov
@ 2015-05-22 12:09 ` Wadim Egorov
  2015-05-26  6:16 ` [PATCH 1/2] ARM: dts: Add an am33xx include file for MLO size reduction Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Wadim Egorov @ 2015-05-22 12:09 UTC (permalink / raw)
  To: barebox

This patch will reduce the size of the MLO images.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
---
 arch/arm/dts/am335x-phytec-phycard-som-mlo.dts | 1 +
 arch/arm/dts/am335x-phytec-phycore-som-mlo.dts | 1 +
 arch/arm/dts/am335x-phytec-phyflex-som-mlo.dts | 1 +
 3 files changed, 3 insertions(+)

diff --git a/arch/arm/dts/am335x-phytec-phycard-som-mlo.dts b/arch/arm/dts/am335x-phytec-phycard-som-mlo.dts
index 17d9152..c762ee9 100644
--- a/arch/arm/dts/am335x-phytec-phycard-som-mlo.dts
+++ b/arch/arm/dts/am335x-phytec-phycard-som-mlo.dts
@@ -9,6 +9,7 @@
 
 #include "am33xx.dtsi"
 #include "am335x-phytec-phycard-som.dtsi"
+#include "strip-am33xx.dtsi"
 
 / {
 	model = "Phytec phyCARD AM335x";
diff --git a/arch/arm/dts/am335x-phytec-phycore-som-mlo.dts b/arch/arm/dts/am335x-phytec-phycore-som-mlo.dts
index b08a59e..d056212 100644
--- a/arch/arm/dts/am335x-phytec-phycore-som-mlo.dts
+++ b/arch/arm/dts/am335x-phytec-phycore-som-mlo.dts
@@ -9,6 +9,7 @@
 
 #include "am33xx.dtsi"
 #include "am335x-phytec-phycore-som.dtsi"
+#include "strip-am33xx.dtsi"
 
 / {
 	model = "Phytec phyCORE AM335x";
diff --git a/arch/arm/dts/am335x-phytec-phyflex-som-mlo.dts b/arch/arm/dts/am335x-phytec-phyflex-som-mlo.dts
index 5294ff5..916979b 100644
--- a/arch/arm/dts/am335x-phytec-phyflex-som-mlo.dts
+++ b/arch/arm/dts/am335x-phytec-phyflex-som-mlo.dts
@@ -9,6 +9,7 @@
 
 #include "am33xx.dtsi"
 #include "am335x-phytec-phyflex-som.dtsi"
+#include "strip-am33xx.dtsi"
 
 / {
 	model = "Phytec phyFLEX AM335x";
-- 
1.9.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] ARM: dts: Add an am33xx include file for MLO size reduction
  2015-05-22 12:09 [PATCH 1/2] ARM: dts: Add an am33xx include file for MLO size reduction Wadim Egorov
  2015-05-22 12:09 ` [PATCH 2/2] ARM: dts: Add strip-am33xx.dtsi to PHYTEC MLOs Wadim Egorov
@ 2015-05-26  6:16 ` Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2015-05-26  6:16 UTC (permalink / raw)
  To: Wadim Egorov; +Cc: barebox

On Fri, May 22, 2015 at 02:09:14PM +0200, Wadim Egorov wrote:
> AM335x's MLO size limit is 109K.
> The am33xx.dtsi file adds spare and never used nodes to the dtb.
> With this patch we add a file to remove the unused nodes and reduce the
> size of the dtb.
> 
> Including this file will reduce the lzo packed MLO size about 8K.
> 
> Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
> ---
>  arch/arm/dts/strip-am33xx.dtsi | 66 ++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 66 insertions(+)
>  create mode 100644 arch/arm/dts/strip-am33xx.dtsi
> 
> diff --git a/arch/arm/dts/strip-am33xx.dtsi b/arch/arm/dts/strip-am33xx.dtsi

You remove the UARTs not used on *Phytec* boards, they could well be
used on other boards. While I agree for the CAN nodes and many others,
UARTs should be kept. Also the GPIOs can be very useful in the MLO. I
suggest that you either change the name of this file to something less
generic (am33xx-phytec-strip.dtsi) or you make a generic more generic
file and remove the unused UARTs / GPIOs in the board specific dts file.
Whatever you do, please keep the am33xx- at the beginning of the
filename.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-26  6:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-22 12:09 [PATCH 1/2] ARM: dts: Add an am33xx include file for MLO size reduction Wadim Egorov
2015-05-22 12:09 ` [PATCH 2/2] ARM: dts: Add strip-am33xx.dtsi to PHYTEC MLOs Wadim Egorov
2015-05-26  6:16 ` [PATCH 1/2] ARM: dts: Add an am33xx include file for MLO size reduction Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox