arm64: dts: intel: socfpga_agilex: move timer out of soc node
authorKrzysztof Kozlowski <krzk@kernel.org>
Mon, 8 Mar 2021 17:09:39 +0000 (18:09 +0100)
committerDinh Nguyen <dinguyen@kernel.org>
Tue, 30 Mar 2021 10:51:30 +0000 (05:51 -0500)
The ARM architected timer is part of ARM CPU design therefore by
convention it should not be inside the soc node.  This also fixes dtc
warning like:

    arch/arm64/boot/dts/intel/socfpga_agilex.dtsi:410.9-416.5:
        Warning (simple_bus_reg): /soc/timer: missing or empty reg/ranges property

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
arch/arm64/boot/dts/intel/socfpga_agilex.dtsi

index 8f0736e4f3b5ce6921b85213e9cf9372d772a22d..25882faccbdb30b6a49c5d05d2ebfbb018f61677 100644 (file)
                };
        };
 
+       timer {
+               compatible = "arm,armv8-timer";
+               interrupt-parent = <&intc>;
+               interrupts = <1 13 0xf08>,
+                            <1 14 0xf08>,
+                            <1 11 0xf08>,
+                            <1 10 0xf08>;
+       };
+
        soc {
                #address-cells = <1>;
                #size-cells = <1>;
                        reg = <0xffd12000 0x500>;
                };
 
-               /* Local timer */
-               timer {
-                       compatible = "arm,armv8-timer";
-                       interrupts = <1 13 0xf08>,
-                                    <1 14 0xf08>,
-                                    <1 11 0xf08>,
-                                    <1 10 0xf08>;
-               };
-
                timer0: timer0@ffc03000 {
                        compatible = "snps,dw-apb-timer";
                        interrupts = <0 113 4>;