From patchwork Thu Jul 31 19:03:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Feng Kan X-Patchwork-Id: 4658641 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D43C7C0338 for ; Thu, 31 Jul 2014 19:05:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1B43F20158 for ; Thu, 31 Jul 2014 19:05:06 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F37D920145 for ; Thu, 31 Jul 2014 19:05:01 +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 1XCvdO-0002q5-FS; Thu, 31 Jul 2014 19:03:26 +0000 Received: from exprod5og120.obsmtp.com ([64.18.0.137]) by bombadil.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XCvcw-0002SE-94 for linux-arm-kernel@lists.infradead.org; Thu, 31 Jul 2014 19:02:59 +0000 Received: from mail-pd0-f171.google.com ([209.85.192.171]) (using TLSv1) by exprod5ob120.postini.com ([64.18.4.12]) with SMTP ID DSNKU9qSzV6lX7eUgSkIgqhn2pewenlSWH5k@postini.com; Thu, 31 Jul 2014 12:02:58 PDT Received: by mail-pd0-f171.google.com with SMTP id z10so4021626pdj.2 for ; Thu, 31 Jul 2014 12:02:37 -0700 (PDT) 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=nHQcqnzA3xB+ny8jU4sNqmYGGFblmhK6nf+1c92VZps=; b=bQ4QrwZYgxRfrKBlYX+iej4Ax5mqArG+TS6A9Lne7E0qqbSGQ1DPCKSvugtOf67x0Q OU5nOt1k91MM4qcjYPgvSIZE60U+hxW0ejKKLPCnBuSeNbyJ9IIEG38vH38Un4dJHHjX 9kdPYxKgr8orenPJwO2JNWugCwy2kPsx46PUhFOWLOHSN52qN9xawAi71Xa7fCzreohk TA3c5XJqBR8DaqpUPfmSBCVyvzRBVfFpXIQx8PQkp5bIfS9Wa1l9jza5WfaUqQPItoC0 TDPakPwpk2mG8F7tKyCXiCoFcYtAd+y0CMibIhf5l67SwfArm/srcYhQ1jk18XEyU36M FhFA== X-Gm-Message-State: ALoCoQnHAJ/7Qnu4EdYvu7qNdnU3UW5H4STMKoue8iGrKJ7DDQlLJ9gnGZ6BxA3AhexeNBSrV7tuHwe5PznkZNR1e5HARI7jY9cWmCejfAXuErywpFRHzqZYCFsHu20eEnKWetcvyUJVfLu2F1nqDM4rwDz3Fn+fLg== X-Received: by 10.70.40.227 with SMTP id a3mr206009pdl.36.1406833357147; Thu, 31 Jul 2014 12:02:37 -0700 (PDT) X-Received: by 10.70.40.227 with SMTP id a3mr205799pdl.36.1406833355630; Thu, 31 Jul 2014 12:02:35 -0700 (PDT) Received: from fkan-lpt.amcc.com (63-147-59-2.dia.static.qwest.net. [63.147.59.2]) by mx.google.com with ESMTPSA id v1sm6309339pbs.1.2014.07.31.12.02.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 31 Jul 2014 12:02:35 -0700 (PDT) From: Feng Kan To: patches@apm.com, linus.walleij@linaro.org, gnurou@gmail.com, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH V6 2/3] Documentation: gpio: Add APM X-Gene SoC GPIO controller DTS binding Date: Thu, 31 Jul 2014 12:03:26 -0700 Message-Id: <1406833407-28316-3-git-send-email-fkan@apm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1406833407-28316-1-git-send-email-fkan@apm.com> References: <1406833407-28316-1-git-send-email-fkan@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140731_120258_345046_1F676D25 X-CRM114-Status: UNSURE ( 9.46 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -3.0 (---) Cc: Feng Kan X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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=-2.6 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, 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 Documentation for APM X-Gene SoC GPIO controller DTS binding. Signed-off-by: Feng Kan Reviewed-by: Alexandre Courbot --- .../devicetree/bindings/gpio/gpio-xgene.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-xgene.txt diff --git a/Documentation/devicetree/bindings/gpio/gpio-xgene.txt b/Documentation/devicetree/bindings/gpio/gpio-xgene.txt new file mode 100644 index 0000000..86dbb05 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-xgene.txt @@ -0,0 +1,22 @@ +APM X-Gene SoC GPIO controller bindings + +This is a gpio controller that is part of the flash controller. +This gpio controller controls a total of 48 gpios. + +Required properties: +- compatible: "apm,xgene-gpio" for X-Gene 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. + +Example: + gpio0: gpio0@1701c000 { + compatible = "apm,xgene-gpio"; + reg = <0x0 0x1701c000 0x0 0x40>; + gpio-controller; + #gpio-cells = <2>; + };