From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B47EC43461 for ; Mon, 14 Sep 2020 18:13:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 40947214F1 for ; Mon, 14 Sep 2020 18:13:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600107204; bh=42q8uYhZoqouEOCDHhK9KV1NSpiV4YZ0rsMR9VxdgKY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=uql+TooeiDUGrJSHFraFzSmDobmYUPr7aWTeGzPPvHNNRb9T7OQ29Xukmg35wePCW 056GpKVpCOkYgAtlhl6GH+g79Ehv6cMrY0lwmbbIFX3t2+eA8Wb7MfjiPasPN7GzXL RT5k2GEoEBCt8H4T9fD0I9Yd7uZlb/FogGaCT8Hc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725985AbgINSNT (ORCPT ); Mon, 14 Sep 2020 14:13:19 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:40471 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726044AbgINSNG (ORCPT ); Mon, 14 Sep 2020 14:13:06 -0400 Received: by mail-io1-f67.google.com with SMTP id j2so1107148ioj.7; Mon, 14 Sep 2020 11:13:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=flh8Qx49o5v1NWGlnIlQV9lzKDaYx8c+g/EflzEDRhM=; b=o2UZzP6beHtmsBbT/84NPmvhtzBBM8D5/a7OlKfZxQe3rfphQqSU53yV4d1GobmQG4 1mhC+8fAiM+NS2XeEWt40eHpSOeeWVUut9MfIoagMwG5bIbXV9AfGrCoF9eLjzxPzBYL L+s/yGzmJlE8U6lJik3461yU8cloqa6ka2HC0b841kLTiYoHD09ZLzSrJN2kCkkbMGVV LQiHb4UVbuNEk4szn2XAQfAqtUAwUOT1CCHDqmZ9yygsPNdXdyYLftN0JnTSAv7/sThC xjefT8vR1fjRvYY/oaO6BsFq75ky+dCm+C+YQS9rpP/Aq6cn0MertZFY1AfgXQBmlr0D ht3w== X-Gm-Message-State: AOAM531enpUmkHETchRK0sxbCH2fXurl4+nLGLLC4ywiBD3iYxDH6Zt+ YhXnz9/fnALjyUT86nZIOw== X-Google-Smtp-Source: ABdhPJzYORTqGUQ1Z+gz8wZ6y5/SfEqw40DmQXnoNlX57jjbB08mw8PJvJmpD1E7x1n5FyiJvddW5w== X-Received: by 2002:a02:4b07:: with SMTP id q7mr14986215jaa.84.1600107181794; Mon, 14 Sep 2020 11:13:01 -0700 (PDT) Received: from xps15 ([64.188.179.253]) by smtp.gmail.com with ESMTPSA id m19sm7410692ila.40.2020.09.14.11.12.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Sep 2020 11:13:00 -0700 (PDT) Received: (nullmailer pid 4166255 invoked by uid 1000); Mon, 14 Sep 2020 18:12:57 -0000 Date: Mon, 14 Sep 2020 12:12:57 -0600 From: Rob Herring To: Krzysztof Kozlowski Cc: Linus Walleij , Bartosz Golaszewski , =?iso-8859-1?Q?Beno=EEt?= Cousson , Tony Lindgren , Joel Stanley , Andrew Jeffery , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Stefan Agner , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org Subject: Re: [PATCH 2/6] dt-bindings: gpio: Convert bindings for Maxim MAX732x family to dtschema Message-ID: <20200914181257.GA4163345@bogus> References: <20200829094024.31842-1-krzk@kernel.org> <20200829094024.31842-2-krzk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200829094024.31842-2-krzk@kernel.org> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Sat, Aug 29, 2020 at 11:40:20AM +0200, Krzysztof Kozlowski wrote: > Convert the Maxim MAX732x family of GPIO expanders bindings to device > tree schema by merging it with existing PCA95xx schema. These are quite > similar so merging reduces duplication. > > Signed-off-by: Krzysztof Kozlowski > --- > .../devicetree/bindings/gpio/gpio-max732x.txt | 58 --------------- > .../bindings/gpio/gpio-pca95xx.yaml | 72 ++++++++++++++++++- > 2 files changed, 70 insertions(+), 60 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-max732x.txt > > diff --git a/Documentation/devicetree/bindings/gpio/gpio-max732x.txt b/Documentation/devicetree/bindings/gpio/gpio-max732x.txt > deleted file mode 100644 > index b3a9c0c32823..000000000000 > --- a/Documentation/devicetree/bindings/gpio/gpio-max732x.txt > +++ /dev/null > @@ -1,58 +0,0 @@ > -* MAX732x-compatible I/O expanders > - > -Required properties: > - - compatible: Should be one of the following: > - - "maxim,max7319": For the Maxim MAX7319 > - - "maxim,max7320": For the Maxim MAX7320 > - - "maxim,max7321": For the Maxim MAX7321 > - - "maxim,max7322": For the Maxim MAX7322 > - - "maxim,max7323": For the Maxim MAX7323 > - - "maxim,max7324": For the Maxim MAX7324 > - - "maxim,max7325": For the Maxim MAX7325 > - - "maxim,max7326": For the Maxim MAX7326 > - - "maxim,max7327": For the Maxim MAX7327 > - - reg: I2C slave address for this device. > - - gpio-controller: Marks the device node as a GPIO controller. > - - #gpio-cells: Should be 2. > - - first cell is the GPIO number > - - second cell specifies GPIO flags, as defined in . > - Only the GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW flags are supported. > - > -Optional properties: > - > - The I/O expander can detect input state changes, and thus optionally act as > - an interrupt controller. When the expander interrupt line is connected all the > - following properties must be set. For more information please see the > - interrupt controller device tree bindings documentation available at > - Documentation/devicetree/bindings/interrupt-controller/interrupts.txt. > - > - - interrupt-controller: Identifies the node as an interrupt controller. > - - #interrupt-cells: Number of cells to encode an interrupt source, shall be 2. > - - first cell is the pin number > - - second cell is used to specify flags > - - interrupts: Interrupt specifier for the controllers interrupt. > - > -Please refer to gpio.txt in this directory for details of the common GPIO > -bindings used by client devices. > - > -Example 1. MAX7325 with interrupt support enabled (CONFIG_GPIO_MAX732X_IRQ=y): > - > - expander: max7325@6d { > - compatible = "maxim,max7325"; > - reg = <0x6d>; > - gpio-controller; > - #gpio-cells = <2>; > - interrupt-controller; > - #interrupt-cells = <2>; > - interrupt-parent = <&gpio4>; > - interrupts = <29 IRQ_TYPE_EDGE_FALLING>; > - }; > - > -Example 2. MAX7325 with interrupt support disabled (CONFIG_GPIO_MAX732X_IRQ=n): > - > - expander: max7325@6d { > - compatible = "maxim,max7325"; > - reg = <0x6d>; > - gpio-controller; > - #gpio-cells = <2>; > - }; > diff --git a/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml b/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml > index c5bb24b3b7b5..e90433b7d52b 100644 > --- a/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml > +++ b/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml > @@ -9,6 +9,10 @@ title: NXP PCA95xx I2C GPIO multiplexer > maintainers: > - Krzysztof Kozlowski > > +description: |+ > + Bindings for the family of I2C GPIO multiplexers/expanders: NXP PCA95xx, > + Maxim MAX73xx > + > properties: > compatible: > enum: > @@ -17,6 +21,15 @@ properties: > - maxim,max7312 > - maxim,max7313 > - maxim,max7315 > + - maxim,max7319 > + - maxim,max7320 > + - maxim,max7321 > + - maxim,max7322 > + - maxim,max7323 > + - maxim,max7324 > + - maxim,max7325 > + - maxim,max7326 > + - maxim,max7327 > - nxp,pca6416 > - nxp,pca9505 > - nxp,pca9534 > @@ -69,11 +82,11 @@ properties: > reset-gpios: > description: > GPIO specification for the RESET input. This is an active low signal to > - the PCA953x. > + the PCA953x. Not valid for Maxim MAX732x devices. > > vcc-supply: > description: > - Optional power supply > + Optional power supply. Not valid for Maxim MAX732x devices. > > required: > - compatible > @@ -83,6 +96,27 @@ required: > > unevaluatedProperties: false > > +allOf: > + - if: > + properties: > + compatible: > + contains: > + enum: > + - maxim,max7320 > + - maxim,max7321 > + - maxim,max7322 > + - maxim,max7323 > + - maxim,max7324 > + - maxim,max7325 > + - maxim,max7326 > + - maxim,max7327 > + then: > + properties: > + reset-gpios: > + maxItems: 0 > + vcc-supply: > + maxItems: 0 reset-gpios: false vcc-supply: false > + > examples: > - | > #include > @@ -136,3 +170,37 @@ examples: > ti,micbias = <0>; /* 2.1V */ > }; > }; > + > + - | > + #include > + > + i2c2 { > + #address-cells = <1>; > + #size-cells = <0>; > + > + // MAX7325 with interrupt support enabled > + gpio@6d { > + compatible = "maxim,max7325"; > + reg = <0x6d>; > + gpio-controller; > + #gpio-cells = <2>; > + interrupt-controller; > + #interrupt-cells = <2>; > + interrupt-parent = <&gpio4>; > + interrupts = <29 IRQ_TYPE_EDGE_FALLING>; > + }; > + }; > + > + - | > + i2c3 { > + #address-cells = <1>; > + #size-cells = <0>; > + > + // MAX7325 with interrupt support disabled > + gpio@6e { > + compatible = "maxim,max7325"; > + reg = <0x6e>; > + gpio-controller; > + #gpio-cells = <2>; > + }; > + }; > -- > 2.17.1 > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B3126C43461 for ; Mon, 14 Sep 2020 18:14:28 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 56E47214F1 for ; Mon, 14 Sep 2020 18:14:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="vKRYHVY2" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 56E47214F1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=z0endXy6eLoy7d2fgTYw4wBpEjClKwcvEJHP7ba2p6Q=; b=vKRYHVY2XMgvBFqiNon1TBaX9 qiTmAaVn5Dyw9QSBE3xIut2VIQLfXIa2zIdVBfUKkFUn6jlxpVld6CKmTNi2KSRcERQA39vylfr4v wYKDXlQZMdkLqHiud36xOX0vgG7c8wCjFqPp6lNqRLIWgbtrFwcUa0TUScIrhQko2m/lak0nV3gwM gXYoSLe7CSLf3+eMHm9nsLxB+i1hQHmrvmdT73xiKv0q0pKgAz5WT+5pooSQWrjevHjzLQXvOY7wm gYKxh/0qFS8F8AAQ/hg0hY8nZ2LngBAwali6KpXgoNwguCW1CQTYhP/I+r17301CFIgCmHvvEW2E8 fmIHzWNIw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kHsyO-0001DV-Hb; Mon, 14 Sep 2020 18:13:04 +0000 Received: from mail-io1-f65.google.com ([209.85.166.65]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kHsyM-0001Cj-J7 for linux-arm-kernel@lists.infradead.org; Mon, 14 Sep 2020 18:13:03 +0000 Received: by mail-io1-f65.google.com with SMTP id m17so1155466ioo.1 for ; Mon, 14 Sep 2020 11:13:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=flh8Qx49o5v1NWGlnIlQV9lzKDaYx8c+g/EflzEDRhM=; b=Wf6pvrJ1YnSLy1lYrcSeg5i0ow3B7eOMcgWkRMjuLXTIBlWwrIYWaGkITcHMzm0a5E jTENe3zWfa74p/CK39WTBhb5RgEE43SCy7xokBfS/07gFg+O77O9GI0l2FKPYmQF4J1s HjXpblfFFsY8jjbPEoX3cX2Ju0qr/W9Feu/88VCGWBHklCwm9ulAR0RbVYUVsK2hIsi3 8zcow74s42/+S+PGX/hxj7tXLrtA0IaHTavzDiN9ugR8EePvckp31+5XNbQBYKQIXu0Y EGrcJLINO1CkmK6XKJhONO3PQFxInRWXWdqOdUyXWSvDhOPqLXBuPd125Cfv4Nh1H75y fXhQ== X-Gm-Message-State: AOAM533QefNEiznfc0Z19QZo3w5nZn1AQA+EAttcf6BrggIFTaD271QC zQDEDsdBXcBTAJqZm/MVNw== X-Google-Smtp-Source: ABdhPJzYORTqGUQ1Z+gz8wZ6y5/SfEqw40DmQXnoNlX57jjbB08mw8PJvJmpD1E7x1n5FyiJvddW5w== X-Received: by 2002:a02:4b07:: with SMTP id q7mr14986215jaa.84.1600107181794; Mon, 14 Sep 2020 11:13:01 -0700 (PDT) Received: from xps15 ([64.188.179.253]) by smtp.gmail.com with ESMTPSA id m19sm7410692ila.40.2020.09.14.11.12.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Sep 2020 11:13:00 -0700 (PDT) Received: (nullmailer pid 4166255 invoked by uid 1000); Mon, 14 Sep 2020 18:12:57 -0000 Date: Mon, 14 Sep 2020 12:12:57 -0600 From: Rob Herring To: Krzysztof Kozlowski Subject: Re: [PATCH 2/6] dt-bindings: gpio: Convert bindings for Maxim MAX732x family to dtschema Message-ID: <20200914181257.GA4163345@bogus> References: <20200829094024.31842-1-krzk@kernel.org> <20200829094024.31842-2-krzk@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200829094024.31842-2-krzk@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200914_141302_653305_1E2D7A8E X-CRM114-Status: GOOD ( 28.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Pengutronix Kernel Team , Andrew Lunn , Sascha Hauer , Jason Cooper , linux-aspeed@lists.ozlabs.org, linux-gpio@vger.kernel.org, Tony Lindgren , Andrew Jeffery , Linus Walleij , linux-kernel@vger.kernel.org, Stefan Agner , Bartosz Golaszewski , devicetree@vger.kernel.org, Joel Stanley , =?iso-8859-1?Q?Beno=EEt?= Cousson , linux-omap@vger.kernel.org, Shawn Guo , Gregory Clement , linux-arm-kernel@lists.infradead.org, Sebastian Hesselbarth Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, Aug 29, 2020 at 11:40:20AM +0200, Krzysztof Kozlowski wrote: > Convert the Maxim MAX732x family of GPIO expanders bindings to device > tree schema by merging it with existing PCA95xx schema. These are quite > similar so merging reduces duplication. > > Signed-off-by: Krzysztof Kozlowski > --- > .../devicetree/bindings/gpio/gpio-max732x.txt | 58 --------------- > .../bindings/gpio/gpio-pca95xx.yaml | 72 ++++++++++++++++++- > 2 files changed, 70 insertions(+), 60 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-max732x.txt > > diff --git a/Documentation/devicetree/bindings/gpio/gpio-max732x.txt b/Documentation/devicetree/bindings/gpio/gpio-max732x.txt > deleted file mode 100644 > index b3a9c0c32823..000000000000 > --- a/Documentation/devicetree/bindings/gpio/gpio-max732x.txt > +++ /dev/null > @@ -1,58 +0,0 @@ > -* MAX732x-compatible I/O expanders > - > -Required properties: > - - compatible: Should be one of the following: > - - "maxim,max7319": For the Maxim MAX7319 > - - "maxim,max7320": For the Maxim MAX7320 > - - "maxim,max7321": For the Maxim MAX7321 > - - "maxim,max7322": For the Maxim MAX7322 > - - "maxim,max7323": For the Maxim MAX7323 > - - "maxim,max7324": For the Maxim MAX7324 > - - "maxim,max7325": For the Maxim MAX7325 > - - "maxim,max7326": For the Maxim MAX7326 > - - "maxim,max7327": For the Maxim MAX7327 > - - reg: I2C slave address for this device. > - - gpio-controller: Marks the device node as a GPIO controller. > - - #gpio-cells: Should be 2. > - - first cell is the GPIO number > - - second cell specifies GPIO flags, as defined in . > - Only the GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW flags are supported. > - > -Optional properties: > - > - The I/O expander can detect input state changes, and thus optionally act as > - an interrupt controller. When the expander interrupt line is connected all the > - following properties must be set. For more information please see the > - interrupt controller device tree bindings documentation available at > - Documentation/devicetree/bindings/interrupt-controller/interrupts.txt. > - > - - interrupt-controller: Identifies the node as an interrupt controller. > - - #interrupt-cells: Number of cells to encode an interrupt source, shall be 2. > - - first cell is the pin number > - - second cell is used to specify flags > - - interrupts: Interrupt specifier for the controllers interrupt. > - > -Please refer to gpio.txt in this directory for details of the common GPIO > -bindings used by client devices. > - > -Example 1. MAX7325 with interrupt support enabled (CONFIG_GPIO_MAX732X_IRQ=y): > - > - expander: max7325@6d { > - compatible = "maxim,max7325"; > - reg = <0x6d>; > - gpio-controller; > - #gpio-cells = <2>; > - interrupt-controller; > - #interrupt-cells = <2>; > - interrupt-parent = <&gpio4>; > - interrupts = <29 IRQ_TYPE_EDGE_FALLING>; > - }; > - > -Example 2. MAX7325 with interrupt support disabled (CONFIG_GPIO_MAX732X_IRQ=n): > - > - expander: max7325@6d { > - compatible = "maxim,max7325"; > - reg = <0x6d>; > - gpio-controller; > - #gpio-cells = <2>; > - }; > diff --git a/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml b/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml > index c5bb24b3b7b5..e90433b7d52b 100644 > --- a/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml > +++ b/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml > @@ -9,6 +9,10 @@ title: NXP PCA95xx I2C GPIO multiplexer > maintainers: > - Krzysztof Kozlowski > > +description: |+ > + Bindings for the family of I2C GPIO multiplexers/expanders: NXP PCA95xx, > + Maxim MAX73xx > + > properties: > compatible: > enum: > @@ -17,6 +21,15 @@ properties: > - maxim,max7312 > - maxim,max7313 > - maxim,max7315 > + - maxim,max7319 > + - maxim,max7320 > + - maxim,max7321 > + - maxim,max7322 > + - maxim,max7323 > + - maxim,max7324 > + - maxim,max7325 > + - maxim,max7326 > + - maxim,max7327 > - nxp,pca6416 > - nxp,pca9505 > - nxp,pca9534 > @@ -69,11 +82,11 @@ properties: > reset-gpios: > description: > GPIO specification for the RESET input. This is an active low signal to > - the PCA953x. > + the PCA953x. Not valid for Maxim MAX732x devices. > > vcc-supply: > description: > - Optional power supply > + Optional power supply. Not valid for Maxim MAX732x devices. > > required: > - compatible > @@ -83,6 +96,27 @@ required: > > unevaluatedProperties: false > > +allOf: > + - if: > + properties: > + compatible: > + contains: > + enum: > + - maxim,max7320 > + - maxim,max7321 > + - maxim,max7322 > + - maxim,max7323 > + - maxim,max7324 > + - maxim,max7325 > + - maxim,max7326 > + - maxim,max7327 > + then: > + properties: > + reset-gpios: > + maxItems: 0 > + vcc-supply: > + maxItems: 0 reset-gpios: false vcc-supply: false > + > examples: > - | > #include > @@ -136,3 +170,37 @@ examples: > ti,micbias = <0>; /* 2.1V */ > }; > }; > + > + - | > + #include > + > + i2c2 { > + #address-cells = <1>; > + #size-cells = <0>; > + > + // MAX7325 with interrupt support enabled > + gpio@6d { > + compatible = "maxim,max7325"; > + reg = <0x6d>; > + gpio-controller; > + #gpio-cells = <2>; > + interrupt-controller; > + #interrupt-cells = <2>; > + interrupt-parent = <&gpio4>; > + interrupts = <29 IRQ_TYPE_EDGE_FALLING>; > + }; > + }; > + > + - | > + i2c3 { > + #address-cells = <1>; > + #size-cells = <0>; > + > + // MAX7325 with interrupt support disabled > + gpio@6e { > + compatible = "maxim,max7325"; > + reg = <0x6e>; > + gpio-controller; > + #gpio-cells = <2>; > + }; > + }; > -- > 2.17.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel