Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp1907475rwb; Fri, 5 Aug 2022 09:41:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR68NXRaN7wmYuOMifZAUxUMDoS03XxyaUGLv3t7YfxMuevFFLDpYao1Kp2lusy/CFr9MzRx X-Received: by 2002:a05:6a00:21c8:b0:52b:ffc0:15e7 with SMTP id t8-20020a056a0021c800b0052bffc015e7mr7686755pfj.29.1659717660645; Fri, 05 Aug 2022 09:41:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659717660; cv=none; d=google.com; s=arc-20160816; b=0fAC+RDwblIdHMp9jVmInItDabQXvfLdcEnWbuRTV+5jl3bEeoaOY076Wu5Fl0BTwO Kcv9kC7/kDYL+nhrfq+reXUzwGj2Px+qAUqIvTqJKYjFpwVi4LzbzFXcv0/4Tel5eM/2 bO0XO7Zqx8BDr+aAA2kkVs6w6Wh+JvH0/XflR1Ys+yArj+IE0fpiw7ArlT28Tt/XbgCF Dpm7ugX14ddkyqNKh43xogporuNtTcOlCaJ+ftb+q0y6eIZe4NwdaUkW9iMcUL2j0+Vz FoIqwmoB/FBU5QpHW26q25QbZ7onwioNzZf8nZqgo1QWNw8ZAVFd7b4IvAyVMmUR9ukF 6fJg== 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 :dkim-signature; bh=E8iWEu7u72D4Cl4M4gSvZHsI5dQSubGoMYwsdu1FZWU=; b=ceDLW29qM3tyJoEFzfbxhlnsyUz12GuHpDE0qrhjhu5F8/W8LvimK/rm4qB44CVe1G 8Rn1fr7GPaLz4WRzAoyXBoi5pSAtqmqCMU7cCwW73ZSTh3O3pMXfGzONvj2uLGlQPgaI WOJXAYpFxQ16/61zw2Lh1l21nReX4KWi+K7t3w/8IrtYbbkMVXbvPCKyFPX6BBb+0JEm Bk3WoJyvBFU48uWPVwJAxSIk1929nOnzD3XUsc/kpigGsltP1f34ut825KKdV5ZInBDq C7QpTHwzhJ/Yt8wLDKplYa8J3Qpjw3z4cvQZRsyh+HQVBDb/H6WLaCm3B87uX5KV99oN 7mNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@conchuod.ie header.s=google header.b="SagV/jMH"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=conchuod.ie Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b62-20020a633441000000b0041cacade866si3112683pga.503.2022.08.05.09.40.45; Fri, 05 Aug 2022 09:41:00 -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=@conchuod.ie header.s=google header.b="SagV/jMH"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=conchuod.ie Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241079AbiHEQ3P (ORCPT + 99 others); Fri, 5 Aug 2022 12:29:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240836AbiHEQ3H (ORCPT ); Fri, 5 Aug 2022 12:29:07 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BF97E0EC for ; Fri, 5 Aug 2022 09:29:06 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id z16so3761972wrh.12 for ; Fri, 05 Aug 2022 09:29:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=E8iWEu7u72D4Cl4M4gSvZHsI5dQSubGoMYwsdu1FZWU=; b=SagV/jMHKGASMD/cT6X473mBlOlzicU0AUDh9UambssZ2tjT0QWPfzhpv5CU1qTNOe Ddfy8c1bQ1yG9CeR7FDMP9QknXMcfMUE+Byise52p/JiaVA4+W+VBztftsDouBAa3t2g 2nRb2g/0ogD/BhxbNhJllKgVo1/L4hSx0dBiNp+l+3Yc7/Hwl01vZwawaVOxi2sRM6Iv +YjgoV+Oxr9NNxstRTgtAOzHe7S1zyhir5a1faOe3uBGBp8cVeuY5bGDp1CHzkixcPtb +TknqsGOz8YK3iQID272GlVw1lT7n35nGKQ+PgnmF7eMUsAREvkNRwlFU0RYzPqyT7cU OhpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=E8iWEu7u72D4Cl4M4gSvZHsI5dQSubGoMYwsdu1FZWU=; b=BN1HrEHEVG1ACwAPsFsg67ywG87D1RIniEIgQjgPmngVODI0C0cZp7jQUoEEC3p+OQ 7gTQkdOihsqASpK8/vyQgkD3NFp7P48nowwlx8HGKstA1YuJSt93KG4EG5iLKBzobMAx 85Ev4njahGuz+PyXkQzTJzUn+ccJEreMuO/O7OLtSWgvjCvQiOnbyc5q5jlVDYsrTIp6 weGrzPFjWqRiXghQnMCkAxT4WDZ14a0GaB+3RR48hjzmjfBDkybMqlIVhYOJ8MfdiOqj Wwh1xqaj69aQNoCT5yTixbAZhhIvhdATAW9wrtYHVE8bblNtDgQootLRXFVoqEZQnkxa 00tw== X-Gm-Message-State: ACgBeo2iMhD3Z6OcnlfWSfffvurNit8o4LBT4iJLJxxWzimePTWtIoZe YEi7o+5Lzm9X/OZRfWaF+0cpPA== X-Received: by 2002:a05:6000:2c1:b0:220:5f91:62de with SMTP id o1-20020a05600002c100b002205f9162demr4920411wry.715.1659716944614; Fri, 05 Aug 2022 09:29:04 -0700 (PDT) Received: from henark71.. ([93.107.66.220]) by smtp.gmail.com with ESMTPSA id b10-20020a056000054a00b00220633d96f2sm5210086wrf.72.2022.08.05.09.29.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Aug 2022 09:29:04 -0700 (PDT) From: Conor Dooley To: Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Palmer Dabbelt , Paul Walmsley , Albert Ou Cc: Daniel Lezcano , Anup Patel , Conor Dooley , Guo Ren , Sagar Kadam , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, qemu-riscv@nongnu.org, Rob Herring Subject: [PATCH 1/3] dt-bindings: timer: sifive,clint: add legacy riscv compatible Date: Fri, 5 Aug 2022 17:28:43 +0100 Message-Id: <20220805162844.1554247-2-mail@conchuod.ie> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220805162844.1554247-1-mail@conchuod.ie> References: <20220805162844.1554247-1-mail@conchuod.ie> 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,T_SCC_BODY_TEXT_LINE 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 From: Conor Dooley While "real" hardware might not use the compatible string "riscv,clint0" it is present in the driver & QEMU uses it for automatically generated virt machine dtbs. To avoid dt-validate problems with QEMU produced dtbs, such as the following, add it to the binding. riscv-virt.dtb: clint@2000000: compatible:0: 'sifive,clint0' is not one of ['sifive,fu540-c000-clint', 'starfive,jh7100-clint', 'canaan,k210-clint'] Reported-by: Rob Herring Link: https://lore.kernel.org/linux-riscv/20220803170552.GA2250266-robh@kernel.org/ Signed-off-by: Conor Dooley --- .../bindings/timer/sifive,clint.yaml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.yaml b/Documentation/devicetree/bindings/timer/sifive,clint.yaml index e64f46339079..9fcf20942582 100644 --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml @@ -22,12 +22,18 @@ description: properties: compatible: - items: - - enum: - - sifive,fu540-c000-clint - - starfive,jh7100-clint - - canaan,k210-clint - - const: sifive,clint0 + oneOf: + - items: + - enum: + - sifive,fu540-c000-clint + - starfive,jh7100-clint + - canaan,k210-clint + - const: sifive,clint0 + - items: + - const: sifive,clint0 + - const: riscv,clint0 + deprecated: true + description: For legacy systems & the qemu virt machine only description: Should be ",-clint" and "sifive,clint". -- 2.37.1