arm64: dts: stratix10: move ARM timer out of SoC node
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Mon, 27 Dec 2021 13:35:53 +0000 (14:35 +0100)
committerDinh Nguyen <dinguyen@kernel.org>
Wed, 9 Feb 2022 16:43:03 +0000 (10:43 -0600)
The ARM timer is usually considered not part of SoC node, just like
other ARM designed blocks (PMU, PSCI).  This fixes dtbs_check warning:

  arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dt.yaml: soc: timer:
    {'compatible': ['arm,armv8-timer'], 'interrupts': [[1, 13, 3848], [1, 14, 3848], [1, 11, 3848], [1, 10, 3848]]} should not be valid under {'type': 'object'}
    From schema: dtschema/schemas/simple-bus.yaml

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi

index 3ec301bd08a9158c89b6346e41404205002efdae..505542b75a366dda860c3d2cf6ef9dc31ffc1508 100644 (file)
                method = "smc";
        };
 
+       /* Local timer */
+       timer {
+               compatible = "arm,armv8-timer";
+               interrupts = <1 13 0xf08>,
+                            <1 14 0xf08>,
+                            <1 11 0xf08>,
+                            <1 10 0xf08>;
+               interrupt-parent = <&intc>;
+       };
+
        intc: interrupt-controller@fffc1000 {
                compatible = "arm,gic-400", "arm,cortex-a15-gic";
                #interrupt-cells = <3>;
                        reg = <0xffd12000 0x228>;
                };
 
-               /* 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>;