From patchwork Tue Jan 22 14:54:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guo Ren X-Patchwork-Id: 1029336 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="DfgFR02i"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43kWfk1731z9s3q for ; Wed, 23 Jan 2019 01:54:53 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728823AbfAVOyx (ORCPT ); Tue, 22 Jan 2019 09:54:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:33390 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728795AbfAVOyx (ORCPT ); Tue, 22 Jan 2019 09:54:53 -0500 Received: from localhost.localdomain (unknown [183.158.88.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 62F7C21019; Tue, 22 Jan 2019 14:54:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548168892; bh=FCgzsQ3/xoEcb54X4qxFqLCwiny/D5yEOWKuc8yVz6I=; h=From:To:Cc:Subject:Date:From; b=DfgFR02iauF6phZiz1J3cVX+amaEvQroqzQ/A4EarHfEknws6G30JraR/I7xwQxbr 8lDQhINgjvdWQEuUh7biLri7M1ESCln8Q24jxZ+OzxlPZcEOMkcobqdCa4X54H1Q7P 3dDgqjckXl8whe3ApPPAZTPMeW5zTXKmBhoCZ/YE= From: guoren@kernel.org To: robh+dt@kernel.org Cc: devicetree@vger.kernel.org, guoren@kernel.org, Guo Ren Subject: [PATCH V3] dt-bindings: interrupt-controller: Update csky mpintc Date: Tue, 22 Jan 2019 22:54:44 +0800 Message-Id: <1548168884-17742-1-git-send-email-guoren@kernel.org> X-Mailer: git-send-email 2.7.4 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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>; + };