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: 429744 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 7759B140275 for ; Fri, 16 Jan 2015 18:34:45 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752116AbbAPHeo (ORCPT ); Fri, 16 Jan 2015 02:34:44 -0500 Received: from exprod5og115.obsmtp.com ([64.18.0.246]:41604 "EHLO mail-pd0-f174.google.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751834AbbAPHeo (ORCPT ); Fri, 16 Jan 2015 02:34:44 -0500 Received: from mail-pd0-f174.google.com ([209.85.192.174]) (using TLSv1) by exprod5ob115.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-f174.google.com with SMTP id fl12so3044066pdb.5 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=Ji/WwIUL4fRPpVlrFurRN1L0WCjXYL4BI1izjUTh2MFqEOYVGc38I45wPcgsv7f2eP yhu/62TNnj6CrrimDMPbCrxfZs1I7T4PvBZa1y1AwiPkRQysR4B1S/n0NcUl8bnpxH3H 1ddai6cKcwepofjUl+IVxKiWFwVyg3w/vwAKPNVqj5L7l9Thzq7pEO5Vu7WPzNjJnQEn OTNdklzyBCkSDi8FMupPKNhQJcQV+wasuY8lyAj9HIPUX3ayT1VRTDI8LN5dGby9SWa5 bBiqgURrkbtMfiUtClSFEiG9OEkiGAwpI7Eeet4pGCZw2+Ud4vBqT6QINf2FvC08ahci vEog== X-Gm-Message-State: ALoCoQnOH9EO106VJM6owdQIT1hUo1h+kcFUL7cgNTEuuyx+I295iWyCC+fxgYI06exWp94mGbh2HAbmg63rXz/CDDzbU/M+T7Dm8OWy7DT4rWtuX3iMbr/xF9ubCGP9XpOXduu1AYK+4aAfBm32AZWDCNVtiJbB7w== X-Received: by 10.70.98.233 with SMTP id el9mr20653586pdb.132.1421393683125; 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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>; + };