blob: e8dee8097facf7c996af77fd718b223255319de3 [file] [log] [blame]
# Copyright (c) 2020 Richard Osterloh
# SPDX-License-Identifier: Apache-2.0
description: VCNL4040 proximity and ambient light sensor
compatible: "vishay,vcnl4040"
include: i2c-device.yaml
properties:
int-gpios:
type: phandle-array
required: false
description: |
The INT pin signals that a programmable interrupt function
for ALS and PS with upper and lower thresholds has been
triggered. The sensor generates an active-low level signal
which remains asserted until the data is read.
led-current:
type: int
required: false
default: 50
description: LED current in mA
enum:
- 50
- 75
- 100
- 120
- 140
- 160
- 180
- 200
led-duty-cycle:
type: int
required: false
default: 40
description: LED duty cycle in Hz
enum:
- 40
- 80
- 160
- 320
proximity-it:
type: string
required: false
default: "1"
description: Proximity integration time in T
enum:
- "1"
- "1.5"
- "2"
- "2.5"
- "3"
- "3.5"
- "4"
- "8"
proximity-trigger:
type: string
required: false
default: "close-away"
description: Proximity trigger type
enum:
- "disabled"
- "close"
- "away"
- "close-away"
als-it:
type: int
required: false
default: 80
description: ALS integration time in ms
enum:
- 80
- 160
- 320
- 640