Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2331517rdg; Mon, 16 Oct 2023 00:19:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IETI4Ue3N6Sj3Sm0NnJbiPJ1lwreO4vIDkFe5dYsWV1uYn40+uJz0QZxfTShZ1+NpRkA7KL X-Received: by 2002:a05:6a00:a29:b0:68f:ce6a:8685 with SMTP id p41-20020a056a000a2900b0068fce6a8685mr10231869pfh.14.1697440751845; Mon, 16 Oct 2023 00:19:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697440751; cv=none; d=google.com; s=arc-20160816; b=iPzDtyBuQMikbV+0p3YljgYs5+d5GnCbm0AOGk6Yc0SuEA7kqz3ixxHWcNRNjYNP/R xkdgVP8V8K62c1Nj5U2ok3DOkI0tOVLRQ2YtW3OTH/38nF8T4PJcpqPeY8fLasmGUEZ9 WzFCW2+1oKoc4+VynO7qfW/XG0VRlh0vgVPi8Y4k3wD0A8RGRq6A2cxIFACqpHuQBadN rE4tvKX8ilbCB9aJqo7Cn+b7gjGbmh8XsGryO3O46IrS+/Oy7WERpIcIoj7dwEMvLW2o QVePhF8RbOiOzJMXFygLxFMQTSjNRPUmiRBzzEb4ib3Acij3JVK97f9sp262Dz12puGD fVdA== 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:autocrypt :from:content-language:references:cc:to:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=CAW6S3qn7GXw+atrFuieouqd53kTHVX/zKX5RgMnUOs=; fh=dDkjNCde732sIZvX17+JcEEmfOVu7BwMgK7ydpNHMI0=; b=Lf0OBDJnDLBxKjBziVe4LQngo/1N6ANEK+Jivq2xGMDdSaLLFrA1gZfjY+WoAQdTuY ivU5dVMy4Ww3xIFcZV6RU/+ALl+4x12rtd7M1oCf2bt5ePGWM7XdX/V5lryXxmaXNBp7 FEf9Mp70Pxn8cH3ykkxtyivPzvV6A94ltKWrcOyAeB06SjB21izwhEdYIFtr7xjamGfx 16ZQNjHdMOO/f4UPUcDQtYkwepbm4uaG5U7686/PC1ONA603LznbcPiiclFK194I+NHK L/RyLvxQvjqXcHvBmSFZJhk32mkkK/B4u6yXkoDkzZQ0OddLVW4KV/S1viYQT2Umi++P qRjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="o6G/wNZq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id az1-20020a056a02004100b005acd5108042si6236505pgb.521.2023.10.16.00.19.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 00:19:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="o6G/wNZq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 92AE180755EB; Mon, 16 Oct 2023 00:19:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232168AbjJPHS6 (ORCPT + 99 others); Mon, 16 Oct 2023 03:18:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232161AbjJPHSx (ORCPT ); Mon, 16 Oct 2023 03:18:53 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF3CAE1 for ; Mon, 16 Oct 2023 00:18:49 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-3226cc3e324so3983096f8f.3 for ; Mon, 16 Oct 2023 00:18:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697440728; x=1698045528; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=CAW6S3qn7GXw+atrFuieouqd53kTHVX/zKX5RgMnUOs=; b=o6G/wNZqR4MiU8MbzUIuA09I5WqWQjo9u4loVo5zhzWdyqbC05GUw+0/K0Ycu9UDru ucVM3oU7knE9yDovbei6pmlZnsgyMic6J11aFo7gf6TvbiubjB3/BOUvphKBMyf42Voc WY1Ny/lEm8We1nTuGTam8qWxxOkwizPWCHEKP+GOr8ypArdkfLa03bS5kxGH3QyWfhd9 AQ+cHoxUPx2c0aTatCfQa306GBaqky6+9QB7B+0Kx+yIZaxMzitsy/0MFHfiGPJ3DqTN UJSdcQdCn7FDG3Zl94EzRSMgLeT1p3MY17NhglbNIXB84BttLZ+HIy2zwzbzs1zoR023 ugmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697440728; x=1698045528; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=CAW6S3qn7GXw+atrFuieouqd53kTHVX/zKX5RgMnUOs=; b=X2ssCKFMlQ0y8JKZjKpU2EBDuuKD91PI1hl9DR0R4fS2zvjt0uIRbHhtgJgjQY5RNa nf/y0LqVYkNp7lWK+rzVAqG/2pvJwf2JQx8CtoJECmVfhjQalSXH7mMEzU99+CI5kXxA +OFN5FpzBVdM0gI5RqYw9p1ZH4nIGvHpz+hR//eOCKI7Vhzjw1hl8wE7FJBy2fBbK2jc z09gtuH1+Ma4BjglDoiEw42bhDmmYM3PYISTLptUZyPwQDEl7wQ7D4Ad9au24T7VkR4d MxjxSILWBbJw4ED5IRzNh+BCg4NJVhuO3bE1pbQKLlN05G7JAWsfdRn1v3oVFF1iXdXk tpgQ== X-Gm-Message-State: AOJu0YzVa6u6mZJpSvhIRC3+CJdkGvHndWsahqg8Jvq4sc0lcPRbfvvV /puIBeAQagKMCQ1G80avdZoxQA== X-Received: by 2002:adf:9bc8:0:b0:32d:8220:8991 with SMTP id e8-20020adf9bc8000000b0032d82208991mr10663976wrc.8.1697440728259; Mon, 16 Oct 2023 00:18:48 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.154]) by smtp.gmail.com with ESMTPSA id t11-20020a5d534b000000b003232380ffd5sm26608471wrv.106.2023.10.16.00.18.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Oct 2023 00:18:47 -0700 (PDT) Message-ID: <2ae8c910-3fa5-4835-9d2a-fbab64d3aabf@linaro.org> Date: Mon, 16 Oct 2023 09:18:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/2] dt-bindings: iio: adc: ti,ads7038: Add description for ADS7038 To: werneazc@gmail.com, jic23@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, lars@metafoo.de Cc: devicetree@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Andre Werner References: <20231016070318.28355-1-andre.werner@systec-electronic.com> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski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VUqa+XdUEciwG/SgNyxBZepj41oVq FPSVE+Ni2tNrW/e16b8mgXNngHSnbsr6pAIXZH3qFW+4TKPMGZ2rZ6zITrMip+12jgw4mGjy 5y06JZvA02rZT2k9aa7i9dUUFggaanI09jNGbRA/ABEBAAHCwXwEGAEKACYCGwwWIQSb0H4O DFH41ZZ3t1Qbk0N9O0FimwUCYDzvagUJFF+UtgAKCRAbk0N9O0Fim9JzD/0auoGtUu4mgnna oEEpQEOjgT7l9TVuO3Qa/SeH+E0m55y5Fjpp6ZToc481za3xAcxK/BtIX5Wn1mQ6+szfrJQ6 59y2io437BeuWIRjQniSxHz1kgtFECiV30yHRgOoQlzUea7FgsnuWdstgfWi6LxstswEzxLZ Sj1EqpXYZE4uLjh6dW292sO+j4LEqPYr53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20231016070318.28355-1-andre.werner@systec-electronic.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 16 Oct 2023 00:19:10 -0700 (PDT) On 16/10/2023 09:02, werneazc@gmail.com wrote: > From: Andre Werner > > Add basic description for ADS7038 ADC devices. > The devicetree adds the following device specific options: > > - average-samples: Program device's programmable average filter. > - crc-enabled: Enable the CRC check for SPI transfers. Sadly, this > option has currently no effect in the driver. > - status-enabled: Enable the appending of the device's status on the > measure value transmission. > - gpio-controller: Sadly function not implemented yet in the driver. > > Signed-off-by: Andre Werner > --- > v3 > - Delete ADS7138 compatible and comments. > - Add options for CRC, status and average samples as well as > gpio-controller. > - Update example. > - add regulator for digital IO voltage. You received several build errors before. Did you really test it now, because looks like not. > --- > .../bindings/iio/adc/ti,ads7038.yaml | 83 +++++++++++++++++++ > 1 file changed, 83 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/adc/ti,ads7038.yaml > > diff --git a/Documentation/devicetree/bindings/iio/adc/ti,ads7038.yaml b/Documentation/devicetree/bindings/iio/adc/ti,ads7038.yaml > new file mode 100644 > index 000000000000..fc1054ca93f7 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/adc/ti,ads7038.yaml > @@ -0,0 +1,83 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/adc/ti,ads7038.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Texas Instruments ADS7038 and similar ADCs > + > +maintainers: > + - Andre Werner > + > +description: | > + Family of 7 channel, 12 bit ADCs with SPI interface. > + > + Datasheet: https://www.ti.com/lit/gpn/ads7038 > + > +properties: > + compatible: > + enum: > + - ti,ads7038 > + > + reg: > + maxItems: 1 > + > + spi-max-frequency: > + maximum: 60000000 > + > + avdd-supply: > + description: Analog supply voltage, also used as the reference voltage to the ADC. > + > + dvdd-supply: > + description: Digital I/O supply voltage. > + > + average-samples: > + description: | > + If specified ADC is configured for avaraging measurements (OSR_CFG Register). > + This effects output format for measurement and sampling time. > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [0, 1, 2, 3, 4, 5, 6, 7] > + > + status-enabled: > + description: | Do not need '|' unless you need to preserve formatting. > + If specified ADC transmits chip status (DATA_CFG Register). Missing type. You described the desired Linux feature or behavior, not the actual hardware. The bindings are about the latter, so instead you need to rephrase the property and its description to match actual hardware capabilities/features/configuration etc. Why this is a property of a board? > + > + crc-enabled: > + description: | > + Checking the integrity of the data bits exchanged over > + SPI interface (GENERAL_CFG Register). Same comment. Best regards, Krzysztof