1*c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 2*c66ec88fSEmmanuel Vadot%YAML 1.2 3*c66ec88fSEmmanuel Vadot--- 4*c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/iio/light/noa1305.yaml# 5*c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*c66ec88fSEmmanuel Vadot 7*c66ec88fSEmmanuel Vadottitle: ON Semiconductor NOA1305 Ambient Light Sensor 8*c66ec88fSEmmanuel Vadot 9*c66ec88fSEmmanuel Vadotmaintainers: 10*c66ec88fSEmmanuel Vadot - Martyn Welch <martyn.welch@collabora.com> 11*c66ec88fSEmmanuel Vadot 12*c66ec88fSEmmanuel Vadotdescription: | 13*c66ec88fSEmmanuel Vadot Ambient sensing with an i2c interface. 14*c66ec88fSEmmanuel Vadot 15*c66ec88fSEmmanuel Vadot https://www.onsemi.com/pub/Collateral/NOA1305-D.PDF 16*c66ec88fSEmmanuel Vadot 17*c66ec88fSEmmanuel Vadotproperties: 18*c66ec88fSEmmanuel Vadot compatible: 19*c66ec88fSEmmanuel Vadot enum: 20*c66ec88fSEmmanuel Vadot - onnn,noa1305 21*c66ec88fSEmmanuel Vadot 22*c66ec88fSEmmanuel Vadot reg: 23*c66ec88fSEmmanuel Vadot maxItems: 1 24*c66ec88fSEmmanuel Vadot 25*c66ec88fSEmmanuel Vadot vin-supply: 26*c66ec88fSEmmanuel Vadot description: Regulator that provides power to the sensor 27*c66ec88fSEmmanuel Vadot 28*c66ec88fSEmmanuel Vadotrequired: 29*c66ec88fSEmmanuel Vadot - compatible 30*c66ec88fSEmmanuel Vadot - reg 31*c66ec88fSEmmanuel Vadot 32*c66ec88fSEmmanuel VadotadditionalProperties: false 33*c66ec88fSEmmanuel Vadot 34*c66ec88fSEmmanuel Vadotexamples: 35*c66ec88fSEmmanuel Vadot - | 36*c66ec88fSEmmanuel Vadot i2c { 37*c66ec88fSEmmanuel Vadot 38*c66ec88fSEmmanuel Vadot #address-cells = <1>; 39*c66ec88fSEmmanuel Vadot #size-cells = <0>; 40*c66ec88fSEmmanuel Vadot 41*c66ec88fSEmmanuel Vadot light@39 { 42*c66ec88fSEmmanuel Vadot compatible = "onnn,noa1305"; 43*c66ec88fSEmmanuel Vadot reg = <0x39>; 44*c66ec88fSEmmanuel Vadot }; 45*c66ec88fSEmmanuel Vadot }; 46*c66ec88fSEmmanuel Vadot... 47