Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3886364ybl; Mon, 27 Jan 2020 12:17:14 -0800 (PST) X-Google-Smtp-Source: APXvYqxfzcHsiWpOxc3hJl9D8ftxAwShWlcy19xQm0ZjOiC5569w+WnFMyrrWFEAsp/Y9RbsXoGD X-Received: by 2002:a9d:5c10:: with SMTP id o16mr14351968otk.286.1580156234280; Mon, 27 Jan 2020 12:17:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580156234; cv=none; d=google.com; s=arc-20160816; b=JjlinYgU/Yx0NHtxcGFWplixtLsjIq9h2dpCNyvf77YlPJvykah4T+M1bgtmMj4ema mnG/k4CT0GZhOGMn/L/ewF86CFhl2lXglKDi+wuoJL49I62ug7X7HwYWFfBpYAnfBzdB 38GMZgszV8HblTUT/kMPj0UutXHtxnnqHaxUgELHvlc7RireA8L33U2p6LKqKPp0Hc73 x/gfc5D7iMkOLsu/74pzHUQEdxlwo49/UUB/naa1dEqIRJGAAyAdI9RC5Uo1P9cOvr2E hNnNa79GBW0bmvT6l7QbIFbW38kKRuMeHKKwlo0b6HRH5LpmVtjmHljXwtQ8SV6z5zm7 8WUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=kP3meVHpRUwC+Lg41T7kI+wm6FYiDtOOiXX2HrvTBww=; b=vxByTy2dyFdbLQyRz9Q45u5j4LMDduZKmAM9sb1eC7xJ+MV+XbTLRUQx7MP3ZQDb83 wf0rlC+ujrBXP4ylkbdvggRQJTMf84jmtdarEyQrrZnFJVwRKLeV5pHIvZTlFNF4Ph2O gKMdODQHE5tKpelrfRcwL7ANGZukhEJI1sssvL34WW9WKzPKY6nxELMNCrBmzvI6Lc26 tAwUGVOv8LAqgokpieEfQ0Wu77t8+IWB50nyb/Thm/cLtZTCzzgYq07vG8ZHiUdu/saH azyrmEKMqJwYFOtbcKI1ALYuxLBDMMkZMDcVcnPIsc1HaOdJL01W7+eofOzb2LsOuhdV pw+w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w6si7177341oti.4.2020.01.27.12.17.02; Mon, 27 Jan 2020 12:17:14 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726485AbgA0UQH (ORCPT + 99 others); Mon, 27 Jan 2020 15:16:07 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:35812 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726004AbgA0UQH (ORCPT ); Mon, 27 Jan 2020 15:16:07 -0500 Received: by mail-ot1-f65.google.com with SMTP id r16so9731903otd.2; Mon, 27 Jan 2020 12:16:07 -0800 (PST) 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:user-agent; bh=kP3meVHpRUwC+Lg41T7kI+wm6FYiDtOOiXX2HrvTBww=; b=BTktUi3fcS0ZkN+Kf42104r1tioKWgNlQBJG5HTd/EVu7FC9+X0MxzY1rCl+5n5gQF Y2tzwTGdQJBWgE7QLyIeKTxMFAaS3oJ8qqJokmIjvLfLL1LiPbp7azai86bYV4SoYTRO 289f2h5bMC1S+BHmUODeezZW7bgt0AS3ItZz011HdV+4mjSS/Ao4SHRfVIsB/WqePVeR V1Y2H1cLU5AnJ1pKHFvTZ5Rv4JrDG92St1mhcwuURTuJZ2ZlZtCNZxFgtkN7fI/BDXkQ U4bNVtr4+GTd9SZfHwYgZAoKud8C0472hnVACNCQx8NLq6qjMbSjfBoAgLXEHlOSSAEH 9+xg== X-Gm-Message-State: APjAAAWiqlA7A8ISBRgt4x5Es4xSz5xoTMZtTSBBIUCKzrTu7CgjPNUq MtWaDK4RK63pNC3OGPKAfuL+7Yc= X-Received: by 2002:a9d:1b26:: with SMTP id l35mr13904866otl.307.1580156166836; Mon, 27 Jan 2020 12:16:06 -0800 (PST) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id m19sm5942050otn.47.2020.01.27.12.16.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jan 2020 12:16:06 -0800 (PST) Received: (nullmailer pid 3695 invoked by uid 1000); Mon, 27 Jan 2020 20:16:05 -0000 Date: Mon, 27 Jan 2020 14:16:05 -0600 From: Rob Herring To: Beniamin Bia Cc: jic23@kernel.org, lars@metafoo.de, Michael.Hennerich@analog.com, pmeerw@pmeerw.net, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, biabeniamin@outlook.com, knaack.h@gmx.de, mark.rutland@arm.com, devicetree@vger.kernel.org Subject: Re: [PATCH v2 2/3] dt-bindings: iio: amplifiers: Add docs for HMC425A Step Attenuator Message-ID: <20200127201605.GA9131@bogus> References: <20200122121702.30494-1-beniamin.bia@analog.com> <20200122121702.30494-2-beniamin.bia@analog.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200122121702.30494-2-beniamin.bia@analog.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 22, 2020 at 02:17:01PM +0200, Beniamin Bia wrote: > From: Michael Hennerich > > Document support for Analog Devices MC425A Step Attenuator. > > Signed-off-by: Michael Hennerich > Signed-off-by: Beniamin Bia > --- > .../bindings/iio/amplifiers/adi,hmc425a.yaml | 56 +++++++++++++++++++ > 1 file changed, 56 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/amplifiers/adi,hmc425a.yaml > > diff --git a/Documentation/devicetree/bindings/iio/amplifiers/adi,hmc425a.yaml b/Documentation/devicetree/bindings/iio/amplifiers/adi,hmc425a.yaml > new file mode 100644 > index 000000000000..a0afa661f4ac > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/amplifiers/adi,hmc425a.yaml > @@ -0,0 +1,56 @@ > +# SPDX-License-Identifier: GPL-2.0 Dual license new bindings: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/amplifiers/adi,hmc425a.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: HMC425A 6-bit Digital Step Attenuator > + > +maintainers: > +- Michael Hennerich > +- Beniamin Bia > + > +description: | > + Digital Step Attenuator IIO device with gpio interface. > + HMC425A 0.5 dB LSB GaAs MMIC 6-BIT DIGITAL POSITIVE CONTROL ATTENUATOR, 2.2 - 8.0 GHz > + https://www.analog.com/media/en/technical-documentation/data-sheets/hmc425A.pdf > + > +properties: > + compatible: > + enum: > + - adi,hmc425a > + > + vcc-supply: > + description: > + Digital voltage regulator (see regulator/regulator.txt) > + maxItems: 1 All supplies are a single entry, so drop this. Really, 'vcc-supply: true' is sufficient. > + > + ctrl-gpios: > + description: > + Must contain an array of 6 GPIO specifiers, referring to the GPIO pins > + connected to the control pins V1-V6. > + maxItems: 6 > + > +required: > + - compatible > + - ctrl-gpios > + > +examples: > + - | > + #include > + gpio { > + #address-cells = <1>; > + #size-cells = <0>; GPIO clients are not child nodes of GPIO controllers, so you can remove this node. > + gpio_hmc425a: hmc425a { > + compatible = "adi,hmc425a"; > + ctrl-gpios = <&gpio 40 GPIO_ACTIVE_HIGH>, > + <&gpio 39 GPIO_ACTIVE_HIGH>, > + <&gpio 38 GPIO_ACTIVE_HIGH>, > + <&gpio 37 GPIO_ACTIVE_HIGH>, > + <&gpio 36 GPIO_ACTIVE_HIGH>, > + <&gpio 35 GPIO_ACTIVE_HIGH>; > + > + vcc-supply = <&foo>; > + }; > + }; > +... > -- > 2.17.1 >