From f33e113c7a7dffd8ed219f25191907fd64bcf19f Mon Sep 17 00:00:00 2001 From: Andre Przywara Date: Tue, 19 Jul 2022 12:11:37 +0100 Subject: [PATCH] fix(morello): dts: remove #a-c and #s-c from memory node The #address-cells and #size-cells properties affect the size of reg properties in *child* nodes only, they have no effect on the current node. The /memory node has no children, hence there is no need to specify those properties. dt-validate complains about this: ========== morello-soc.dtb: /: memory@80000000: '#address-cells', '#size-cells' do not match any of the regexes: 'pinctrl-[0-9]+' From schema: dt-schema.git/dtschema/schemas/memory.yaml ========== Remove the unneeded properties. Change-Id: I35058a00fa9bfa1007f31a4c21898dd45c586aa8 Signed-off-by: Andre Przywara --- fdts/morello-fvp.dts | 4 ---- fdts/morello-soc.dts | 4 ---- 2 files changed, 8 deletions(-) diff --git a/fdts/morello-fvp.dts b/fdts/morello-fvp.dts index 065535ee0..dc3df4180 100644 --- a/fdts/morello-fvp.dts +++ b/fdts/morello-fvp.dts @@ -79,16 +79,12 @@ /* The first bank of memory, memory map is actually provided by UEFI. */ memory@80000000 { - #address-cells = <2>; - #size-cells = <2>; device_type = "memory"; /* [0x80000000-0xffffffff] */ reg = <0x00000000 0x80000000 0x0 0x80000000>; }; memory@8080000000 { - #address-cells = <2>; - #size-cells = <2>; device_type = "memory"; /* [0x8080000000-0x83ffffffff] */ reg = <0x00000080 0x80000000 0x1 0x80000000>; diff --git a/fdts/morello-soc.dts b/fdts/morello-soc.dts index 0ae00b5c9..5f147b7f7 100644 --- a/fdts/morello-soc.dts +++ b/fdts/morello-soc.dts @@ -60,16 +60,12 @@ /* The first bank of memory, memory map is actually provided by UEFI. */ memory@80000000 { - #address-cells = <2>; - #size-cells = <2>; device_type = "memory"; /* [0x80000000-0xffffffff] */ reg = <0x00000000 0x80000000 0x0 0x7F000000>; }; memory@8080000000 { - #address-cells = <2>; - #size-cells = <2>; device_type = "memory"; /* [0x8080000000-0x83f7ffffff] */ reg = <0x00000080 0x80000000 0x3 0x78000000>;