xref: /linux/Documentation/devicetree/bindings/iio/proximity/google,cros-ec-mkbp-proximity.yaml (revision 986c6f7c3fc855032f3457a5a1b7fbcc09c375bb)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4
5$id: http://devicetree.org/schemas/iio/proximity/google,cros-ec-mkbp-proximity.yaml#
6$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8title: ChromeOS EC MKBP Proximity Sensor
9
10maintainers:
11  - Stephen Boyd <swboyd@chromium.org>
12  - Benson Leung <bleung@chromium.org>
13
14description: |
15  Google's ChromeOS EC sometimes has the ability to detect user proximity.
16  This is implemented on the EC as near/far logic and exposed to the OS
17  via an MKBP switch bit.
18
19properties:
20  compatible:
21    const: google,cros-ec-mkbp-proximity
22
23  label:
24    description: Name for proximity sensor
25
26required:
27  - compatible
28
29additionalProperties: false
30
31examples:
32  - |
33    proximity {
34      compatible = "google,cros-ec-mkbp-proximity";
35      label = "proximity-wifi-lte";
36    };
37