From patchwork Wed Sep 27 09:01:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen Wang X-Patchwork-Id: 145286 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp2520195vqu; Wed, 27 Sep 2023 03:14:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEJbO7S5rd0P1c+HM4vW0PKBDl8Q6jrvLtm9euXizrVobtRU6fe4u70ThBxosI2YN+p3Yfy X-Received: by 2002:a17:902:fa8c:b0:1c3:7628:fca8 with SMTP id lc12-20020a170902fa8c00b001c37628fca8mr1176675plb.49.1695809664370; Wed, 27 Sep 2023 03:14:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695809664; cv=none; d=google.com; s=arc-20160816; b=GGkO33HR19SSlsJq/O9QWmh9PjauJ1MRQYG+S/b9GVWpXUCmyCyLz24zSy8LFN3FIG K4b3dqVIVPsIPl6zUjpzoQgk6+W29NeY+OgH2f4fpnLL59uV1kaD3zaLaEHwo5WkkzyJ o3zAAEJ50hM+Eg0FqQ1ZQ01uG/tY083v6rZRF+gAqsOOVbvCXoSVfvS8f7Hk8B7s9Mid oqfF+DP9jBNdReTxkAuClCyPBw1boxj1kIM7zctV07YZkL4hdDx6GAXPENAGoEOHVY2R OJtUwFhiD4tg09IIZFQ855hv2LD157u4I6FjGzGzg3b8vgVaekazswLfAhWinGcpI7YJ mrAw== 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=JYb+x/wAKIajaMdzWu38bo8URRaln6e+0LguScHfSNU=; fh=hhHkn5YTa+fzn7Yv9Yn4izc1gmo6+48kHx5Mgv55VkU=; b=Q35qR3wXrFQOcGHuEU0usxjUJRQAXbcxrRA2EgKmHDb9WlL4DV5Dnvbgx11Vq+3v2j IxI2Db1ogi4vNHAshvrKNVhoGPh9STltNu2QZTzJ9L4bw7CYta0ZfJSOmelwC059MtS1 +6ORcxyc/VdXuLDD7LXYxSbosl+fxkHLOEGos9UN0HzQfxftmNNFsMZW7DtEtutYopfc 3YgbijBN0t0LfKfr61j7S3ElEec+/qS//VIUNNUoKCL6gTlA4+/qWU9Bzk3OX511emDr zQZpE48/zhnMIpnPAnA3w9em8U8YIYrHsBwRy1JfXhLwZX0h7t1WAGocPHvQLxQzJCd5 peiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=D5orGmkf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id u6-20020a170902714600b001c3a6902ff1si13699203plm.288.2023.09.27.03.14.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 03:14:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=D5orGmkf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 1B75B801BEBC; Wed, 27 Sep 2023 02:02:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230302AbjI0JCM (ORCPT + 24 others); Wed, 27 Sep 2023 05:02:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230329AbjI0JCG (ORCPT ); Wed, 27 Sep 2023 05:02:06 -0400 Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A387E4; Wed, 27 Sep 2023 02:02:04 -0700 (PDT) Received: by mail-oi1-x22c.google.com with SMTP id 5614622812f47-3ae2f8bf865so4995311b6e.2; Wed, 27 Sep 2023 02:02:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695805323; x=1696410123; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JYb+x/wAKIajaMdzWu38bo8URRaln6e+0LguScHfSNU=; b=D5orGmkfBVGNC6SA9D/OjFAUCmnJLyKjz1BAZ3dz7b6d0B7xNEB3zQYG/VCtOna7NA pK5VO/7bgtjeKRt6BXZqvkJiIdYoNeXHOopRaB96hcTnXZZTp7uXSWfs5JtBTY6KeCr5 l/sROxY/G4MB5666sLfdmezrptO6TsTT3BJakbzGtRXa1diiggzudJ6r07AefWTk/aSp czZBB5cEwy7Hll4QASRlmDewwp825L7PRu5LTqqAJXPdL51WQRWJ7S5bybmD0Akpk2/u BlkVaMBiCaA99neG9zkbxsNPYPXtj7k8dX+tfZd/qWC0/f9suSjruMODIvS4V5L4dfzb 88Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695805323; x=1696410123; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JYb+x/wAKIajaMdzWu38bo8URRaln6e+0LguScHfSNU=; b=UYp4Q0NcjyUVx2ZxFk8vHOIDenr4QIrMdWmD5zLkgfOHxxG98r81hyGDmjxWyHK7F7 FOmYjIymXkbfviPiR2WfZ2HHVzwtKiOhNx6THOHtK+IJqfx9rRZkfeYNRiZpqTCtpjXS 9lfZhCFXtb9j4kjKSak2nERLhb2PwgEONGvJR0k8ccEDrH1BFVO1n+mO1MUTin3y0fMJ VFa497FhSgHhRxVuqH2bY3f7buj2/zOmdYcIDHn3gNy9vxSSWabGamILYvCO6O5gtvDo Yo2oG2dd5+5cAM0O6LbfjALq3Z+bMhboYgnTgR4185n16I9ygzHFwcvi9701oht3qMuX YCfQ== X-Gm-Message-State: AOJu0YxYqibnfjjD9icNKtsk5b+B3brmxL5fY6A1To/lEIqiYSYsPivO 3KILjBdwQgYdFgW98aGIh90= X-Received: by 2002:aca:2b14:0:b0:3a8:1c07:17d3 with SMTP id i20-20020aca2b14000000b003a81c0717d3mr1694343oik.19.1695805323309; Wed, 27 Sep 2023 02:02:03 -0700 (PDT) Received: from localhost.localdomain ([122.8.183.87]) by smtp.gmail.com with ESMTPSA id j1-20020a056808034100b003a7a34a4ed8sm2452085oie.33.2023.09.27.02.02.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 02:02:03 -0700 (PDT) From: Chen Wang To: aou@eecs.berkeley.edu, chao.wei@sophgo.com, conor@kernel.org, devicetree@vger.kernel.org, guoren@kernel.org, jszhang@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, palmer@dabbelt.com, paul.walmsley@sifive.com, robh+dt@kernel.org, xiaoguang.xing@sophgo.com, apatel@ventanamicro.com Cc: Inochi Amaoto , Chen Wang , Chen Wang Subject: [PATCH v3 07/11] dt-bindings: interrupt-controller: Add Sophgo sg2042 CLINT mswi Date: Wed, 27 Sep 2023 17:01:56 +0800 Message-Id: <4dcfca1b0fa736a226bd01c796e4d8986ce49e63.1695804418.git.unicornxw@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 27 Sep 2023 02:02:39 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778185314420093815 X-GMAIL-MSGID: 1778185314420093815 From: Inochi Amaoto Like the timer of Sophgo sg2042 clint. The machine-level software interrupt device (mswi) of sg2042 clint have the same problem when dealing with the standard sifive clint. To avoid the same conficts as the timer of sg2042 clint, also add the vendor specific compatible string to identify the mswi of sg2042 clint. Signed-off-by: Inochi Amaoto Signed-off-by: Chen Wang Signed-off-by: Chen Wang --- .../sophgo,sg2042-clint-mswi.yaml | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/sophgo,sg2042-clint-mswi.yaml diff --git a/Documentation/devicetree/bindings/interrupt-controller/sophgo,sg2042-clint-mswi.yaml b/Documentation/devicetree/bindings/interrupt-controller/sophgo,sg2042-clint-mswi.yaml new file mode 100644 index 000000000000..a79c4c3db3b3 --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/sophgo,sg2042-clint-mswi.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/sophgo,sg2042-clint-mswi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sophgo sg2042 CLINT Machine-level Software Interrupt Device + +maintainers: + - Inochi Amaoto + +properties: + compatible: + oneOf: + - items: + - const: sophgo,sg2042-clint-mswi + + reg: + maxItems: 1 + + interrupts-extended: + minItems: 1 + maxItems: 4095 + +additionalProperties: false + +required: + - compatible + - reg + - interrupts-extended + +examples: + - | + interrupt-controller@94000000 { + compatible = "sophgo,sg2042-clint-mswi"; + interrupts-extended = <&cpu1intc 3>, + <&cpu2intc 3>, + <&cpu3intc 3>, + <&cpu4intc 3>; + reg = <0x94000000 0x00010000>; + }; +...