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