Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4597103imu; Tue, 29 Jan 2019 04:25:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN75Bx4E9mMEomvVK+NlM88nZiqH4WV7j/1yoE6g0Qxz1jP4KtDHI2CrAXux4kyKKlJw6yMJ X-Received: by 2002:a17:902:7d82:: with SMTP id a2mr25992404plm.163.1548764746147; Tue, 29 Jan 2019 04:25:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548764746; cv=none; d=google.com; s=arc-20160816; b=ipKwcaXzJEjqHMqr2VJwaLM50EHdq1pKI/K9AgPuts2Kwdh5nWNl8bzBthQECzKDkZ Jrrd67zDaJ1Qp0JF8cOZpVxMuF4SngoHTkUI71DpIYsVQTvxVukZHHU3zuwY/w8YkbB6 OoFHuACdSxif9rtJoB3kip1Y23GtOOLEKBwyZsunBH2lrLPeeM6n5MNJnXOcALS3x77Q 8zjKu4FfqnQbi9R2q7SgqBnFJzqY9aOaLUTXQXVuQTKQgiOM5UVaebV3sN137UkgLbCX 5fJBBXP0IrLz2W7MHQCOTj80ACQvWtp9HRby7bmxBUyJ6Jk7sYe2z6haYF3K3XwrXoHe YViw== 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=OHKqSYnWKKKwSoGH8G3Kwdcc+J6B91rZ03pg8hhVlTw=; b=DuU7AnF6Vvk5k2FeAiNcraFD214hniBI8hUvvNvjTRG5zjUtvi8+h2j/TdJQ0iwSsQ vW65zRh+W0q4Tcd77EhT2zM0wa8cdFcmtIjrE73/Z/yHNo7Tows56wO21Xu1kdWlDdri 4dqDiX2d7pgYNN6ZcgvZpHPgfU2d/KshFKb9WbnWHseHSXdcP7l+KE/MNd5osNyj+ieM RPcr41gqrn+PoJ3rTOomR/3y5yYiqJSIOnh3HY70ir1h4f7+rkbkZPPhFF5Or/8kFtKA TlmBGBAAUczi19eEZyTqy2rbedRAmCIcZx+m0jEzF/oHtA0Xu4piHS6M9w+rNrl9hhrr ZphA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WxDTEk2I; 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 g184si30655948pfb.288.2019.01.29.04.25.31; Tue, 29 Jan 2019 04:25:46 -0800 (PST) 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=WxDTEk2I; 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 S1728862AbfA2MZG (ORCPT + 99 others); Tue, 29 Jan 2019 07:25:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:35946 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727589AbfA2MZG (ORCPT ); Tue, 29 Jan 2019 07:25:06 -0500 Received: from localhost.localdomain (unknown [60.186.218.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A78D12087E; Tue, 29 Jan 2019 12:25:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548764705; bh=FCgzsQ3/xoEcb54X4qxFqLCwiny/D5yEOWKuc8yVz6I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WxDTEk2IpirA+ialh8X6t8abdcs/KvvkWyB2Os/bEfn9O6A98X+1GXFXqoRgipXCH UQC4db51QrloJqsiCZEZ5PIK6OoBJApWUcZPgi6wmDwxcADzjFa12jm6UZnZzVJJ4Z FLj7+18hJVp7xKFgfiLzfhh9Ox2LA0K9ctjyJ2JE= From: guoren@kernel.org To: arnd@arndb.de, robh+dt@kernel.org, marc.zyngier@arm.com Cc: linux-kernel@vger.kernel.org, guoren@kernel.org, linux-arch@vger.kernel.org, Guo Ren Subject: [PATCH 06/10] dt-bindings: interrupt-controller: Update csky mpintc Date: Tue, 29 Jan 2019 20:24:25 +0800 Message-Id: <1548764669-16656-6-git-send-email-guoren@kernel.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548764669-16656-1-git-send-email-guoren@kernel.org> References: <1548764669-16656-1-git-send-email-guoren@kernel.org> 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. Changelog: - change #interrupt-cells to <3> Signed-off-by: Guo Ren 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