From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 49424207DE2; Sat, 7 Jun 2025 12:29:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749299347; cv=none; b=sivPP/HSBQSJHF2hINIL10YdA3OYGI3kSpwNFUgJ+ZduZaJkCB9CY7Wj+ncl1gqUrMA1at9oaeE9Dox22LUCTaou936xBXqkNmv7aUuHwQV8gXtMXFg3qJayPPKtC7OtVlzGczC9/vJf5Od2EHZj4UEMGxKU18jO/H6tF59O910= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749299347; c=relaxed/simple; bh=yLr2SN6AWnsvGEoPz3p3WiRoZRj2v0VswxVquuGqpVo=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gtqagiAlH1yv+ITheiywazq1DBCMVxk2FlicslDNP4GgIeId8P2z8aSOxE2lsFTQAbdx3ahaDUMMHZAZjVgjaM6fbAVe+iB5drzzH26tpBdnLdOHuktZrFai5/Jd+JTfjroHRp2h4AX+qs8DhWKLELM7SYlJfXbpcfmFqhu5heo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eX25nAtt; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eX25nAtt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0CEBCC4CEF0; Sat, 7 Jun 2025 12:28:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1749299346; bh=yLr2SN6AWnsvGEoPz3p3WiRoZRj2v0VswxVquuGqpVo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=eX25nAtt6HCijOGu+EywJzXgLdZs6vwQr5NxxiOMpj/OdPr3Tk84rPTZdDE5UaSUq ObyJS8iibdD9PrGbnsyBt5HCnBqSRMPeyo2Lh8D3Mn6DcO0kk+K05syTiq0i6IYbA0 WFauSpED8ct+FrtCW8tiwKG5AauSnPP1CUet24bvM8yWdGNNUhFu/9BOJAA6WUSFlI jkkQ0QruO0xyQDx+vtRdrGz+J/v4myrHLevcYegelHF6hWkZtoC3/OOUGuPB0+6zr7 bdLnpo4KV1MjDtlMndlLSy3zPOJiXnQcon4AQowb4+QsbbsvEfaqWvvUdbnjpZi68x HNvcP8VCwZvQA== Date: Sat, 7 Jun 2025 13:28:55 +0100 From: Jonathan Cameron To: Jonathan Santos Cc: , , , , , , , , , , , , , , , , , , Bartosz Golaszewski Subject: Re: [PATCH v10 04/12] dt-bindings: iio: adc: ad7768-1: Document GPIO controller Message-ID: <20250607132855.20106540@jic23-huawei> In-Reply-To: References: X-Mailer: Claws Mail 4.3.0 (GTK 3.24.48; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 4 Jun 2025 16:36:03 -0300 Jonathan Santos wrote: > The AD7768-1 ADC exports four bidirectional GPIOs accessible > via register map. > > Document GPIO properties necessary to enable GPIO controller for this > device. > > Acked-by: Bartosz Golaszewski > Reviewed-by: Linus Walleij > Reviewed-by: Rob Herring (Arm) > Signed-off-by: Jonathan Santos Small thing for future reference. Good to have DT patches early in a series but please order those in the same order as you then make use of them later in the series. In this case the continued discussion on patch 9 means I can't pick up patches 2/3 as they won't have a user yet. That blocks me picking up this and the GPIO controller support for now as well despite I think those being ready to go. Jonathan > --- > v10 Changes: > * none. > > v9 Changes: > * none. > > v8 Changes: > * none. > > v7 Changes: > * none. > > v6 Changes: > * none. > > v5 Changes: > * none. > > v4 Changes: > * none. > > v3 Changes: > * none. > > v2 Changes: > * New > --- > .../devicetree/bindings/iio/adc/adi,ad7768-1.yaml | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml > index 9a6df931edc3..18f93586fcdf 100644 > --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml > +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml > @@ -85,6 +85,14 @@ properties: > dt-bindings/iio/adc/adi,ad7768-1.h. > const: 1 > > + gpio-controller: true > + > + "#gpio-cells": > + const: 2 > + description: | > + The first cell is for the GPIO number: 0 to 3. > + The second cell takes standard GPIO flags. > + > required: > - compatible > - reg > @@ -142,6 +150,8 @@ examples: > spi-max-frequency = <2000000>; > spi-cpol; > spi-cpha; > + gpio-controller; > + #gpio-cells = <2>; > vref-supply = <&adc_vref>; > interrupts = <25 IRQ_TYPE_EDGE_RISING>; > interrupt-parent = <&gpio>;