Loading Documentation/devicetree/bindings/input/misc/ap3426.txt 0 → 100644 +66 −0 Original line number Diff line number Diff line AP3426 3-in-1 digital ALS+PS+IRLED module AP3426 is a module integrated with a digital ambient light sensor, a proximity sensor, and an IR LED in a single package. It provides multiple gain ambient light detection as well as external object distance detection. It can be connected to host processor via i2c. Required properties: - compatible : Should be "di,ap3426". - reg : i2c slave address of this device. - vdd-supply : Analog power supply needed to power up this device. - vio-supply : Digital IO power supply needed for IO and i2c. - interrupt-parent : The interrupt controler this device connected to. - interrupts : L/P sample interrupt to indicate new data ready. - pinctrl-names : pinctrl configuration names of this device. Should be "default" and "sleep". - pinctrl-0 : Should specify pin control groups used for this sensor. - pinctrl-1 : Should specify pin control groups used for this sensor. - di,irq-gpio : GPIO pin for interrupt of this device. - di,als-cal : Coefficient to calibrate this device for specific board. - di,als-gain : ALS gain configuration for the device. 0 for 32768, 1 for 8192, 2 for 2048 and 3 for 512. - di,als-persist : Interrupt persist configuration for the device. It indicates how much conversion cycles will trigger ALS interrupt. The maximum value is 63. - di,ps-led-driver : Specifies proximity LED driver ratio based on 140mA of this device. 0 for 16.7%, 1 for 33.3%, 2 for 66.7% and 3 for 100%. - di,ps-mean-time : Configures response time of proximity detection cycle. 0 for conversion time 5ms, 1 for conversion time 9.6ms, 2 for conversion time 14.1ms and 3 for conversion time 18.7ms. - di,ps-integrated-time: Selects the duration at which the device's ADC will sample the photodiode current signal. - di,wait-time : Idle frames inserted to the device's conversion cycle. Each frame is 5ms and the maximum number of frames is 255. Optional properties: - di,ps-distance-table : Calibrated ADC value of proximity sensor to indicate the distance of the object in centimeter. Example: i2c@78b5000 { /* BLSP1 QUP1 */ di@1e { compatible = "di,ap3426"; reg = <0x1e>; vdd-supply = <&pm8909_l17>; vio-supply = <&pm8909_l6>; interrupt-parent = <&msm_gpio>; interrupts = <94 0x2002>; pinctrl-names = "default","sleep"; pinctrl-0 = <&ap3426_default>; pinctrl-1 = <&ap3426_sleep>; di,irq-gpio = <&msm_gpio 94 0x2002>; di,als-cal = <6>; di,als-gain = <0>; di,als-persist = <1>; di,ps-gain = <1>; di,ps-persist = <2>; di,ps-led-driver = <3>; di,ps-mean-time = <0>; di,ps-integrated-time = <0>; di,wait-time = <0>; di,ps-distance-table = <1023, 740, 340, 200, 180, 176>; }; }; Documentation/devicetree/bindings/vendor-prefixes.txt +1 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ cirrus Cirrus Logic, Inc. cortina Cortina Systems, Inc. dallas Maxim Integrated Products (formerly Dallas Semiconductor) denx Denx Software Engineering di Dyna Image Corporation emmicro EM Microelectronic epson Seiko Epson Corp. est ESTeem Wireless Modems Loading Loading
Documentation/devicetree/bindings/input/misc/ap3426.txt 0 → 100644 +66 −0 Original line number Diff line number Diff line AP3426 3-in-1 digital ALS+PS+IRLED module AP3426 is a module integrated with a digital ambient light sensor, a proximity sensor, and an IR LED in a single package. It provides multiple gain ambient light detection as well as external object distance detection. It can be connected to host processor via i2c. Required properties: - compatible : Should be "di,ap3426". - reg : i2c slave address of this device. - vdd-supply : Analog power supply needed to power up this device. - vio-supply : Digital IO power supply needed for IO and i2c. - interrupt-parent : The interrupt controler this device connected to. - interrupts : L/P sample interrupt to indicate new data ready. - pinctrl-names : pinctrl configuration names of this device. Should be "default" and "sleep". - pinctrl-0 : Should specify pin control groups used for this sensor. - pinctrl-1 : Should specify pin control groups used for this sensor. - di,irq-gpio : GPIO pin for interrupt of this device. - di,als-cal : Coefficient to calibrate this device for specific board. - di,als-gain : ALS gain configuration for the device. 0 for 32768, 1 for 8192, 2 for 2048 and 3 for 512. - di,als-persist : Interrupt persist configuration for the device. It indicates how much conversion cycles will trigger ALS interrupt. The maximum value is 63. - di,ps-led-driver : Specifies proximity LED driver ratio based on 140mA of this device. 0 for 16.7%, 1 for 33.3%, 2 for 66.7% and 3 for 100%. - di,ps-mean-time : Configures response time of proximity detection cycle. 0 for conversion time 5ms, 1 for conversion time 9.6ms, 2 for conversion time 14.1ms and 3 for conversion time 18.7ms. - di,ps-integrated-time: Selects the duration at which the device's ADC will sample the photodiode current signal. - di,wait-time : Idle frames inserted to the device's conversion cycle. Each frame is 5ms and the maximum number of frames is 255. Optional properties: - di,ps-distance-table : Calibrated ADC value of proximity sensor to indicate the distance of the object in centimeter. Example: i2c@78b5000 { /* BLSP1 QUP1 */ di@1e { compatible = "di,ap3426"; reg = <0x1e>; vdd-supply = <&pm8909_l17>; vio-supply = <&pm8909_l6>; interrupt-parent = <&msm_gpio>; interrupts = <94 0x2002>; pinctrl-names = "default","sleep"; pinctrl-0 = <&ap3426_default>; pinctrl-1 = <&ap3426_sleep>; di,irq-gpio = <&msm_gpio 94 0x2002>; di,als-cal = <6>; di,als-gain = <0>; di,als-persist = <1>; di,ps-gain = <1>; di,ps-persist = <2>; di,ps-led-driver = <3>; di,ps-mean-time = <0>; di,ps-integrated-time = <0>; di,wait-time = <0>; di,ps-distance-table = <1023, 740, 340, 200, 180, 176>; }; };
Documentation/devicetree/bindings/vendor-prefixes.txt +1 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ cirrus Cirrus Logic, Inc. cortina Cortina Systems, Inc. dallas Maxim Integrated Products (formerly Dallas Semiconductor) denx Denx Software Engineering di Dyna Image Corporation emmicro EM Microelectronic epson Seiko Epson Corp. est ESTeem Wireless Modems Loading