Hi.
In patch: 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/arch/arm/boot/dts/sun8i-r40.dtsi?h=next-20200317&id=8614a5e9720633e0c4be70b35fce8faa4b2d485a
mbus has 3 dma-ranges but does not specify the number of address-cells 
which gives a warning when decompiling dtb:
bpi@bpi-m2u:/tmp/u-boot$ dtc -I dtb -O dts /tmp/u-boot/arch/arm/dts/sun8i-
r40-bananapi-m2-ultra.dtb -o /tmp/tmp.dts
/tmp/tmp.dts:
 Warning (dma_ranges_format): /soc/dram-controller@1c62000:dma-ranges: 
"dma-ranges" property has invalid length (12 bytes) (parent 
#address-cells == 1, child #address-cells == 2, #size-cells == 1)
I have added: #address-cells = <1> and the warning has disappeared.

mbus: dram-controller@1c62000 {
            compatible = "allwinner,sun8i-r40-mbus";
            reg = <0x01c62000 0x1000>;
            clocks = <&ccu 155>;
            dma-ranges = <0x00000000 0x40000000 0x80000000>;
+            #address-cells = <1>;
            #interconnect-cells = <1>;
        };





-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/linux-sunxi/0e7b51dd-b825-408e-b30e-f73451f9367c%40googlegroups.com.

Reply via email to