]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: zynq: Fix OCM mapping to be aligned with binding on zc702
authorMichal Simek <michal.simek@xilinx.com>
Thu, 26 Nov 2020 13:25:03 +0000 (14:25 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 23 Jun 2021 07:48:35 +0000 (09:48 +0200)
The Linux commit f69629919942 ("dt-bindings: sram: Convert SRAM bindings to
json-schema") converted binding to yaml and some missing required
properties started to be reported. Align binding based on it.

The patch is fixing these warnings:
.../zynq-zc702.dt.yaml: sram@fffc0000: '#address-cells' is a required property
.../zynq-zc702.dt.yaml: sram@fffc0000: '#size-cells' is a required property
.../zynq-zc702.dt.yaml: sram@fffc0000: 'ranges' is a required property
>From schema: .../Documentation/devicetree/bindings/sram/sram.yaml

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Link: https://lore.kernel.org/r/87c02786ccd8d7827827a9d95a8737bb300caeb0.1606397101.git.michal.simek@xilinx.com
arch/arm/dts/zynq-zc702.dts

index e45eba3d90b323f84f6e26e1d0dac31807016219..4474f4bfd7b25c513594281a0baa30db306b69cc 100644 (file)
        ocm: sram@fffc0000 {
                compatible = "mmio-sram";
                reg = <0xfffc0000 0x10000>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+               ranges = <0 0xfffc0000 0x10000>;
+               ocm-sram@0 {
+                       reg = <0x0 0x10000>;
+               };
        };
 };