0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/proximity/semtech,sx9500.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Semtech's SX9500 capacitive proximity button device
0008
0009 maintainers:
0010 - Jonathan Cameron <jic23@kernel.org>
0011
0012 properties:
0013 compatible:
0014 const: semtech,sx9500
0015
0016 reg:
0017 maxItems: 1
0018
0019 interrupts:
0020 maxItems: 1
0021
0022 reset-gpios:
0023 description:
0024 GPIO connected to the active low reset pin.
0025 maxItems: 1
0026
0027 required:
0028 - compatible
0029 - reg
0030 - interrupts
0031
0032 additionalProperties: false
0033
0034 examples:
0035 - |
0036 #include <dt-bindings/interrupt-controller/irq.h>
0037 #include <dt-bindings/gpio/gpio.h>
0038 i2c {
0039 #address-cells = <1>;
0040 #size-cells = <0>;
0041
0042 proximity@28 {
0043 compatible = "semtech,sx9500";
0044 reg = <0x28>;
0045 interrupt-parent = <&gpio2>;
0046 interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
0047 reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
0048 };
0049 };
0050 ...