Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp13422335rwb; Sun, 27 Nov 2022 05:35:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf6CdY7cA7sg5z/1M/4UbPe0Icp7CwDwVJsI36nhfEGPD9isi6wzswo6s4K8yrcAljHQEJKS X-Received: by 2002:a17:907:80cd:b0:7bb:35b4:777d with SMTP id io13-20020a17090780cd00b007bb35b4777dmr13982783ejc.302.1669556143828; Sun, 27 Nov 2022 05:35:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669556143; cv=none; d=google.com; s=arc-20160816; b=JFTeEiRf8X8IxaMeP20ioOlOzzMi8uwm6eD4Dd9iR9QfX1knOXyvckFORSw+KEO0mJ XWE/LntpgUyd6e6Yq8CDWaWBaSDMdjGNb+azEuWFQEPTfPyKnAmfiKKk7sBfgOVK5h5n mrLZG8Md3XN0I04gv2wZikN7+SaiQNGkGoEwSNLb0O7/0nPsaxUrsKa0K8KIrEYPoHQt ibTWnbefteRzy4mviWD1wwXGCtm8YQRxhq/vYOYn4mtwKIMIwCfPGr16Crig1CNlVd98 JWkr0kfdtKtlTnAa0q09E0XO4vtBmGQe+1wRdLKxTuvayvk0AbIdOQBdhNIwdrUBBjS+ ycOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=42d1uIdwpyKuYTq13kmw7mH6z8HdgyJFRMpcVjIqtRg=; b=Et57b61wYzuQgydWwQC6pAYIp/j4rVgL0y/KYwL1oA5Cbhx4QWoJt1ZCkdHoMRD7RJ 5TRBsH64RZRpPYchW2NDZvxvSK16Cc3wJz5Y+WOrezBRT+iMmoy9AYWhg6A/jzxdRAnS RoU13Y3fnyMbPAIz8kWR91JfrO2y3SzSnQHna5NZsyngaKwCUH3QGzEB4wSHGg8uc/k/ Dec999SFbsi6CImHtJJ0ySU7fIqCkaQ9Bpc1mPtqiQke8Znedcg1ZHg6zaWjK6YSjtjF ng0ullX1e7VaZRlvA7UDRzQvKWKsfdGJyCMjfLVRYRTW/uJymmJB2n7VH3x7KLP1bR5c rPtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vdXR+OpC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ww12-20020a170907084c00b007ae4f8de35esi7773610ejb.860.2022.11.27.05.35.19; Sun, 27 Nov 2022 05:35:43 -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; dkim=pass header.i=@linaro.org header.s=google header.b=vdXR+OpC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229586AbiK0MvZ (ORCPT + 84 others); Sun, 27 Nov 2022 07:51:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbiK0MvY (ORCPT ); Sun, 27 Nov 2022 07:51:24 -0500 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F31D6431 for ; Sun, 27 Nov 2022 04:51:22 -0800 (PST) Received: by mail-lf1-x12e.google.com with SMTP id g7so13522713lfv.5 for ; Sun, 27 Nov 2022 04:51:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=42d1uIdwpyKuYTq13kmw7mH6z8HdgyJFRMpcVjIqtRg=; b=vdXR+OpCUsjgc3lkwZPgirtYD5MufsANbJ8oEJPmf+6kN4QfiXWwqsdN7vs0HA1J0H sNxsYLm1GFb9tMbqQ1/F2g9muhvNUBCqfBI6dbujPUs2eUF6Ah/pAT39G63izyn8C8WW yD+Mjt6d/1jjAP1K+ROVEjFWt9vFh9F9KViV9TjmL7G3L6XupNzkjL8NgHmxv3Nea31j QaYRhXpHIEwZVMLEBZYsczWsTh5Za8VdvWLvxu1ybu4cKA466HOGaxvkq5xiOzklgeUG LC0SRWOXe9lHsRNBONwXppPhtJAEk+KVubg1tfpvvEiHDf7skS4HySQpONWd+mEQs2pV DIiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=42d1uIdwpyKuYTq13kmw7mH6z8HdgyJFRMpcVjIqtRg=; b=cjsBBL7WMtU8a0FV/pxuGEiWGMQ2f6JJzrQV6Dr6jMcReBk+SzwPEt3rXnVjl97usk JhVjWi8Keoy1gX532WEZtAkmFtrxu29lkmbgxl9Ew5tiidhStsc/XgDtPuaCbWxaQi6p 9gCFQDzYyyPnHzHpWVj+z6ZBw/LR04oLv38SaeAdvm75WqNgCYMPlUG2MTKAtley5qRS 4c9nzowpWQUlQpE34a49/owcs6LqYvZrxjVCD54vLcCvhhvZYklg787X2PotuaPEONs3 F2p6Gq7f3puhg0bn3BYSIwVRcTjVTTzFhC3l2dElS/nlbg2CamuiI1hkBytkgsix396m qPnQ== X-Gm-Message-State: ANoB5pkGTSXEEOqcFsN+3VdU17ZpOqpNO+kodC1OklHNZzCE8BjnAmtS qjdPlqFjTDXPlj1p5/W+GQ1Vhg== X-Received: by 2002:a05:6512:20c1:b0:4a6:396d:a06a with SMTP id u1-20020a05651220c100b004a6396da06amr16473344lfr.514.1669553480829; Sun, 27 Nov 2022 04:51:20 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id bf31-20020a2eaa1f000000b00279a25c2427sm111423ljb.139.2022.11.27.04.51.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 27 Nov 2022 04:51:20 -0800 (PST) Message-ID: Date: Sun, 27 Nov 2022 13:51:19 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH] dt-bindings: iio: adc: ti,adc081c: Document the binding Content-Language: en-US To: Samuel Holland , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221125220903.8632-1-samuel@sholland.org> From: Krzysztof Kozlowski In-Reply-To: <20221125220903.8632-1-samuel@sholland.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 On 25/11/2022 23:09, Samuel Holland wrote: > Linux has a driver for these ADCs at drivers/iio/adc/ti-adc081c.c, but > the compatible strings were undocumented. Add a binding for them. The > hardware has an alert interrupt output, but existing ti,adc081c users > do not provide the 'interrupts' property, so leave it as optional. > > Signed-off-by: Samuel Holland > --- > > .../bindings/iio/adc/ti,adc081c.yaml | 55 +++++++++++++++++++ > 1 file changed, 55 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/adc/ti,adc081c.yaml > > diff --git a/Documentation/devicetree/bindings/iio/adc/ti,adc081c.yaml b/Documentation/devicetree/bindings/iio/adc/ti,adc081c.yaml > new file mode 100644 > index 000000000000..caaad777580c > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/adc/ti,adc081c.yaml > @@ -0,0 +1,55 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/adc/ti,adc081c.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: TI Single-channel I2C ADCs > + > +maintainers: > + - Jonathan Cameron > + - Lars-Peter Clausen > + > +description: | > + Single-channel ADC supporting 8, 10, or 12-bit samples and high/low alerts. > + > +properties: > + compatible: > + enum: > + - ti,adc081c > + - ti,adc101c > + - ti,adc121c > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + vref-supply: > + description: > + Regulator for the combined power supply and voltage reference > + > + "#io-channel-cells": > + const: 1 > + > +required: > + - compatible > + - reg Why not requiring io-channel-cells? If it is an IIO ADC provider, you need the cells, right? Best regards, Krzysztof