1*6be33864SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2*6be33864SEmmanuel Vadot%YAML 1.2 3*6be33864SEmmanuel Vadot--- 4*6be33864SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/light/ams,as73211.yaml# 5*6be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*6be33864SEmmanuel Vadot 7*6be33864SEmmanuel Vadottitle: AMS AS73211 JENCOLOR(R) Digital XYZ Sensor 8*6be33864SEmmanuel Vadot 9*6be33864SEmmanuel Vadotmaintainers: 10*6be33864SEmmanuel Vadot - Christian Eggers <ceggers@arri.de> 11*6be33864SEmmanuel Vadot 12*6be33864SEmmanuel Vadotdescription: | 13*6be33864SEmmanuel Vadot XYZ True Color Sensor with I2C Interface 14*6be33864SEmmanuel Vadot https://ams.com/documents/20143/36005/AS73211_DS000556_3-01.pdf/a65474c0-b302-c2fd-e30a-c98df87616df 15*6be33864SEmmanuel Vadot 16*6be33864SEmmanuel Vadotproperties: 17*6be33864SEmmanuel Vadot compatible: 18*6be33864SEmmanuel Vadot enum: 19*6be33864SEmmanuel Vadot - ams,as73211 20*6be33864SEmmanuel Vadot 21*6be33864SEmmanuel Vadot reg: 22*6be33864SEmmanuel Vadot description: 23*6be33864SEmmanuel Vadot I2C address of the device (0x74...0x77). 24*6be33864SEmmanuel Vadot maxItems: 1 25*6be33864SEmmanuel Vadot 26*6be33864SEmmanuel Vadot interrupts: 27*6be33864SEmmanuel Vadot description: 28*6be33864SEmmanuel Vadot Interrupt specifier for the READY interrupt generated by the device. 29*6be33864SEmmanuel Vadot maxItems: 1 30*6be33864SEmmanuel Vadot 31*6be33864SEmmanuel Vadotrequired: 32*6be33864SEmmanuel Vadot - compatible 33*6be33864SEmmanuel Vadot - reg 34*6be33864SEmmanuel Vadot 35*6be33864SEmmanuel VadotadditionalProperties: false 36*6be33864SEmmanuel Vadot 37*6be33864SEmmanuel Vadotexamples: 38*6be33864SEmmanuel Vadot - | 39*6be33864SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 40*6be33864SEmmanuel Vadot 41*6be33864SEmmanuel Vadot i2c { 42*6be33864SEmmanuel Vadot #address-cells = <1>; 43*6be33864SEmmanuel Vadot #size-cells = <0>; 44*6be33864SEmmanuel Vadot 45*6be33864SEmmanuel Vadot as73211@74 { 46*6be33864SEmmanuel Vadot compatible = "ams,as73211"; 47*6be33864SEmmanuel Vadot reg = <0x74>; 48*6be33864SEmmanuel Vadot pinctrl-names = "default"; 49*6be33864SEmmanuel Vadot pinctrl-0 = <&pinctrl_color_sensor>; 50*6be33864SEmmanuel Vadot interrupt-parent = <&gpio2>; 51*6be33864SEmmanuel Vadot interrupts = <19 IRQ_TYPE_EDGE_RISING>; /* READY */ 52*6be33864SEmmanuel Vadot }; 53*6be33864SEmmanuel Vadot }; 54*6be33864SEmmanuel Vadot... 55