Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: iio: light: stk33xx: Add proximity-near-level

This allows exporting the value from which userspace should assert an
object is "near".

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220420112540.91907-2-arnaud.ferraris@collabora.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Arnaud Ferraris and committed by
Jonathan Cameron
b71b538b 42763b24

+6
+6
Documentation/devicetree/bindings/iio/light/stk33xx.yaml
··· 13 13 description: | 14 14 Ambient light and proximity sensor over an i2c interface. 15 15 16 + allOf: 17 + - $ref: ../common.yaml# 18 + 16 19 properties: 17 20 compatible: 18 21 enum: ··· 28 25 29 26 interrupts: 30 27 maxItems: 1 28 + 29 + proximity-near-level: true 31 30 32 31 required: 33 32 - compatible ··· 49 44 stk3310@48 { 50 45 compatible = "sensortek,stk3310"; 51 46 reg = <0x48>; 47 + proximity-near-level = <25>; 52 48 interrupt-parent = <&gpio1>; 53 49 interrupts = <5 IRQ_TYPE_LEVEL_LOW>; 54 50 };