[PATCH v1 00/20] dts: avoid DT breakage new fancy DTC v1.7.0 syntax

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Feb 20 00:51:52 PST 2023


On 20.02.23 09:48, Marco Felsch wrote:
> Hi Ahmad,
> 
> On 23-02-17, Ahmad Fatoum wrote:
>> The fresh v1.7.0 release of the device tree compiler now contains
>> fancy new syntax:
>>
>>   &{i2c1/at24 at 50} {
>> 	partitions {
>> 		/* something */
>> 	};
>>   };
>>
>> instead of &{/soc/bus1/bus2/i2c at 12345678/at24 at 50}, which is overly
>> verbose or &i2c1 { at24 at 50 }, which will break once someone renames
>> it upstream to please the schema checker.
> 
> Just to double check this and I understood you correctly, the compiler
> will complain if we specify:
> 
> 	&{i2c1/at24 at 50} { };
> 
> and the node is not exisitng anymore?

Exactly.

> 
> Regards,
>   Marco
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




More information about the barebox mailing list