ARM: dts: imx53: Fix sram.yaml warnings
authorFabio Estevam <festevam@denx.de>
Fri, 18 Nov 2022 13:20:15 +0000 (10:20 -0300)
committerShawn Guo <shawnguo@kernel.org>
Sat, 31 Dec 2022 07:00:02 +0000 (15:00 +0800)
Add ranges, #address-cells and #size-cells properties to the sram
node to fix the following warnings when checking sram.yaml:

make dtbs_check DT_SCHEMA_FILES=sram.yaml
...
  DTC_CHK arch/arm/boot/dts/imx53-qsb.dtb
arch/arm/boot/dts/imx53-qsb.dtb: sram@f8000000: '#address-cells' is a required property
From schema: Documentation/devicetree/bindings/sram/sram.yaml
/home/fabio/linux-next/arch/arm/boot/dts/imx53-qsb.dtb: sram@f8000000: '#size-cells' is a required property
From schema: Documentation/devicetree/bindings/sram/sram.yaml
/home/fabio/linux-next/arch/arm/boot/dts/imx53-qsb.dtb: sram@f8000000: 'ranges' is a required property
From schema: Documentation/devicetree/bindings/sram/sram.yaml

Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx53.dtsi

index 56b3c13..17dc137 100644 (file)
                ocram: sram@f8000000 {
                        compatible = "mmio-sram";
                        reg = <0xf8000000 0x20000>;
+                       ranges = <0 0xf8000000 0x20000>;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
                        clocks = <&clks IMX5_CLK_OCRAM>;
                };
        };