From patchwork Mon Dec 27 13:35:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 528332 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2AB9CC433EF for ; Mon, 27 Dec 2021 13:36:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236818AbhL0NgR (ORCPT ); Mon, 27 Dec 2021 08:36:17 -0500 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:54614 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236899AbhL0NgM (ORCPT ); Mon, 27 Dec 2021 08:36:12 -0500 Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 7471E3FFD5 for ; Mon, 27 Dec 2021 13:36:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1640612171; bh=Xg8khZUOfJf1NqTEkbMr+q22xxCSbQVKtUkZgNNGg4U=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qkcaJy6b0OXpm2oLWYa1UpPBkSb1ECCP/AvUxqOtideZt6e7Cuj+Qy1+DSf/+XggV 7MKZDmcieWvQmB3IxB0ZazEEAOfsY+c3zXgdS+2WVhDxg+aaUlNmFjNEjUEtwC+mzI y+rU0k8uaUueZYG6RqTb3PA63YbgCCt7QarKBqXs3xel6+purYfSxgPyfpg0cHWrTu Yq/51A6XKO8AI6/S2tinFydSv1d/cYmDzlF/NM7fljOlhIjDjio3hz9BIZ4QvwFC26 FF6ViZ8bWrBHQt7neFzyUE3FupEuD4ItrkZTUGg4MXVdeGkUQImrZJTz0HiVhpat6R Fnf/EqRDob4qw== Received: by mail-lj1-f198.google.com with SMTP id u9-20020a05651c140900b0022dd165d92bso1407177lje.4 for ; Mon, 27 Dec 2021 05:36:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Xg8khZUOfJf1NqTEkbMr+q22xxCSbQVKtUkZgNNGg4U=; b=KF2n56mzAkHU4+QLRMQJlcwcmkI/sFEikUpwFfO3BbXypAETFK7Eql1py8KZZ3nvke 5BZUkza9e2S8y/Pna0wMBBOJHRCGvKZcG86vKZmvyrZ7yHoKhEZJ6Tas+YqHg0fLU9Ag bxD2sYEFJBVTN6w9YpwA/GOlKsQwWLZA0/L1zRHwH1nWafQeCwJjC7/ywxeZ6R4BIwOg fg7B7sHNvUlwSJRXbWoUCnCbsHVGAgvWJgvgMxiBZlI+B1aSlqZIIsCa/+KhCZFaXJ/S sJO6dRPQs3Rk3qLDR3EdsBB0vbPo3Kb+Y36qmYdp5F84EPBc/wHD/KW6s0cSYxEfjGsS us+Q== X-Gm-Message-State: AOAM531ew/iZOYikJwBlbB1ayfXYjcJ/4p/ty0Bl+qYu66HZNKAmC27O JHZ/nVuFUcWPWHlFJni742Mpz2Utnvto41HhdLLlpebQJX01lTYUs737l1qAfj3LCtCMCxpbJmM k8LpcvakabRMjeSRiLn17iToyLMC1PTZp+tymB7U= X-Received: by 2002:a05:651c:2104:: with SMTP id a4mr8546240ljq.110.1640612170662; Mon, 27 Dec 2021 05:36:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwcTXhaVrfLaVpLF0AzUd+PQzoLL+LOJnOJx2UUTk5ykxRQdXsMFxEfO3cnYjPxN9aMqd58Yw== X-Received: by 2002:a05:651c:2104:: with SMTP id a4mr8546229ljq.110.1640612170519; Mon, 27 Dec 2021 05:36:10 -0800 (PST) Received: from krzk-bin.lan (89-77-68-124.dynamic.chello.pl. [89.77.68.124]) by smtp.gmail.com with ESMTPSA id g18sm800107ljj.124.2021.12.27.05.36.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Dec 2021 05:36:10 -0800 (PST) From: Krzysztof Kozlowski To: Rob Herring , Michael Turquette , Stephen Boyd , Ulf Hansson , Dinh Nguyen , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-mmc@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 14/19] arm64: dts: stratix10: move ARM timer out of SoC node Date: Mon, 27 Dec 2021 14:35:53 +0100 Message-Id: <20211227133558.135185-8-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211227133131.134369-1-krzysztof.kozlowski@canonical.com> References: <20211227133131.134369-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 --- .../boot/dts/altera/socfpga_stratix10.dtsi | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi index d301ac0d406b..4a527d614ee5 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi @@ -77,6 +77,16 @@ psci { 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>; @@ -406,15 +416,6 @@ sysmgr: sysmgr@ffd12000 { 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>;