From: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Cc: Lee Jones <lee.jones@linaro.org>,
Benson Leung <bleung@chromium.org>,
Guenter Roeck <groeck@chromium.org>,
Andi Shyti <andi@etezian.org>, Mark Brown <broonie@kernel.org>,
Sam Protsenko <semen.protsenko@linaro.org>,
Pratyush Yadav <p.yadav@ti.com>,
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 <alim.akhtar@samsung.com>
Subject: Re: [PATCH v5 3/4] mfd: dt-bindings: google,cros-ec: reference Samsung SPI bindings
Date: Thu, 20 Jan 2022 16:38:15 -0600 [thread overview]
Message-ID: <YenkV2rgEXQJ6Bc5@robh.at.kernel.org> (raw)
In-Reply-To: <20220120175747.43403-4-krzysztof.kozlowski@canonical.com>
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 <krzysztof.kozlowski@canonical.com>
> ---
> .../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
next prev parent reply other threads:[~2022-01-20 22:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-20 17:57 [PATCH v5 0/4] spi: dt-bindings: samsung: convert to dtschema Krzysztof Kozlowski
2022-01-20 17:57 ` [PATCH v5 1/4] ARM: dts: exynos: split dmas into array of phandles in Exynos5250 Krzysztof Kozlowski
2022-01-23 17:10 ` (subset) " Krzysztof Kozlowski
2022-01-20 17:57 ` [PATCH v5 2/4] spi: dt-bindings: samsung: convert to dtschema Krzysztof Kozlowski
2022-01-20 18:25 ` Pratyush Yadav
2022-01-20 17:57 ` [PATCH v5 3/4] mfd: dt-bindings: google,cros-ec: reference Samsung SPI bindings Krzysztof Kozlowski
2022-01-20 22:38 ` Rob Herring [this message]
2022-01-24 7:49 ` Krzysztof Kozlowski
2022-01-20 17:57 ` [PATCH v5 4/4] spi: s3c64xx: allow controller-data to be optional Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YenkV2rgEXQJ6Bc5@robh.at.kernel.org \
--to=robh@kernel.org \
--cc=alim.akhtar@samsung.com \
--cc=andi@etezian.org \
--cc=bleung@chromium.org \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=groeck@chromium.org \
--cc=krzysztof.kozlowski@canonical.com \
--cc=lee.jones@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=p.yadav@ti.com \
--cc=semen.protsenko@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox