Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4433756ybl; Mon, 9 Dec 2019 10:44:10 -0800 (PST) X-Google-Smtp-Source: APXvYqxLSc4JCqu1/Vvw0hT/qIxi5LvKwMcMVYNWnV99dAiJW4qzCY3OohI9aFl2944cuok/cLsq X-Received: by 2002:aca:6006:: with SMTP id u6mr413118oib.137.1575917050149; Mon, 09 Dec 2019 10:44:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575917050; cv=none; d=google.com; s=arc-20160816; b=RZV1U3uNGfxB4H5RsS2159Tv+8HvONXk+zZrUAOMANi37uxOt3oqh+Rl06YCnK2loB rs4Jv3leieH+FTpYsZHxwuXLt8WahFV5132tAMMPogztdUHdX5vllfExov2ta1IXb/w2 2ykwS+9N+4Ju1CcRkwWZkDasJgInpt1Ih6S+qGpZyosOxmaddfChfPN72gbx4tUZ/yeL iQEvky2QBEJwfTxjBndLgUDhyH7rj3VGXQLt+zTOocRkcNsd8nPysr852Q0SWEsdpVnX yESrby6KmaPJdVS8ialcLS8koXVy4HWJydkA0xK1VHPEOdmcl1NuqMCvYgh7ql/hlfeE GfmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=W9BrAgJ7tWJhpaCBBgcNz44PMQcoLgLQfum3FJFsu6Q=; b=jnDnwzJvOZdx9FOnXJdFlyWhKFCQSw0VUj5j6TlmlydW6erT6SFVjcKM3IhBodiNXG SqXbvlLLsa65HVaZ+jh6HkG65F6PT2XKo/mKXYiREo4gtwe8LflU1mK7tyw5y+e+yUyi jGdo/U/vxvu3Oc9W4OE2kDkqjG1cAZWy/udO5yCZuGI174RWgXdLI1lm1IMlFzPkCK1r v/RAD2VuzWb78r3uloa8VeXFYZFCUa7nZTCL9E3UUogF+Xpms2XTQ//rJ04ZdnLl7JKz m3iHJhGDT0jDRzIlaPcGGUB6xV64eLzrAVMyByHOFpFfHkvQqWHnSlwGT0ATcyif5pRp bQjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6si369486oih.217.2019.12.09.10.43.59; Mon, 09 Dec 2019 10:44:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727067AbfLISnT (ORCPT + 99 others); Mon, 9 Dec 2019 13:43:19 -0500 Received: from mail.bugwerft.de ([46.23.86.59]:34260 "EHLO mail.bugwerft.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726822AbfLISm7 (ORCPT ); Mon, 9 Dec 2019 13:42:59 -0500 Received: from zenbar.fritz.box (pD95EF75D.dip0.t-ipconnect.de [217.94.247.93]) by mail.bugwerft.de (Postfix) with ESMTPSA id A76232E5CDE; Mon, 9 Dec 2019 18:29:06 +0000 (UTC) From: Daniel Mack To: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org Cc: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, broonie@kernel.org, lee.jones@linaro.org, lars@metafoo.de, pascal.huerst@gmail.com, Daniel Mack Subject: [PATCH 03/10] dt-bindings: gpio: Add documentation for ad242x GPIO controllers Date: Mon, 9 Dec 2019 19:35:03 +0100 Message-Id: <20191209183511.3576038-4-daniel@zonque.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191209183511.3576038-1-daniel@zonque.org> References: <20191209183511.3576038-1-daniel@zonque.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This device must be place as a sub-device of an AD242x MFD node. Signed-off-by: Daniel Mack --- .../bindings/gpio/adi,ad242x-gpio.yaml | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/adi,ad242x-gpio.yaml diff --git a/Documentation/devicetree/bindings/gpio/adi,ad242x-gpio.yaml b/Documentation/devicetree/bindings/gpio/adi,ad242x-gpio.yaml new file mode 100644 index 000000000000..0a5a339fc84e --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/adi,ad242x-gpio.yaml @@ -0,0 +1,65 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/gpio/adi,ad242x-gpio.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Analog Devices AD242x GPIO controller + +maintainers: + - Daniel Mack + +description: | + This module is part of the AD242x MFD device. For more details and an example + refer to Documentation/devicetree/bindings/mfd/ad242x.yaml. + +properties: + compatible: + enum: + - adi,ad2428w-gpio + + "#gpio-cells": + const: 2 + + gpio-controller: true + + gpio-over-distance: + type: object + description: | + Sub-node to configure pins as 'GPIO over distance'. + Pins in this mode are not accessible as regular GPIOs; instead, their + state is transparantly mirrored between one or multiple nodes. + + Each child node of the 'gpio-over-distance' node describes one pin + that is to be configured in 'over distance' mode + + properties: + pin: + type: object + properties: + reg: + maxItems: 1 + + adi,virtual-port-mask: + $ref: '/schemas/types.yaml#/definitions/uint32' + description: | + The virtual port mask to assign this GPIO to. + Multiple GPIOs can use the same virtual port to link them + together. Refer to the datasheet for the details. + + adi,gpio-output: + type: boolean + description: Configures this GPIO as output. Defaults to input mode. + + adi,gpio-inverted: + type: boolean + description: Inverts the GPIO value + + required: + - reg + - adi,virtual-port-mask + +required: + - compatible + - '#gpio-cells' + - gpio-controller -- 2.23.0