xref: /freebsd/sys/contrib/device-tree/Bindings/iio/light/max44009.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* MAX44009 Ambient Light Sensor
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot
5*c66ec88fSEmmanuel Vadot- compatible: should be "maxim,max44009"
6*c66ec88fSEmmanuel Vadot- reg: the I2C address of the device (default is <0x4a>)
7*c66ec88fSEmmanuel Vadot
8*c66ec88fSEmmanuel VadotOptional properties:
9*c66ec88fSEmmanuel Vadot
10*c66ec88fSEmmanuel Vadot- interrupts: interrupt mapping for GPIO IRQ. Should be configured with
11*c66ec88fSEmmanuel Vadot  IRQ_TYPE_EDGE_FALLING.
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel VadotRefer to interrupt-controller/interrupts.txt for generic interrupt client
14*c66ec88fSEmmanuel Vadotnode bindings.
15*c66ec88fSEmmanuel Vadot
16*c66ec88fSEmmanuel VadotExample:
17*c66ec88fSEmmanuel Vadot
18*c66ec88fSEmmanuel Vadotlight-sensor@4a {
19*c66ec88fSEmmanuel Vadot	compatible = "maxim,max44009";
20*c66ec88fSEmmanuel Vadot	reg = <0x4a>;
21*c66ec88fSEmmanuel Vadot
22*c66ec88fSEmmanuel Vadot	interrupt-parent = <&gpio1>;
23*c66ec88fSEmmanuel Vadot	interrupts = <17 IRQ_TYPE_EDGE_FALLING>;
24*c66ec88fSEmmanuel Vadot};
25