Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8700854ybi; Tue, 23 Jul 2019 13:25:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqi2xmPrVBYb8VdNoRYIDXymnx95rJM3mREMXfxhhUlXokJ/Uj3FE5Ke2xcWRyqvhVzaxk X-Received: by 2002:a63:e54f:: with SMTP id z15mr77867092pgj.4.1563913520820; Tue, 23 Jul 2019 13:25:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563913520; cv=none; d=google.com; s=arc-20160816; b=L65IWyDXOLEA5ZcSeD2YJ97LaYUt1nGXblVIndZRnOvCWUoVsJtfXjhshT8v+uYjwa O7XfkcitrmScUgq10os/BT8udQtV5YQxq9vG3M61R9HDVnOcGKTSwH4l84ECVtDmQANn pD+EWSbUlMcZQPBzF2kRcqkUYEbHy6eZCdDtMAZKsVhPsl+ns4X6kuPzWLqQoPwfYKJx ogneUCpSy43N0imOdi+LN15NrGdHref6KqxAJO1Nyw8X1dzefaY+iBIVYofOxDMey9B6 YBwHvBM+Q3Wrzmnj24FmjwFyvG5QPyXTM9EmGgibkhUrvgQbVvKHE7OcoCeiiW7d1r22 cldw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=U6pZzOdH9nG4Si8N0JhC1zW+0jM/UgdzSjeNuqERXAo=; b=sHM6xDZU/ARNwJ2VwOJ/Bn55VNUb49KhOqM+7SP9SWp9Oo7TnDpwJfMGOyyX8YMlJY KCo/1E9bwAeY7ABGQr6tTt62aG4IqVV65PNzBegU2SBykIQJ+kPxvexRK1jintRt6zRm WzuqJzawPI9uLLC7EI5SWmDP+0LB0cLMmdYZX7u0TEj/W11f9oc8tAjDWOegl6H+tUTD qg0o547VL9j7ys8b8A2pLDqTZeIizMwcuvXLzFGOuOEIoxS43Fg3I2XCxnmyS44XeOFb ykDSkOH6iV4NZbWgvBS7tU5fU2iBSJnkvsl4M2CM5HKpVVn0jrTG1SYSBd5mGNLR2H23 30/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=TjhbK4O4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m37si12810804pje.45.2019.07.23.13.25.01; Tue, 23 Jul 2019 13:25:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=TjhbK4O4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733238AbfGWK0f (ORCPT + 99 others); Tue, 23 Jul 2019 06:26:35 -0400 Received: from dc2-smtprelay2.synopsys.com ([198.182.61.142]:39818 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730141AbfGWK0d (ORCPT ); Tue, 23 Jul 2019 06:26:33 -0400 Received: from mailhost.synopsys.com (mdc-mailhost1.synopsys.com [10.225.0.209]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 334DAC018D; Tue, 23 Jul 2019 10:26:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1563877593; bh=9EQdLFPCKtMvNPp2+VskSltaXSuqOCA6tYIGyuKj/eY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TjhbK4O4Y4vQSRWm8bRpyvrgR9/6eL6pp3pX0mtSUq6kLI18Dld5+p9Y5IBD0iet8 CgKSh/4hQnHCFB03fma5I3yiK3LN7wmD1ENVN1FNir/5SgNXmvoYZk4CMHxWnQ2hw2 S8ZCojfMPAMvo5RXJ4Wnh0EdO+MrvdFi2wO2BLe0sk+tBUAmdC9R2c7jOY/JVLaiuo 43jbbdSmqbBPd9t5RJbLnZx94sKRX/4HTXy78Z7AjlyuNFUXtgT5bJcbFs53t8Qy+b aCsmGL8gwngaAoABIqZDceGAgM5UzrNSKDwNnlYdrfRAwwfF6lT4dTvZomzUN5NaIu /0PIdLNCzQJBw== Received: from de02arcdev1.internal.synopsys.com (de02arcdev1.internal.synopsys.com [10.225.22.192]) by mailhost.synopsys.com (Postfix) with ESMTP id F2776A005E; Tue, 23 Jul 2019 10:26:30 +0000 (UTC) From: Mischa Jonker To: Vineet.Gupta1@synopsys.com, Alexey.Brodkin@synopsys.com, kstewart@linuxfoundation.org, tglx@linutronix.de, robh+dt@kernel.org, linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Mischa Jonker Subject: [PATCH 2/2] dt-bindings: IDU-intc: Add support for edge-triggered interrupts Date: Tue, 23 Jul 2019 12:26:06 +0200 Message-Id: <20190723102606.309089-2-mischa.jonker@synopsys.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20190723102606.309089-1-mischa.jonker@synopsys.com> References: <20190723102606.309089-1-mischa.jonker@synopsys.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This updates the documentation for supporting a optional extra interrupt cell to specify edge vs level triggered. Signed-off-by: Mischa Jonker --- .../interrupt-controller/snps,archs-idu-intc.txt | 30 ++++++++++++++-------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/interrupt-controller/snps,archs-idu-intc.txt b/Documentation/devicetree/bindings/interrupt-controller/snps,archs-idu-intc.txt index 09fc02b..a5c1db9 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/snps,archs-idu-intc.txt +++ b/Documentation/devicetree/bindings/interrupt-controller/snps,archs-idu-intc.txt @@ -1,20 +1,30 @@ * ARC-HS Interrupt Distribution Unit - This optional 2nd level interrupt controller can be used in SMP configurations for - dynamic IRQ routing, load balancing of common/external IRQs towards core intc. + This optional 2nd level interrupt controller can be used in SMP configurations + for dynamic IRQ routing, load balancing of common/external IRQs towards core + intc. Properties: - compatible: "snps,archs-idu-intc" - interrupt-controller: This is an interrupt controller. -- #interrupt-cells: Must be <1>. - - Value of the cell specifies the "common" IRQ from peripheral to IDU. Number N - of the particular interrupt line of IDU corresponds to the line N+24 of the - core interrupt controller. - - intc accessed via the special ARC AUX register interface, hence "reg" property - is not specified. +- #interrupt-cells: Must be <1> or <2>. + + Value of the first cell specifies the "common" IRQ from peripheral to IDU. + Number N of the particular interrupt line of IDU corresponds to the line N+24 + of the core interrupt controller. + + The (optional) second cell specifies any of the following flags: + - bits[3:0] trigger type and level flags + 1 = low-to-high edge triggered + 2 = NOT SUPPORTED (high-to-low edge triggered) + 4 = active high level-sensitive <<< DEFAULT + 8 = NOT SUPPORTED (active low level-sensitive) + When no second cell is specified, the interrupt is assumed to be level + sensitive. + + The interrupt controller is accessed via the special ARC AUX register + interface, hence "reg" property is not specified. Example: core_intc: core-interrupt-controller { -- 2.8.3