Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4985227yba; Mon, 13 May 2019 03:24:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxrP52svoPynDfb025jovM+n/EKzQoiMPk4E9oSbw0tiIHrSLBhTyZPl8L44XiehM4xWx7m X-Received: by 2002:a63:4c06:: with SMTP id z6mr30081393pga.296.1557743051623; Mon, 13 May 2019 03:24:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557743051; cv=none; d=google.com; s=arc-20160816; b=W2jedzVq8x1+8uo75DYtzDSzANWANxojHJENEZHIVnQ9/pzVLQ5MrJUY00+Cxan8Cg JmK3vsjdWiSSvRiIZXWP0N7fsQYIzTUr4KEEvgrW5xR2baUy5qirjinknSrOsY1mrsjH zKLTZF9XO+i8PQ/H5BECxCD7Tg1/rn0xTGAwWpOUWmXUIlaD0EOy1RbXw0VMDjBzfISi 4Q/s/FWXs71/NO9zOc5rH84HSLuGjmrJt3pDzSQkPlWk3uKiWCohCgA5VS2USOgaGGHd F4R3+9GG6B5WAFyYYJnTgOanHDqtRO0wbJHPdPGnY3IcH1VLKIbBCcfTuhe4yDAzK9DE VtUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=8LFMnEtDB2WywoQst+vv8Ws+F7DxrnNOB464Ci25lgE=; b=WJbUzNnlwDKV+1oQKGrpOOAS2jAxinMDHjsv2M3HAQkADN9YoKr3iT1AhZrFl38rTg /L7n1Sc1tKfHV3Y489XLQWyhunJ6k60VbIguJLenYSNlPnOlO+8O+x6AMwWYwtyAKtUH KApUss1ai0IfYKPCotl1D4dI1QjYcqrkz8BfzorElcj0+C6dQtch7ZadHzs2LOnF1B5h KqriMBw4DrHeUzJ/s2I6qQp4uKfsNfKwIXPih9gdkta530n0VtlnvhFlvYWNUKUqqSUs 8N0DVWcAPEmqEFpjTEmssSfbekIwbx8f1sFxjFSLRbCSe0Bck9MlPF001PVW4BKY0aQX gIQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sOBwZ3NW; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o6si16982381pgd.365.2019.05.13.03.23.55; Mon, 13 May 2019 03:24:11 -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=@kernel.org header.s=default header.b=sOBwZ3NW; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728042AbfEMJzt (ORCPT + 99 others); Mon, 13 May 2019 05:55:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:59966 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727406AbfEMJzt (ORCPT ); Mon, 13 May 2019 05:55:49 -0400 Received: from localhost.localdomain (unknown [220.191.38.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C278F20989; Mon, 13 May 2019 09:55:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557741348; bh=oBK1biDBLmIPe322+TnzKnO2lD/uQWE4bpsvuqhkUG4=; h=From:To:Cc:Subject:Date:From; b=sOBwZ3NWwH7L9jResc4eBh8WTEYKs6VH3CZdSi/GPLTLNpfRkUKioVEklLhwMtFOO 0PQzmNfqVQ2deRbfsc2GU6etbRfekKnWQnLsnap3Mo99WyVcGzhdiOi13KrNXg4V0i CFlidYlGSERf8+LWd1vri41qfFwwLh9vNMzMKnUk= From: guoren@kernel.org To: marc.zyngier@arm.com, robh+dt@kernel.org Cc: mark.rutland@arm.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, jason@lakedaemon.net, tglx@linutronix.de, guoren@kernel.org, ren_guo@c-sky.com Subject: [PATCH V3 1/2] dt-bindings: interrupt-controller: Update csky mpintc Date: Mon, 13 May 2019 17:55:38 +0800 Message-Id: <1557741339-29331-1-git-send-email-guoren@kernel.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guo Ren Add trigger type and priority setting for csky,mpintc. The driver also could support #interrupt-cells <1> and it wouldn't invalidate existing DTs. Here we only show the complete format. Changes for V3: - Update commit msg about compatible Changes for V2: - change #interrupt-cells to <3> Signed-off-by: Guo Ren Cc: Marc Zyngier Cc: Rob Herring --- .../bindings/interrupt-controller/csky,mpintc.txt | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt b/Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt index ab921f1..dccd913 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt +++ b/Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt @@ -6,11 +6,18 @@ C-SKY Multi-processors Interrupt Controller is designed for ck807/ck810/ck860 SMP soc, and it also could be used in non-SMP system. Interrupt number definition: - 0-15 : software irq, and we use 15 as our IPI_IRQ. 16-31 : private irq, and we use 16 as the co-processor timer. 31-1024: common irq for soc ip. +Interrupt triger mode: + IRQ_TYPE_LEVEL_HIGH (default) + IRQ_TYPE_LEVEL_LOW + IRQ_TYPE_EDGE_RISING + IRQ_TYPE_EDGE_FALLING + +Interrupt priority range: 0-255 + ============================= intc node bindings definition ============================= @@ -26,15 +33,21 @@ intc node bindings definition - #interrupt-cells Usage: required Value type: - Definition: must be <1> + Definition: <3> - interrupt-controller: Usage: required -Examples: +Examples: ("interrupts = ") --------- intc: interrupt-controller { compatible = "csky,mpintc"; - #interrupt-cells = <1>; + #interrupt-cells = <3>; interrupt-controller; }; + + device: device-example { + ... + interrupts = <34 IRQ_TYPE_EDGE_RISING 254>; + interrupt-parent = <&intc>; + }; -- 2.7.4