Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1903646imj; Sun, 17 Feb 2019 18:05:34 -0800 (PST) X-Google-Smtp-Source: AHgI3IY61+mUqTNyouuIa2ADVgOY17H+K3ncy128yeGl5ivfW8eeNXvuh02Kiqm/54B5dU3BZ+OL X-Received: by 2002:a62:398d:: with SMTP id u13mr21707447pfj.32.1550455534650; Sun, 17 Feb 2019 18:05:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550455534; cv=none; d=google.com; s=arc-20160816; b=qbhgPnssIg4DdoTO99bRP+YpA8qNGXlK6nlBL6ef3g+Qfsfdafo7EMom/Xgk9xL+Wl l3hMYM2XkvSjQVeFXgPP7XhMCbCywlgP+SZ2/jGofsK2EigrQ6GxinkYEpKgHneqVLWl g+Sif4iDiK/lOKPgUAbc8dQj+zW6hImuJGw1q0Jcsv3lViaj1lixLWPSO6tUpBDfAQNX t2KlFUtqb/XcGGvKk4csc/05zLdEnrqdWRkz4zGmMYZVOt4ScK+JCEdiHNV95DxCJwUr lIn536G/bjl5MDne/u0YMUJwA9i6iqkHznOhUwDPhA/4wfpnnGd6S/MwbChI8hgNBQEM YsuQ== 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=RdJMeTVHP8QNZ8s36zzkKhhh8u4FvNLnLVrGfoYl8Hw=; b=uWfmixK3gtrh5SyUvTfei4sLVWanpajYSykO0L7Xtg0e1uELqVlaT1aSkdKx99o5XB zICFIyq5Dj94NQDrQo8yw/+Wifa7btt2RTEcxCZzVFyqE8lr/pez7HK1NW3pFTvajjXs symj9peZRYqMUmRu8ZlFxkjoFqdfHiYI2ugVLrZ0RVzn/gY9znDiGBuaELe1k/Caf2PR qy/8DMP3w+Igr55yZO0GXr2Trj1mq2IkbNXJwYIjzemYfs1EynQTy3eBkrKHTgYTOZmh YFRszY64e3QYe5pCOOrlySuu1+SFaxh0woL4QyayRkvh+XmedMJ2WRFCPcbOe+Z+E2b6 yhfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ig3RvTya; 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 i17si11732521pgk.233.2019.02.17.18.05.19; Sun, 17 Feb 2019 18:05:34 -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=ig3RvTya; 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 S1728332AbfBRCFE (ORCPT + 99 others); Sun, 17 Feb 2019 21:05:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:53004 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728317AbfBRCFD (ORCPT ); Sun, 17 Feb 2019 21:05:03 -0500 Received: from localhost.localdomain (unknown [122.234.57.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B87C3218C3; Mon, 18 Feb 2019 02:05:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550455502; bh=bs1yuBsMRI84VDMJhOqHLUq4GlycWDijQGl4r3MgcYo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ig3RvTyaRc7F2XPt0UD942pT5bMoeG0GHqETY4EVLKF0hsBvBrHj+14PovzMc+eqa mX69nQ8Q2wawcLO3ovnr+FN2xGpvDTw90d4Hjco1jEhNPKHQwTLGHBgL2wxpAf5thW z+iLHV3mLfiZLpYKa3BrNVLHxmpSK6jmNmYNY8Jc= From: guoren@kernel.org To: marc.zyngier@arm.com, tglx@linutronix.de, robh+dt@kernel.org Cc: linux-kernel@vger.kernel.org, guoren@kernel.org, Guo Ren Subject: [PATCH V2 5/7] dt-bindings: interrupt-controller: Update csky mpintc Date: Mon, 18 Feb 2019 10:04:41 +0800 Message-Id: <1550455483-11710-5-git-send-email-guoren@kernel.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1550455483-11710-1-git-send-email-guoren@kernel.org> References: <1550455483-11710-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: 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