analogdevicesinc / lnxdsp-u-boot

U-Boot for Analog Devices ADSP-SC5xx based EZ-KIT boards
3 stars 9 forks source link

sc589-ezkit.dts: fix dtc warnings #4

Closed twoerner closed 1 year ago

twoerner commented 2 years ago

The dtc throws the following warnings when compiling the dts for the sc589-ezkit (for both the SPL and U-Boot proper):

arch/arm/dts/sc589-ezkit.dtb: Warning (reg_format): /soc/i2c2@31001600/mcp23017@21:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm/dts/sc589-ezkit.dtb: Warning (reg_format): /soc/i2c2@31001600/mcp23017@22:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm/dts/sc589-ezkit.dtb: Warning (ranges_format): /soc:ranges: empty "ranges" property but its #address-cells (1) differs from / (2)
arch/arm/dts/sc589-ezkit.dtb: Warning (avoid_default_addr_size): /soc: Relying on default #address-cells value
arch/arm/dts/sc589-ezkit.dtb: Warning (avoid_default_addr_size): /soc: Relying on default #size-cells value
arch/arm/dts/sc589-ezkit.dtb: Warning (avoid_default_addr_size): /soc/i2c2@31001600/mcp23017@21: Relying on default #address-cells value
arch/arm/dts/sc589-ezkit.dtb: Warning (avoid_default_addr_size): /soc/i2c2@31001600/mcp23017@21: Relying on default #size-cells value
arch/arm/dts/sc589-ezkit.dtb: Warning (avoid_default_addr_size): /soc/i2c2@31001600/mcp23017@22: Relying on default #address-cells value
arch/arm/dts/sc589-ezkit.dtb: Warning (avoid_default_addr_size): /soc/i2c2@31001600/mcp23017@22: Relying on default #size-cells value

The fixes involve explicitly setting the #address-cells and #size-cells values.

Signed-off-by: Trevor Woerner twoerner@gmail.com

vasbimpikasadi commented 1 year ago

Thanks for this! I've commited it this internally and will show up here soon (on our next repo sync)