From patchwork Thu Aug 11 20:32:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucile Quirion X-Patchwork-Id: 658325 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 3s9KSz5yslz9sCg for ; Fri, 12 Aug 2016 06:32:35 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932146AbcHKUcb (ORCPT ); Thu, 11 Aug 2016 16:32:31 -0400 Received: from mail.savoirfairelinux.com ([208.88.110.44]:42196 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932209AbcHKUca (ORCPT ); Thu, 11 Aug 2016 16:32:30 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 8FA866208F7; Thu, 11 Aug 2016 16:32:24 -0400 (EDT) Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 6yTxpCT_mCG4; Thu, 11 Aug 2016 16:32:22 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id C5564620A9B; Thu, 11 Aug 2016 16:32:22 -0400 (EDT) X-Virus-Scanned: amavisd-new at mail.savoirfairelinux.com Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id G-onU1hgGGma; Thu, 11 Aug 2016 16:32:22 -0400 (EDT) Received: from localhost (walter-oracle.mtl.sfl.mtl.sfl [192.168.50.74]) by mail.savoirfairelinux.com (Postfix) with ESMTPSA id 78B466208F7; Thu, 11 Aug 2016 16:32:22 -0400 (EDT) From: Lucile Quirion To: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Cc: Linus Walleij , Alexandre Courbot , kernel@savoirfairelinux.com, Lucile Quirion Subject: [PATCH v3 1/2] gpio: add bindings for Technologic I2C-FPGA gpio controller Date: Thu, 11 Aug 2016 16:32:03 -0400 Message-Id: <1470947524-8137-2-git-send-email-lucile.quirion@savoirfairelinux.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1470947524-8137-1-git-send-email-lucile.quirion@savoirfairelinux.com> References: <1470947524-8137-1-git-send-email-lucile.quirion@savoirfairelinux.com> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Device tree binding documentation for Technologic's I2C-FPGA GPIO controller. Signed-off-by: Lucile Quirion --- .../devicetree/bindings/gpio/gpio-ts4900.txt | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-ts4900.txt diff --git a/Documentation/devicetree/bindings/gpio/gpio-ts4900.txt b/Documentation/devicetree/bindings/gpio/gpio-ts4900.txt new file mode 100644 index 0000000..206fc21 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-ts4900.txt @@ -0,0 +1,29 @@ +* Technologic Systems I2C-FPGA's GPIO controller bindings + +This bindings describes the GPIO controller for Technologic's FPGA core. +TS-4900's FPGA encodes the GPIO state on 3 bits, whereas the TS-7970's FPGA +uses 2 bits: it doesn't use a dedicated input bit. + +Required properties: +- compatible: Should be one of the following + "technologic,ts4900-gpio" + "technologic,ts7970-gpio" +- reg: Physical base address of the controller and length + of memory mapped region. +- #gpio-cells: Should be two. The first cell is the pin number. +- gpio-controller: Marks the device node as a gpio controller. + +Optional property: +- ngpios: Number of GPIOs this controller has, default is 32. + +Example: + +&i2c2 { + gpio8: gpio@28 { + compatible = "technologic,ts4900-gpio"; + reg = <0x28>; + #gpio-cells = <2>; + gpio-controller; + ngpios = <32>; + }; +};