From patchwork Sun Nov 20 12:42:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edmund Berenson X-Patchwork-Id: 23410 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1099585wrr; Sun, 20 Nov 2022 04:48:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf4q2ScHWDlVf2UkRvJ0koxnIV2A9JwrT9Yq+Oy1MpZVYVAmTcVl9oB9q2Ug2+/aQsW5YF9f X-Received: by 2002:a63:ed46:0:b0:476:e11d:8d51 with SMTP id m6-20020a63ed46000000b00476e11d8d51mr14142560pgk.252.1668948497073; Sun, 20 Nov 2022 04:48:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668948497; cv=none; d=google.com; s=arc-20160816; b=QHcv2jyAtc/PpcHKjTfgH4IDPUU0OAz4jr7LlM4S2dS10/HItIHei+tsYx/7Wwu4lb +CRlpIk3EuOzu7JOHrCF5VaQ7Nb3eklpOFRYbP80RNZrsT5AK3z8leugmweBYVXz9HUB QBO3ecHKbI1iAVOzxK4bcWTEqztWiwsroadzQCSg1MLsqGIkCJZrFZ+lkFSPhwHIxCow eoN3ToSn0OWbWY/N6QBCqOvuA6oSebzxN2SvO8GvwV0pgt/ZF3UGEGlUnj7yqzYMEe5m 20XZU5Y3TM0axeS8UQiNQls8M+xaMcehc7UChoEOELPg2u2gcpvadNkWB5Ve4piKHiUF hygg== 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=rtNpMovoUdJoz5tQT713CLPeX3CDt1fO7ncL5RNyyOo=; b=LBTjQb8IwFZ8r+KRQOSCkQqfEofZsLd8nHiLKgartx0zAq5jX3m/KLY2PFaa7P6h3i UlzT5xZxSh9gr7PGz/c6DvVMOv+Z0uIHa5seyH3+EdMCVOM/RNN1PLNSuP3jQqnD0Rzr gB22v+WtbBKiiQ3LDUIdZ48JjaQeWve/Er44hGxgG3BFWQyKYMjP9eQGSXecSYsF+rSW uYgAeqhON5d8bKXlrqeyk8FrHt5ytwFlDS2RpmvYdS3etAjhNEDoh67HYLSYMUc1F9Y2 6dfq9jYG5Kd8aa8qtcq5U5wuv5tZ8VyyrOVQH2ZkgdkEKVBcFEmIDA64JQlUruv8+aOY VpjA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d7-20020a17090ad3c700b00212e2e1b626si7527734pjw.164.2022.11.20.04.48.02; Sun, 20 Nov 2022 04:48:16 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229622AbiKTMmf (ORCPT + 99 others); Sun, 20 Nov 2022 07:42:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229568AbiKTMme (ORCPT ); Sun, 20 Nov 2022 07:42:34 -0500 Received: from mx1.emlix.com (mx1.emlix.com [136.243.223.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E849A10AC; Sun, 20 Nov 2022 04:42:29 -0800 (PST) Received: from mailer.emlix.com (unknown [81.20.119.6]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.emlix.com (Postfix) with ESMTPS id EC6895FCEB; Sun, 20 Nov 2022 13:42:27 +0100 (CET) From: Edmund Berenson Cc: Edmund Berenson , Lukasz Zemla , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] iio: adc: ad7923: Add ad7927 Date: Sun, 20 Nov 2022 13:42:04 +0100 Message-Id: <20221120124205.14462-1-edmund.berenson@emlix.com> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20221116191056.59f901da@jic23-huawei> References: <20221116191056.59f901da@jic23-huawei> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750019339096145316?= X-GMAIL-MSGID: =?utf-8?q?1750019339096145316?= Add ID for ad7927 which is compatible with existing ad7928 driver. Suggested-by: Lukasz Zemla Signed-off-by: Edmund Berenson --- drivers/iio/adc/ad7923.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/iio/adc/ad7923.c b/drivers/iio/adc/ad7923.c index 9d6bf6d0927a..df72e97dc331 100644 --- a/drivers/iio/adc/ad7923.c +++ b/drivers/iio/adc/ad7923.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * AD7904/AD7914/AD7923/AD7924/AD7908/AD7918/AD7928 SPI ADC driver + * AD7904/AD7914/AD7923/AD7924/AD7908/AD7918/AD7927/AD7928 SPI ADC driver * * Copyright 2011 Analog Devices Inc (from AD7923 Driver) * Copyright 2012 CS Systemes d'Information @@ -367,6 +367,7 @@ static const struct spi_device_id ad7923_id[] = { {"ad7924", AD7924}, {"ad7908", AD7908}, {"ad7918", AD7918}, + {"ad7927", AD7928}, {"ad7928", AD7928}, {} }; @@ -379,6 +380,7 @@ static const struct of_device_id ad7923_of_match[] = { { .compatible = "adi,ad7924", }, { .compatible = "adi,ad7908", }, { .compatible = "adi,ad7918", }, + { .compatible = "adi,ad7927", }, { .compatible = "adi,ad7928", }, { }, }; From patchwork Sun Nov 20 12:45:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edmund Berenson X-Patchwork-Id: 23411 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1099745wrr; Sun, 20 Nov 2022 04:48:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf6R4jqHVmtui3aSFlGAirs6tfM33qbrh15qG5mhWAYDIk4xyTbUR/ewtX+ksPQLLYjS+U4R X-Received: by 2002:a63:d249:0:b0:43c:ac7c:ee27 with SMTP id t9-20020a63d249000000b0043cac7cee27mr4129607pgi.583.1668948536435; Sun, 20 Nov 2022 04:48:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668948536; cv=none; d=google.com; s=arc-20160816; b=CKqgbl2xFwqaajWBoCZqaJu1uXFeCpqW4BQXRigXqj7lCERLwhe3z+K7Kt/+iJPEXE 2i6E8MG2AfB2BbFLTbmWhu/wYNoLXYQ/U3MtlijI+OVvPaJ0Ls/E9L2w25zARax0y7/+ qE0mT2gH1rW94xNa3I0b+YPq36pudwAtEuk8O//zXpEHRAKPJ7XywX9veXie/NbxIYVL zfU+tHavR9HoNSOeViShRwYaQwVlcYP+rPE/yQr8OYQyOhhAb0EZwP+8+jnDAAcD4/bw odcM5xHXClB5igxJVP83Q4iHZK7TsbpFwaDgtR0NHwBpzVOF3Ya5eTijJIqoQ2opO80w Us8w== 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=lrlV61w0ciq7E0UGcAD1YtncFaXq0MQpYIhoSS0PR8k=; b=A0m/XAeApmya02QGM/HcqqLQTisLjnefTl1kO3WDVqEZqxwIUoz2JsWe9tEZNRHKys vviGD2BBx7YqHSEChubQH9xjKkSCUD1GjtnMrBL42w5469IlB4zetbobNjTdkWigrISG qCcrjCjplAnJBUu8qU+htKmvXyxQcMsdf/hMihdDchYd0DVyyOl7+aQrOb3EHQxRoYdp yu7LSUX1aKAKQbA+2igOHJSwQeGdXpO6CEESZ4W1hHmcdNyXwK7BRKL/7QnKTpt34Zpe 9xUFdpGPVW4acCYhh+xcS0Npo3bdG8PBN/QjADXrJE2prWHnPejjC8e8UmbMuX1OaE0B aFdg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t4-20020a170902e84400b001753c45cb46si10149542plg.209.2022.11.20.04.48.43; Sun, 20 Nov 2022 04:48:56 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229652AbiKTMqF (ORCPT + 99 others); Sun, 20 Nov 2022 07:46:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229490AbiKTMqD (ORCPT ); Sun, 20 Nov 2022 07:46:03 -0500 Received: from mx1.emlix.com (mx1.emlix.com [136.243.223.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D783B27DE1; Sun, 20 Nov 2022 04:46:01 -0800 (PST) Received: from mailer.emlix.com (unknown [81.20.119.6]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.emlix.com (Postfix) with ESMTPS id 439275FCEB; Sun, 20 Nov 2022 13:46:00 +0100 (CET) From: Edmund Berenson Cc: Edmund Berenson , Lukasz Zemla , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] dt-bindings: iio: adc: ad7923: adjust documentation Date: Sun, 20 Nov 2022 13:45:43 +0100 Message-Id: <20221120124543.18973-1-edmund.berenson@emlix.com> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20221116191208.269e67eb@jic23-huawei> References: <20221116191208.269e67eb@jic23-huawei> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750019380458434457?= X-GMAIL-MSGID: =?utf-8?q?1750019380458434457?= - Add the ad7927 compatibility string, with fallback compatibility to ad7928. - ad7923 and ad7924 are treated the same in the driver, show the relationship in the documentation. Suggested-by: Lukasz Zemla Signed-off-by: Edmund Berenson --- .../bindings/iio/adc/adi,ad7923.yaml | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7923.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7923.yaml index 07f9d1c09c7d..165c4b6863e0 100644 --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7923.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7923.yaml @@ -11,7 +11,7 @@ maintainers: description: | Analog Devices AD7904, AD7914, AD7923, AD7924 4 Channel ADCs, and AD7908, - AD7918, AD7928 8 Channels ADCs. + AD7918, AD7927, AD7928 8 Channels ADCs. Specifications about the part can be found at: https://www.analog.com/media/en/technical-documentation/data-sheets/AD7923.pdf @@ -20,14 +20,17 @@ description: | properties: compatible: - enum: - - adi,ad7904 - - adi,ad7914 - - adi,ad7923 - - adi,ad7924 - - adi,ad7908 - - adi,ad7918 - - adi,ad7928 + oneOf: + - const: adi,ad7904 + - const: adi,ad7914 + - items: + - const: adi,ad7923 + - const: adi,ad7924 + - const: adi,ad7908 + - const: adi,ad7918 + - items: + - const: adi,ad7927 + - const: adi,ad7928 reg: maxItems: 1