I wonder if it is allowed and by this possible that duplicate labels within a *.dts device tree file appear and if so what happens then?
Does a new label allow to overwrite/redefine the old label, for instance?
To make the question more transparent and clearer I would like to state the question what happens to this example dts data.
/dts-v1/;
/ {
#address-cells = <1>;
#size-cells = <1>;
chosen {
labelname: bootargs = "lalalallal";
labelname: bootargs2 = "lalalallal";
};
aliases { };
memory { device_type = "memory"; reg = <0 0>; };
};
in which the we have a duplicate use of the label labelname
.
The motivation to this question was the inability to find a clear and crisp documentation on the dts syntax telling that labels need to be unique