Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2775753rwd; Fri, 16 Jun 2023 08:05:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7oeaRsNVl3YdJH6jvvRxNixReSNlGH2fG/lhgIUZKmceUQZouXw5ojRfu4pzwOwY20iODq X-Received: by 2002:a17:902:ce8a:b0:1af:f4f5:6fae with SMTP id f10-20020a170902ce8a00b001aff4f56faemr2482793plg.54.1686927914986; Fri, 16 Jun 2023 08:05:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686927914; cv=none; d=google.com; s=arc-20160816; b=a0C0SZM0xe6OlGUi144IVABof1ictH49eT5G7faDO+RqFuc6PC1BBUdTWYTCR7lDHR g11JVitmEHU92+kYQdhjcWqH+fHNvetdjEmiiHFKLiyAjoFH0B+kldIhG4dRbiQXXAi5 LPFvv5Jy06XXC/uiFeNfpMhf0kMWMAU31FR72vvkHeunr74RdWz5yB9qwGMItqWvsgi2 O4BL24CAkEQRBpOz/5i4JBj2+MI59zsbSBonbdceBA/A0tRoyG0udIf/w9P2EENQ1EdY dOwsA1ayvcDx+rJCx9G+jOL5YiSYKbA3dZU3YC+MGmDUnKwLdGgt/qVIDJNmXGFqY+ZF h9oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:content-language:references:cc:to:mime-version:date :dkim-signature:message-id; bh=D3G6HTwRcPV6KnfEheAEItSyD7W7vt2jWXDdc7E1V78=; b=0mATj4lBwHBFiM/H0jTiwki0n4LNmiXWPBw1Ax6cXgCuN/WN4izzAbziTVrG09IBCC qe0qTAIilTd9npOjcWt6my+aIvSk7uKCULJCCis4fPQHu9yDDQunxEdU8haPM8MSs3dF WnCs80VW57xsMLAv3WqLfdYiFLLUTuR1Cfkx1Pp9m4CQ9cA+9EwDcdvR81qLWNINepun P8PUJ7xbw1J8s2ZMVjfH3xPuzLcboTmY2xp7GrWFjZnW0HZ4PIkqTFHEJlSG4r3EfsKM FS8qe/4M3dQGCQA63lBO/RHdlSi2smekb1t+jWU+fr9wNiX92LG8D3r5dDyegWl/CYDh hQvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dram.page header.s=mail header.b=YFPavAo7; 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=NONE sp=NONE dis=NONE) header.from=dram.page Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n11-20020a170902d2cb00b001b3adfffd22si12413719plc.58.2023.06.16.08.04.56; Fri, 16 Jun 2023 08:05:14 -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=@dram.page header.s=mail header.b=YFPavAo7; 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=NONE sp=NONE dis=NONE) header.from=dram.page Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345700AbjFPOpY (ORCPT + 99 others); Fri, 16 Jun 2023 10:45:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234426AbjFPOpX (ORCPT ); Fri, 16 Jun 2023 10:45:23 -0400 X-Greylist: delayed 342 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 16 Jun 2023 07:45:21 PDT Received: from kuriko.dram.page (kuriko.dram.page [65.108.252.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 438392D73; Fri, 16 Jun 2023 07:45:21 -0700 (PDT) Message-ID: <4440a0b1-bf67-9c37-0526-1a447ff8568a@dram.page> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dram.page; s=mail; t=1686926376; bh=D3G6HTwRcPV6KnfEheAEItSyD7W7vt2jWXDdc7E1V78=; h=Date:To:Cc:References:From:Subject:In-Reply-To; b=YFPavAo7QyVgTMfpKQgwgzy89b8jO6AdVmNablD2JZi8OCPQXDzYs+QyGqPgKsEGq 4n0fCMiL6DuOta7+rR04nkyzUtIe1dU+nMrXFbekxjeDLHcrEd4noPqjQllCHMPu0p 5J1V03UYBKBcrr8RaZEFob8Xqxz9Sx9McIpT1mo0= Date: Fri, 16 Jun 2023 22:39:09 +0800 MIME-Version: 1.0 To: Anup Patel , Palmer Dabbelt , Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Marc Zyngier , Daniel Lezcano , Rob Herring Cc: Atish Patra , Alistair Francis , Anup Patel , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Bin Meng , "Hongren (Zenithal) Zheng" References: <20211007123632.697666-1-anup.patel@wdc.com> <20211007123632.697666-6-anup.patel@wdc.com> Content-Language: en-US From: Vivian Wang Subject: Re: [RFC PATCH v4 05/10] dt-bindings: interrupt-controller: Add ACLINT MSWI and SSWI bindings In-Reply-To: <20211007123632.697666-6-anup.patel@wdc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Hi all, We are working on devicetree generation for rocket-chip, specifically generating ACLINT nodes instead of CLINT nodes. (WIP at [1].) We were wondering if riscv,aclint-{m,s}swi should really be an interrupt-controller. According to the devicetree specification (v0.3 found at [2]), an interrupt-controller *receives* interrupts. The ACLINT devices only ever generates interrupts, so they would be classified as interrupt generating device rather than interrupt controller or interrupt nexus. These bindings, as is, require the MSWI and SSWI devices to have the interrupt-controller property and #interrupt-cells = <0>, which does not reflect its functionality. It nonsensically implies that another device may have an interrupt routed through an MSWI/SSWI as interrupt-parent. Removing these requirements makes more sense. I'm not sure about what other node name to use though. It seems that these are more like mailboxes, but also not exactly. In any case a clarification of the bindings would be appreciated. Thanks, dram [1]: https://github.com/chipsalliance/rocket-chip/pull/3330 [2]: https://www.devicetree.org/specifications/