Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp5223077rwb; Wed, 17 Aug 2022 13:25:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Gtaujc502VVugWwVCA3CG9rLMWClOVsO7vMFF/rO4t3AWFsSlgwnd3jLNciAiwMbvShrZ X-Received: by 2002:a17:90b:1e4e:b0:1fa:bab4:d24f with SMTP id pi14-20020a17090b1e4e00b001fabab4d24fmr3586044pjb.185.1660767954086; Wed, 17 Aug 2022 13:25:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660767954; cv=none; d=google.com; s=arc-20160816; b=SM4ypWjM8fIIMKAM9ywg1mt77XZYPw8vIOIbUqDUolGAONe+EaaH/0zxp0SLbhjDRF yAn9a/vt0lGv1xpA2s4QCE8klkxL8R2yvg7RVULoCuXk9O8Jc3EaJdLZuc01rnviCKGv rkyte3eDR8Zi3Bjn8J+vc1VqAVYjz15BiJhIy8LRLmrQvOmLnIPcgoGRRe8UYsy3tjy1 gtuzLig1CJyejGGWHqXm0AqwBtumH2N5IlILUZ1XZOOZohHdDvC9yZ365F3rjB+LEsfo pEFmg64sdItA1ZbQU5wnjbCagpFqRzEaXhLVMC+mL9wv1yZwySV/H+SALWbGB2N4maxK FgvA== 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=1R6UrF0Wsbj6EmcSlPWRzTAwonFDames2nGAVyANWlQ=; b=Nm9llY0ab2CtRI/AVnqY8y6+WBz88pt8RI6YdPuzC/RiMzU2/fWSw9lyoBr8FBiQXL uuGbl1lJsu+suow5eJigTQ6pEWV3/8NfunRaQ1zS1YHg2vzZ60bwio4TVakuDikG7yWT 84HrpDwqQ73AIW1noQMGksrEDiqkmpqxpUCtoog6cW13GK+uB3VDm3PeK5VyRR0wE+j9 bIonTyEEOVVDP/KHsr+XTmvGCqvXUSjqssEDy3IQCUOSX9pIz1eppnIU8YxSkZsqOZRV YERGtP10VL2NpA3ou73kOb1SWKGl42sw0S47YpsNp0TUloGOmQLFhmyJ/2V+6E3McPFY bWcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@conchuod.ie header.s=google header.b=emUeD3um; 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 d3-20020a170902cec300b0016bfdcb6f11si660966plg.194.2022.08.17.13.25.22; Wed, 17 Aug 2022 13:25:54 -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=emUeD3um; 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 S230051AbiHQUF7 (ORCPT + 99 others); Wed, 17 Aug 2022 16:05:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241321AbiHQUFx (ORCPT ); Wed, 17 Aug 2022 16:05:53 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F19C5A2CA for ; Wed, 17 Aug 2022 13:05:52 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id ay39-20020a05600c1e2700b003a5503a80cfso1445758wmb.2 for ; Wed, 17 Aug 2022 13:05:52 -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=1R6UrF0Wsbj6EmcSlPWRzTAwonFDames2nGAVyANWlQ=; b=emUeD3umpIWMTUwimxexv6coDslOSFZdTJZAG0mzIfyT8GhTm2y8Rz5AMG9Ml/own/ 1bvWibxPC5o+FKVmvr8wtGCmKyHocGnEAsXVO0ntDOfnJcELc45X3X92yWuj0qra73+b bi6yS6R7rH/1tgXaH7ew6gaJvDmgi3DFVyViPwHKiEf61xl3VsSjFE8tTGYOx3T3H8sw YpsLPRTKDXDpfnxxhi2vf/Hvx1riYhARNlfjzVIx2UCiXKxPouZe5cn25wjO1kcjdY7J dx/0jJrVOlVsCGDsup/V1cmbWyP5Gx3IFcBem4yoP9MuXeSBrOcHywknEN8fvwer7khG mxig== 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=1R6UrF0Wsbj6EmcSlPWRzTAwonFDames2nGAVyANWlQ=; b=MdET58H9QMVMWYMhTVuh6tjaVqDGH0ZgQiyH9R5TuLoA23I2N6Xerx/XZr+ECgLxAn E7u3ZVbFOZK5hv4/ny2GKs0SI6jiwoCrvt31CHPgjR93wKbydFbluV1snJsmZvOyBJeC pGjDXP2UOZr5EZJKcC/kWVNPL4R7GvcveQkKMgpvQUjQKRaRAtxKcuU8y07jDSkoqL8u JxcQJMwOvZNUdlSV7Nqyr8DgLXg9ddlkECERLeSlsTAXriXkbHk9PXykxhljYHtUYFnX /uMrV0U0WuZw1glcOAMHwUNIPVujxocx/ZmwSZzH9nEopUTvOtCtYla8z9vTwYau237+ SiWg== X-Gm-Message-State: ACgBeo3qLSsLAuLTLLRHWjPcbi+Qrs+8NSpIczuNwZnDt/AIfT3rzSKv JTFoW4HOGurCa5XxayIkhVMl5Q== X-Received: by 2002:a05:600c:1d12:b0:3a5:eb79:edc3 with SMTP id l18-20020a05600c1d1200b003a5eb79edc3mr3104767wms.136.1660766750603; Wed, 17 Aug 2022 13:05:50 -0700 (PDT) Received: from henark71.. ([109.76.58.63]) by smtp.gmail.com with ESMTPSA id i133-20020a1c3b8b000000b003a531c7aa66sm3400883wma.1.2022.08.17.13.05.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Aug 2022 13:05:49 -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 , Jessica Clarke , Andrew Jones , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, qemu-riscv@nongnu.org, Rob Herring Subject: [PATCH 1/4] dt-bindings: timer: sifive,clint: add legacy riscv compatible Date: Wed, 17 Aug 2022 21:05:20 +0100 Message-Id: <20220817200531.988850-2-mail@conchuod.ie> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220817200531.988850-1-mail@conchuod.ie> References: <20220817200531.988850-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,URIBL_BLOCKED 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..bbad24165837 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 the QEMU virt machine only description: Should be ",-clint" and "sifive,clint". -- 2.37.1