Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1105770imn; Sat, 30 Jul 2022 15:47:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR5hkwTzaOKG66tyfrmBsIJEiCOVA3QdZjqYIHd+nHK1eO+lGjrAcvYRIkUkzdta1CAID198 X-Received: by 2002:a17:90a:b782:b0:1f1:abb8:de1b with SMTP id m2-20020a17090ab78200b001f1abb8de1bmr12165265pjr.44.1659221256114; Sat, 30 Jul 2022 15:47:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659221256; cv=none; d=google.com; s=arc-20160816; b=qq6ndt8yaC95q95cTShVVKOuGaL8dXemv7NkRJh7+IQD/lQ7KzeoC/1lg5sI2rTxco vyg/bfIgXyEgK30X+POKp+LTh9f9l0ZxCI7tfA6sFAyvY09p6xRsfXTmQhvklLTif+04 vWk64SX8L/X8dDTfBIrgDiyEVz1Le3jaJA9E+k5nPI5+3Kosr5xUXd2NchvZdgJS7Q2i +GhkLJRklbSXDvC+21WSDyh6lPv0dRzFtZ2gvdvppfqZx759OAQaH3PcZy/R2pbcbZzf 9Lgi0qMGEZdW0UEd7+V0vWmYguueSlDk8ZTKiJxg6Y6S4m/eJFiguvk3/mx/sfIhzDAI OfMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Tz7/m9AhJlgdsuEUkhegRjTfmP8aqPiu8D3chDIrN8k=; b=ptTA46Ra/Kd5xA74kq0sPDUcts4SUMPIzQ4HWDCj1lmtOIbTvtkB4k9SCqeln3lQ0p ncbmw4cH/f5d8aP4vwbSrdAIv/FxpDc6XGUg65aIG3ZnZjPigcrOlm3MEfxmcRs9Uiwl Jqd3blms2v4dTsT/oZc+hk6Q5hUur/x74JrlnEewv4xcXrxq19AoJcypgi2r73Bgmd4k jBVEp/ZsV8s8NdYZlCJEJvtwu1z/xwNQzSFF9/4DHpIepTiLprI3nZNaw0Py6w0zv07O nnYR15gbqxjc7kXYJdYiwauRMcy3WOVsBaU/sTpLwkKs7HJQEiieLQHL+wdsKcRkF+SS AYBw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s131-20020a632c89000000b0041b698ead16si1798710pgs.619.2022.07.30.15.47.20; Sat, 30 Jul 2022 15:47:36 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235659AbiG3Wny (ORCPT + 99 others); Sat, 30 Jul 2022 18:43:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229895AbiG3Wnx (ORCPT ); Sat, 30 Jul 2022 18:43:53 -0400 Received: from bmailout2.hostsharing.net (bmailout2.hostsharing.net [83.223.78.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9946C13CD6; Sat, 30 Jul 2022 15:43:50 -0700 (PDT) Received: from h08.hostsharing.net (h08.hostsharing.net [IPv6:2a01:37:1000::53df:5f1c:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.hostsharing.net", Issuer "RapidSSL TLS DV RSA Mixed SHA256 2020 CA-1" (verified OK)) by bmailout2.hostsharing.net (Postfix) with ESMTPS id 95C8E2800A29D; Sun, 31 Jul 2022 00:43:48 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 857152ED8EB; Sun, 31 Jul 2022 00:43:48 +0200 (CEST) Date: Sun, 31 Jul 2022 00:43:48 +0200 From: Lukas Wunner To: Krzysztof Kozlowski Cc: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Lucas Stankus , Puranjay Mohan , Cosmin Tanislav , Alexandru Tachici , Marcelo Schmitt , Marcus Folkesson , Kent Gustavsson , Tomislav Denis , Oleksij Rempel , kernel@pengutronix.de, Antoniu Miclaus , Ricardo Ribalda , Dragos Bogdan , Jean-Baptiste Maneyrol , Lorenzo Bianconi , Stefan Popa , Linus Walleij , Stephan Gerhold , Mike Looijmans , Joachim Eastwood , Tomas Melin , Sean Nyekjaer , Beniamin Bia , Patrick Vasseur , Charles-Antoine Couret , Vladimir Barinov , Miquel Raynal , Philippe Reynes , Jacopo Mondi , Akinobu Mita , Alexandru Lazar , Oskar Andero , =?iso-8859-1?Q?M=E5rten?= Lindahl , Bogdan Pricop , Angelo Compagnucci , Matt Ranostay , Dan Murphy , Gregory Clement , Phil Reid , Michael Welling , Robert Jones , Chris Coffey , Slawomir Stepien , Sankar Velliangiri , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org Subject: Re: [PATCH v2 04/10] dt-bindings: iio: dac: use spi-peripheral-props.yaml Message-ID: <20220730224348.GA11662@wunner.de> References: <20220727164646.387541-1-krzysztof.kozlowski@linaro.org> <20220727164646.387541-5-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220727164646.387541-5-krzysztof.kozlowski@linaro.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE 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 On Wed, Jul 27, 2022 at 06:46:40PM +0200, Krzysztof Kozlowski wrote: > diff --git a/Documentation/devicetree/bindings/iio/dac/ti,dac082s085.yaml b/Documentation/devicetree/bindings/iio/dac/ti,dac082s085.yaml > index b0157050f1ee..201b04af2b22 100644 > --- a/Documentation/devicetree/bindings/iio/dac/ti,dac082s085.yaml > +++ b/Documentation/devicetree/bindings/iio/dac/ti,dac082s085.yaml > @@ -33,21 +33,22 @@ properties: > vref-supply: > description: Needed to provide output scaling. > > - spi-max-frequency: true > - > required: > - compatible > - reg > - vref-supply > > -additionalProperties: false > - > oneOf: > - required: > - spi-cpha > - required: > - spi-cpol > > +allOf: > + - $ref: /schemas/spi/spi-peripheral-props.yaml# > + > +unevaluatedProperties: false > + > examples: > - | > vref_2v5_reg: regulator-vref { Just to double-check because I'm unsure how the allOf interacts with the oneOf above: The DT must specify either spi-cpha or spi-cpol for this device, but not both. Hopefully that's still enforced after your change? Thanks, Lukas