From patchwork Sun Aug 20 12:32:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 136267 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b82d:0:b0:3f2:4152:657d with SMTP id z13csp2526228vqi; Sun, 20 Aug 2023 08:17:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEjDWWZlRZGlsGWF3MUwdpFGZWS1XJG2BXOTija/XLSWcgP1rjzVWxcVtasD+o6NNfav/Jp X-Received: by 2002:a17:907:2cce:b0:9a1:7919:d3d3 with SMTP id hg14-20020a1709072cce00b009a17919d3d3mr3093089ejc.51.1692544671004; Sun, 20 Aug 2023 08:17:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692544670; cv=none; d=google.com; s=arc-20160816; b=iBmndhalTqmS+9du9dUVcPhohQ2QGhk9Jnx7KMKsk40kpwlYj8WmgbvdfZI5HX9NC/ 5iZ2bzxF8boOd8ZWRKTPMCh3jeFgmEnpwN/5w+4BXhx4MCMXKkvhIiM5sHBdIeDyWhrB iBAWenuGjUmbJ6DHbmrthqLVMOJgG1M2F8X07nKFJei8+n6CytWm3Xs/8bQSrorxxzSY 2G3j+PqxxianuoOXhTH9CN90V1cFUcruLIYAUDRvV9X5W+audXYQSQnyFgJywB/1yopM z0XvF33vuYH+IK7UDlzGNO309iPfikTlJSWMBpAM6RNXa2lJRZzunjfaYUZJpZEQUXwm HdDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=OJjfLsrUJB5yYu/j4QdNemzT1i4yIAjHYpN/roNqR3o=; fh=Z9wc+a8gy+BHwcTjJyDpG4KowJ/G+Et5E9IKmm64G+k=; b=LVum2tSKbPjURo3G3P82mBUnVVr388iKrmkvae5VU8pY2A5bMFtppD7Qkg3yvYpqSc /AvNwSzVbN5ba0/ydWP3CqVmKtNL8uqWqF37fEgL3iV/Xth6rGBqeHJxuw0V1YQiOCP7 jOM8LUvkdb6ddxTT9RoODtIE8KZxkZ9kgf4YDobxPtB8YmYjtRQdEDSDeJpKORrVZJiY etjlVjxlkZVxwAwFfVkxdTq7vFk49BJigV2NhBrRpqaaCnnMJWsX4AxI2bhwHSYhcnzj 5kfXXH3/JQA1BEY7oF+pYotfJ7NIMIgiOtECLQsuL5YyWRJiehxtLWrzXOGycWxDBqe2 PgCQ== 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 u18-20020a170906125200b00977d04a8fd4si4044633eja.1054.2023.08.20.08.17.27; Sun, 20 Aug 2023 08:17:50 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230474AbjHTMhx (ORCPT + 99 others); Sun, 20 Aug 2023 08:37:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230134AbjHTMhw (ORCPT ); Sun, 20 Aug 2023 08:37:52 -0400 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a02:c205:3004:2154::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE67E4487; Sun, 20 Aug 2023 05:32:47 -0700 (PDT) Received: from p200300ccff2b60001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff2b:6000:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qXhbi-002rBh-FG; Sun, 20 Aug 2023 14:32:38 +0200 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1qXhbh-002Dyb-1n; Sun, 20 Aug 2023 14:32:37 +0200 From: Andreas Kemnade To: jic23@kernel.org, lars@metafoo.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Cc: Andreas Kemnade Subject: [PATCH v2] dt-bindings: iio: adc: Add TI TWL603X GPADC Date: Sun, 20 Aug 2023 14:32:29 +0200 Message-Id: <20230820123229.530371-1-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774761721164128433 X-GMAIL-MSGID: 1774761721164128433 Document TI TWL603X GPADC devicetree bindings. A driver is already there, the compatibles are used, but not documented. Signed-off-by: Andreas Kemnade --- .../bindings/iio/adc/ti,twl6030-gpadc.yaml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/ti,twl6030-gpadc.yaml diff --git a/Documentation/devicetree/bindings/iio/adc/ti,twl6030-gpadc.yaml b/Documentation/devicetree/bindings/iio/adc/ti,twl6030-gpadc.yaml new file mode 100644 index 000000000000..5b075237bcfd --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti,twl6030-gpadc.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/ti,twl6030-gpadc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: GPADC subsystem in the TWL6030 power module + +maintainers: + - Andreas Kemnade + +description: + The GPADC subsystem in the TWL603X consists of a 10-bit ADC + combined with a 15-input analog multiplexer in the TWL6030 resp. a + 19-input analog muliplexer in the TWL6032. + +properties: + compatible: + enum: + - ti,twl6030-gpadc + - ti,twl6032-gpadc + + interrupts: + maxItems: 1 + + "#io-channel-cells": + const: 1 + +required: + - compatible + - interrupts + - "#io-channel-cells" + +additionalProperties: false + +examples: + - | + twl { + gpadc { + compatible = "ti,twl6030-gpadc"; + interrupts = <3>; + #io-channel-cells = <1>; + }; + }; +...