mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
![Jonathan Cameron](/assets/img/avatar_default.png)
For the example, node name is uv-sensor because the standard option of light-sensor seemed a little too generic for this. This one could have just been moved to trivial-devices.yaml but for now I have kept it as a separate doc. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Rob Herring <robh@kernel.org> Cc: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> Link: https://lore.kernel.org/r/20201031184854.745828-21-jic23@kernel.org
42 lines
783 B
YAML
42 lines
783 B
YAML
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/iio/light/st,uvis25.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: ST UVIS25 uv sensor
|
|
|
|
maintainers:
|
|
- Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
|
|
|
|
properties:
|
|
compatible:
|
|
const: st,uvis25
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
additionalProperties: false
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
i2c {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
uv-sensor@47 {
|
|
compatible = "st,uvis25";
|
|
reg = <0x47>;
|
|
interrupt-parent = <&gpio0>;
|
|
interrupts = <0 IRQ_TYPE_EDGE_RISING>;
|
|
};
|
|
};
|
|
...
|