Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1464018lqt; Wed, 20 Mar 2024 05:05:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXe7k1wyOBLwl7bSBfj1pNW3VDAIf/O2/J/B78UHC8xtmwMEwzjftSHbYYU+Qrt54vKr5EV8QLZ7njlQXYDORMwqyKXYCccZrRtCId6Xw== X-Google-Smtp-Source: AGHT+IEBGzaNjckoWlm8ZNBJ6gvZJNa92JiTfXnSrK8mKa6hzfAW3AxjJTyC3lErJ4F+/Sgy1ucZ X-Received: by 2002:a05:622a:156:b0:431:1618:a9d3 with SMTP id v22-20020a05622a015600b004311618a9d3mr780421qtw.18.1710936347408; Wed, 20 Mar 2024 05:05:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710936347; cv=pass; d=google.com; s=arc-20160816; b=GrnKE9tvt43BpHsKmY3PFvo1cljMRjNzXfWbCYpOalVjmdgPpSVbUELcPW7jO/yqyM kduMK6rL5M8cI9OElydSkbbbZZ5uocTF4tJAR/OWiSMwwZqbiK68O5Do+1sxkwQbrNRS hSxy93hUxkxhgE+1Pgj2WcCKJttzHI0buVj8+nwmWYID1OIhtET047EMzGa835G06iP/ K8nVbF2w3PxaEEYonhvGY6GsSmNIHCIaZWRwfhFmwxCGCGZFGEoT4MWeSMYgM7dR694j MuRaLF6Fx61H1+k+lnbaVK7pm8lrJtOqHlZeIT+IxIIuz7OGRO+/sO2T4YImTGHeSzfa /DHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=V38z3dXzsoQdcHr/9aA6f+pJAC6EF/1U7YiXTRMIxXU=; fh=N6vcPlvmvItQiwX6OdIKyaZIsY3UcfWCS7BPA5EV9LA=; b=HEe1NyPS6hK0Y1LlWCXCap7ObzF4zJWTfDyt+cNg3vzfB5y+x1HF/XdxuH3K8hufnZ aaqG9fGoSCJUR89O7BLmcqhTuakeapikbOKehwHwOHcmyc+DJaeGsHFWBSjV4Dps4VOi h7B0xhbwz/V4K5QEROeaqoBN96A7hAS5dtT3R29NbrZCkJPAnEcfZ2ZONUNcY73IfhvQ qGsg1qlktN3lJm8ZZRr40OKJ7m9Qx8Yrv85M4t0yllVj+OkKI1eiQYGqi/FweX6V1Tws Wmu5on2lqigCoBFTsMnVRe/goN6n0CEmIP1eP4igX5jEiKd4P+Eggx8ubi4ip2QqmzRQ +bWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=YBf9YfYa; arc=pass (i=1 spf=pass spfdomain=norik.com dkim=pass dkdomain=norik.com); spf=pass (google.com: domain of linux-kernel+bounces-108892-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108892-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h20-20020ac85854000000b0042f512fa0e3si13951472qth.680.2024.03.20.05.05.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 05:05:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108892-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=YBf9YfYa; arc=pass (i=1 spf=pass spfdomain=norik.com dkim=pass dkdomain=norik.com); spf=pass (google.com: domain of linux-kernel+bounces-108892-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108892-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 240E41C23155 for ; Wed, 20 Mar 2024 12:05:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 465643FB3F; Wed, 20 Mar 2024 12:05:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=norik.com header.i=@norik.com header.b="YBf9YfYa" Received: from cpanel.siel.si (cpanel.siel.si [46.19.9.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 901E1347B6; Wed, 20 Mar 2024 12:05:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.19.9.99 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710936340; cv=none; b=cFXWOPNzC3PQX8iHQdGel+shKaVt7dAVKaoljSk5PhlMqLMjMmAHtn9QLjptB/KCPlNS8xm9YGtzOrr+hzWaUGPHFcn4UZPNg0SthDJqjhiUicvjtEQfd06rqOBN7LHmznWCzg8CA5Z9aUBwFnTHwWddFz4TKN+EdnZnn1zzRyg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710936340; c=relaxed/simple; bh=Bv0vnDFIE4l1ckdc9yIZADTw7OuOYa398zh7BG+c0nA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=LXvXPLCk/uEc/bWb1fOAnFai2+l6Q+/N8j2RepMBDWGJ3mLJQ4ChL9RRGI1A6bkZoREXirJgAIWgf1dXCodYIsNqVja+tMAb7XmbQsW0IDpzvCafyV10cJWG/7PxYmVfeCK/fwl4dn1cmEppvDQkaJ+I3my5ie4TCpQskg2d5ng= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=norik.com; spf=pass smtp.mailfrom=norik.com; dkim=pass (2048-bit key) header.d=norik.com header.i=@norik.com header.b=YBf9YfYa; arc=none smtp.client-ip=46.19.9.99 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=norik.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norik.com; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=V38z3dXzsoQdcHr/9aA6f+pJAC6EF/1U7YiXTRMIxXU=; b=YBf9YfYaD5mjsz6HfDj0lOx/CH nXV3cytfORkWXz5TQdmOvMyeR4Vm97N+ozlYxZuCjIrJjMclEaUoW+dGMjBmVg+IVjEb8eOCgjPgH D+F9RRP561uQOl41AdIbH1PkB/d9OqsU8kMznFzVnEDax/yDaAZJh5P1d8HIOxVVqBczvv0cQYNdM hZNY1NIDJ6rxbu6LShFZbj8Z9ap47jRep0KpRjzduKJtdW2WIg/rEdsz9ZtnA5tmPkrtDcXMhLVoj /+5gRhMa/oMz7DOSGzR4BGGWfkGG6VUQsWMpVDMNFJhUcHabSBVkkDk1o2zSsL4+xZasKDg/FRyAH YmPCmdIQ==; Received: from [89.212.21.243] (port=54340 helo=[192.168.69.84]) by cpanel.siel.si with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96.2) (envelope-from ) id 1rmuhG-005rRw-0q; Wed, 20 Mar 2024 13:05:30 +0100 Message-ID: Date: Wed, 20 Mar 2024 13:05:29 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] dt-bindings: iio: adc: nxp,imx93-adc.yaml: Add calibration properties Content-Language: en-GB To: Krzysztof Kozlowski , haibo.chen@nxp.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org Cc: jic23@kernel.org, lars@metafoo.de, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, upstream@lists.phytec.de References: <20240320100407.1639082-1-andrej.picej@norik.com> <20240320100407.1639082-3-andrej.picej@norik.com> <38637621-1611-4268-ae79-7ac93a72c5ee@linaro.org> From: Andrej Picej In-Reply-To: <38637621-1611-4268-ae79-7ac93a72c5ee@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.siel.si X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - norik.com X-Get-Message-Sender-Via: cpanel.siel.si: authenticated_id: andrej.picej@norik.com X-Authenticated-Sender: cpanel.siel.si: andrej.picej@norik.com X-Source: X-Source-Args: X-Source-Dir: Hi Krzysztof, On 20. 03. 24 11:26, Krzysztof Kozlowski wrote: > On 20/03/2024 11:04, Andrej Picej wrote: >> Document calibration properties and how to set them. > > Bindings are before users. will change patch order when I send a v2. > > Please use subject prefixes matching the subsystem. You can get them for > example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory > your patch is touching. > There is no file extension in prefixes. So: dt-bindings: iio/adc: nxp,imx93-adc: Add calibration properties? > >> >> Signed-off-by: Andrej Picej >> --- >> .../bindings/iio/adc/nxp,imx93-adc.yaml | 15 +++++++++++++++ >> 1 file changed, 15 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/iio/adc/nxp,imx93-adc.yaml b/Documentation/devicetree/bindings/iio/adc/nxp,imx93-adc.yaml >> index dacc526dc695..64958be62a6a 100644 >> --- a/Documentation/devicetree/bindings/iio/adc/nxp,imx93-adc.yaml >> +++ b/Documentation/devicetree/bindings/iio/adc/nxp,imx93-adc.yaml >> @@ -46,6 +46,21 @@ properties: >> "#io-channel-cells": >> const: 1 >> >> + nxp,calib-avg-en: >> + description: >> + Enable or disable averaging of calibration time. >> + enum: [ 0, 1 ] >> + >> + nxp,calib-nr-samples: >> + description: >> + Selects the number of averaging samples to be used during calibration. >> + enum: [ 16, 32, 128, 512 ] >> + >> + nxp,calib-t-samples: >> + description: >> + Specifies the sample time of calibration conversions. >> + enum: [ 8, 16, 22, 32 ] > > No, use existing, generic properties. Open other bindings for this. You mean I should use generic properties for the ADC calibration settings? Is there already something in place? Because as I understand it, these calib-* values only effect the calibration process of the ADC. > > Also, none of these were tested. I am not going to review such untested > code. > > It does not look like you tested the bindings, at least after quick > look. Please run `make dt_binding_check` (see > Documentation/devicetree/bindings/writing-schema.rst for instructions). > Maybe you need to update your dtschema and yamllint. You are right, I did not run the dt_binding_check, sorry for this, forgot that this existed. I see now I have to add the: > $ref: /schemas/types.yaml#/definitions/uint32 Will fix in v2. BR, Andrej > > Best regards, > Krzysztof >