[PATCH v2 dtc-1.3.0] dtc: Add --strip-disabled option to dtc(v2).

Timur Tabi timur at freescale.com
Tue Aug 21 02:09:12 EST 2012


Srinivas KANDAGATLA wrote:

> I agree with you to some extent,
> But, Lets say a given SOC can support 5 UARTs But the board actually has
> only one wired up.
> Device tree for SOC has 5 entries for UART with disabled and only one
> UART is enabled by board level device tree.
> This is just once instance, think about SPI's, I2C, PWM's, Ethernets,
> memory devices... and other IP's which might wired up for particular boards.

It's true that in this case, the devices would be marked as "disabled" in
the DTS.  Even using dtsi files won't help, because the board DTS file
will do something like this:

/include/ "uart1.dtsi"
soc: soc at e0000000 {
	uart1: uart at 1000 {
		status = "disabled";
	};
};

So I understand why you would want to remove disabled nodes completely.  I
have no objection to your patch, but it's not my decision to make.  I'm
not convinced, however, that it's a real problem.  You're saving only a
10-20KB.  Is that really a problem?

-- 
Timur Tabi
Linux kernel developer at Freescale



More information about the devicetree-discuss mailing list