Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3644872rwb; Sat, 12 Nov 2022 09:35:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf7WEs9jNu2kIgj8kOKTwx77Vabs72fjiS2OzSIBsrxkfW10tiigNyMwdrPMq0jaCp7iz4iu X-Received: by 2002:a17:903:1009:b0:17f:72a4:30a1 with SMTP id a9-20020a170903100900b0017f72a430a1mr7489711plb.124.1668274540027; Sat, 12 Nov 2022 09:35:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668274540; cv=none; d=google.com; s=arc-20160816; b=j6hqbruWjySlvgnGTkn0/Px8I9l/oOR8n1ptKZ4/F7/zFOHqM373z3m+64siLGzVrA 9BrQqj/D1EiRmNpi8wwnT1CVyO/A4cPbh9Q565WQU9jqgGhJ5+03Z+Al69crsR3EpWLT O1WhUAOYRblpgWJnQyDAtOMpWO5br0LHehINW5c4+NvoJPKPJAJ2nmlUbPAkobdHOW+B GUw5nSfsQuVjjDbJc8kvFO32u7AA5D1ACpIWLJp1WNd9WEKRQN4YSOZrZWgI4Zz9EjJZ 0sMSV0Y9yKHuC1jI016Dfvno/HTy6xKFqgpZAtmsi6CLbsk2LwcA84J3hVmtP2i0mZxw lzwA== 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=1VatH03/5h+w6JRnuFGLJr3m1WKQDWKIf4XgFs33ClE=; b=BaeF6cq8rLbxo0WgKCRxc2dbGF8UMBUe0Bq4QswOxmnTBmxLHgvSvfLMdzHiOt4Zx4 LCohbn5YGdz4iHzuF7QbZm7KrdoIafsO6HOFDwi8LzOidLFdoJLVOQRv6JRYpG1SCT0p AGFUBbq/NKJ+BBayIB0vRze5d+pKA0kef7LBBlCnnzkVNCZR8XMFQ/AyDZi2BiVfRvTX oZ6Q3GoWgDbl60K6f0a2ws164mkJxekcLaRslP+oLALgd66Tb7JqSX8ivy0adjKTC+8K r9a7ejrvt+r7UiCM8cGnPnMxjssLKXddHb/6Cg9fDOzJqZy32wmwjjlbOTG6NnUMpWKx fgQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nquU2gGU; 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 p2-20020a170902c70200b001855797d813si4877642plp.397.2022.11.12.09.35.26; Sat, 12 Nov 2022 09:35:40 -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=nquU2gGU; 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 S234941AbiKLQmj (ORCPT + 90 others); Sat, 12 Nov 2022 11:42:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230170AbiKLQmi (ORCPT ); Sat, 12 Nov 2022 11:42:38 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3F0715A3C; Sat, 12 Nov 2022 08:42:37 -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 67AAFB80989; Sat, 12 Nov 2022 16:42:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1E0EC433C1; Sat, 12 Nov 2022 16:42:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668271354; bh=mgo1N2SwwhYrdlOLDbEzP7m41GRLmkMdSIWWhHWIS1M=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=nquU2gGUrv+0L+KZS4DMWinbum+KVubwlicNlKEbqIJadga61DhSeT8W55SFEwo+M HwYHwJoQahLG560iZfA8D9UGe6spmkpd09PyU5zRip2Z/vH9IWsC7F8bRWKwAbseun WVs+CxyAp3zNgT/MKfSrAw23PWegK4dUgMKYNy4E0NsJzYFm2V/Gst6GpfT5d+0yGX 5pikukkxI2VvLaNN7/IlNDpeljS0oOAgBi4g82Z/27d06yw1IdorLmW1l0UOvrVgb5 YlkGUZjPFXku4JBHITbm6/2DrL7CoIo8R97C3gzoGzX+LT6u/L1mRVJIRlcOGCxAjT vwNZNTv2fluPw== Date: Sat, 12 Nov 2022 16:54:48 +0000 From: Jonathan Cameron To: Rasmus Villemoes Cc: Cosmin Tanislav , Lars-Peter Clausen , Michael Hennerich , devicetree@vger.kernel.org, Rob Herring , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/5] dt-bindings: iio: ad74413r: make refin-supply optional Message-ID: <20221112165448.17489ef1@jic23-huawei> In-Reply-To: <20221111143921.742194-3-linux@rasmusvillemoes.dk> References: <20221111143921.742194-1-linux@rasmusvillemoes.dk> <20221111143921.742194-3-linux@rasmusvillemoes.dk> 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 On Fri, 11 Nov 2022 15:39:18 +0100 Rasmus Villemoes wrote: > The ad74412r/ad74413r has an internal 2.5V reference output, which (by > tying the REFOUT pin to the REFIN pin) can be used in lieu of an > external 2.5V input reference. So stop marking refin-supply as > required. > > Signed-off-by: Rasmus Villemoes Interesting corner case. Given we have no way of knowing if the wiring has REFOUT connected to REFIN I see two ways we should fix this. 1) Just have any DT doing this provide a fixed regulator. 2) Have the REFOUT supported as an actual regulator - in theory it might be wired to other devices. This might get a little interesting ordering wise as we'll want to register the regulator before we try to consume it in the same driver. I'm also not 100% sure there are no other issues in a driver providing and consuming the same regulator. I'm not keen to just assume lack of regulator means the chip is wired like this. Would be a different question if this was just setting an internal mux to use the regulator without external loop back being needed. Jonathan > --- > Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml b/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml > index 03bb90a7f4f8..e954d5ae4f4f 100644 > --- a/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml > +++ b/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml > @@ -56,7 +56,6 @@ required: > - reg > - spi-max-frequency > - spi-cpol > - - refin-supply > > additionalProperties: false >