From patchwork Fri Jun 12 08:35:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 49817 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8C2C52151E for ; Fri, 12 Jun 2015 08:35:41 +0000 (UTC) Received: by wgv5 with SMTP id 5sf7666910wgv.0 for ; Fri, 12 Jun 2015 01:35:40 -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=LEEbvDxEC8oKLw64cWecdDbb3hv2GYDtWcB2rHjlKFKSYCEjK2OFsvb/9nlzva4TJV QfS2uLWMmwaQMw49vHCZiZN8ITx7dqyfpQmjyVAPj1GsmPypPjRgVwdJrDGUQz6zQwX0 Y64d7cjOAr6MbhgamHtNYHbq0/LaXSIK4pwVjJnG3yLZJjyulTwNm0WkZTujeDAmoXHZ Z3YARBDP4HK/GLJUt2f9AzH8RsIJP+uNAEVVHLohljjnSt4vWwqw1GWn92ObiKyYhFOf PMdI33cGNDYGCw14aFML8i0/nqJ/PDl7weukQlAZUBI7dmuoCC8RhKyZRde0rmrNp5nP f6FQ== X-Gm-Message-State: ALoCoQlegIeFn1j3ZMJJVNTdR7RPxsDDeDlsIdgkyUpU/d4vDGUmnHtg39qmseZZzopu6/irNBmi X-Received: by 10.180.216.12 with SMTP id om12mr2981285wic.1.1434098140859; Fri, 12 Jun 2015 01:35:40 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.166 with SMTP id z6ls508011laj.64.gmail; Fri, 12 Jun 2015 01:35:40 -0700 (PDT) X-Received: by 10.152.44.132 with SMTP id e4mr14254802lam.34.1434098140697; Fri, 12 Jun 2015 01:35:40 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id li2si2825516lab.51.2015.06.12.01.35.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Jun 2015 01:35:40 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbbqq2 with SMTP id qq2so15882103lbb.3 for ; Fri, 12 Jun 2015 01:35:40 -0700 (PDT) X-Received: by 10.112.155.197 with SMTP id vy5mr13817758lbb.29.1434098140421; Fri, 12 Jun 2015 01:35:40 -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 hn6csp381026lbb; Fri, 12 Jun 2015 01:35:39 -0700 (PDT) X-Received: by 10.70.133.36 with SMTP id oz4mr21601797pdb.65.1434098137720; Fri, 12 Jun 2015 01:35:37 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id mo9si4442151pbc.22.2015.06.12.01.35.36; Fri, 12 Jun 2015 01:35:37 -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 S1751271AbbFLIff (ORCPT + 2 others); Fri, 12 Jun 2015 04:35:35 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:35755 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751138AbbFLIfd (ORCPT ); Fri, 12 Jun 2015 04:35:33 -0400 Received: by pacyx8 with SMTP id yx8so18932171pac.2 for ; Fri, 12 Jun 2015 01:35:33 -0700 (PDT) X-Received: by 10.66.182.229 with SMTP id eh5mr21523313pac.18.1434098133260; Fri, 12 Jun 2015 01:35:33 -0700 (PDT) Received: from localhost.localdomain ([107.6.117.179]) by mx.google.com with ESMTPSA id je4sm2885662pbb.17.2015.06.12.01.35.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Jun 2015 01:35:32 -0700 (PDT) From: Jun Nie To: linus.walleij@linaro.org, linux-gpio@vger.kernel.org Cc: shawn.guo@linaro.org, wan.zhijun@zte.com.cn, jason.liu@linaro.org, Jun Nie Subject: [PATCH 1/2] dt/bindings: gpio: Document ZTE zx296702 GPIO Date: Fri, 12 Jun 2015 16:35:14 +0800 Message-Id: <1434098115-17292-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.217.172 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 --- .../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>; +};