From patchwork Fri Oct 7 15:19:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pantelis Antoniou X-Patchwork-Id: 679384 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 3srDDT3dgDz9s65 for ; Sat, 8 Oct 2016 02:37:45 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b=T3IM8q17; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936334AbcJGPha (ORCPT ); Fri, 7 Oct 2016 11:37:30 -0400 Received: from mail-wm0-f48.google.com ([74.125.82.48]:37436 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936430AbcJGPWP (ORCPT ); Fri, 7 Oct 2016 11:22:15 -0400 Received: by mail-wm0-f48.google.com with SMTP id b201so45995218wmb.0 for ; Fri, 07 Oct 2016 08:21:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ey8jq+HOo76jLIHqoQRukeZP6B7G8I3YspdaHsRP8U4=; b=T3IM8q17fgpZ/T/HAgpespRYbAG2Cd3Ky5brwS8+gcazWDxOW/EcEKWZFgLGhHQJPn 6SeJDZ9UbnoyZ7eGZioArArsPvvMCm/eA5epb2T64/jsoMt4ennDQir5laTXYMeANXJa 9qua5Ebo2+N5bwQ5YoF0EmuQZtAG6T3n0xfCM= 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=ey8jq+HOo76jLIHqoQRukeZP6B7G8I3YspdaHsRP8U4=; b=YE7emnyRWyV63dSpmDzCwF8oGItgYA5tEkK5oChVxBkRou1VyAl6PNd0vSe03yVjKz HFi1jVjYDZLSI2B6AOiOZ+BHlWY3QcE21bqnH45qo6f1l94Pfrh9nZlY6lGorE5GJsKi Wcy+7tLegndHaF43eB5SxmCtlyWVY24a0yaxh8xwMUYoNFj3I84mz9Fcvh/qzrW96bCh iiIIn3TMQ9n+v4pc/LxHnjnfWzOqA6GUWQHAxtnOPavHm7SQ6rihNbyo4+m0z72LYFBx wqWnUp1q7+lD5RmNKuoXbxxivbs/v+58694OBXMme6Pd5DLg/b5kY1S4ucyofEFqMad6 N+1Q== X-Gm-Message-State: AA6/9RljX/6GO846iYt/n/qo0JA7vHw9zEU4rpxXVhDVsuL9NMNuBg5DuFmN1vx+QjHsWA== X-Received: by 10.28.28.193 with SMTP id c184mr15682975wmc.53.1475853714395; Fri, 07 Oct 2016 08:21:54 -0700 (PDT) Received: from localhost.localdomain ([195.97.110.117]) by smtp.gmail.com with ESMTPSA id t138sm3467642wmt.5.2016.10.07.08.21.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Oct 2016 08:21:53 -0700 (PDT) From: Pantelis Antoniou To: Lee Jones Cc: Linus Walleij , Alexandre Courbot , Rob Herring , Mark Rutland , Frank Rowand , Georgi Vlaev , Guenter Roeck , JawaharBalaji Thirumalaisamy , Pantelis Antoniou , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org, linux-mtd@lists.infradead.org, linux-watchdog@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 4/4] gpio: ptxpmb-ext-cpld: Document bindings of PTXPMB extended CPLD Date: Fri, 7 Oct 2016 18:19:34 +0300 Message-Id: <1475853574-22339-5-git-send-email-pantelis.antoniou@konsulko.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1475853574-22339-1-git-send-email-pantelis.antoniou@konsulko.com> References: <1475853574-22339-1-git-send-email-pantelis.antoniou@konsulko.com> Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org From: Georgi Vlaev Add device tree bindings document for the GPIO driver of Juniper's PTXPMB extended CPLD. Signed-off-by: Georgi Vlaev [Ported from Juniper kernel] Signed-off-by: Pantelis Antoniou --- .../bindings/gpio/jnx,gpio-ptxpmb-ext-cpld.txt | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/jnx,gpio-ptxpmb-ext-cpld.txt diff --git a/Documentation/devicetree/bindings/gpio/jnx,gpio-ptxpmb-ext-cpld.txt b/Documentation/devicetree/bindings/gpio/jnx,gpio-ptxpmb-ext-cpld.txt new file mode 100644 index 0000000..87f01b9 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/jnx,gpio-ptxpmb-ext-cpld.txt @@ -0,0 +1,36 @@ +Juniper PTXPMB extended CPLD GPIO block + +Required properties: + +- compatible: + Must be "jnx,gpio-ptxpmb-ext-cpld" + +- #gpio-cells: + Should be <2>. The first cell is the pin number (within the controller's + pin space), and the second is used for the following flags: + bit[0]: direction (0 = out, 1 = in) + bit[1]: init high + bit[2]: active low + +- gpio-controller: + Specifies that the node is a GPIO controller. + +- interrupt-controller: + Specifies that the node is an interrupt controller. + +Optional properties: + +- reg: + Address and length of the register set for the device. Usually supplied + by the parent MFD device. + + +Example: + +gpio_ext_cpld: cpld-ext-gpio { + compatible = "jnx,gpio-ptxpmb-ext-cpld"; + #gpio-cells = <2>; + #interrupt-cells = <2>; + gpio-controller; + interrupt-controller; +};