VISHAY VCNL4000 ambient light and proximity sensor
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/vishay,vcnl4000.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Peter Meerwald <pmeerw@pmeerw.net>"
Ambient light sensing with proximity detection over an i2c interface.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):../common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "vishay,vcnl4000", "vishay,vcnl4010", "vishay,vcnl4020", "vishay,vcnl4040", "vishay,vcnl4200"
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
reg — required here #
Maximum number of items (maxItems): 1
proximity-near-level — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@51 {
compatible = "vishay,vcnl4200";
reg = <0x51>;
proximity-near-level = <220>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)