summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/extcon
diff options
context:
space:
mode:
authorStephen Boyd <swboyd@chromium.org>2022-10-25 17:36:40 -0700
committerTzung-Bi Shih <tzungbi@kernel.org>2022-10-31 12:02:56 +0800
commit7a2f36828c7b4bf61aa4159c6d0a3c58264b6b06 (patch)
tree045bda13c0e19405cb656293f8c80bc88d2f7567 /Documentation/devicetree/bindings/extcon
parentd8cb88f1541fdc3602dbc87ede78ec704c11546f (diff)
downloadlinux-stable-7a2f36828c7b4bf61aa4159c6d0a3c58264b6b06.tar.gz
linux-stable-7a2f36828c7b4bf61aa4159c6d0a3c58264b6b06.tar.bz2
linux-stable-7a2f36828c7b4bf61aa4159c6d0a3c58264b6b06.zip
dt-bindings: cros-ec: Reorganize and enforce property availability
Various properties in the cros-ec binding only apply to different compatible strings. For example, the interrupts and reg property are required for all cros-ec devices except for the rpmsg version. Add some conditions to update the availability of properties so that they can't be used with compatibles that don't support them. This reveals that many of the examples in bindings that use cros-ec were missing the interrupts property. Add the property to make those bindings whole again. Reviewed-by: Rob Herring <robh@kernel.org> Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> Cc: <devicetree@vger.kernel.org> Cc: <chrome-platform@lists.linux.dev> Cc: Guenter Roeck <groeck@chromium.org> Reviewed-by: Douglas Anderson <dianders@chromium.org> Cc: Craig Hesling <hesling@chromium.org> Cc: Tom Hughes <tomhughes@chromium.org> Cc: Alexandru M Stan <amstan@chromium.org> Cc: Tzung-Bi Shih <tzungbi@kernel.org> Cc: Matthias Kaehlcke <mka@chromium.org> Cc: Benson Leung <bleung@chromium.org> Cc: Lee Jones <lee.jones@linaro.org> Signed-off-by: Stephen Boyd <swboyd@chromium.org> Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org> Link: https://lore.kernel.org/r/20221026003641.2688765-2-swboyd@chromium.org
Diffstat (limited to 'Documentation/devicetree/bindings/extcon')
-rw-r--r--Documentation/devicetree/bindings/extcon/extcon-usbc-cros-ec.yaml1
1 files changed, 1 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/extcon/extcon-usbc-cros-ec.yaml b/Documentation/devicetree/bindings/extcon/extcon-usbc-cros-ec.yaml
index 2d82b44268db..2e5b39881449 100644
--- a/Documentation/devicetree/bindings/extcon/extcon-usbc-cros-ec.yaml
+++ b/Documentation/devicetree/bindings/extcon/extcon-usbc-cros-ec.yaml
@@ -40,6 +40,7 @@ examples:
cros-ec@0 {
compatible = "google,cros-ec-spi";
reg = <0>;
+ interrupts = <44 0>;
usbc_extcon0: extcon0 {
compatible = "google,extcon-usbc-cros-ec";