Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1628435ybv; Thu, 6 Feb 2020 07:11:56 -0800 (PST) X-Google-Smtp-Source: APXvYqwxaUmwwQ5u+inB9huP7mxKdxCwMWlv7XPsyHfQlpURt6ZFK9vkZmXqW0iuiu3mXEJk82I4 X-Received: by 2002:aca:6742:: with SMTP id b2mr7466302oiy.86.1581001915838; Thu, 06 Feb 2020 07:11:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581001915; cv=none; d=google.com; s=arc-20160816; b=vk/8A/RvCjmpS3iZUDzOfP3Mt46ja3magKtYSB3DB2EVjdAzvvWUBguNmqe22uPeCN WXp3dFv0kJEmwxSHbcjVuh/N3RDPgKJs+jJY+KuTohWzVFpduziH9VeY9QDIpFxOVOw+ dI2HdyATsdnAItvU1/PUNDL7PbQEHDSB/O05YUZp39/PuXuZ0i1ytXaLldGNh8oJ83gP FHv6IdHhNOjfKMdfXvkcm8iCwj/W3j8wSZPNRRXgrIDHWuZscC31FljjE0dBvc7YL9Ro H8jAErzxbZz2v1ua5ajTs1I3dZ9FJoy7RmbD91LQry7vPEysHQVgssnXVupign5ohzIi s7RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=gfuYoh88E0Q+13C+e4XQMiZqhyG/dlJlo6Dzdd7m73U=; b=0tfTEO1pFZfZIl2GYzFkniel8cDEGnlb86zQvph3eEH6ckrAjNRBywe8MwPWSynLog qu07HePHq6LCfZGgnetg31Ov/ohI5Z98m5MDSe47RN/ddMVkBVuFF3wEX+UajDI6aUS+ xJSLtkOAFILaMLFbD6YFtzgAHvzro2lMpyWvfap44+3d2unks6xEEwVFs8T9rfLD2o3J Ivc1+V2C2x7IXcuLQ21FndPhB3tp0UyCcnzf5Vj621CJ2TeJ63nG7exLIN8FSJexHaQ7 VFPbeI/d/T9NfHvMWVuNUsoUeFy+r2BjZdPUenDKoQNeDEXLCBzCCeSrBY57Lxr45xOu ZBXg== 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 n20si2093449oig.53.2020.02.06.07.11.43; Thu, 06 Feb 2020 07:11:55 -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 S1727716AbgBFPKR (ORCPT + 99 others); Thu, 6 Feb 2020 10:10:17 -0500 Received: from mx0a-00128a01.pphosted.com ([148.163.135.77]:41350 "EHLO mx0a-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727641AbgBFPKO (ORCPT ); Thu, 6 Feb 2020 10:10:14 -0500 Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 016F0MbL011997; Thu, 6 Feb 2020 10:09:54 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com with ESMTP id 2xyhm94w1n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Feb 2020 10:09:54 -0500 Received: from ASHBMBX8.ad.analog.com (ashbmbx8.ad.analog.com [10.64.17.5]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 016F9qBt017045 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Thu, 6 Feb 2020 10:09:52 -0500 Received: from SCSQMBX11.ad.analog.com (10.77.17.10) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Thu, 6 Feb 2020 10:09:52 -0500 Received: from zeus.spd.analog.com (10.64.82.11) by SCSQMBX11.ad.analog.com (10.77.17.10) with Microsoft SMTP Server id 15.1.1779.2 via Frontend Transport; Thu, 6 Feb 2020 07:09:52 -0800 Received: from ben-Latitude-E6540.ad.analog.com ([10.48.65.231]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 016F9VRZ021605; Thu, 6 Feb 2020 10:09:42 -0500 From: Beniamin Bia To: CC: , , , , , , , , , , Michael Hennerich , Beniamin Bia Subject: [PATCH v5 4/5] dt-bindings: iio: amplifiers: Add docs for HMC425A Step Attenuator Date: Thu, 6 Feb 2020 17:11:48 +0200 Message-ID: <20200206151149.32122-4-beniamin.bia@analog.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200206151149.32122-1-beniamin.bia@analog.com> References: <20200206151149.32122-1-beniamin.bia@analog.com> MIME-Version: 1.0 Content-Type: text/plain X-ADIRoutedOnPrem: True X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-06_01:2020-02-06,2020-02-06 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 lowpriorityscore=0 phishscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 suspectscore=0 bulkscore=0 adultscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002060114 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Hennerich Document support for Analog Devices MC425A Step Attenuator. Signed-off-by: Michael Hennerich Signed-off-by: Beniamin Bia --- Changes in v5: -minItems added for ctrl_gpios .../bindings/iio/amplifiers/adi,hmc425a.yaml | 49 +++++++++++++++++++ 1 file changed, 49 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..1c6d49685e9f --- /dev/null +++ b/Documentation/devicetree/bindings/iio/amplifiers/adi,hmc425a.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (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: true + + ctrl-gpios: + description: + Must contain an array of 6 GPIO specifiers, referring to the GPIO pins + connected to the control pins V1-V6. + minItems: 6 + maxItems: 6 + +required: + - compatible + - ctrl-gpios + +examples: + - | + #include + 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