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

Sascha Hauer sha at pengutronix.de
Tue Feb 21 02:25:06 PST 2023


On Fri, Feb 17, 2023 at 06:30:37PM +0100, 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.
> 
> Let's update to this new DTC release and change a lot of non-portable DT
> we have to use this new syntax or use existing labels if available or
> just absolute paths. This also fixes some breakage, but most of it is
> future-proofing.
> 
> I did some build testing and fixed the fallout, but Sascha's build of all
> configs may turn up some breakage too, which I would fix for v2.
> 
> Ahmad Fatoum (20):
>   scripts/dtc: Update to upstream version v1.7.0
>   scripts/dtc: update-dts-source.sh: don't fail if libfdt/ exists
>   Documentation: devicetree: describe new label-relative-path syntax
>   ARM: dts: use DT labels instead of paths where possible
>   MIPS: dts: ath79: ar9331: use path references when extending nodes
>   ARM: dts: tegra: switch to path and label references
>   ARM: i.MX51: ccmx51: support newer device trees
>   ARM: i.MX6: gw54xx: rename watchdog nodes
>   ARM: i.MX6: karo-tx6x: fix now renamed DT nodes
>   ARM: dts: zii: use phandle-relative paths for extending nodes
>   ARM: dts: AT91: use label-relative paths for extending nodes
>   ARM: dts: Layerscape: drop unneeded EEPROM node overriding
>   ARM: dts: Layerscape: use label-relative paths references
>   ARM: dts: vf610-zii-cfu1: remove duplicate LED
>   ARM: dts: i.MX53: ccxmx53: remove unused /memory
>   ARM: dts: i.MX: use label-relative references
>   ARM: dts: i.MX: delete now renamed memory nodes as well.
>   ARM: dts: socfpga: cut down on NAND node duplication
>   ARM: dts: i.MX8MN: evk: use upstream flash node definition
>   ARM: dts: i.MX8MN: evk: reduce duplication in barebox-added nodes

Applied all patches that apply on master, so all except "ARM: dts: i.MX:
use label-relative references"

Sascha

-- 
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