]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fix(fvp): fdts: fix memtimer subframe addressing
authorAndre Przywara <andre.przywara@arm.com>
Mon, 22 Aug 2022 14:50:22 +0000 (15:50 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Tue, 11 Oct 2022 15:11:44 +0000 (16:11 +0100)
The arm,armv7-timer-mem DT binding documentation demands that the
 #size-cells property should be <1> only.

Adjust the value to be <1> and drop the now needless leading 0 in the
frame's reg property. Convert to #address-cell = <1> on the way.
Also adjust the interrupts property to use the proper GIC macros.

Change-Id: Ia2224663b1e6aaa7cf94af777473641de6a840d2
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
fdts/fvp-base-psci-common.dtsi

index cf75c9550d0f38c917c810b0c6967b0b18c34bf7..d75c007dffe597973beb29d4a9012458f840583c 100644 (file)
                        compatible = "arm,armv7-timer-mem";
                        reg = <0x0 0x2a810000 0x0 0x10000>;
                        clock-frequency = <100000000>;
-                       #address-cells = <2>;
-                       #size-cells = <2>;
-                       ranges;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+                       ranges = <0x0 0x0 0x2a810000 0x100000>;
+
                        frame@2a830000 {
                                frame-number = <1>;
-                               interrupts = <0 26 4>;
-                               reg = <0x0 0x2a830000 0x0 0x10000>;
+                               interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
+                               reg = <0x20000 0x10000>;
                        };
        };