Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1353838pxb; Fri, 21 Jan 2022 16:18:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJxaigCA81yV2W40kODk8t59g5AxFyC5nAgUP/4gDE5GcQWK5UKmCPzviBt+9IN5C4rXe2OJ X-Received: by 2002:a17:902:a3c7:b0:14a:d8bf:4e09 with SMTP id q7-20020a170902a3c700b0014ad8bf4e09mr6155876plb.62.1642810682262; Fri, 21 Jan 2022 16:18:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642810682; cv=none; d=google.com; s=arc-20160816; b=ZssjkITFmssoFvrtBEf7WdWUFpA6j9IK/A/626ZEPzMaaHjd2M1jMX9YbjcfJcMR23 uBMPXHgOcUGw9gBructTQCWexo622xmM3COh0Fa6ATdRQ9KF3+1JDlIzWoXeDIeSLQ+j yW5k5VW4Q5asi39s900lkNNCCLUJ+KLtACWUXudPNQAGeVrCe3co//cm2p+ynsz8mJoG pJfH4BO1X2TAfiWIHJG9orNOX9Hy0sEN7bL9zNe2OC3m+P+VzT6oLEvSclwAP36pv/yA SCqyC2ImR6UW5qAdQhrNyUvMdha9UPmVZGa/cCC3MUAe5ZEmcr0XIsbVuhNj9hWCXeWS Ko8w== 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; bh=JdY5i/vcjbMJ0CM6vrTsc2SV9D4UAPr/paJ/LZ4quKU=; b=x+tTFl5y3/E/eXyV713w/AY2n40/avTe7YOL5zxLF26+Jh4K++SjKRrAKfeDzhf8a7 M0HSGCVS/2lsk2YK26nDhVl3G/erZV+A0woq7I2niuF4GW1DIdPWbJaLOtwDVuU7sv1Y QRNScDrhP7IGF66w3Fd2ihW01d3bik8efVAbWmKMvfHs4teHu0aZYxfXm3f+sT4ssEXC j8G/eey0l0ysSoXP0+8cPrtagrM4O0gQMDyLOQB0+7XE9XikyUIuG+C7YlPXex5eChfW PTT8hqHEAJ0Cqzu+JNZuVs1LXnVaLGtWShVB2oB1Um8OAYRWnAIjzI+2fVyLeo7gQBSV VR4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id om4si15401167pjb.48.2022.01.21.16.17.50; Fri, 21 Jan 2022 16:18:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1378091AbiATWiV (ORCPT + 99 others); Thu, 20 Jan 2022 17:38:21 -0500 Received: from mail-oi1-f170.google.com ([209.85.167.170]:36467 "EHLO mail-oi1-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233963AbiATWiS (ORCPT ); Thu, 20 Jan 2022 17:38:18 -0500 Received: by mail-oi1-f170.google.com with SMTP id r138so11101637oie.3; Thu, 20 Jan 2022 14:38:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=JdY5i/vcjbMJ0CM6vrTsc2SV9D4UAPr/paJ/LZ4quKU=; b=hGgdyJa1yMHhTz5S6JTDzJO6IEnMFP9U3/5udsMm3SSqOkWl7zB7VWTI7NoDg8k6eP RPoNksF25A9SqHzcAwDOLe4j9ZwXgqP9gcq8yAqTL3XAd4SC52LW/L6V6VBrZ1ZXK848 4S6ljmX+DhZHldmPXsMkf3RebrbVDHsRlMvrjVB2TC3k9R8txBWhlvxa4kv9FEI7qFym 51vgf04+Lq2gmu7ge/xxf0pAX5z/9MQwLolS7O+j4GSfXIUjp7xhH/3Mu3DcxDA3WD+7 XOfBQPPZpMO2d6E+zKNQS7xYerzoOwWd1V7I87hh/zdC1p87NrckSc09XTpTZc/t8bNl sz3w== X-Gm-Message-State: AOAM5324G+LR8MnOOGfeTSz1imkB1o8Ce9xedQ+7r/K+yt7CVQHsx/KB h2aEBVWOyGpoXMr1hregKQ== X-Received: by 2002:a05:6808:1a23:: with SMTP id bk35mr9736209oib.52.1642718297796; Thu, 20 Jan 2022 14:38:17 -0800 (PST) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id o12sm235957ooi.18.2022.01.20.14.38.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jan 2022 14:38:17 -0800 (PST) Received: (nullmailer pid 2067772 invoked by uid 1000); Thu, 20 Jan 2022 22:38:15 -0000 Date: Thu, 20 Jan 2022 16:38:15 -0600 From: Rob Herring To: Krzysztof Kozlowski Cc: Lee Jones , Benson Leung , Guenter Roeck , Andi Shyti , Mark Brown , Sam Protsenko , Pratyush Yadav , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-spi@vger.kernel.org, Alim Akhtar Subject: Re: [PATCH v5 3/4] mfd: dt-bindings: google,cros-ec: reference Samsung SPI bindings Message-ID: References: <20220120175747.43403-1-krzysztof.kozlowski@canonical.com> <20220120175747.43403-4-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220120175747.43403-4-krzysztof.kozlowski@canonical.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 20, 2022 at 06:57:46PM +0100, Krzysztof Kozlowski wrote: > The ChromeOS Embedded Controller appears on boards with Samsung Exynos > SoC, where Exynos SPI bindings expect controller-data node. Reference > newly added dtschema for this property. > > Signed-off-by: Krzysztof Kozlowski > --- > .../bindings/mfd/google,cros-ec.yaml | 29 ++++++++++--------- > 1 file changed, 16 insertions(+), 13 deletions(-) > > diff --git a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml > index 58a1a9405228..66a995bbbbe9 100644 > --- a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml > +++ b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml > @@ -31,7 +31,7 @@ properties: > > controller-data: > description: > - SPI controller data, see bindings/spi/spi-samsung.txt > + SPI controller data, see bindings/spi/samsung,spi-peripheral-props.yaml > type: object We should be able to drop all of this if unevaluatedProperties is used. > > google,cros-ec-spi-pre-delay: > @@ -148,18 +148,21 @@ patternProperties: > required: > - compatible > > -if: > - properties: > - compatible: > - contains: > - enum: > - - google,cros-ec-i2c > - - google,cros-ec-rpmsg > -then: > - properties: > - google,cros-ec-spi-pre-delay: false > - google,cros-ec-spi-msg-delay: false > - spi-max-frequency: false > +allOf: > + - if: > + properties: > + compatible: > + contains: > + enum: > + - google,cros-ec-i2c > + - google,cros-ec-rpmsg > + then: > + properties: > + google,cros-ec-spi-pre-delay: false > + google,cros-ec-spi-msg-delay: false > + spi-max-frequency: false > + > + - $ref: /schemas/spi/samsung,spi-peripheral-props.yaml SPI device schemas should reference spi-peripheral-props.yaml only. spi-peripheral-props.yaml in turn should reference all the vendor specific peripheral property schemas. You should be able to do just: else: $ref: /schemas/spi/spi-peripheral-props.yaml Can you please hold off sending anything referencing spi-peripheral-props.yaml until after the merge window. Otherwise, the checks fail (though I trust you've run validation). Rob