From patchwork Mon Oct 26 06:49:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Y Vo X-Patchwork-Id: 7485681 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B79889F327 for ; Mon, 26 Oct 2015 06:52:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E1C5E206B6 for ; Mon, 26 Oct 2015 06:52:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 188EF206E3 for ; Mon, 26 Oct 2015 06:52:22 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZqbcB-0000kQ-Na; Mon, 26 Oct 2015 06:50:43 +0000 Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zqbbl-0007pv-BC for linux-arm-kernel@lists.infradead.org; Mon, 26 Oct 2015 06:50:18 +0000 Received: by pacfa8 with SMTP id fa8so66569pac.0 for ; Sun, 25 Oct 2015 23:49:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apm.com; s=apm; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+73ZJo6uH0R20cfQtVQRUmhiv591Ms+NDB0G5lJQ/0g=; b=i80pfJbEKu/GQr7K5ZHHha7pH/QjNbIvTcDyRoeq7JijqnP4StrqMsNAacycB23oHP B8Gd9NOf8D8Mq5E1gb5Qyr++XY4ipyJOkiMucLhpiYS+xKMq/4s+twl+sRHr4aF1HHXk MThy5HwS0TjRwbU6ZSqYG8WF7p+BfLZiLIU6U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+73ZJo6uH0R20cfQtVQRUmhiv591Ms+NDB0G5lJQ/0g=; b=eHgBnLKGA+bbVBNAeifvIHc915YQA9F8Lonz0am/RRU5Qs0Kaisf+IKxghOzswapQV rhBgDs3+0jfiBwMsQHMIQyfLCeqFnGSTKsGH4wz287ZXGLb4Vi33Z4r9r5JX2BvhMTog CBnt4bAirHbpsnkn9fTsr2OGlV87JShxURCCUUWSAHsBigr6aIEXyvWXW4ypzecQcq5W ipZmVXWIg4DSACb6pkKajLfDYvya2YAMXfqi9G8ZOXfahrxHbZI+ZAZZ7baoOlN4v04/ GSvZDpH+R7ZSR9UC0aMMi0vGsJvaI8qvHEqtoxiVlUDHmbFdKKYmrvJc41UxMxslppFz 5QxQ== X-Gm-Message-State: ALoCoQlkFBXcyugocOH+QGWScdUAfHutBXwAn/24a7MaNNK+8qypORFliUtjevlp1D7j/f7oc1c2 X-Received: by 10.69.26.7 with SMTP id iu7mr20669523pbd.27.1445842196593; Sun, 25 Oct 2015 23:49:56 -0700 (PDT) Received: from localhost.localdomain ([118.69.219.197]) by smtp.gmail.com with ESMTPSA id rc5sm31852715pbc.95.2015.10.25.23.49.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Oct 2015 23:49:55 -0700 (PDT) From: Y Vo To: linus.walleij@linaro.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 2/3] Documentation: gpio: Update description for X-Gene standby GPIO controller DTS binding Date: Mon, 26 Oct 2015 13:49:34 +0700 Message-Id: <1445842175-11446-3-git-send-email-yvo@apm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1445842175-11446-1-git-send-email-yvo@apm.com> References: <1445842175-11446-1-git-send-email-yvo@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151025_235017_478500_2117F1F4 X-CRM114-Status: GOOD ( 11.91 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Feng Kan , Duc Dang , Quan Nguyen , Phong Vo , patches@apm.com, Loc Ho , Toan Le , Y Vo MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Update description for X-Gene standby GPIO controller DTS binding to support GPIO line configuration as input, output or external IRQ pin. Signed-off-by: Y Vo --- .../devicetree/bindings/gpio/gpio-xgene-sb.txt | 23 +++++++++++++------- 1 files changed, 15 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/gpio/gpio-xgene-sb.txt b/Documentation/devicetree/bindings/gpio/gpio-xgene-sb.txt index dae1300..7c0e7f4 100644 --- a/Documentation/devicetree/bindings/gpio/gpio-xgene-sb.txt +++ b/Documentation/devicetree/bindings/gpio/gpio-xgene-sb.txt @@ -3,8 +3,7 @@ APM X-Gene Standby GPIO controller bindings This is a gpio controller in the standby domain. There are 20 GPIO pins from 0..21. There is no GPIO_DS14 or GPIO_DS15, -only GPIO_DS8..GPIO_DS13 support interrupts. The IRQ mapping -is currently 1-to-1 on interrupts 0x28 thru 0x2d. +only GPIO_DS8..GPIO_DS13 support interrupts. Required properties: - compatible: "apm,xgene-gpio-sb" for the X-Gene Standby GPIO controller @@ -16,6 +15,11 @@ Required properties: 1 = active low - gpio-controller: Marks the device node as a GPIO controller. - interrupts: Shall contain exactly 6 interrupts. +- interrupt-parent: Phandle of the parent interrupt controller. +- interrupt-cells: Shoule be two. + - first cell is 0-5 coresponding for GPIO pin 8..13. + - second cell is used to specify flags. +- interrupt-controller: Marks the device node as an interrupt controller. Example: sbgpio: sbgpio@17001000 { @@ -23,10 +27,13 @@ Example: reg = <0x0 0x17001000 0x0 0x400>; #gpio-cells = <2>; gpio-controller; - interrupts = <0x0 0x28 0x1>, - <0x0 0x29 0x1>, - <0x0 0x2a 0x1>, - <0x0 0x2b 0x1>, - <0x0 0x2c 0x1>, - <0x0 0x2d 0x1>; + interrupt-parent = <&gic>; + interrupts = <0x0 0x28 0x4>, + <0x0 0x29 0x4>, + <0x0 0x2a 0x4>, + <0x0 0x2b 0x4>, + <0x0 0x2c 0x4>, + <0x0 0x2d 0x4>; + #interrupt-cells = <2>; + interrupt-controller; };