Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1043021rwb; Thu, 22 Sep 2022 09:22:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6meDReZ7K5foX+dMeDoQbhL89YlvdKhlQO8CChygxSc0+NVEFQnnNdD9p5nDieXQOjd+DH X-Received: by 2002:a17:906:cc0e:b0:77c:d77:576d with SMTP id ml14-20020a170906cc0e00b0077c0d77576dmr3529331ejb.658.1663863734256; Thu, 22 Sep 2022 09:22:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663863734; cv=none; d=google.com; s=arc-20160816; b=p/gJJSgYUW4ZcfaeaFqWLb15NOVIOJCUc3A55MLJMChOW/vaw60lFWNb/3A7L7WhV+ VHb/1DcHoKeO59R3E7uKpxJTZZ99mdDWTsITl7Wm+yeea+1bC3BRsTaX7LzvrdnkBVeZ 3MTQWvOtzmAixjQmcsWzL+3JNi0fhqIghq0H4lD6jWBqSxtmIlT8zw6n4Oe5qTQNf5cR DCZSoIIZAWEt2rKEXTh67ovdw18pscP78ifR8lYtzZ6RStGlufBVBuoLE8dYYxPX93lT UoV1lDPzABmMgXj2rcstk1sOl8gKPVMlodA0T7S87JuWN6a/0iEBbpGDQlJLcixeBrH3 ELDA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=rsvkRsPhXHyqjG3IrHR5KoCBpzHVbWWSnvgI49rkKnY=; b=PUEuf4VAN3zRB7+hdZBaaW/BJTHo+yuaOUvei0WwUnXqjqlNd4nEBjnL7+G6KQaGVh k+SnzlGosISkAkLLU9TAUYv9z2x1D4k+e+K7Av9q4WwA2xE78LWr7MmqpsGaA6jswO5n KFslrSqmAIdRoUPLC9HjgAm+5SwzgHvH1Fu5nug5uNYJekfQuGub4k2Ug4S8FDdajs/F KlD0M5vp8ACpUsJB6VJdTRMZdGnsqxk+3fBcCp6O/3HXVRUe4S5TkxL28hzbB0Q0BBcT 6Dg+o0HboRDS9SLWZSp0G7bIoEf2LPc3znUxjpv3clcgTTMlf6IDChnRbcBRlR7KSfgh PGvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="eSGbB/Aq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c9-20020aa7c989000000b0044ed63adce3si4939465edt.397.2022.09.22.09.21.44; Thu, 22 Sep 2022 09:22:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="eSGbB/Aq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230417AbiIVQQK (ORCPT + 99 others); Thu, 22 Sep 2022 12:16:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230402AbiIVQQI (ORCPT ); Thu, 22 Sep 2022 12:16:08 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E482EEB68 for ; Thu, 22 Sep 2022 09:16:05 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id bq9so16375238wrb.4 for ; Thu, 22 Sep 2022 09:16:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=rsvkRsPhXHyqjG3IrHR5KoCBpzHVbWWSnvgI49rkKnY=; b=eSGbB/AqaLzQjsmsEnLWV2zrRgRbccRxCkC/dbswA3lZ9SpTfTkqmhW+hBixh/47XU GLqxvLrmmK9GFvQ4EEU5EIYYx6px79FCbTqbYpAjF3Xnk/uUDsVqUnyfVlT9dON6153M sfGGGHT05SRnyCeTYP8PsRO9c9WRC3RE7mFttmMvahbGg++njHxYd7GLzV86vJCOcwpy JHUoy5PQbhrQSij6wKlgcYlPpthnBmcQ4oB2eQIzr8wKl9LXISJAKzO5qBkaBkuRszaf bdZTFpjHJvasHQNoYTgizWlDnUGTPwhS5bWBoieewv43ZOr3sTPAHWw4puTFkXK+O6ri 1sUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=rsvkRsPhXHyqjG3IrHR5KoCBpzHVbWWSnvgI49rkKnY=; b=a2ZIz8/mqNotWrKi49MbifvS2K3f4lbXPpJdhtsgmKtIoue6XqnmYjAnwunE4874ky nN0q5LzM7kf/p3Drk0J06rYqmGdXQ9TKy+oN3avjV3h0WT4WPgejlmahRbTuq5Y4ns/e iAGvdnaTEn/2TtQvJMrE9LEGcdtOWUaSxr2SaWgswvJT9SdeR6Knqu6QY3WOzVBRD5hw tW5sTeebCtwTsoVsOSWU10WVFxuSPA6FYMLnuYTyfKG46/mqBkVE0Gww5b/oDxeiq2vG RtPPjwQJc7axCbEdLVNCxVk6KeLF4KWb2+FA9RjIIcM87t88KJKwdVhlxdMpKQjxBpGP 6cxg== X-Gm-Message-State: ACrzQf1bZai41Uk/g0VKrpf817J+3euWTk7UtUIi5iUUjfOk45J9s1Za +zO5KfjU77OVJRQpzheywQfklw== X-Received: by 2002:a5d:6b83:0:b0:22a:80e4:f379 with SMTP id n3-20020a5d6b83000000b0022a80e4f379mr2543574wrx.3.1663863363609; Thu, 22 Sep 2022 09:16:03 -0700 (PDT) Received: from localhost.localdomain (cpc92880-cmbg19-2-0-cust679.5-4.cable.virginm.net. [82.27.106.168]) by smtp.gmail.com with ESMTPSA id c17-20020a7bc851000000b003b47575d304sm7568304wml.32.2022.09.22.09.16.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Sep 2022 09:16:02 -0700 (PDT) From: Jean-Philippe Brucker To: maz@kernel.org, mark.rutland@arm.com Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jean-Philippe Brucker , Krzysztof Kozlowski Subject: [PATCH v2] dt-bindings: timer: arm,arch_timer: Allow dual compatible string Date: Thu, 22 Sep 2022 17:11:50 +0100 Message-Id: <20220922161149.371565-1-jean-philippe@linaro.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since the Armv7 and Armv8 architected timers are compatible, it is valid to expose a devicetree node with compatible string "arm,armv8-timer" followed by "arm,armv7-timer". For example a 32-bit guest running on a 64-bit machine may look for the v7 string even though the hardware is v8. VMMs such as QEMU and kvmtool have been using this compatible string for some time. Clean up the compatible list a little and add the dual option. Acked-by: Krzysztof Kozlowski Signed-off-by: Jean-Philippe Brucker --- v2: Reworked commit message, removed "obsolete" description v1: https://lore.kernel.org/all/20220916132959.1910374-1-jean-philippe@linaro.org/ --- .../devicetree/bindings/timer/arm,arch_timer.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml b/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml index df8ce87fd54b..c5fc3b6c8bd0 100644 --- a/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml +++ b/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml @@ -22,16 +22,15 @@ properties: compatible: oneOf: - items: - - enum: - - arm,cortex-a15-timer - - enum: - - arm,armv7-timer + - const: arm,cortex-a15-timer + - const: arm,armv7-timer - items: - enum: - arm,armv7-timer - - items: - - enum: - arm,armv8-timer + - items: + - const: arm,armv8-timer + - const: arm,armv7-timer interrupts: minItems: 1 -- 2.37.3