Semtech's SX9310 capacitive proximity sensor
Schema identifier ($id): "http://devicetree.org/schemas/iio/proximity/semtech,sx9310.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Daniel Campello <campello@chromium.org>"
Semtech's SX9310/SX9311 capacitive proximity/button solution.
Specifications about the devices can be found at: https://www.semtech.com/products/smart-sensing/sar-sensors/sx9310
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/iio/iio.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "semtech,sx9310", "semtech,sx9311"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
The sole interrupt generated by the device used to announce the preceding reading request has finished and that data is available or that a close/far proximity event has happened.
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
Main power supply
svdd-supply — not listed as required here #
Host interface power supply
#io-channel-cells — required here #
Exact value (const): 1
semtech,cs0-ground — not listed as required here #
Indicates the CS0 sensor is connected to ground.
Value type (type): "boolean"
semtech,combined-sensors — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
List of which sensors are combined and represented by CS3. Possible values are - 3 - CS3 (internal) 0 1 - CS0 + CS1 1 2 - CS1 + CS2 (default) 0 1 2 3 - CS0 + CS1 + CS2 + CS3
Array item rules (items) #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
semtech,resolution — not listed as required here #
Capacitance measure resolution. Refer to datasheet for more details.
Allowed values (enum): "coarsest", "very-coarse", "coarse", "medium-coarse", "medium", "fine", "very-fine", "finest"
semtech,startup-sensor — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Default value (default): 0
Sensor used for start-up proximity detection. The combined sensor is represented by the value 3. This is used for initial compensation.
semtech,proxraw-strength — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 2, 4, 8
Default value (default): 2
PROXRAW filter strength. A value of 0 represents off, and other values represent 1-1/N.
semtech,avg-pos-strength — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 16, 64, 128, 256, 512, 1024, 4294967295
Default value (default): 16
Average positive filter strength. A value of 0 represents off and UINT_MAX (4294967295) represents infinite. Other values represent 1-1/N.
Required in this object (required): "compatible", "reg", "#io-channel-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
proximity@28 {
compatible = "semtech,sx9310";
reg = <0x28>;
interrupt-parent = <&pio>;
interrupts = <5 IRQ_TYPE_LEVEL_LOW 5>;
vdd-supply = <&pp3300_a>;
svdd-supply = <&pp1800_prox>;
#io-channel-cells = <1>;
semtech,cs0-ground;
semtech,combined-sensors = <1 2 3>;
semtech,resolution = "fine";
semtech,startup-sensor = <1>;
semtech,proxraw-strength = <2>;
semtech,avg-pos-strength = <64>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)