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