1 .. SPDX-License-Identifier: GPL-2.0 2 3 ====================== 4 Kernel driver apds990x 5 ====================== 6 7 Supported chips: 8 Avago APDS990X 9 10 Data sheet: 11 Not freely available 12 13 Author: 14 Samu Onkalo <samu.p.onkalo@nokia.com> 15 16 Description 17 ----------- 18 19 APDS990x is a combined ambient light and proxi 20 functionality are highly connected. ALS measur 21 while the proximity functionality is enabled. 22 23 ALS produces raw measurement values for two ch 24 (infrared + visible light) and IR only. Howeve 25 using clear channel only. Lux value and the th 26 might vary quite much depending the spectrum o 27 28 Driver makes necessary conversions to both dir 29 only lux values. Lux value is calculated using 30 channels. HW threshold level is calculated fro 31 with current type of the lightning. Sometimes 32 lead to false interrupt, but that doesn't harm 33 34 ALS contains 4 different gain steps. Driver au 35 selects suitable gain step. After each measure 36 is estimated and new measurement is triggered 37 38 Platform data can provide tuned values to the 39 values are known. Otherwise plain sensor defau 40 41 Proximity side is little bit simpler. There is 42 It produces directly usable values. 43 44 Driver controls chip operational state using p 45 Voltage regulators are controlled based on chi 46 47 SYSFS 48 ----- 49 50 51 chip_id 52 RO - shows detected chip type and vers 53 54 power_state 55 RW - enable / disable chip. Uses count 56 57 1 enables the chip 58 0 disables the chip 59 lux0_input 60 RO - measured lux value 61 62 sysfs_notify called when threshol 63 64 lux0_sensor_range 65 RO - lux0_input max value. 66 67 Actually never reaches since sens 68 to saturate much before that. Rea 69 on the light spectrum etc. 70 71 lux0_rate 72 RW - measurement rate in Hz 73 74 lux0_rate_avail 75 RO - supported measurement rates 76 77 lux0_calibscale 78 RW - calibration value. 79 80 Set to neutral value by default. 81 Output results are multiplied wit 82 value. 83 84 lux0_calibscale_default 85 RO - neutral calibration value 86 87 lux0_thresh_above_value 88 RW - HI level threshold value. 89 90 All results above the value 91 trigs an interrupt. 65535 (i.e. s 92 interrupt. 93 94 lux0_thresh_below_value 95 RW - LO level threshold value. 96 97 All results below the value 98 trigs an interrupt. 0 disables th 99 100 prox0_raw 101 RO - measured proximity value 102 103 sysfs_notify called when threshol 104 105 prox0_sensor_range 106 RO - prox0_raw max value (1023) 107 108 prox0_raw_en 109 RW - enable / disable proximity - uses 110 111 - 1 enables the proximity 112 - 0 disables the proximity 113 114 prox0_reporting_mode 115 RW - trigger / periodic. 116 117 In "trigger" mode the driver tell 118 values: 0 or prox0_sensor_range v 119 1023 means proximity. This causes 120 In "periodic" mode the driver rep 121 prox0_thresh_above. This causes m 122 _rough_ estimate about the distan 123 124 prox0_reporting_mode_avail 125 RO - accepted values to prox0_reportin 126 127 prox0_thresh_above_value 128 RW - threshold level which trigs proxi
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.