Path: blob/main/sys/contrib/device-tree/Bindings/iio/light/cm3605.txt
48406 views
Capella Microsystems CM36051Ambient Light and Short Distance Proximity Sensor23The CM3605 is an entirely analog part which however require quite a bit of4software logic to interface a host operating system.56This ALS and proximity sensor was one of the very first deployed in mobile7handsets, notably it is used in the very first Nexus One Android phone from82010.910Required properties:11- compatible: must be: "capella,cm3605"12- aset-gpios: GPIO line controlling the ASET line (drive low13to activate the ALS, should be flagged GPIO_ACTIVE_LOW)14- interrupts: the IRQ line (such as a GPIO) that is connected to15the POUT (proximity sensor out) line. The edge detection must16be set to IRQ_TYPE_EDGE_BOTH so as to detect movements toward17and away from the proximity sensor.18- io-channels: the ADC channel used for converting the voltage from19AOUT to a digital representation.20- io-channel-names: must be "aout"2122Optional properties:23- vdd-supply: regulator supplying VDD power to the component.24- capella,aset-resistance-ohms: the sensitivity calibration resistance,25in Ohms. Valid values are: 50000, 100000, 300000 and 600000,26as these are the resistance values that we are supplied with27calibration curves for. If not supplied, 100 kOhm will be assumed28but it is strongly recommended to supply this.2930Example:3132cm3605 {33compatible = "capella,cm3605";34vdd-supply = <&foo_reg>;35aset-gpios = <&foo_gpio 1 GPIO_ACTIVE_LOW>;36capella,aset-resistance-ohms = <100000>;37interrupts = <1 IRQ_TYPE_EDGE_BOTH>;38io-channels = <&adc 0x01>;39io-channel-names = "aout";40};414243