platina: Regenetaye vendor tree

Signed-off-by: HeroBuxx <me@herobuxx.me>
This commit is contained in:
HeroBuxx
2026-08-06 01:44:37 +00:00
commit 4a3513b175
620 changed files with 18318 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
sensors.ssc.so
+545
View File
@@ -0,0 +1,545 @@
#
# File: sensor_def_qcomdev.conf
#
# Tihs file contains default sensor registry values for Qualcomm development
# test platforms.
#
# Copyright (c) 2013-2017 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.
#
# - "sub_id" : Similar to the "hardware" key, but this string will need to
# match the text of /sys/devices/soc0/platform_subtype_id.
# Common conf entries for multiple sub_id can be mentioned as below.
# configuration below this string is common for sub_id
# :sub_id 0 10
# sub_id list gets overwritten with the new one every time when "sub_id"
# 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.
#
# - "plat_ver" : Similar to the "hardware" key, but this string will need to
# match the text of /sys/devices/soc0/platform_version.
# Common conf entries for multiple plat_ver can be mentioned as below.
# configuration below this string is common for plat_ver 131072 and 1179648
# :plat_ver 131072 1179648
# plat_ver list gets overwritten with the new one every time when "plat_ver"
# 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 0x00010006
#######################################################################
### sdm660 Chipsets
#######################################################################
# msm8976,apq8076 and msm8956 share the same property(ro.board.platfrom)
# as msm8952.
# use 8952 as hardware,8976,8076 and 8956 identification is done by
# soc_id which is unique.
:hardware sdm660
:platform
:property
# soc_id for msm8976 targets is 278
# soc_id for apq8076 targets is 277
# soc_id for msm8956 targets is 266
# Below configuration is common for msm8976,apq8076 and msm8956
:soc_id
:soc_rev
:subtype
# Orientation of sensors
# accel x/y/z
700 2 0x00010004 #accel-x-axis
701 1 0x00010004 #accel-y-axis
702 -3 0x00010004 #accel-z-axis
# accel x/y/z for ICM406xx
720 -1 0x00010004 #accel-x-axis
721 2 0x00010004 #accel-y-axis
722 -3 0x00010004 #accel-z-axis
# gyro x/y/z
800 2 0x00010004 #gyro-x-axis
801 1 0x00010004 #gyro-y-axis
802 -3 0x00010004 #gyro-z-axis
# mag x/y/z
900 11 0x00010002 #mag-x-axis
901 12 0x00010002 #mag-y-axis
902 13 0x00010006 #mag-z-axis
# SSI SMGR Version
1900 0 0x00010002 #Maj Ver
1901 2 0x00010002 #Min Ver
# SAM config
#
203 65536 0x00010002 # AMD
225 983040 0x00010002 # RMD
504 65536 0x00010002 # Gyro Cal
1703 65536 0x00010002 # Ped
2800 983040 0x00010002 # basic ges
2900 983040 0x00010002 # Facing
3400 65536 0x00010002 # CMC
609 983040 0x00010002 # FMV
1005 983040 0x00010002 # Grav
1103 983040 0x00010002 # orientation
3000 983040 0x00010002 # gyro quat
3100 983040 0x00010002 # rot vec
3500 983040 0x00010002 # game rv
4112 65536 0x00010002 # SMD
4103 5 0x00010002 # SMD_ACC_WIN_TIME
#AMD parameters
200 0x000a0000 0x00010002 #AMD_ACC_SAMP_RATE_HZ_Q16
201 0x00000cd2 0x00010002 #AMD_INT_cfg_prm1
202 0x00008000 0x00010002 #AMD_INT_cfg_prm2
#RMD parameters
220 0x001e0000 0x00010002 #RMD_ACC_SAMP_RATE_HZ_Q16
221 0x0001b333 0x00010002 #RMD_INT_cfg_prm1
222 0x00003333 0x00010002 #RMD_INT_cfg_prm2
223 0x00001657 0x00010002 #RMD_INT_cfg_prm3
224 0x00003333 0x00010002 #RMD_INT_cfg_prm4
# DEVICEINFO ACCEL
2000 2 0x00010002 # set to 1 to enable
2001 2 0x00010002 # set this to number of accel sensors you want to auto-detect eg: 2 if there are 2 different accel sensors
# SSI SMGR Cfg 0 BMI160 FIFO ACCEL
2002 0xd646cb83ec0cd5a5 0x00010002 #UUID
2003 0x0f4d0fd654c7eab5 0x00010002 #UUID
2004 10000 0x00010002 #off_to_idle
2005 100000 0x00010002 #idle_to_ready
2006 69 0x00010006 #gpio1
2007 1000 0x00010002 #reg_group_id
2008 0 0x00010002 #cal_grp_id
2009 0x1001 0x00010002 #I2C_BUS
2010 0 0x00010002 #CS for SPI
2011 2 0x00010002 #SENSTIVITY
2012 0xD0 0x00010002 #flags
2068 0x8e 0x00010002 #vdd
2069 0x8e 0x00010002 #vddio
# SSI SMGR Cfg 1 ICM406XX ACCEL
2013 0x0b25b8431bfd46bc 0x00010003 #UUID
2014 0xc14075963795c661 0x00010003 #UUID
2015 100000 0x00010003 #off_to_idle
2016 10000 0x00010003 #idle_to_ready
2017 69 0x00010006 #gpio1 [0xFFFF:Polling; 69:Acc Interrupt Pin]
2018 1001 0x00010003 #reg_group_id
2019 0 0x00010003 #cal_grp_id
2020 0x1001 0x00010003 #spi_bus
2021 0 0x00010003 #CS for SPI
2022 3 0x00010003 #sens_default
2023 0XD0 0x00010003 #flags [0:Polling; 0x80:DRI]
2070 0x8e 0x00010003 #vdd [0x93: 2.8V; 0x02: 1.8V]
2071 0x8e 0x00010003 #vddio [0x93: 2.8V; 0x02: 1.8V]
# DEVINFO GYRO
2100 2 0x00010002 # set to 1 to enable
2101 2 0x00010002 # set this to number of gyro sensors you want to auto-detect eg: 2 if there are 2 different gyro sensors
# SSI SMGR Cfg 0 BMI160 FIFO GYRO
2102 0xd646cb83ec0cd5a5 0x00010002 #UUID
2103 0x0f4d0fd654c7eab5 0x00010002 #UUID
2104 10000 0x00010002 #off_to_idle
2105 30000 0x00010002 #idle_to_ready
2106 69 0x00010006 #gpio1
2107 1010 0x00010002 #reg_group_id
2108 10 0x00010002 #cal_grp_id
2109 0x1001 0x00010002 #I2C_BUS
2110 0 0x00010002 #CS for SPI
2111 3 0x00010002 #sens_default
2112 0xD0 0x00010002 #flags
2168 0x8e 0x00010002 #vdd
2169 0x8e 0x00010002 #vddio
# SSI SMGR Cfg 1 ICM406XX GYRO
2113 0x0b25b8431bfd46bc 0x00010003 #UUID
2114 0xc14075963795c661 0x00010003 #UUID
2115 100000 0x00010003 #off_to_idle
2116 50000 0x00010003 #idle_to_ready
2117 69 0x00010006 #gpio1 [0xFFFF:Polling; 68:Gyro Interrupt Pin]
2118 1001 0x00010003 #reg_group_id
2119 10 0x00010003 #cal_grp_id
2120 0x1001 0x00010003 #spi_bus
2121 0 0x00010003 #CS for SPI
2122 7 0x00010003 #sens_default
2123 0xD0 0x00010003 #flags [0:Polling; 0x80:DRI]
2170 0x8e 0x00010003 #vdd [0x93: 2.8V; 0x02: 1.8V]
2171 0x8e 0x00010003 #vddio [0x93: 2.8V; 0x02: 1.8V]
# DEVINFO MAG
2200 2 0x00010002 # set to 1 to enable
2201 1 0x00010002 # set this to number of accel sensors you want to auto-detect eg: 2 if there are 2 different mag sensors
# SSI SMGR Cfg 0: AKM09916 POLL
2202 0x564d2b94fe80aef6 0x00010002 #UUID
2203 0x90611b98d561168f 0x00010002 #UUID
2204 3000 0x00010002 #off_to_idle
2205 10000 0x00010002 #idle_to_ready
2206 0xFFFF 0x00010002 #gpio1
2207 1020 0x00010002 #reg_group_id
2208 0xFFFF 0x00010002 #cal_grp_id
2209 3 0x00010002 #i2c_bus
2210 0x0c 0x00010002 #i2c_address
2211 0 0x00010002 #sens_default
2212 0x00 0x00010002 #flags
2268 0x8e 0x00010002 #vdd
2269 0x8e 0x00010002 #vddio
# DEVINFO PROX_LIGHT
2300 2 0x00010002 # set to 1 to enable
2301 1 0x00010002 # set this to number of accel sensors you want to auto-detect eg: 2 if there are 2 different PROX_LIGHT sensors
# SSI SMGR Cfg 0: TMD2725 DRI/FIFO
2302 0xf74705152d839a5f 0x00010002 #UUID_HIGH
2303 0x9d303762258c80a3 0x00010002 #UUID_LOW
2304 5000 0x00010002 #OFF_TO_IDLE
2305 5000 0x00010002 #IDLE_TO_READY
2306 71 0x00010002 #GPIO1
2307 1040 0x00010002 #REG_GROUP_ID
2308 0xFFFF 0x00010002 #CAL_PRI_GROUP_ID
2309 3 0x00010002 #I2C_BUS
2310 0x39 0x00010002 #i2c_address
2311 0 0x00010002 #SENSTIVITY
2312 0x80 0x00010002 #FLAGS
2368 0x83 0x00010002 #vdd
2369 0x8e 0x00010002 #vddio
# DEVINFO SAR
4500 2 0x00010005 # set to 1 to enable
4501 2 0x00010005 # set this to number of accel sensors you want to auto-detect eg: 2 if there are 2 different SAR sensors
# SSI SMGR Cfg 0: SX931X POLL
4502 0x664aa53de8b92aff 0x00010005 #UUID_HIGH
4503 0x39882043cbf738a3 0x00010005 #UUID_LOW
4504 10000 0x00010005 #OFF_TO_IDLE
4505 10000 0x00010005 #IDLE_TO_READY
4506 0xFFFF 0x00010005 #GPIO1
4507 1090 0x00010005 #REG_GROUP_ID
4508 0xFFFF 0x00010005 #CAL_PRI_GROUP_ID
4509 3 0x00010005 #I2C_BUS
4510 0x28 0x00010005 #i2c_address
4511 0 0x00010005 #SENSTIVITY
4512 0x00 0x00010005 #FLAGS
4568 0x83 0x00010005 #vdd
4569 0x8e 0x00010005 #vddio
# SSI SMGR Cfg 0: ADU1050 POLL
4513 0x664aa53de8b92a1f 0x00010005 #UUID_HIGH
4514 0x39882043ccf738a3 0x00010005 #UUID_LOW
4515 10000 0x00010005 #OFF_TO_IDLE
4516 10000 0x00010005 #IDLE_TO_READY
4517 0xFFFF 0x00010005 #GPIO1
4518 1091 0x00010005 #REG_GROUP_ID
4519 0xFFFF 0x00010005 #CAL_PRI_GROUP_ID
4520 3 0x00010005 #I2C_BUS
4521 0x2C 0x00010005 #i2c_address
4522 0 0x00010005 #SENSTIVITY
4523 0x00 0x00010005 #FLAGS
4570 0x83 0x00010005 #vdd
4571 0x8e 0x00010005 #vddio
# SSI SMGR Version
3600 1 0x00010002 #Maj Ver
3601 2 0x00010002 #Min Ver
# SSI GPIO configuration
#-----------------------------
2700 1 0x00010002 #maj ver
2701 0 0x00010002 #min ver
2706 0xFFFF 0x00010002 #RESET pin
# Mag Cal config
#-----------------------------
3801 1 0x00010002
3804 0x000a0000 0x00010002 #Sample Rate
#
# IOD AUTOCAL configuration
#-----------------------------
6000 1 0x00010002 #version
6001 1 0x00010002 #converge staus
6002 0x3F86CBFB 0x00010002 #coefficient
#
# SSC GPIO CFG (Unused)
#-----------------------------
#
6300 1 0x00010002 # version
6301 0x0104 0x00010002 # gpio num
6302 2 0x00010002 # active func sel
6303 1 0x00010002 # active dir
6304 0 0x00010002 # active pull
6305 3 0x00010002 # active drive
6306 2 0x00010002 # inactive func sel
6307 0 0x00010002 # inactive dir
6308 2 0x00010002 # inactive pull
6309 3 0x00010002 # inactive drive
6310 1 0x00010002 # version
6311 0x0105 0x00010002 # gpio num
6312 2 0x00010002 # active func sel
6313 1 0x00010002 # active dir
6314 0 0x00010002 # active pull
6315 3 0x00010002 # active drive
6316 2 0x00010002 # inactive func sel
6317 0 0x00010002 # inactive dir
6318 2 0x00010002 # inactive pull
6319 3 0x00010002 # inactive drive
6320 1 0x00010002 # version
6321 0x0106 0x00010002 # gpio num
6322 2 0x00010002 # active func sel
6323 1 0x00010002 # active dir
6324 0 0x00010002 # active pull
6325 3 0x00010002 # active drive
6326 2 0x00010002 # inactive func sel
6327 0 0x00010002 # inactive dir
6328 2 0x00010002 # inactive pull
6329 3 0x00010002 # inactive drive
6330 1 0x00010002 # version
6331 0x0107 0x00010002 # gpio num
6332 2 0x00010002 # active func sel
6333 0 0x00010002 # active dir
6334 0 0x00010002 # active pull
6335 3 0x00010002 # active drive
6336 2 0x00010002 # inactive func sel
6337 0 0x00010002 # inactive dir
6338 2 0x00010002 # inactive pull
6339 3 0x00010002 # inactive drive
6340 1 0x00010002 # version
6341 0x010C 0x00010002 # gpio num
6342 1 0x00010002 # active func sel
6343 1 0x00010002 # active dir
6344 0 0x00010002 # active pull
6345 3 0x00010002 # active drive
6346 1 0x00010002 # inactive func sel
6347 0 0x00010002 # inactive dir
6348 2 0x00010002 # inactive pull
6349 3 0x00010002 # inactive drive
6350 1 0x00010002 # version
6351 0x010D 0x00010002 # gpio num
6352 1 0x00010002 # active func sel
6353 0 0x00010002 # active dir
6354 0 0x00010002 # active pull
6355 3 0x00010002 # active drive
6356 1 0x00010002 # inactive func sel
6357 0 0x00010002 # inactive dir
6358 2 0x00010002 # inactive pull
6359 3 0x00010002 # inactive drive
6360 1 0x00010002 # version
6361 0x010E 0x00010002 # gpio num
6362 1 0x00010002 # active func sel
6363 1 0x00010002 # active dir
6364 0 0x00010002 # active pull
6365 3 0x00010002 # active drive
6366 1 0x00010002 # inactive func sel
6367 0 0x00010002 # inactive dir
6368 2 0x00010002 # inactive pull
6369 3 0x00010002 # inactive drive
6490 1 0x00010002 # version
6491 0x010F 0x00010002 # gpio num
6492 1 0x00010002 # active func sel
6493 0 0x00010002 # active dir
6494 0 0x00010002 # active pull
6495 3 0x00010002 # active drive
6496 1 0x00010002 # inactive func sel
6497 0 0x00010002 # inactive dir
6498 2 0x00010002 # inactive pull
6499 3 0x00010002 # inactive drive
6370 1 0x00010002 # version
6371 0x0110 0x00010002 # gpio num
6372 1 0x00010002 # active func sel
6373 1 0x00010002 # active dir
6374 0 0x00010002 # active pull
6375 3 0x00010002 # active drive
6376 1 0x00010002 # inactive func sel
6377 0 0x00010002 # inactive dir
6378 2 0x00010002 # inactive pull
6379 3 0x00010002 # inactive drive
6380 1 0x00010002 # version
6381 0x0111 0x00010002 # gpio num
6382 1 0x00010002 # active func sel
6383 1 0x00010002 # active dir
6384 0 0x00010002 # active pull
6385 3 0x00010002 # active drive
6386 1 0x00010002 # inactive func sel
6387 0 0x00010002 # inactive dir
6388 2 0x00010002 # inactive pull
6389 3 0x00010002 # inactive drive
#
# SSC GPIO CFG (Used)
#-----------------------------
6420 1 0x00010002 # version
6421 0x0100 0x00010002 # gpio num
6422 1 0x00010002 # active func sel
6423 1 0x00010002 # active dir
6424 0 0x00010002 # active pull
6425 0 0x00010002 # active drive
6426 1 0x00010002 # inactive func sel
6427 0 0x00010002 # inactive dir
6428 2 0x00010002 # inactive pull
6429 0 0x00010002 # inactive drive
6430 1 0x00010002 # version
6431 0x0102 0x00010002 # gpio num
6432 1 0x00010002 # active func sel
6433 1 0x00010002 # active dir
6434 0 0x00010002 # active pull
6435 0 0x00010002 # active drive
6436 1 0x00010002 # inactive func sel
6437 0 0x00010002 # inactive dir
6438 2 0x00010002 # inactive pull
6439 0 0x00010002 # inactive drive
6440 1 0x00010002 # version
6441 0x0103 0x00010002 # gpio num
6442 1 0x00010002 # active func sel
6443 1 0x00010002 # active dir
6444 0 0x00010002 # active pull
6445 0 0x00010002 # active drive
6446 1 0x00010002 # inactive func sel
6447 0 0x00010002 # inactive dir
6448 2 0x00010002 # inactive pull
6449 0 0x00010002 # inactive drive
6450 1 0x00010002 # version
6451 0x0108 0x00010002 # gpio num
6452 1 0x00010002 # active func sel
6453 1 0x00010002 # active dir
6454 0 0x00010002 # active pull
6455 3 0x00010002 # active drive
6456 1 0x00010002 # inactive func sel
6457 0 0x00010002 # inactive dir
6458 2 0x00010002 # inactive pull
6459 3 0x00010002 # inactive drive
6460 1 0x00010002 # version
6461 0x0109 0x00010002 # gpio num
6462 1 0x00010002 # active func sel
6463 1 0x00010002 # active dir
6464 0 0x00010002 # active pull
6465 3 0x00010002 # active drive
6466 1 0x00010002 # inactive func sel
6467 0 0x00010002 # inactive dir
6468 2 0x00010002 # inactive pull
6469 3 0x00010002 # inactive drive
6470 1 0x00010002 # version
6471 0x010A 0x00010002 # gpio num
6472 1 0x00010002 # active func sel
6473 1 0x00010002 # active dir
6474 0 0x00010002 # active pull
6475 3 0x00010002 # active drive
6476 1 0x00010002 # inactive func sel
6477 0 0x00010002 # inactive dir
6478 2 0x00010002 # inactive pull
6479 3 0x00010002 # inactive drive
6480 1 0x00010002 # version
6481 0x010B 0x00010002 # gpio num
6482 1 0x00010002 # active func sel
6483 0 0x00010002 # active dir
6484 0 0x00010002 # active pull
6485 3 0x00010002 # active drive
6486 1 0x00010002 # inactive func sel
6487 0 0x00010002 # inactive dir
6488 2 0x00010002 # inactive pull
6489 3 0x00010002 # inactive drive