From patchwork Mon Aug 21 13:12:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Wunner X-Patchwork-Id: 803996 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3xbYyn6Bt3z9s7C for ; Mon, 21 Aug 2017 23:13:05 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753852AbdHUNNE (ORCPT ); Mon, 21 Aug 2017 09:13:04 -0400 Received: from mailout2.hostsharing.net ([83.223.90.233]:45593 "EHLO mailout2.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753755AbdHUNND (ORCPT ); Mon, 21 Aug 2017 09:13:03 -0400 Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout2.hostsharing.net (Postfix) with ESMTPS id C64F810189C9B; Mon, 21 Aug 2017 15:13:02 +0200 (CEST) Received: from localhost (p4FC96673.dip0.t-ipconnect.de [79.201.102.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by h08.hostsharing.net (Postfix) with ESMTPSA id 6B950603E121; Mon, 21 Aug 2017 15:13:02 +0200 (CEST) X-Mailbox-Line: From 7fe7636eecba238d57ab6178cfa3f6b7deca98f1 Mon Sep 17 00:00:00 2001 Message-Id: <7fe7636eecba238d57ab6178cfa3f6b7deca98f1.1503319573.git.lukas@wunner.de> In-Reply-To: References: From: Lukas Wunner Date: Mon, 21 Aug 2017 15:12:00 +0200 Subject: [PATCH 3/4] dt-bindings: gpio: max3191x: Document new driver To: Linus Walleij Cc: Mathias Duckeck , Phil Elwell , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Mark Rutland Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Add device tree bindings for Maxim MAX3191x industrial serializer. Cc: Mathias Duckeck Signed-off-by: Lukas Wunner --- .../devicetree/bindings/gpio/gpio-max3191x.txt | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-max3191x.txt diff --git a/Documentation/devicetree/bindings/gpio/gpio-max3191x.txt b/Documentation/devicetree/bindings/gpio/gpio-max3191x.txt new file mode 100644 index 000000000000..18182ecaa199 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-max3191x.txt @@ -0,0 +1,37 @@ +GPIO driver for Maxim MAX3191x industrial serializer + +Required properties: + - compatible: "maxim,max31910", "maxim,max31911", "maxim,max31912", + "maxim,max31913", "maxim,max31953", "maxim,max31963" + - gpio-controller: Marks the device node as a GPIO controller. + - #gpio-cells: Should be two. For consumer use see gpio.txt. + +Optional properties: + - maxim,nchips: Number of chips in the daisy-chain (default is 1). + - modesel-gpios: GPIO pins to configure modesel of each chip. + The number of GPIOs must be equal to "maxim,nchips". + - fault-gpios: GPIO pins to read undervoltage fault of each chip. + - db0-gpios: GPIO pins to configure debounce of each chip. + - db1-gpios: GPIO pins to configure debounce of each chip. + - maxim,modesel: Mode to use if hardwired (and thus not selectable + through GPIOs): 0 for 16-bit mode, 1 for 8-bit mode. + - maxim,no-vcc24v: Boolean, whether the chips are powered through 5VOUT + instead of VCC24V. + +For other required and optional properties of SPI slave nodes please refer to +../spi/spi-bus.txt. + +Example: + gpio@0 { + compatible = "maxim,max31913"; + gpio-controller; + #gpio-cells = <2>; + + modesel-gpios = <&gpio2 23>; + fault-gpios = <&gpio2 24 GPIO_ACTIVE_LOW>; + db0-gpios = <&gpio2 25>; + db1-gpios = <&gpio2 26>; + + reg = <0>; + spi-max-frequency = <25000000>; + };