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: 489195 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 3BC71140271 for ; Mon, 29 Jun 2015 12:36:19 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752114AbbF2CgR (ORCPT ); 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-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; bh=EOR52oB+0tGCgXtuDstE9aUQ8Q9a/cFppy56nV5dULQ=; b=BDdQyd7dbnT7TzwZexiFskOG0w1nv3nDi/rentsUMT03UzE/yKFIPHvenQ9xLjEH6L K7SCuOMeqyRZk5iR6p88IMtah1xPHtLRFp/UZGt5UHpHZSWM2PczxB5qP8TTEMzF6KHf VQ4S5Z7tesbCvwGYqxUjgAnzxvLjUyo85HkHzIopsUA4AXckorb97NWInj+2/NBkuH9o qgGuvBMSw6QHJ4yQvvTkHMhdQ0mrmK5qyQRIal7Q+7jlBDGAscFmzY0J+VSeFO4sEl3n RC+bvY26MK2iVBPNNMXGXlRROApenK/yaBARKeJiGINnunG+/O75ecEGv3uciiUHbvxq 4VIg== X-Gm-Message-State: ALoCoQnvJ3si2DaDRQyL6ZuXWvnpuXPE9X3i3PRjij5sRz4LwHiz1PWbbrcPadL4KJS8SdZBApVn 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: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org 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>; +};