Merge existing fixes from asoc/for-5.10
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / iio / proximity / semtech,sx9310.yaml
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/iio/proximity/semtech,sx9310.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Semtech's SX9310 capacitive proximity sensor
8
9 maintainers:
10   - Daniel Campello <campello@chromium.org>
11
12 description: |
13   Semtech's SX9310/SX9311 capacitive proximity/button solution.
14
15   Specifications about the devices can be found at:
16   https://www.semtech.com/products/smart-sensing/sar-sensors/sx9310
17
18 properties:
19   compatible:
20     enum:
21       - semtech,sx9310
22       - semtech,sx9311
23
24   reg:
25     maxItems: 1
26
27   interrupts:
28     description:
29       The sole interrupt generated by the device used to announce the
30       preceding reading request has finished and that data is
31       available or that a close/far proximity event has happened.
32     maxItems: 1
33
34   vdd-supply:
35     description: Main power supply
36
37   svdd-supply:
38     description: Host interface power supply
39
40   "#io-channel-cells":
41     const: 1
42
43 required:
44   - compatible
45   - reg
46   - "#io-channel-cells"
47
48 additionalProperties: false
49
50 examples:
51   - |
52     #include <dt-bindings/interrupt-controller/irq.h>
53     i2c {
54       #address-cells = <1>;
55       #size-cells = <0>;
56       proximity@28 {
57         compatible = "semtech,sx9310";
58         reg = <0x28>;
59         interrupt-parent = <&pio>;
60         interrupts = <5 IRQ_TYPE_LEVEL_LOW 5>;
61         vdd-supply = <&pp3300_a>;
62         svdd-supply = <&pp1800_prox>;
63         #io-channel-cells = <1>;
64       };
65     };