arm64: dts: juno: Fix mem-timer
authorAndre Przywara <andre.przywara@arm.com>
Wed, 13 May 2020 10:30:03 +0000 (11:30 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Sun, 17 May 2020 17:57:10 +0000 (18:57 +0100)
The Juno's mem-timer DT node was not fully compliant with the DT binding,
which has certain expectation about child nodes and their size and
address cells values.

Use a cell size of 1, as the binding requests, and spell out the ranges
property to be binding compliant.

Link: https://lore.kernel.org/r/20200513103016.130417-8-andre.przywara@arm.com
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
arch/arm64/boot/dts/arm/juno-base.dtsi

index f5889281545f7f3b4753f4e70c863f874bd1346e..3feefd61eb7613d1804027ec5f1caf1ad51d5ecc 100644 (file)
                compatible = "arm,armv7-timer-mem";
                reg = <0x0 0x2a810000 0x0 0x10000>;
                clock-frequency = <50000000>;
-               #address-cells = <2>;
-               #size-cells = <2>;
-               ranges;
+               #address-cells = <1>;
+               #size-cells = <1>;
+               ranges = <0 0x0 0x2a820000 0x20000>;
                status = "disabled";
                frame@2a830000 {
                        frame-number = <1>;
                        interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
-                       reg = <0x0 0x2a830000 0x0 0x10000>;
+                       reg = <0x10000 0x10000>;
                };
        };