Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1053290rwd; Thu, 8 Jun 2023 11:19:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7RsaSe1wi58NJDzSctVUQ/xAoegG+tv/iPwkQsXbGBdQIlPCdBuyszOoMmgM+jR0jAw3ud X-Received: by 2002:a17:90a:d0c6:b0:256:cda5:c02a with SMTP id y6-20020a17090ad0c600b00256cda5c02amr4071577pjw.49.1686248341462; Thu, 08 Jun 2023 11:19:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686248341; cv=none; d=google.com; s=arc-20160816; b=cHcI3FOcwdCmF+cymYQoQqTf1TZVdQfyTfMYMcwKOltpss4qbDGD1ncWvjQH5fCMSV DFKA8xvzSZjIJsfhZ/O/FouJd2QHMb4s4lx377h//ulXz7sdiIPoDgx+2NRT3Z5DKRUy 1rlcja20j/7zDSU2MagHzAr8m5/zd76QSJrvUxtiSS7D+suOIUJm4m4WIuSu9z2bsujs fyl6Qd1GjOTtSEmDeD0vbB6upbUg4JUFB/4adVkC5ILSTqYW8nu02QUbX5Kc3VgGIdFX eoaHIIfS2tYrX9xVYBJvJq28XhBnFsRi7bWhMMRdTSjxu/edhi9U/9Oq5V0KbpgHlrRY bx1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from; bh=XfyfOrKSborhIMDNxDnOEHFOvtP4/xDl8rqXY3PeMx8=; b=X5aDipKwJIWrNYWx6Wnw2yiufdyxK/a7Uj5a+Ryg9dEXZFtYqY2wQOQrJrf9m9zvBn tS4OWcGOGB3k+rPmr/7ENVD84T4e82HoPHluinkW+ONqxE6XDf17XPRp4oTzhyix7Jqn rXSHzLukUDx04SFjQkoC3PNLVjGnbmBfCzJp0Uv8Iv/qqaSJZGG/HPQp6mLtuDi0Zc6j oyXf/xb9tGzaGiRo2LKxuDFnpCyHv17hvbPulb1gjruW/7rPrrzyGXrOY+U3NlZKZBbS 6NpPmNGEsmm/lYr/8y21XR+Fx5g3IFyKrGA8GPi2Z+UlbvODBejDZJYqpnUotSm02GCl SKlA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lw12-20020a17090b180c00b0025b8a92474bsi191959pjb.174.2023.06.08.11.18.49; Thu, 08 Jun 2023 11:19:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235456AbjFHR4f (ORCPT + 99 others); Thu, 8 Jun 2023 13:56:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233419AbjFHR4b (ORCPT ); Thu, 8 Jun 2023 13:56:31 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2237D2D6A; Thu, 8 Jun 2023 10:56:29 -0700 (PDT) Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 358Gp1SD032223; Thu, 8 Jun 2023 13:56:15 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3r2abwfd7e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 08 Jun 2023 13:56:14 -0400 Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 358HuDXA064312 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 8 Jun 2023 13:56:13 -0400 Received: from ASHBCASHYB4.ad.analog.com (10.64.17.132) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Thu, 8 Jun 2023 13:56:12 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBCASHYB4.ad.analog.com (10.64.17.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Thu, 8 Jun 2023 13:56:12 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Thu, 8 Jun 2023 13:56:12 -0400 Received: from kimedia-VirtualBox.ad.analog.com (KPALLER2-L02.ad.analog.com [10.116.242.24]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 358HtlOw003718; Thu, 8 Jun 2023 13:56:00 -0400 From: Kim Seer Paller CC: , , , , , , , , , , , Subject: [PATCH v3 1/2] dt-bindings:iio:adc: add max14001 Date: Fri, 9 Jun 2023 01:55:16 +0800 Message-ID: <20230608175517.40217-2-kimseer.paller@analog.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230608175517.40217-1-kimseer.paller@analog.com> References: <20230608175517.40217-1-kimseer.paller@analog.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: HSayj8btrzKb-KaLaJgsSc9MbwpkK53Y X-Proofpoint-GUID: HSayj8btrzKb-KaLaJgsSc9MbwpkK53Y X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-08_13,2023-06-08_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 malwarescore=0 phishscore=0 impostorscore=0 suspectscore=0 priorityscore=1501 mlxscore=0 bulkscore=0 clxscore=1015 mlxlogscore=999 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306080157 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The MAX14001 is configurable, isolated 10-bit ADCs for multi-range binary inputs. Signed-off-by: Kim Seer Paller --- .../bindings/iio/adc/adi,max14001.yaml | 54 +++++++++++++++++++ MAINTAINERS | 7 +++ 2 files changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,max14001.yaml diff --git a/Documentation/devicetree/bindings/iio/adc/adi,max14001.yaml b/Documentation/devicetree/bindings/iio/adc/adi,max14001.yaml new file mode 100644 index 000000000000..9d03c611fca3 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/adi,max14001.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2023 Analog Devices Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/adi,max14001.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices MAX14001 ADC + +maintainers: + - Kim Seer Paller + +description: | + Single channel 10 bit ADC with SPI interface. Datasheet + can be found here: + https://www.analog.com/media/en/technical-documentation/data-sheets/MAX14001-MAX14002.pdf + +properties: + compatible: + enum: + - adi,max14001 + + reg: + maxItems: 1 + + spi-max-frequency: + maximum: 5000000 + + vref-supply: + description: Voltage reference to establish input scaling. + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "adi,max14001"; + reg = <0>; + spi-max-frequency = <5000000>; + vref-supply = <&vref_reg>; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index 0dab9737ec16..b8ad615d011f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12660,6 +12660,13 @@ S: Maintained F: Documentation/devicetree/bindings/sound/max9860.txt F: sound/soc/codecs/max9860.* +MAX14001 IIO ADC DRIVER +M: Kim Seer Paller +L: linux-iio@vger.kernel.org +S: Supported +W: https://ez.analog.com/linux-software-drivers +F: Documentation/devicetree/bindings/iio/dac/adi,max14001.yaml + MAXBOTIX ULTRASONIC RANGER IIO DRIVER M: Andreas Klinger L: linux-iio@vger.kernel.org -- 2.34.1