Path: blob/master/Documentation/devicetree/bindings/iio/light/stk33xx.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/light/stk33xx.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: |7Sensortek STK33xx I2C Ambient Light and Proximity sensor89maintainers:10- Jonathan Cameron <jic23@kernel.org>1112description: |13Ambient light and proximity sensor over an i2c interface.1415allOf:16- $ref: ../common.yaml#1718properties:19compatible:20oneOf:21- enum:22- sensortek,stk331023- sensortek,stk331124- sensortek,stk333525- items:26- enum:27- sensortek,stk301328- const: sensortek,stk33102930reg:31maxItems: 13233interrupts:34maxItems: 13536proximity-near-level: true3738required:39- compatible40- reg4142additionalProperties: false4344examples:45- |46#include <dt-bindings/interrupt-controller/irq.h>4748i2c {4950#address-cells = <1>;51#size-cells = <0>;5253stk3310@48 {54compatible = "sensortek,stk3310";55reg = <0x48>;56proximity-near-level = <25>;57interrupt-parent = <&gpio1>;58interrupts = <5 IRQ_TYPE_LEVEL_LOW>;59};60};61...626364