From patchwork Sat Oct 7 07:56:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen Wang X-Patchwork-Id: 149534 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp800635vqo; Sat, 7 Oct 2023 00:58:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEzNLG8LWpi8pqtMTb082XAVyTEq589mugQJsdAPxB1n+d+xQCva3huMJIY2ZiSlM+6B+H1 X-Received: by 2002:a17:903:248:b0:1c3:6d97:e89e with SMTP id j8-20020a170903024800b001c36d97e89emr11260976plh.58.1696665487384; Sat, 07 Oct 2023 00:58:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696665487; cv=none; d=google.com; s=arc-20160816; b=tg/MFWuxmnjmEj51fkClOFCbAX8RiCh15h08fkMLK/uU2sz0sVRISS40OCHlgic1km uC5jH6sQyMBZIeoUJZ6c16zf3FBaq46JLaQ4sqru+TeDoWnLoCIvxIgXy1SOtTsiiZAU zyxA5UNsbq8d2Jd3K1dpMA4F9MpTiruvlT2rFU+8Rj7R4SPlR0FpxuhWulWFeqK1hCwD jrDWYWN9Bbmye7hqRkbV/huFHlBba0XBJMQb6RMvC9oMV0h4rnhFCF+G2Kq79lHtRELl G7L3TQeYDcXWx8CzzK2PTYmTxEryXMy4J5zDq58WyOZbH6wMooAMQrYLDvdUEWIdFHt/ EYBA== 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=hBpHGIaKLpPU171266rbLk8TrJkhcAtTOZV7fCxUUAs=; fh=MeH0H44ksJ3WoHmZEV5UsfmF3Hfwm6BQ69xoKweq1Eg=; b=fb7/0P8YCEraQ0VMc4vfI95FIf1JZv+TWSSd6dxpk2W3hAG2sPqjaT1tnI6aHkYM18 v2QOS6B/Xba/H+j49sZKAy84RO/RMnf+tzUJH7j8vsnmaKnkmTaVu0AoqoZ4f/c5hTDh r8rpfPF+BkwnKoAvCuXHYsn/2ty9NjrZVXVkEA1ZP2ePEjUsSnOism0SSjnVFDmPscW5 zmrlBzq4uSXdr3+bmEhDIs0OCKuaI2tPZxXC34MGmzrPyZB5jh10zyItgtK8N0aLZe6P iqmox/1+0LoVlbf6CG7CF9MY8YBY96/zJRlOFjw6IElT8pv2DTw8cnagO2JoQTbPRaFt BquQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="R/6VgYaX"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id l5-20020a170903120500b001bf0b29d935si5812134plh.34.2023.10.07.00.58.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 00:58:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="R/6VgYaX"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id D35D8804ACC1; Sat, 7 Oct 2023 00:57:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343841AbjJGH4o (ORCPT + 18 others); Sat, 7 Oct 2023 03:56:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343823AbjJGH4g (ORCPT ); Sat, 7 Oct 2023 03:56:36 -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 7BB58ED; Sat, 7 Oct 2023 00:56:31 -0700 (PDT) Received: by mail-oi1-x22c.google.com with SMTP id 5614622812f47-3af603da0f0so1955338b6e.3; Sat, 07 Oct 2023 00:56:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696665390; x=1697270190; 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=hBpHGIaKLpPU171266rbLk8TrJkhcAtTOZV7fCxUUAs=; b=R/6VgYaXvHHEr9N4Bhb8m/Jg7I7W/m8bbdR+Cq2oWLcVN2ldGcl7/gyVoNW09m5v/x Wu3ADrXPLLgJBcNdRrC2G4CxLhu5zVHK2LHclEgwnB6beCbE06zwvTIqM5dsErG8HAJ7 bgrLqBwb6uTF9Cmn0qbPl1/Kd5MUagfv7PIBQmk+o5QFrJLb2ihcwCKkg3dzw6vm2mqm dQcQcYozMWxdo9D56V/7wcvc7oTQk3m53caYVsMaI9mWUD0SsafxfiH83LbPFPKSHFuQ BfEVEUcMiDU2kLf/tChyL4n38jqmB0TbXXEztGM3KnuyAfcsc0iyh30b6TjcW/QMDNu5 8qvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696665390; x=1697270190; 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=hBpHGIaKLpPU171266rbLk8TrJkhcAtTOZV7fCxUUAs=; b=et7bLMb13JdwtWT/qOWg5iN2KW5L6PSe+7gLIQ55AI/8PBCkODeYbeblGArAvs2d32 MWDQp7f1K6UzSMwStxlSpfnH0QtTMGlEk7MW03ceBib76Vq+Rg6VivGMDG6MzEVyqDMN LU2vNisRZlqRASWIiZ4/jaYwsrRpoGnf3VgePx3T8VkdCKySmZGtQf4u5KJuOw5JiLjB JTvKvQirT260XvkGoPFw+C3X8vJrSi8YuArceUVrcxVxZweAV80iZoboM6GoOt6y75c9 KhZjnemzhjPanw6iTBzpqJNVkzqoMOhy7bWPOUaq8iFQNSi8yiZWnbEF05BvmcHZ0+uZ ZQdQ== X-Gm-Message-State: AOJu0Yw5EXNiER6xG6KLfULrTP9lLU9DwcAYxg4Sf/Cj324k3vNm08nQ tjcdHU85PflzhnnZKtBVM14= X-Received: by 2002:a05:6808:1153:b0:3af:7de8:ca90 with SMTP id u19-20020a056808115300b003af7de8ca90mr12597153oiu.56.1696665390394; Sat, 07 Oct 2023 00:56:30 -0700 (PDT) Received: from localhost.localdomain ([122.8.183.87]) by smtp.gmail.com with ESMTPSA id j11-20020aca170b000000b003af5f6e40d7sm871005oii.15.2023.10.07.00.56.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 00:56:29 -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 , Conor Dooley Subject: [PATCH v5 07/10] dt-bindings: interrupt-controller: Add Sophgo sg2042 CLINT mswi Date: Sat, 7 Oct 2023 15:56:22 +0800 Message-Id: <4db57bcb69b9182c171598eb8d65151a347cfe8f.1696663037.git.unicorn_wang@outlook.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 07 Oct 2023 00:57:03 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779082710494737750 X-GMAIL-MSGID: 1779082710494737750 From: Inochi Amaoto The clint of Sophgo's sg2042 is based off IP designed by T-HEAD, and implements the not yet frozen ACLINT spec. This spec seems to be abandoned, and will not be frozen in the predictable future. Frozen specs required by the RISC-V maintainers before merging content relating to those extensions, therefore a generic compatible is not appropriate. Instead, add new vendor specific compatible strings to identify mswi of sg2042 clint. Signed-off-by: Inochi Amaoto Signed-off-by: Chen Wang [conor: re-wrote commit message to drop irrelevant sifive,clint discussion] Signed-off-by: Conor Dooley --- .../thead,c900-aclint-mswi.yaml | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/thead,c900-aclint-mswi.yaml diff --git a/Documentation/devicetree/bindings/interrupt-controller/thead,c900-aclint-mswi.yaml b/Documentation/devicetree/bindings/interrupt-controller/thead,c900-aclint-mswi.yaml new file mode 100644 index 000000000000..065f2544b63b --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/thead,c900-aclint-mswi.yaml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/thead,c900-aclint-mswi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sophgo sg2042 CLINT Machine-level Software Interrupt Device + +maintainers: + - Inochi Amaoto + +properties: + compatible: + items: + - enum: + - sophgo,sg2042-aclint-mswi + - const: thead,c900-aclint-mswi + + reg: + maxItems: 1 + + interrupts-extended: + minItems: 1 + maxItems: 4095 + +additionalProperties: false + +required: + - compatible + - reg + - interrupts-extended + +examples: + - | + interrupt-controller@94000000 { + compatible = "sophgo,sg2042-aclint-mswi", "thead,c900-aclint-mswi"; + interrupts-extended = <&cpu1intc 3>, + <&cpu2intc 3>, + <&cpu3intc 3>, + <&cpu4intc 3>; + reg = <0x94000000 0x00010000>; + }; +...