Commit 80cf16de authored by Ikjoon Jang's avatar Ikjoon Jang Committed by Lee Jones
Browse files

mfd: google,cros-ec: add DT bindings for a baseboard's switch device



This is for ChromeOS tablets which have a 'cros_cbas' switch device
in the "Whiskers" base board. This device can be instantiated only by
device tree on ARM platforms. ChromeOS EC doesn't provide a way to
probe the device.

Signed-off-by: default avatarIkjoon Jang <ikjn@chromium.org>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Acked-by: default avatarEnric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 50e4d7a2
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -117,6 +117,22 @@ properties:
      - "#address-cells"
      - "#size-cells"

  cbas:
    type: object

    description:
      This device is used to signal when a detachable base is attached
      to a Chrome OS tablet. This device cannot be detected at runtime.

    properties:
      compatible:
        const: google,cros-cbas

    required:
      - compatible

    additionalProperties: false

patternProperties:
  "^i2c-tunnel[0-9]*$":
    type: object
@@ -187,6 +203,10 @@ examples:
            proximity {
                    compatible = "google,cros-ec-mkbp-proximity";
            };

            cbas {
                compatible = "google,cros-cbas";
            };
        };
    };