From patchwork Mon Jun 29 02:35:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 50403 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B4263218ED for ; Mon, 29 Jun 2015 02:36:23 +0000 (UTC) Received: by lagh6 with SMTP id h6sf41094989lag.0 for ; Sun, 28 Jun 2015 19:36:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=JTC/JOPQ6cVFSb4xmaPKS2D3BBis4UIfac1CpKF+CVk=; b=Wlxm/PGGc/ectSMzlnoDNpKfBpDn7P4R1BK8iL6cUSp9PJ/qIIt/fDt1RfxqsUsQ1n FxVrdfHbeN3peDYBQ7gar/Qyegi5voxj1iycdeQo4UbkvpIEYdo3tmcA1brdCKZpMEB8 x8xHUV1bpv71afGZW8++LwTl7eW+GUapqES6OZNwijjHHdyrCbZ8i+zPnp1tIuBkvB42 EnobBOZsM5IKoMUw2J9+qdR+d7x0o+/4ZB0nph7uHUewuJrODNoFudSGTgIjuBz71YiA f+bnEKib+980kRyyFyELFwQabe7K7UnyXKNtjidbJfy1I4Wk155G7ZkXkHg2/EhnYWRm 8U8Q== X-Gm-Message-State: ALoCoQkWHZHIcZI9FmUGCDSDg3JIcceTyvb0od0Y/TlzOyZ26bV3eLFU+n8eCXSa229TTYpVKfvB X-Received: by 10.152.22.163 with SMTP id e3mr2798857laf.6.1435545382350; Sun, 28 Jun 2015 19:36:22 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.34 with SMTP id n2ls661355laj.15.gmail; Sun, 28 Jun 2015 19:36:22 -0700 (PDT) X-Received: by 10.112.52.2 with SMTP id p2mr11990628lbo.8.1435545381970; Sun, 28 Jun 2015 19:36:21 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id az11si33444809lab.27.2015.06.28.19.36.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Jun 2015 19:36:21 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by lagh6 with SMTP id h6so37180586lag.2 for ; Sun, 28 Jun 2015 19:36:21 -0700 (PDT) X-Received: by 10.112.219.70 with SMTP id pm6mr11690394lbc.41.1435545381365; Sun, 28 Jun 2015 19:36:21 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp1399327lbb; Sun, 28 Jun 2015 19:36:19 -0700 (PDT) X-Received: by 10.70.49.73 with SMTP id s9mr26622002pdn.149.1435545379223; Sun, 28 Jun 2015 19:36:19 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pu1si61772792pbb.242.2015.06.28.19.36.18; Sun, 28 Jun 2015 19:36:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752114AbbF2CgR (ORCPT + 2 others); Sun, 28 Jun 2015 22:36:17 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:32851 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752944AbbF2CgQ (ORCPT ); Sun, 28 Jun 2015 22:36:16 -0400 Received: by padev16 with SMTP id ev16so97470580pad.0 for ; Sun, 28 Jun 2015 19:36:16 -0700 (PDT) X-Received: by 10.70.53.99 with SMTP id a3mr26966409pdp.169.1435545376094; Sun, 28 Jun 2015 19:36:16 -0700 (PDT) Received: from localhost.localdomain ([107.6.117.179]) by mx.google.com with ESMTPSA id ob15sm40375926pdb.40.2015.06.28.19.36.09 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Jun 2015 19:36:15 -0700 (PDT) From: Jun Nie To: haojian.zhuang@linaro.org, linus.walleij@linaro.org, linux-gpio@vger.kernel.org Cc: tony@atomide.com, shawn.guo@linaro.org, wan.zhijun@zte.com.cn, jason.liu@linaro.org, Jun Nie Subject: [PATCH v3 1/2] dt/bindings: gpio: Document ZTE zx296702 GPIO Date: Mon, 29 Jun 2015 10:35:56 +0800 Message-Id: <1435545357-4494-1-git-send-email-jun.nie@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-gpio-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-gpio@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: jun.nie@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add document of ZTE zx296702 GPIO binding Signed-off-by: Jun Nie Acked-by: Shawn Guo --- .../devicetree/bindings/gpio/zx296702-gpio.txt | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/zx296702-gpio.txt diff --git a/Documentation/devicetree/bindings/gpio/zx296702-gpio.txt b/Documentation/devicetree/bindings/gpio/zx296702-gpio.txt new file mode 100644 index 0000000..0dab156 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/zx296702-gpio.txt @@ -0,0 +1,24 @@ +ZTE ZX296702 GPIO controller + +Required properties: +- compatible : "zte,zx296702-gpio" +- #gpio-cells : Should be two. The first cell is the pin number and the + second cell is used to specify optional parameters: + - bit 0 specifies polarity (0 for normal, 1 for inverted) +- gpio-controller : Marks the device node as a GPIO controller. +- interrupts : Interrupt mapping for GPIO IRQ. +- gpio-ranges : Interaction with the PINCTRL subsystem. + +gpio1: gpio@b008040 { + compatible = "zte,zx296702-gpio"; + reg = <0xb008040 0x40>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = < &pmx0 0 54 2 &pmx0 2 59 14>; + interrupts = ; + interrupt-parent = <&intc>; + interrupt-controller; + #interrupt-cells = <2>; + clock-names = "gpio_pclk"; + clocks = <&lsp0clk ZX296702_GPIO_CLK>; +};