16be33864SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 26be33864SEmmanuel Vadot%YAML 1.2 36be33864SEmmanuel Vadot--- 46be33864SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/light/ams,as73211.yaml# 56be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 66be33864SEmmanuel Vadot 7*01950c46SEmmanuel Vadottitle: AMS AS73211 JENCOLOR(R) Digital XYZ Sensor and AMS AS7331 UV Sensor 86be33864SEmmanuel Vadot 96be33864SEmmanuel Vadotmaintainers: 106be33864SEmmanuel Vadot - Christian Eggers <ceggers@arri.de> 116be33864SEmmanuel Vadot 126be33864SEmmanuel Vadotdescription: | 13*01950c46SEmmanuel Vadot AMS AS73211 XYZ True Color Sensor with I2C Interface 146be33864SEmmanuel Vadot https://ams.com/documents/20143/36005/AS73211_DS000556_3-01.pdf/a65474c0-b302-c2fd-e30a-c98df87616df 15*01950c46SEmmanuel Vadot AMS AS7331 UVA, UVB and UVC Sensor with I2C Interface 16*01950c46SEmmanuel Vadot https://ams.com/documents/20143/9106314/AS7331_DS001047_4-00.pdf 176be33864SEmmanuel Vadot 186be33864SEmmanuel Vadotproperties: 196be33864SEmmanuel Vadot compatible: 206be33864SEmmanuel Vadot enum: 216be33864SEmmanuel Vadot - ams,as73211 22*01950c46SEmmanuel Vadot - ams,as7331 236be33864SEmmanuel Vadot 246be33864SEmmanuel Vadot reg: 256be33864SEmmanuel Vadot description: 266be33864SEmmanuel Vadot I2C address of the device (0x74...0x77). 276be33864SEmmanuel Vadot maxItems: 1 286be33864SEmmanuel Vadot 296be33864SEmmanuel Vadot interrupts: 306be33864SEmmanuel Vadot description: 316be33864SEmmanuel Vadot Interrupt specifier for the READY interrupt generated by the device. 326be33864SEmmanuel Vadot maxItems: 1 336be33864SEmmanuel Vadot 346be33864SEmmanuel Vadotrequired: 356be33864SEmmanuel Vadot - compatible 366be33864SEmmanuel Vadot - reg 376be33864SEmmanuel Vadot 386be33864SEmmanuel VadotadditionalProperties: false 396be33864SEmmanuel Vadot 406be33864SEmmanuel Vadotexamples: 416be33864SEmmanuel Vadot - | 426be33864SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 436be33864SEmmanuel Vadot 446be33864SEmmanuel Vadot i2c { 456be33864SEmmanuel Vadot #address-cells = <1>; 466be33864SEmmanuel Vadot #size-cells = <0>; 476be33864SEmmanuel Vadot 486be33864SEmmanuel Vadot as73211@74 { 496be33864SEmmanuel Vadot compatible = "ams,as73211"; 506be33864SEmmanuel Vadot reg = <0x74>; 516be33864SEmmanuel Vadot pinctrl-names = "default"; 526be33864SEmmanuel Vadot pinctrl-0 = <&pinctrl_color_sensor>; 536be33864SEmmanuel Vadot interrupt-parent = <&gpio2>; 546be33864SEmmanuel Vadot interrupts = <19 IRQ_TYPE_EDGE_RISING>; /* READY */ 556be33864SEmmanuel Vadot }; 566be33864SEmmanuel Vadot }; 576be33864SEmmanuel Vadot... 58