Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3567604rwb; Sat, 12 Nov 2022 08:06:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf6sZA6vtiKcfMXrr6kmXHqUeK6AWd9Ju7wAB9M1rogUkdOQ+qvefd1fUDDezpgFoWCLe/0A X-Received: by 2002:a05:6402:3647:b0:461:8bd2:45f with SMTP id em7-20020a056402364700b004618bd2045fmr5645088edb.232.1668269161868; Sat, 12 Nov 2022 08:06:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668269161; cv=none; d=google.com; s=arc-20160816; b=vFgOOOUIonz5lc7cU3Hye8FYkoRWxCmfrsAZ+wB3d1gixBGJsUqhQmxzxlngLpFz2b nIZ4Y98b9QJ/clQcY34LIgOjQ5uDf8TiK/7TFGFzRBgrl+u3OF1IDxcaQSZzFnPWTIQL 6WMDkInchw8BkaJs9l8JJcuLnLHvTwGVpR0xeJATfhQQj7xPWzoBVqkVla2KbMl5m4zo d1Vpl976pE49ZlADvcg7EnuIwJ4JTvVwAtNh3SYMaMy4AAwf5zcPSdm+hwFoqXP7x4hK eEVkCXWT+1rbKNjHJo4t7gx8Kgfw5BS6pmA24gvbePi5gsCqFvzlNBYtmfArHlidBzk1 2stQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=sYLqOKb2ysSMFu+ZxFT7JdaKwDo6LmhHYK4Wt+Vh4lg=; b=HXIKAoMrqWZviGLIBCz3wsfZ/+4v1X4wCsdsNa03Tx6T9Pap2mvFUt+F6KWfw5Jgh4 661a4NxIWFeMYWS6xr19IFM2NVd5U4jMpaKUqxB5VTp2y68Qfk2/Gpgp7M2uWGYUAKqQ FdzLvv4MKZyKSYU5gKArG3Eo1w8RFy5q6bct8KuhLTqQBRnO0s6zmi33wtflIrIF+4JJ CzB4q9ILCIxJORkDMwxgoYYC8QGja40g51fccQ6YPKeUzxvsHWaVNlbp+PedpFv0P5+P rdJHE/qvd1qZ0WNtSoQtBnYGj/4sqQrBuC7qFqc6y021oI65TPCSM1dS3K11LU9/s9SF Ww6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gFKY2phJ; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb23-20020a1709077e9700b0078dcf17c084si5182528ejc.728.2022.11.12.08.05.39; Sat, 12 Nov 2022 08:06:01 -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=@kernel.org header.s=k20201202 header.b=gFKY2phJ; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234977AbiKLP2d (ORCPT + 90 others); Sat, 12 Nov 2022 10:28:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232311AbiKLP2b (ORCPT ); Sat, 12 Nov 2022 10:28:31 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E005D2727; Sat, 12 Nov 2022 07:28:30 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 92576B8093B; Sat, 12 Nov 2022 15:28:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21FD6C433C1; Sat, 12 Nov 2022 15:28:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668266908; bh=XPbsk0OfT62ZB9bSFoUUhiNlQ6C8M0NyQPR2OIt4XVg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=gFKY2phJ6GZtVCyfTvO2TiyEPMewqJ1CaO5SBHYyA0rHSnWrnLFLl86FLrbMCDTNb CdQaXgQ8Ze/KoKMSE+pPKdnBI6xq0qUgLr6u/f/XyxeyrzfzhiqYcWNZEUr9rloH3F 7Uj7EUkhsI3KONhzkGNX2x5zuMryGm6GBr3RmOS8iBDQmB07aTo6S+D0mQFlzfO8ol 0NlKHjJ4Do2ZJTIlavMA7M+8v7htYVVYOkhsdLwKBQ4PpNQkVsFNDa4vbmla+tLEan DC5DPCYFzjPsgsYV8Kv8TAzKIhZEQnIW1ki0dG0qitgBut/x4HGfFswrjlD0l/P0hQ o+YMJ+HmQzvuw== Date: Sat, 12 Nov 2022 15:40:40 +0000 From: Jonathan Cameron To: Cosmin Tanislav Cc: Cosmin Tanislav , Lars-Peter Clausen , Michael Hennerich , Rob Herring , Krzysztof Kozlowski , Linus Walleij , William Breathitt Gray , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] dt-bindings: iio: addac: add AD74115 Message-ID: <20221112154040.54dc5cf2@jic23-huawei> In-Reply-To: References: <20221103094436.2136698-1-demonsingur@gmail.com> <20221103094436.2136698-2-demonsingur@gmail.com> <20221106154634.2286faf3@jic23-huawei> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 > > > > > + $ref: /schemas/types.yaml#/definitions/uint32 > > > + description: | > > > + Conversion range for ADC conversion 2. > > > + 0 - 0V to 12V > > > + 1 - -12V to +12V > > > + 2 - -2.5V to +2.5V > > > + 3 - -2.5V to 0V > > > + 4 - 0V to 2.5V > > > + 5 - 0V to 0.625V > > > + 6 - -104mV to +104mV > > > + 7 - 0V to 12V > > > > For a lot of similar cases we handle these numerically to give > > a human readable dts. Is there a strong reason not to do so here (in mv) > > > > I used this approach mostly because it maps dirrectly to register values > and because it's easier to parse. dts isn't exactly nice at handling > negative values. I can switch it to mv array if you insist. We have quite a few existing cases of adi,[output-]range-microvolt so it would be good to copy that style here. > > > > > > + minimum: 0 > > > + maximum: 7 > > > + default: 0 > > > +