From patchwork Fri Jan 16 07:34:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Y Vo X-Patchwork-Id: 429743 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id DAE1D14015A for ; Fri, 16 Jan 2015 18:34:44 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752090AbbAPHeo (ORCPT ); Fri, 16 Jan 2015 02:34:44 -0500 Received: from exprod5og106.obsmtp.com ([64.18.0.182]:51486 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751405AbbAPHen (ORCPT ); Fri, 16 Jan 2015 02:34:43 -0500 Received: from mail-pd0-f172.google.com ([209.85.192.172]) (using TLSv1) by exprod5ob106.postini.com ([64.18.4.12]) with SMTP ID DSNKVLi/EyLm5zjPonlyzHGT/XBq2T2P/E/L@postini.com; Thu, 15 Jan 2015 23:34:43 PST Received: by mail-pd0-f172.google.com with SMTP id y13so21196299pdi.3 for ; Thu, 15 Jan 2015 23:34:43 -0800 (PST) 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=a79BA9iJOsuAMUMjWphKJ7znK91vhxVnlb2Ao/blqZA=; b=X2p3KNOIhi26gdfd2DOs++RLWZmjUd5XRxE73483BmvSfnmHwOCEkpo/1KBige0RcF QJEpsgY+4sJxKjo4O5eog+zXah/36pXIK5zkW9VLAUN/hKQO5SUfSF1I5ndYSUbaukdK Vfs75iMi/FXcrqXjx4T0xzquKqH3zjPAyDIi/zAlU6X2kIfmZ5e35Tc9kpYHBxpe6hzQ 4mx9hSbTshhC2ksVA0D+Vs9nDxy0NomklB3MDqHOOqb8EGq5WkUQoNuhFQ9fVTvD9Wgo Jz9TjIwX3Sz/lF75XQXGeItKnPPkbMbkPFqK8fFTBUB6ybMfHLQSoouMIZv3xuxFAtuI gcwQ== X-Gm-Message-State: ALoCoQnShzyhkQvm9iqkB6iiRlOCeFKw3c73BpGfSGmlkEkKnH3c+Gsx6FJG0Ha2IAe8OEWUhgG74Qb5wYsCGiLtAFzXskGWfh2vFBQbSptp/ui7QLlbiQoRdM7FPSqL44TKyI63BMpGGawd+/+QPyoTS57VDzeq/w== X-Received: by 10.70.98.233 with SMTP id el9mr20653591pdb.132.1421393683126; Thu, 15 Jan 2015 23:34:43 -0800 (PST) X-Received: by 10.70.98.233 with SMTP id el9mr20653576pdb.132.1421393683051; Thu, 15 Jan 2015 23:34:43 -0800 (PST) Received: from localhost.localdomain ([118.69.219.197]) by mx.google.com with ESMTPSA id bn13sm3270238pdb.4.2015.01.15.23.34.40 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 15 Jan 2015 23:34:42 -0800 (PST) From: Y Vo To: linus.walleij@linaro.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Y Vo , Phong Vo , Toan Le , patches@apm.com Subject: [PATCH v3 2/3] Documentation: gpio: Add APM X-Gene standby GPIO controller DTS binding Date: Fri, 16 Jan 2015 14:34:20 +0700 Message-Id: <1421393661-4311-3-git-send-email-yvo@apm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1421393661-4311-1-git-send-email-yvo@apm.com> References: <1421393661-4311-1-git-send-email-yvo@apm.com> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Documentation for APM X-Gene standby GPIO controller DTS binding. Signed-off-by: Y Vo --- .../devicetree/bindings/gpio/gpio-xgene-sb.txt | 31 ++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-xgene-sb.txt diff --git a/Documentation/devicetree/bindings/gpio/gpio-xgene-sb.txt b/Documentation/devicetree/bindings/gpio/gpio-xgene-sb.txt new file mode 100644 index 0000000..3215e4d --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-xgene-sb.txt @@ -0,0 +1,31 @@ +APM X-Gene Standby GPIO controller bindings + +This is a gpio controller in standby domain. + +There are 20 GPIO pins from 0..21. There is no GPIO_DS14 and GPIO_DS15. +Only GPIO_DS8..GPIO_DS13 support interrupt. IRQ mapping 0x28..0x2d. + +Required properties: +- compatible: "apm,xgene-gpio-sb" for X-Gene Standby GPIO controller +- reg: Physical base address and size of the controller's registers +- #gpio-cells: Should be two. + - first cell is the pin number + - second cell is used to specify the gpio polarity: + 0 = active high + 1 = active low +- gpio-controller: Marks the device node as a GPIO controller. +- interrupts: Shall contains the interrupts. + +Example: + sbgpio: sbgpio@17001000 { + compatible = "apm,xgene-gpio-sb"; + 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>; + };