Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1630826pxb; Thu, 4 Mar 2021 16:59:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJwIiHk1sFJhwCtR2crkkBlutQ6I6zrJdh41ijYWIw1BVg8q5NYKqcXSjPq7VCU51FbDBcik X-Received: by 2002:a05:6638:338a:: with SMTP id h10mr6907836jav.129.1614905944374; Thu, 04 Mar 2021 16:59:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614905944; cv=none; d=google.com; s=arc-20160816; b=tE2ipato/cYM9PNtcOXVX5CwgXYYArPjYmmhP9ccjmZey8ec1btBsTum5jH1EpLqeC hpKOmpN6yv7G5V6uLwvTIANxv6nQRc7DrXiy8Jz4uVLmqDxPzAs54BOnrHLIKR/65YDR ypJNO+zBWUZuIS4Yr/yRO9zNub+qfwh0krLNpuZm00WYcClR9SRX4wgP3A97irF6iSLs fTzFA0yaeGKyDahrNyrJGR4yMm68xKeViXL3Ut46BpJUK2/GXvXpQhIPRMwq8z0db5fB 8z6Qmaf/ROJIYshBwAWEaKviY0wOTmQ0owQ54ECGKfHNBakgHOnS7qxhikgkhKWcDufC yRKQ== 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=y1AvDbCY4T8WKQsHgLxrBWhCNRmZ2IUvrmukVpZw3ApYAdbbRxOqC41yFvXtchdnZ/ qsJsPtMdbwAV8LYfQJKXm2BqJaDePHZwR45cTt8bMJQD97EkcvBMvylGcTvOlEutNVVM 5RC7q52Pj2gI0lyaQSbR15dqaj0kQmqcn21N5iznBgel3mL4sCvRX0Z5ptRAk+Q32HJ8 KkC2cy7cwewvRrsPiobpW4ELbWF4EEhM4SDfaNVC3wxgNeREtP/HHr6SVeK2bCd9WjhS ZZE3+KkgQ2zUK8d4Zj39gdNwMahRxxTTsf/YUdQmCj96+JHYmuOOMoP6GLfSGqR3R1ZQ TAMA== 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 q15si761015iow.39.2021.03.04.16.58.51; Thu, 04 Mar 2021 16:59:04 -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 S240173AbhCDVlZ (ORCPT + 99 others); Thu, 4 Mar 2021 16:41:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236930AbhCDVkx (ORCPT ); Thu, 4 Mar 2021 16:40:53 -0500 Received: from mail.marcansoft.com (marcansoft.com [IPv6:2a01:298:fe:f::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A645C061574; Thu, 4 Mar 2021 13:40:13 -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 CE7DE425B1; Thu, 4 Mar 2021 21:40:02 +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 , Greg Kroah-Hartman , Jonathan Corbet , Catalin Marinas , Christoph Hellwig , "David S. Miller" , devicetree@vger.kernel.org, linux-serial@vger.kernel.org, linux-doc@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFT PATCH v3 06/27] dt-bindings: timer: arm,arch_timer: Add interrupt-names support Date: Fri, 5 Mar 2021 06:38:41 +0900 Message-Id: <20210304213902.83903-7-marcan@marcan.st> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210304213902.83903-1-marcan@marcan.st> References: <20210304213902.83903-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