Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4897291pxb; Mon, 15 Feb 2021 04:22:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJyn0dyHEmF1Yq8+HQI6cnq6cfUc8mEZHzJKWo0rtUe2tXWdVtodQS1A9Ld5kT+v1vEwGpvZ X-Received: by 2002:a50:fe04:: with SMTP id f4mr15349939edt.63.1613391736745; Mon, 15 Feb 2021 04:22:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613391736; cv=none; d=google.com; s=arc-20160816; b=AlyqRuGCIpcqCWGBP84rWjCSasN11bYUXERqzJtsN2dNzQNm2T5raxyhyQwGjwjFWF HoWJfRp29jX1pwvlWwlLZ9XU6xTWJqrIFGcCwqakOZBTrOExRTFNYrpY3v9nLhtT1zCK wudhhCRPKWPGCqGv4JH8T5Bj6fL0ZheZaOPdP7pGmy0gB9YbeM38Em2Z3c8yr1/kOkcw uFfUvd/xjXdTi7Ni4cDcODcNClASX+4+7tNDjz8uYlTxCjqkj4dDpWfC11pH2kiZLwpw b+AjX+A9MwmOOeCLbGsgTHOEV0CUOm8RsNwbKa60nPWGdK9aVOolREbglOm5FXsbSdnB lr1w== 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=FMNL6OHbNOwzdRMMWxCDMAOxQ0UbsI4oGexplmSK/N0=; b=M2oYLPkmWSwfH0WgRM+fYtD/w7iPIooxNaY4plH3mORDnP4rAte5iF6370eJmSu83v /rfe+iiDovHE3Cf5IufR2QoutX2lkGgEnTXpxEJJGuhsFMLOTsbwiTI6LJ4UhJi2owh9 ycWO7DWDLtIofbGPoHxM061QtgUuz8hIeBbN8NeaESMJQegAFGZpsm6InHK3sts8riua VAG1njS1QRM6JL+Inz0MH5qOjHJpGA2yNTacyiH5CAUA/TlzYIcAMsBR36zo2k0qpyEK 07uQkW1WJXLdXRjx5/Ebds9Bj4eQzLAsKpCKKqx5kVS4URIew3EeSm+cszbIEmUDaYZy OEMg== 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 r25si15634864edc.514.2021.02.15.04.21.54; Mon, 15 Feb 2021 04:22:16 -0800 (PST) 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 S229928AbhBOMTg (ORCPT + 99 others); Mon, 15 Feb 2021 07:19:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230142AbhBOMSp (ORCPT ); Mon, 15 Feb 2021 07:18:45 -0500 Received: from mail.marcansoft.com (marcansoft.com [IPv6:2a01:298:fe:f::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11DB7C061788; Mon, 15 Feb 2021 04:18:05 -0800 (PST) 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 EAA184249A; Mon, 15 Feb 2021 12:17:58 +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 , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 05/25] dt-bindings: timer: arm,arch_timer: Add interrupt-names support Date: Mon, 15 Feb 2021 21:16:53 +0900 Message-Id: <20210215121713.57687-6-marcan@marcan.st> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210215121713.57687-1-marcan@marcan.st> References: <20210215121713.57687-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. Signed-off-by: Hector Martin --- .../devicetree/bindings/timer/arm,arch_timer.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml b/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml index 2c75105c1398..ebe9b0bebe41 100644 --- a/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml +++ b/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml @@ -34,11 +34,25 @@ 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: + minItems: 1 + maxItems: 5 + items: + enum: + - phys-secure + - phys + - virt + - hyp-phys + - hyp-virt clock-frequency: description: The frequency of the main counter, in Hz. Should be present -- 2.30.0