diff mbox series

[2/2] ARM: zynq: Fix OCM mapping to be aligned with binding on zc702

Message ID 30e9dbe86d47e1a2b82a235c1bc043122915647e.1622110752.git.michal.simek@xilinx.com
State Accepted
Commit e246dc49cffb63667b5ec9ba02f74d9edf09c3a2
Delegated to: Michal Simek
Headers show
Series [1/2] ARM: zynq: Convert at25 binding to new description on zc770-xm013 | expand

Commit Message

Michal Simek May 27, 2021, 10:19 a.m. UTC
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 | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Michal Simek May 31, 2021, 8:20 a.m. UTC | #1
čt 27. 5. 2021 v 12:19 odesílatel Michal Simek <michal.simek@xilinx.com> napsal:
>
> 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 | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/arch/arm/dts/zynq-zc702.dts b/arch/arm/dts/zynq-zc702.dts
> index e45eba3d90b3..4474f4bfd7b2 100644
> --- a/arch/arm/dts/zynq-zc702.dts
> +++ b/arch/arm/dts/zynq-zc702.dts
> @@ -68,6 +68,12 @@
>         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>;
> +               };
>         };
>  };
>
> --
> 2.31.1
>

Applied.
M
diff mbox series

Patch

diff --git a/arch/arm/dts/zynq-zc702.dts b/arch/arm/dts/zynq-zc702.dts
index e45eba3d90b3..4474f4bfd7b2 100644
--- a/arch/arm/dts/zynq-zc702.dts
+++ b/arch/arm/dts/zynq-zc702.dts
@@ -68,6 +68,12 @@ 
 	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>;
+		};
 	};
 };