Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp2286077rdb; Thu, 17 Aug 2023 17:10:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFoBoRaFEoVYwJnCtaXVXazDgBXaDEJRzb1AgCBeOe4dOngQkQIF5CElXfsIKFQRwSsSE9f X-Received: by 2002:a05:6a20:429f:b0:13b:7848:9515 with SMTP id o31-20020a056a20429f00b0013b78489515mr1728474pzj.13.1692317444817; Thu, 17 Aug 2023 17:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692317444; cv=none; d=google.com; s=arc-20160816; b=ADSUdHGPD3QeQgJ2Dlw1W/d2f9ppAEsgcuhWnSVCRy11sVX6AjRhP67urXozbMSOMZ XPFgHSAHDcb8MYfKV6QT1P0QMlV3JJ6M7qWot9Ud6pDZ5F1lvLi3Z0nnkU2lc4RxwK2l gEhlcMDmu39dQlBHdqkMqour0DpnczZ6tJVfbiniYSgJyrGa99ORoMBMZS0zl1X2ATjP 9Tz1l6zvUn7Ub7PrKBbnXLtmFG2i7j8YYh9YPfSWWkSXjI1Vhq09a4FXHkVQCvK6GhwF AO72HF8LLNMzbDPrPaxPZLaCVUUxIQn6KPQJP5EXeg8zT8HKBCH+uVZu70HMSldt6tVF wBSw== 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:to:from; bh=zLV5PNroZ4m9bPglkPtnkHZY57TBQh2wqBbM0a4O7os=; fh=rWCtz/A/+x470zeQijC5wFVJrnv0/+7B3Y5oR1oy9eg=; b=a0F4nCPWUHU6w/2TIxIIqdYj3e3LCQRGCCHbld0iZiBeM+0aMZbvwrAyREBk4Oo5Jz lXSCso/e9vOCHL953vNh9E5vn2KfWuGU2JTS/YfkNGKJFU1dvB2AT1Pym69E68tP4mu5 rlxlgn8S4rpI5HB9bxREpW6PiaqwoOoJwpXrIAjoinOJjY4VMmTHiDNEfPdFKQpq9BEp z4TdPHcSNdSv7t5yhctfJMYlE5yDczaq3gUHUtsk/gSvE0Dv/Cp9FyOePLJ5kr5Pn8Fm 5h+uOxk/SK9blpp0OqEN2BqFgcTAmPVubkn345XWKzp/PFBBR+oUcYULWCIXFJj6L/bO e9Tw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k10-20020a056a00134a00b006875cd0ce87si471041pfu.396.2023.08.17.17.10.32; Thu, 17 Aug 2023 17:10:44 -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 S1346292AbjHPU4e (ORCPT + 99 others); Wed, 16 Aug 2023 16:56:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346289AbjHPU4Y (ORCPT ); Wed, 16 Aug 2023 16:56:24 -0400 X-Greylist: delayed 1772 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 16 Aug 2023 13:56:22 PDT Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a02:c205:3004:2154::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73AEB270A; Wed, 16 Aug 2023 13:56:22 -0700 (PDT) Received: from p200300ccff49da001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff49:da00: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 1qWN6G-002hco-8F; Wed, 16 Aug 2023 22:26:40 +0200 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1qWN6F-001MPV-1i; Wed, 16 Aug 2023 22:26:39 +0200 From: Andreas Kemnade To: jic23@kernel.org, lars@metafoo.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, andreas@kemnade.info, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH] dt-bindings: iio: adc: Add TI TWL603X GPADC Date: Wed, 16 Aug 2023 22:26:14 +0200 Message-Id: <20230816202614.324457-1-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 Document TI TWL603X GPADC devicetree bindings. A driver is already there, the compatibles are used, but not documented. Use two separate files to reference only the allowed compatible in a future YAML version of Documentation/devicetree/bindings/mfd/twl-family.txt Signed-off-by: Andreas Kemnade --- .../bindings/iio/adc/ti,twl6030-gpadc.yaml | 42 +++++++++++++++++++ .../bindings/iio/adc/ti,twl6032-gpadc.yaml | 42 +++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/ti,twl6030-gpadc.yaml create mode 100644 Documentation/devicetree/bindings/iio/adc/ti,twl6032-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..08bc0468f616 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti,twl6030-gpadc.yaml @@ -0,0 +1,42 @@ +# 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: + - Jonathan Cameron + +description: + The GPADC subsystem in the TWL6030 consists of a 10-bit ADC + combined with a 15-input analog multiplexer. + +properties: + compatible: + const: ti,twl6030-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>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/adc/ti,twl6032-gpadc.yaml b/Documentation/devicetree/bindings/iio/adc/ti,twl6032-gpadc.yaml new file mode 100644 index 000000000000..70acec533277 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti,twl6032-gpadc.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/ti,twl6032-gpadc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: GPADC subsystem in the TWL6032 power module + +maintainers: + - Jonathan Cameron + +description: + The GPADC subsystem in the TWL6032 consists of a 10-bit ADC + combined with a 19-input analog multiplexer. + +properties: + compatible: + const: ti,twl6032-gpadc + + interrupts: + maxItems: 1 + + "#io-channel-cells": + const: 1 + +required: + - compatible + - interrupts + - "#io-channel-cells" + +additionalProperties: false + +examples: + - | + twl { + gpadc { + compatible = "ti,twl6032-gpadc"; + interrupts = <3>; + #io-channel-cells = <1>; + }; + }; +... -- 2.39.2