Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1136399pxf; Fri, 2 Apr 2021 02:07:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYgM6eykJp3eLeQAuaLAZ65lIYr6rZdg5zAAHDd63WcRl/JBwVPYzdTlKQNK6g7VX1GI+k X-Received: by 2002:a17:906:3488:: with SMTP id g8mr12821254ejb.282.1617354472437; Fri, 02 Apr 2021 02:07:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617354472; cv=none; d=google.com; s=arc-20160816; b=CDELWYdHcnlN5fObhW9wcrmW1Pw/w9/HXj7Eo7z7FnXt87YssxZkk7R7l3D5A7U3UG zDQuZzKDmDYD7nWlt8IWYpEQKDiabRRYGhUzmBIPuUkkPQkGimAqMZtDPL4CYBLx/D3x r5FqmHJDbLSvvTOmKY+S9eeB+JCH+42Bl3c+r294rRWyj+vPXV2TcZAoV5L0WN8LOzY/ Lqd+X/5D8EpKMzaigNEH7rx2eqQTuMO7D4vHky0PwmJIRM8Bo2wkWYkyUUpJx1QwGG/p H8TCzay4Ekelqkr3NhAk0QzlTDzv3plsJT5S2LNzQCMQenvcUxpJij95IrYPYADURIi+ WqdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=nbNfDK1spc4TPPgFaV4htNAg9QMsYU7CI9lGjazoX9A=; b=Z2eY0OW0wOMb7Eda7daUtuSf92ALqzwVoEbSp44NNby1vbCI5SsatmcaDfK2BJ0+jj PpAKITR1urOgNYg/PSOqqG0miw302l3VYTiBANkPRLVh5EojYml2EwrlUJ22zm53Vb5g R6fRAtbeJfwDY9rBYQrm9lmeAfBFm2xcOoCWy7zWeiRbC7q0wNumkTtvUVQ66aet5niw oNX2dTr89CXHgUDoj/f9ONf4kvR3wsDd/JtvXBhptCI7hwVfQ7BEJAV/VtekeX/e0cqt csseQQOx7mASetgxGfX4pzRpTSPnyEuTSt2MkpDVEdc+jFcl7zsSzTO0LGTF6OKGZMOC 5PeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l4si5638479eje.225.2021.04.02.02.07.24; Fri, 02 Apr 2021 02:07:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234669AbhDBJGd (ORCPT + 99 others); Fri, 2 Apr 2021 05:06:33 -0400 Received: from marcansoft.com ([212.63.210.85]:34342 "EHLO mail.marcansoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234404AbhDBJGd (ORCPT ); Fri, 2 Apr 2021 05:06:33 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: hector@marcansoft.com) by mail.marcansoft.com (Postfix) with ESMTPSA id 8194042720; Fri, 2 Apr 2021 09:06:24 +0000 (UTC) From: Hector Martin To: linux-arm-kernel@lists.infradead.org Cc: Hector Martin , Marc Zyngier , Rob Herring , Arnd Bergmann , Olof Johansson , Krzysztof Kozlowski , Mark Kettenis , Tony Lindgren , Mohamed Mediouni , Stan Skowronek , Alexander Graf , Will Deacon , Linus Walleij , Mark Rutland , Andy Shevchenko , Jonathan Corbet , Catalin Marinas , Christoph Hellwig , "David S. Miller" , devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 05/18] dt-bindings: timer: arm,arch_timer: Add interrupt-names support Date: Fri, 2 Apr 2021 18:05:29 +0900 Message-Id: <20210402090542.131194-6-marcan@marcan.st> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210402090542.131194-1-marcan@marcan.st> References: <20210402090542.131194-1-marcan@marcan.st> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Not all platforms provide the same set of timers/interrupts, and Linux only needs one (plus kvm/guest ones); some platforms are working around this by using dummy fake interrupts. Implementing interrupt-names allows the devicetree to specify an arbitrary set of available interrupts, so the timer code can pick the right one. This also adds the hyp-virt timer/interrupt, which was previously not expressed in the fixed 4-interrupt form. Reviewed-by: Linus Walleij Acked-by: Marc Zyngier Reviewed-by: Tony Lindgren Signed-off-by: Hector Martin --- .../bindings/timer/arm,arch_timer.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml b/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml index 2c75105c1398..7f5e3af58255 100644 --- a/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml +++ b/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml @@ -34,11 +34,30 @@ properties: - arm,armv8-timer interrupts: + minItems: 1 + maxItems: 5 items: - description: secure timer irq - description: non-secure timer irq - description: virtual timer irq - description: hypervisor timer irq + - description: hypervisor virtual timer irq + + interrupt-names: + oneOf: + - minItems: 2 + items: + - const: phys + - const: virt + - const: hyp-phys + - const: hyp-virt + - minItems: 3 + items: + - const: sec-phys + - const: phys + - const: virt + - const: hyp-phys + - const: hyp-virt clock-frequency: description: The frequency of the main counter, in Hz. Should be present -- 2.30.0