mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00

Extend avago,apds9300.yaml schema file to support apds9306 device. Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Subhajit Ghosh <subhajit.ghosh@tweaklogic.com> Link: https://lore.kernel.org/r/20240309105031.10313-5-subhajit.ghosh@tweaklogic.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
54 lines
1.1 KiB
YAML
54 lines
1.1 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/iio/light/avago,apds9300.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Avago Gesture/RGB/ALS/Proximity sensors
|
|
|
|
maintainers:
|
|
- Subhajit Ghosh <subhajit.ghosh@tweaklogic.com>
|
|
|
|
description: |
|
|
Datasheet: https://www.avagotech.com/docs/AV02-1077EN
|
|
Datasheet: https://www.avagotech.com/docs/AV02-4191EN
|
|
Datasheet: https://www.avagotech.com/docs/AV02-4755EN
|
|
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- avago,apds9300
|
|
- avago,apds9306
|
|
- avago,apds9960
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
vdd-supply: true
|
|
|
|
additionalProperties: false
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
|
|
i2c {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
light-sensor@39 {
|
|
compatible = "avago,apds9300";
|
|
reg = <0x39>;
|
|
interrupt-parent = <&gpio2>;
|
|
interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
|
|
vdd-supply = <®ulator_3v3>;
|
|
};
|
|
};
|
|
...
|