diff options
Diffstat (limited to 'sensors/sensor_def_qcomdev.conf')
| -rw-r--r-- | sensors/sensor_def_qcomdev.conf | 260 |
1 files changed, 260 insertions, 0 deletions
diff --git a/sensors/sensor_def_qcomdev.conf b/sensors/sensor_def_qcomdev.conf new file mode 100644 index 0000000..9df54eb --- /dev/null +++ b/sensors/sensor_def_qcomdev.conf @@ -0,0 +1,260 @@ +# +# File: sensor_def_qcomdev.conf +# +# Tihs file contains default sensor registry values for Qualcomm development +# test platforms. +# +# Copyright (c) 2013-2015 Qualcomm Technologies, Inc. +# All Rights Reserved. +# Confidential and Proprietary - Qualcomm Technologies, Inc. + + +# File format: +# +# Lines starting with "#" are comments and ignored. +# +# File metadata uses this format: +# :key value1 value2 +# +# The following keys are defined: +# - "version" : value1 is non-zero positive version number of the file. This +# number will be stored in the sensors registry. It should be equal to the +# largest version of any item. It will be saved in the sensors registry for +# later use when initializing values. See the item format below. +# This value should only be specified once in the file. +# +# - "hardware" : The value1 will be compared to the "Hardware" string from +# the property of ro.board.platform. +# Items will only be used as default values in the registry if the hardware +# string value is a substring of the ro.board.platform string. +# This metadata key can be used more than once, so that one file can support +# more than one type of hardware. +# The value may be NULL, indicating common item values for all hardware. +# Common conf entries for multiple hardware can be mentioned as below. +# configuration below this string is common for 8952,8956 and 8974 +# :hardware 8952 8956 8974 +# hardware list gets overwritten with the new one every time when "hardware" +# tag appears while parsing conf file. +# +# - "platform" : Similar to the "hardware" key, but this string will need to +# match the text of either /sys/devices/soc0/hw_platform or +# /sys/devices/soc0/platform_subtype. +# Common conf entries for multiple platform can be mentioned as below. +# configuration below this string is common for MTP and QRD +# :platfrom MTP QRD +# platform list gets overwritten with the new one every time when "platfrom" +# tag appears while parsing conf file. +# +# +# - "soc_id" : Similar to the "hardware" key, but this string will need to +# match the text of /sys/devices/soc0/soc_id. +# Common conf entries for multiple soc_id can be mentioned as below. +# configuration below this string is common for soc_id 264 and 278 +# :soc_id 264 278 +# soc_id list gets overwritten with the new one every time when "soc_id" +# tag appears while parsing conf file. +# +# - "subtype" : Similar to the "hardware" key, but this string will need to +# match the text of /sys/devices/soc0/platform_subtype. +# Common conf entries for multiple subtype can be mentioned as below. +# configuration below this string is common for subtype X and Y +# :subtype X Y +# subtype list gets overwritten with the new one every time when "subtype" +# tag appears while parsing conf file. +# +# - "soc_rev" : Similar to the "hardware" key, but this string will need to +# match the text of /sys/devices/soc0/revision. +# Common conf entries for multiple soc_rev can be mentioned as below. +# configuration below this string is common for soc_rev 1.0,2.0 and 3.0 +# :soc_rev 1.0 2.0 3.0 +# soc_rev list gets overwritten with the new one every time when "soc_rev" +# tag appears while parsing conf file. +# +# - "property" : value1 is the Android system property key, and value2 is +# the desired property value. If the system property value matches the +# desired property value, then the following items will be applied. +# This metadata key can be used more than once, in which case the new +# property value overrides the old. +# value1 and 2 may be NULL, indicating common item values for all properties. +# +# Registry items are in lines with the following format: +# <itemID> <value> <version> +# Where: +# itemID is the numeric item ID defined in sns_reg_api_v02.h +# +# "value" is the numeric value of the item. +# +# "version" is a non-zero version of the item value. +# The version field will be compared against the previous saved +# value in the sensors registry. If this value is greater than the +# saved value, the default will be applied. Otherwise, the default +# will be skipped. +# +# Registry item values will only be applied if the hardware, platform, and +# property values match for the current hardware configuration. +# +# The numeric fields are parsed with the strtoull function, base 0. +# + +:version 0x00010001 + +####################################################################### +### 8952 Chipsets +####################################################################### +:hardware 8952 +:platform +:property +:subtype +# Use soc_id of msm8952(264) to indicate, this configuration is specific +# to msm8952 targets. This is needed as msm8952 and msm8976 share same +# hardware field. +# soc_id for msm8952 targets is 264 +# soc_id for apq8052 targets is 289 +:soc_id 264 289 +# Orientation of sensors +# accel x/y/z +700 2 0x00010001 #accel-x-axis +701 1 0x00010001 #accel-y-axis +702 -3 0x00010001 #accel-z-axis +# gyro x/y/z +800 2 0x00010001 #gyro-x-axis +801 1 0x00010001 #gyro-y-axis +802 -3 0x00010001 #gyro-z-axis +# mag x/y/z +900 -2 0x00010001 #mag-x-axis +901 -1 0x00010001 #mag-y-axis +902 -3 0x00010001 #mag-z-axis +# SSI SMGR Version +1900 1 0x00010001 #Maj Ver +1901 1 0x00010001 #Min Ver + +# SAM config +# +203 65536 0x10001 # AMD +225 983040 0x10001 # RMD +504 65536 0x10001 # Gyro Cal +1703 65536 0x10001 # Ped +2800 983040 0x10001 # basic ges +2900 983040 0x10001 # Facing +3400 65536 0x10001 # CMC +609 983040 0x10001 # FMV +1005 983040 0x10001 # Grav +1103 983040 0x10001 # orientation +3000 983040 0x10001 # gyro quat +3100 983040 0x10001 # rot vec +3500 983040 0x10001 # game rv +4112 65536 0x10001 # SMD +4103 5 0x10001 # SMD_ACC_WIN_TIME + +# SSI SMGR Cfg 0 BMI160 FIFO +1903 0x0f4d0fd654c7eab5 0x00010001 #UUID +1902 0xd646cb83ec0cd5a5 0x00010001 #UUID +1904 10000 0x00010001 #off_to_idle +1905 30000 0x00010001 #idle_to_ready +1906 4 0x00010001 #i2c_bus +1907 1000 0x00010001 #reg_group_id +1908 0 0x00010001 #cal_grp_id +1909 42 0x00010001 #gpio1 +1910 0xFFFF 0x00010001 #gpio2 +1911 0 0x00010001 #sensor_id +1912 0x68 0x00010001 #i2c_address +1913 1 0x00010001 #data_type1 +1914 0 0x00010001 #data_type2 +1915 -1 0x00010001 #rel_sns_idx +1916 1 0x00010001 #sens_default +1917 0xD0 0x00010001 #flags +1982 0 0x00010001 #device_select + +# SSI SMGR Cfg 1 BMG160 FIFO +1919 0x0f4d0fd654c7eab5 0x00010001 #UUID +1918 0xd646cb83ec0cd5a5 0x00010001 #UUID +1920 15000 0x00010001 #off_to_idle +1921 25000 0x00010001 #idle_to_ready +1922 4 0x00010001 #i2c_bus +1923 1010 0x00010001 #reg_group_id +1924 10 0x00010001 #cal_grp_id +1925 37 0x00010001 #gpio1 +1926 0xFFFF 0x00010001 #gpio2 +1927 10 0x00010001 #sensor_id +1928 0x68 0x00010001 #i2c_address +1929 3 0x00010001 #data_type1 +1930 0 0x00010001 #data_type2 +1931 -1 0x00010001 #rel_sns_idx +1932 4 0x00010001 #sens_default +1933 0XD0 0x00010001 #flags +1983 0 0x00010001 #device_select + +# SSI SMGR Cfg 3 MMC3530 +1951 0x7fc31ec17f1c0abd 0x00010001 #UUID +1950 0x5c473990a806b072 0x00010001 #UUID +1952 3000 0x00010001 #off_to_idle +1953 10000 0x00010001 #idle_to_ready +1954 4 0x00010001 #i2c_bus +1955 1020 0x00010001 #reg_group_id +1956 0xFFFF 0x00010001 #cal_grp_id +1957 0xFFFF 0x00010001 #gpio1 +1958 0xFFFF 0x00010001 #gpio2 +1959 20 0x00010001 #sensor_id +1960 0x30 0x00010001 #i2c_address +1961 2 0x00010001 #data_type1 +1962 0 0x00010001 #data_type2 +1963 -1 0x00010001 #rel_sns_idx +1964 1 0x00010001 #sens_default +1965 0 0x00010001 #flags +1985 0 0x00010001 #device_select + +# SSI SMGR Cfg 4: LTR579 POLL +1967 0xb29f1b32d2e838b2 0x00010001 #UUID should same to ADSP +1966 0x544031cd12c64e32 0x00010001 #UUID +1968 5000 0x00010001 #off_to_idle +1969 0 0x00010001 #idle_to_ready +1970 4 0x00010001 #i2c_bus +1971 1040 0x00010001 #reg_group_id +1972 0xFFFF 0x00010001 #cal_grp_id +1973 0xFFFF 0x00010001 #gpio1 +1974 0xFFFF 0x00010001 #gpio2 +1975 40 0x00010001 #sensor_id +1976 0x53 0x00010001 #i2c_address +1977 5 0x00010001 #data_type1 +1978 6 0x00010001 #data_type2 +1979 -1 0x00010001 #rel_sns_idx +1980 0 0x00010001 #sens_default +1981 0x00 0x00010001 #flags +1986 0 0x00010001 #device_select + +# SSI SMGR Version +3600 1 0x00010001 #Maj Ver +3601 1 0x00010001 #Min Ver + +# QMAG_CAL Configuration +3801 1 0x00010001 +3804 0x000A0000 0x00010001 #Sample Rate + +# +# SSI GPIO configuration +#----------------------------- +2700 1 0x00010001 #maj ver +2701 1 0x00010001 #min ver +2702 14 0x00010001 #I2C SDA_1 +2703 15 0x00010001 #I2C SCL_1 +2704 0xFFFF 0x00010001 #I2C SDA_2 +2705 0xFFFF 0x00010001 #I2C SCL_2 +2706 132 0x00010001 #RESET pin +2709 42 0x00010001 #ACCEL DRI +2710 37 0x00010001 #GYRO DRI +2711 0xFFFF 0x00010001 #MAG DRI +2712 0xFFFF 0x00010001 #ALS/PRX INT +2714 0xFFFF 0x00010001 #PRESS INT + + +# AMD Cfg +200 0x000A0000 0x00010001 #AMD Default Sample rate +201 0x00000CDC 0x00010001 #AMD INT Cfg param1 +202 0x00008000 0x00010001 #AMD INT Cfg param2 + +# RMD Cfg +220 0x001E0000 0x00010001 #RMD Default Sample rate +221 0X0001B333 0x00010001 #RMD INT Cfg param1 +222 0x00003333 0x00010001 #RMD INT Cfg param2 +223 0x00050000 0x00010001 #RMD INT Cfg param3 +224 0x00003333 0x00010001 #RMD INT Cfg param4 |
