99 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/iio/proximity/semtech,sx9360.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Semtech's SX9360 capacitive proximity sensor8 9maintainers:10 - Gwendal Grignou <gwendal@chromium.org>11 - Daniel Campello <campello@chromium.org>12 13description: |14 Semtech's SX9360 proximity sensor.15 16properties:17 compatible:18 const: semtech,sx936019 20 reg:21 maxItems: 122 23 interrupts:24 description:25 Generated by device to announce preceding read request has finished26 and data is available or that a close/far proximity event has happened.27 maxItems: 128 29 vdd-supply:30 description: Main power supply31 32 svdd-supply:33 description: Host interface power supply34 35 "#io-channel-cells":36 const: 137 38 semtech,resolution:39 $ref: /schemas/types.yaml#/definitions/uint3240 enum: [8, 16, 32, 64, 128, 256, 512, 1024]41 description:42 Capacitance measurement resolution. For both phases, "reference" and43 "measurement". Higher the number, higher the resolution.44 default: 12845 46 semtech,proxraw-strength:47 $ref: /schemas/types.yaml#/definitions/uint3248 minimum: 049 maximum: 750 default: 151 description:52 PROXRAW filter strength for both phases. A value of 0 represents off,53 and other values represent 1-1/2^N.54 55 semtech,avg-pos-strength:56 $ref: /schemas/types.yaml#/definitions/uint3257 enum: [0, 16, 64, 128, 256, 512, 1024, 4294967295]58 default: 1659 description: |60 Average positive filter strength. A value of 0 represents off and61 UINT_MAX (4294967295) represents infinite. Other values62 represent 1-1/N.63 64 semtech,input-precharge-resistor-ohms:65 default: 066 multipleOf: 200067 minimum: 068 maximum: 3000069 description:70 Pre-charge input resistance in Ohm.71 72required:73 - compatible74 - reg75 - "#io-channel-cells"76 77additionalProperties: false78 79examples:80 - |81 #include <dt-bindings/interrupt-controller/irq.h>82 i2c {83 #address-cells = <1>;84 #size-cells = <0>;85 proximity@28 {86 compatible = "semtech,sx9360";87 reg = <0x28>;88 interrupt-parent = <&pio>;89 interrupts = <5 IRQ_TYPE_LEVEL_LOW 5>;90 vdd-supply = <&pp3300_a>;91 svdd-supply = <&pp1800_prox>;92 #io-channel-cells = <1>;93 semtech,resolution = <256>;94 semtech,proxraw-strength = <2>;95 semtech,avg-pos-strength = <64>;96 semtech,input-precharge-resistor-ohms = <4000>;97 };98 };99