Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp516551rdh; Thu, 23 Nov 2023 10:03:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IGKzsLWkI/MQNJO/bnFGl+fE/zaNtLPf8WbO+9VVqBHzHP+DmSTWIvAU+05mjcJOy4K/tF4 X-Received: by 2002:a17:90b:4c8f:b0:280:c576:31af with SMTP id my15-20020a17090b4c8f00b00280c57631afmr204837pjb.40.1700762605600; Thu, 23 Nov 2023 10:03:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700762605; cv=none; d=google.com; s=arc-20160816; b=lKNRSY/8NBLUo1ATCze4y/iX2wWt/aN0RVEe6zEQhuwOpIKnsTjib58tsm1JSm3Q/6 WSka3AaqBww3ePVzwvv6SatFftq0lL6Li8V3QrQ5sDjuL+zXRlGxkz8dYOGR+irnyOFy d5HCZ2BDLv3kI9Dd4qJmIAjF05eEvv5p3C+8Przomoh7uiLW0lq9/21DW9sNOdxu0bQE wT836MWauEIXVYpl8lB1QATtt3FfbUwN3evl9aWQx7Kd5N/OKxCsSumB5/1kaYFdcXgi mVdqNht+rZ/KH59dH5Y+netqfqpnTR9/PrtOvhP8hXOOQpoTq4igNTVCbwzZSAtW4MD6 4hJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=D/3llbAMmuzev8FvM/MTQ6d2r4lH1brbraZ4DYOVuI4=; fh=y1WGpjPoE1tMRT6U7bisXG6we/9dxL6wxCFAqoqXTh8=; b=j8WRmoTGs43AGDQWWozvVGqywEN12f9o+4GLNpX+O//WTj2/frGiwAt1iEGaZ9N+d6 STahidmmh+AjNdPTUgHYBEn2p9hjk/eHI1iJvWpJups0t/mZL0vbE8h+8/zcBFyUrZOa 3XmTamEpn5napJ7prv/n/dE1pnaKvZRQPZjQ8KkBiVpZsMddtTmT3WmAc5DAENktvcIB im8ovbj5JS+OVLKlGDiWdONYg7/JVe55bUNRf0zoGhGPTksITr4SEvKl5XWvojD7G2Wn FzjqnuqLIz9V6d/V+fEXlzAyHPvZ5yO3UaluJlmZLwWjtyHXOq6jw0nMtsYAIngcL0Po e1WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PJ61VMyv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id l11-20020a17090a72cb00b00285156d2614si2082734pjk.189.2023.11.23.10.03.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 10:03:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PJ61VMyv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id C0B9E8293C52; Thu, 23 Nov 2023 10:03:22 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230479AbjKWSDG (ORCPT + 99 others); Thu, 23 Nov 2023 13:03:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230219AbjKWSC7 (ORCPT ); Thu, 23 Nov 2023 13:02:59 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26CEB10D3 for ; Thu, 23 Nov 2023 10:03:06 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BBCA9C433C8; Thu, 23 Nov 2023 18:03:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700762585; bh=nuppog5gHM5PDdmOf0v6VeS1jwQuAhpresQvggmV4bQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PJ61VMyvko7QS9/SGSXmW+7k2SIUFTWVAOhWXRnNDB29CULQ3Sl73hQSpDFcm/HU4 dLIeOY6KaNugid4myURGXb8kVIoELKiWeY8W/wUAYTZLBK7PBSfo98/bObspjxb/U0 UdIbyLVQN0fBW25Ekbn9YfA8t6lSAAl2wabSHpth68uRqfw+nB0cpRO1r/IoRPKKh2 MHAhtYfYFFTSGa8PrgdvL1kfpopFX1ZvTEDG5ql2g3+sjl9zpsDs1IeDjmUc8mrwMt rbziIftMB094bNgVretH/dzHYVgAKDxl+gQ/F/rAuctAfrHgDuUGKKSNV5ZYl0Q4Pk 1zCMY7vqNE8yQ== Date: Thu, 23 Nov 2023 18:02:58 +0000 From: Conor Dooley To: mitrutzceclan Cc: linus.walleij@linaro.org, brgl@bgdev.pl, andy@kernel.org, linux-gpio@vger.kernel.org, Lars-Peter Clausen , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Walle , Andy Shevchenko , Arnd Bergmann , ChiaEn Wu , Niklas Schnelle , Leonard =?iso-8859-1?Q?G=F6hrs?= , Mike Looijmans , Haibo Chen , Hugo Villeneuve , Ceclan Dumitru , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 1/2] dt-bindings: adc: add AD7173 Message-ID: <20231123-ninth-joylessly-89e8531cf756@spud> References: <20231123152331.5751-1-user@HYB-hhAwRlzzMZb> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="K9w0PSfQdN+TWI+G" Content-Disposition: inline In-Reply-To: <20231123152331.5751-1-user@HYB-hhAwRlzzMZb> X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Thu, 23 Nov 2023 10:03:22 -0800 (PST) --K9w0PSfQdN+TWI+G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Yo, This looks a lot better IMO, thanks. On Thu, Nov 23, 2023 at 05:23:21PM +0200, mitrutzceclan wrote: > +patternProperties: > + "^channel@[0-9a-f]$": > + type: object > + $ref: adc.yaml > + unevaluatedProperties: false > + bipolar: > + type: boolean This should be defined in adc.yaml, so duping it here is not needed? > +allOf: > + - $ref: /schemas/spi/spi-peripheral-props.yaml# > + > + - if: > + properties: > + compatible: > + not: > + contains: > + const: adi,ad7173-8 > + then: > + properties: > + refin2-supply: false > + patternProperties: > + "^channel@[0-9a-f]$": > + properties: > + adi,reference-select: > + enum: > + - refin > + - refout-avss > + - avdd I assume you tested that this restriction works as intended? Cheers, Conor. --K9w0PSfQdN+TWI+G Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZV+T0gAKCRB4tDGHoIJi 0ps9AP9/++/sCN1dTPtbBoPrxYvOvaRbVFVVoZdi0QouNZ+uQQEAqTtA7VnxEYk0 sIL+bDAZpJIzJU7lUWDbroIR91pOjAU= =Re9o -----END PGP SIGNATURE----- --K9w0PSfQdN+TWI+G--