From patchwork Mon Nov 21 04:17:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 23526 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1383855wrr; Sun, 20 Nov 2022 20:26:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf5eZb3fSvIyoZp1FlCKGvbJDiFPDXWj9fH7+IsA3eV0ka4jiVZ0qOlc7GfXmvSngMQjtJal X-Received: by 2002:a17:903:40c1:b0:186:b59e:b9f7 with SMTP id t1-20020a17090340c100b00186b59eb9f7mr10210402pld.99.1669004791870; Sun, 20 Nov 2022 20:26:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669004791; cv=pass; d=google.com; s=arc-20160816; b=Yxzf4jVWRSvS/LgmwbNysqwsECyuT3DFVtYDlSXA/wwvxvPfKYovIJcf9FRxpjRrNb c05CGjv93/qZZ89ErbONVNFUvfhYp6VyamDoLhSvQ1VoSEd63JI9o/eHhE77pBhBCnBU xbjUPmzecaW4BcuTuRcctVSbQiZ5cAZclZTrAHPFlp8wmk/ufzvul+a3i4ApY4qhtZTX m4umTv97JHA4fiGrUasY+xA/C1w5vagiTWA2ac/tIi72xMmCrjXm9ZZy/30oFQzjCy9h MqlCzeBXiVywvQ1smq6LI5wPp84ruPrJPZrnOfa+zuYF7zkVbAjS6dqjnOWDFwIXcn7G AjYw== ARC-Message-Signature: i=2; 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=yswQKN/NwiMTTVeDwWejovNA0LCHs9YyUSqdR/PYtho=; b=byNNbVAa2IeJzLGjfoN4aYo4/37ZVpB5WApRci0t4qQSxXoX5AQVLsX09drk1klPmM /1BB1QxLjIXpqWLGOH7NaXN/fB5M3D6sIXyJGzQdLecNVUaOsSuGCpXhGC0G65dA5qyT wte0FkfpFbljpvn767CDg5z2X0ljo6K4aBQDYBLFSmpU+w6xANjr6c/SHIZkseRT/VnP c5gOgKYyzMvQkhxIYSC/5n4RFyLbdG2jCwH+PpOlr+2UpjHG+OI4yllWxuce7OGyuncb Kr5iKqJp3ZN8yIRMIXX+FcEblVViw3WaL1jpF0YUvyA9XG8eupHNXnTVxNybYVQpfKDy iMTA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@icenowy.me header.s=zmail header.b=aYn+JLu0; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g18-20020a17090a579200b0021878aebd90si9122268pji.168.2022.11.20.20.26.18; Sun, 20 Nov 2022 20:26:31 -0800 (PST) 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=@icenowy.me header.s=zmail header.b=aYn+JLu0; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229753AbiKUESr (ORCPT + 99 others); Sun, 20 Nov 2022 23:18:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229727AbiKUESj (ORCPT ); Sun, 20 Nov 2022 23:18:39 -0500 Received: from sender4-op-o18.zoho.com (sender4-op-o18.zoho.com [136.143.188.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 744DD1A3B7; Sun, 20 Nov 2022 20:18:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669004306; cv=none; d=zohomail.com; s=zohoarc; b=dwATXG8k/51p7QFxP3OE4q2a4JGoVJ9MNI59UQkdx0xlU2T9kN9NGsFqH2iB6a33tSv2Hg1dyhS0Bj5AN9+TqCHbJ+I/HfI2JK6arJfDH39qUWv5GsKFzcoWZ33vgEQNeinXHdDIO9zOxerJi6mgZNABPYPyvQL7GAmFBm3trSs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1669004306; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=yswQKN/NwiMTTVeDwWejovNA0LCHs9YyUSqdR/PYtho=; b=dJl3LuNi2k+AP04WqKijzFHYPG6yEo3hgNXUWSw4mV03TeBXA4Rhv432Jzcg+sjCFAdMG5BK2c4Sv7z24O4QnEfisC8rOQ9hlIDAtuC4+9MnsuEhhlDd7P95UC+U3bxokRBZhSwzTgWqgSECtbz66d5ismYlRVqiQr+l7fG+OnE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=icenowy.me; spf=pass smtp.mailfrom=uwu@icenowy.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1669004306; s=zmail; d=icenowy.me; i=uwu@icenowy.me; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=yswQKN/NwiMTTVeDwWejovNA0LCHs9YyUSqdR/PYtho=; b=aYn+JLu0d/dP+2Ij+Wou35VkIDBSj1pT2SbuZ/Ez30kO1xbBADT8WtFCUWsT+itU KKyGlYVn8+48jqRupqiVQKF6borkKkfmklZsIAUwa8vVzooAb0gNtfPlKOFMdHnw/RL lUxipWYWFm7j6dJMXY2VKxkePJHyAi+rZgtpJnqk= Received: from edelgard.fodlan.icenowy.me (112.94.100.29 [112.94.100.29]) by mx.zohomail.com with SMTPS id 1669004306146990.0421850975872; Sun, 20 Nov 2022 20:18:26 -0800 (PST) From: Icenowy Zheng To: Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Palmer Dabbelt , Paul Walmsley , Daniel Lezcano , Jisheng Zhang , Samuel Holland Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, Icenowy Zheng Subject: [PATCH 1/3] dt-bindings: timer: sifive,clint: add comaptibles for T-Head's C9xx Date: Mon, 21 Nov 2022 12:17:55 +0800 Message-Id: <20221121041757.418645-2-uwu@icenowy.me> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20221121041757.418645-1-uwu@icenowy.me> References: <20221121041757.418645-1-uwu@icenowy.me> MIME-Version: 1.0 X-ZohoMailClient: External X-Spam-Status: No, score=-0.4 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,URIBL_BLACK autolearn=no 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750078368897338595?= X-GMAIL-MSGID: =?utf-8?q?1750078368897338595?= T-Head C906/C910 CLINT is not compliant to SiFive ones (and even not compliant to the newcoming ACLINT spec) because of lack of mtime register. Add a compatible string formatted like the C9xx-specific PLIC compatible, and do not allow a SiFive one as fallback because they're not really compliant. Signed-off-by: Icenowy Zheng Acked-by: Krzysztof Kozlowski Reviewed-by: Samuel Holland Acked-by: Conor Dooley --- Documentation/devicetree/bindings/timer/sifive,clint.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.yaml b/Documentation/devicetree/bindings/timer/sifive,clint.yaml index bbad24165837..aada6957216c 100644 --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml @@ -20,6 +20,10 @@ description: property of "/cpus" DT node. The "timebase-frequency" DT property is described in Documentation/devicetree/bindings/riscv/cpus.yaml + T-Head C906/C910 CPU cores include an implementation of CLINT too, however + their implementation lacks a memory-mapped MTIME register, thus not + compatible with SiFive ones. + properties: compatible: oneOf: @@ -29,6 +33,10 @@ properties: - starfive,jh7100-clint - canaan,k210-clint - const: sifive,clint0 + - items: + - enum: + - allwinner,sun20i-d1-clint + - const: thead,c900-clint - items: - const: sifive,clint0 - const: riscv,clint0