Sharp GP2AP020A00F I2C Proximity/ALS sensor
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/sharp,gp2ap020a00f.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Kyungmin Park <kyungmin.park@samsung.com>"
The proximity detector sensor requires power supply for its built-in led.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "sharp,gp2ap020a00f"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
vled-supply — required here #
true — No constraints added by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "vled-supply"
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@39 {
compatible = "sharp,gp2ap020a00f";
reg = <0x39>;
interrupts = <2 0>;
vled-supply = <&als_reg>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)