From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id F25DC1C11AD for ; Fri, 1 Jun 2018 09:31:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id EF1D4889FE for ; Fri, 1 Jun 2018 09:31:01 +0000 (UTC) Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hkHcfp3Eq0bv for ; Fri, 1 Jun 2018 09:31:01 +0000 (UTC) Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by whitealder.osuosl.org (Postfix) with ESMTPS id 18E59889B1 for ; Fri, 1 Jun 2018 09:31:01 +0000 (UTC) Received: by mail-wr0-f195.google.com with SMTP id l10-v6so819307wrn.2 for ; Fri, 01 Jun 2018 02:31:01 -0700 (PDT) From: Sergio Paracuellos Subject: [RESEND PATCH 2/6] staging: mt7621-gpio: dt-bindings: update documentation for #interrupt-cells property Date: Fri, 1 Jun 2018 11:30:52 +0200 Message-Id: <1527845456-1221-2-git-send-email-sergio.paracuellos@gmail.com> In-Reply-To: <1527845456-1221-1-git-send-email-sergio.paracuellos@gmail.com> References: <20180601091807.GA9257@kroah.com> <1527845456-1221-1-git-send-email-sergio.paracuellos@gmail.com> List-Id: Linux Driver Project Developer List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" To: gregkh@linuxfoundation.org Cc: neil@brown.name, driverdev-devel@linuxdriverproject.org This commit update documentation for #interrupt-cells property in the gpio node which has been changed from '1' to '2'. Signed-off-by: Sergio Paracuellos Reviewed-by: NeilBrown --- drivers/staging/mt7621-gpio/mediatek,mt7621-gpio.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/staging/mt7621-gpio/mediatek,mt7621-gpio.txt b/drivers/staging/mt7621-gpio/mediatek,mt7621-gpio.txt index 94caba7..30d8a02 100644 --- a/drivers/staging/mt7621-gpio/mediatek,mt7621-gpio.txt +++ b/drivers/staging/mt7621-gpio/mediatek,mt7621-gpio.txt @@ -15,7 +15,13 @@ Required properties for the top level node: - interrupt-parent : phandle of the parent interrupt controller. - interrupts : Interrupt specifier for the controllers interrupt. - interrupt-controller : Mark the device node as an interrupt controller. -- #interrupt-cells : Should be 1. The first cell is the GPIO number. +- #interrupt-cells : Should be 2. The first cell defines the interrupt number. + The second cell bits[3:0] is used to specify trigger type as follows: + - 1 = low-to-high edge triggered. + - 2 = high-to-low edge triggered. + - 4 = active high level-sensitive. + - 8 = active low level-sensitive. + Required properties for the GPIO bank node: - compatible: @@ -37,7 +43,7 @@ Example: interrupt-parent = <&gic>; interrupts = ; interrupt-controller; - #interrupt-cells = <1>; + #interrupt-cells = <2>; gpio0: bank@0 { reg = <0>; -- 2.7.4 _______________________________________________ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel