From: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
To: Lee Jones <lee.jones@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
Benson Leung <bleung@chromium.org>,
Guenter Roeck <groeck@chromium.org>,
Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>,
Alim Akhtar <alim.akhtar@samsung.com>,
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
Subject: [PATCH v6 2/4] mfd: dt-bindings: google,cros-ec: reference Samsung SPI bindings
Date: Mon, 24 Jan 2022 09:23:45 +0100 [thread overview]
Message-ID: <20220124082347.32747-3-krzysztof.kozlowski@canonical.com> (raw)
In-Reply-To: <20220124082347.32747-1-krzysztof.kozlowski@canonical.com>
The ChromeOS Embedded Controller appears on boards with Samsung Exynos
SoC, where Exynos SPI bindings expect controller-data node. Reference
SPI peripheral bindings which include now Samsung SPI peripheral parts.
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 d1f53bd449f7..525ab18005b3 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
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
+ else:
+ $ref: /schemas/spi/spi-peripheral-props.yaml
additionalProperties: false
--
2.32.0
next prev parent reply other threads:[~2022-01-24 8:24 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-24 8:23 [PATCH v6 0/4] spi: dt-bindings: samsung: convert to dtschema Krzysztof Kozlowski
2022-01-24 8:23 ` [PATCH v6 1/4] " Krzysztof Kozlowski
2022-02-04 22:15 ` Rob Herring
2022-02-07 18:09 ` Mark Brown
2022-02-07 19:45 ` Krzysztof Kozlowski
2022-02-14 14:17 ` Lee Jones
2022-02-14 14:40 ` Mark Brown
2022-02-14 14:47 ` Lee Jones
2022-03-07 9:21 ` Lee Jones
2022-01-24 8:23 ` Krzysztof Kozlowski [this message]
2022-02-04 22:15 ` [PATCH v6 2/4] mfd: dt-bindings: google,cros-ec: reference Samsung SPI bindings Rob Herring
2022-03-07 9:21 ` Lee Jones
2022-01-24 8:23 ` [PATCH v6 3/4] mfd: dt-bindings: google,cros-ec: fix indentation in example Krzysztof Kozlowski
2022-02-04 22:16 ` Rob Herring
2022-03-07 9:22 ` Lee Jones
2022-01-24 8:23 ` [PATCH v6 4/4] spi: s3c64xx: allow controller-data to be optional Krzysztof Kozlowski
2022-02-07 18:11 ` Mark Brown
2022-03-07 9:22 ` Lee Jones
2022-03-02 19:13 ` [PATCH v6 0/4] spi: dt-bindings: samsung: convert to dtschema Krzysztof Kozlowski
2022-03-07 13:03 ` [GIT PULL] Immutable branch between MFD, SPI and DT due for the v5.18 merge window Lee Jones
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=20220124082347.32747-3-krzysztof.kozlowski@canonical.com \
--to=krzysztof.kozlowski@canonical.com \
--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=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=robh+dt@kernel.org \
--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;
as well as URLs for NNTP newsgroup(s).