Commit Graph

974235 Commits

Author SHA1 Message Date
Arian
c098cb3d97
input: touchscreen: Move goodix qgki config to gt9897t and gt9916
Change-Id: I8253decccc0ce8dd442d72c4d7ee7e34dbb33011
2024-05-20 17:41:19 +02:00
Arian
d79033d085
input: touchscreen: gt9897t: Don't register when TP is focal on K9
Change-Id: Ieca9431e2855246fabd66e68527ea5d2dfeabb3e
2024-05-20 17:41:18 +02:00
Arian
abe127b45b
input: touchscreen: gt9897t: Set the default fw and cfg based on hw project
Change-Id: Idbbcf9c8d3121f881c709e4c555b34d5a1f80d66
2024-05-20 17:41:17 +02:00
Arian
7c96472715
input: touchscreen: Import Goodix 9897 driver
From branch: zijin-s-oss

sed -i 's/\r//g' drivers/input/touchscreen/gt9897t/*

Change-Id: Id71e1c89971557e1d7f7dba1166d46342330ee6f
2024-05-20 17:41:16 +02:00
Ramii Ahmed
b5dfbacd30
input: touchscreen: gt9916: trigger fod hbm
Change-Id: I60fef55a03d77511c9aadef1bb542a0bbf6d883c
2024-05-20 17:41:15 +02:00
Giovanni Ricca
c9b99f3abc
input: touchscreen: gt9916: Omit mi_disp_set_fod_queue_work
Change-Id: I88d87d345607586bc0e97775cdc4b7ba97e7b4a6
2024-05-20 17:41:13 +02:00
Giovanni Ricca
0db79e1b37
input: touchscreen: gt9916: Make it load on taoyao
Change-Id: I4b6fb347508380cb13aac291f244bab5aa28e0b2
2024-05-20 17:41:12 +02:00
Giovanni Ricca
3242b8ef03
input: touchscreen: Import Goodix 9916 driver
From branch: redwood-s-oss

Change-Id: Idadf8217d7b7970caf587a858fbd1e3f719c1ba7
2024-05-20 17:41:11 +02:00
Arian
a2a0ca8c32
input: touchscreen: Import FTS V521 Dual driver
From branch: zijin-s-oss

Change-Id: I6de35f960207b0a039c06e731862878722197a11
2024-05-20 17:41:10 +02:00
FlowerSea0208
b965dc8663
input: touchscreen: fts_spi: Fix strict-prototypes error
Change-Id: If946fb03da69e9452dbe1a9801faec42f9a57511
2024-05-20 17:41:09 +02:00
FlowerSea0208
cfa5d3e86b
input: touchscreen: fts_spi: Update fod press status based on button event
Change-Id: Ief7cd98adf5a4e86bee1726f85918c59b7ad5be2
2024-05-20 17:41:08 +02:00
EcrosoftXiao
f39535bfea
input: touchscreen: fts_spi: Switch to mi_disp_notifier
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Change-Id: Id78bf851549114500e101d6221fff9ded1d8a463
2024-05-20 17:41:06 +02:00
Cosmin Tanislav
38f598ca5f
input: touchscreen: fts_spi: trigger fod hbm
Change-Id: I7cc6615c41170a86c18a72058c90ddd55d55ad4d
2024-05-20 17:41:05 +02:00
Cosmin Tanislav
7b6b2112f1
input: touchscreen: fts_spi: report FOD press based on pointer event in non-sleep mode
Change-Id: I2de153fda086cf3d9087fc53709a60062f0a6af6
2024-05-20 17:41:04 +02:00
Cosmin Tanislav
8abdecc6ec
input: touchscreen: fts_spi: expose fod_status via sysfs
Change-Id: I07c0538232a9969f55625c4857e3209e5a46538a
2024-05-20 17:41:03 +02:00
Cosmin Tanislav
b47c312106
input: touchscreen: fts_spi: introduce fts mode handler worker
Change-Id: Ia99536c76560bbc92bf564d47caa63f9a857176b
2024-05-20 17:41:02 +02:00
Giovanni Ricca
b985ec6627
input: touchscreen: fts_spi: Omit mi_disp_set_fod_queue_work
Change-Id: I6673b2409880855184e95824c939b2cc25c753ea
2024-05-20 17:41:01 +02:00
Giovanni Ricca
211421e725
input: touchscreen: fts_spi: Sync with updated xiaomi-touch driver
Change-Id: I62034de5d4a302870deeede672634423079b043a
2024-05-20 17:41:00 +02:00
Arian
54b5d95461
input: touchscreen: Import FTS V521 driver
From branch: zijin-s-oss

Change-Id: I41ea39ef98d602754185fe1df52d6b359a00a2d7
2024-05-20 17:40:59 +02:00
Giovanni Ricca
40e3ea1075
input: touchscreen: focaltech_3680: Omit mi_disp_set_fod_queue_work
Change-Id: Ibdd924ddd631888b4f3e90f236bec1d35182a809
2024-05-20 17:40:58 +02:00
Giovanni Ricca
c633c980f1
input: touchscreen: Import Focaltech 3680 driver
From branch: taoyao-s-oss

Change-Id: Iebe39388a5f77f22cd1e61f36796a0f818ea4d35
2024-05-20 17:40:56 +02:00
Arian
0c77e02802
input: touchscreen: focaltech_3658u: Fix prototype error
Change-Id: If89ec90c8b2eb36b73d56a7c97f2db50c47b6591
2024-05-20 17:40:55 +02:00
Arian
09600686a1
input: touchscreen: Import Focaltech 3658u driver
From branch: zijin-s-oss

Change-Id: Icfdcd921f06287ea8054aaef4321307bd40e8453
2024-05-20 17:40:54 +02:00
Giovanni Ricca
0597ad2b55
input: touchscreen: focaltech_spi: Fix prototype errors
Change-Id: I52edce3de079a1ec152db577608c1d36891c1e18
2024-05-20 17:40:53 +02:00
Arian
6ebffd5175
input: touchscreen: Import Focaltech driver
From branch: zijin-s-oss

Change-Id: Id9faa8ad0fa5e0d2713d46e3b82bcfc6910855e3
2024-05-20 17:40:52 +02:00
FlowerSea0208
47cb93bef6
input: touchscreen: cyttsp5: Fix strict-prototypes error
Change-Id: I72f10c6fab81a614e5925bbd773e77a04bfc24f4
2024-05-20 17:40:51 +02:00
Arian
c69f05a986
input: touchscreen: Import Parade TrueTouch Gen5 driver
From branch: zijin-s-oss

Change-Id: I3212308d315fed650ee88596005690e245e335e6
2024-05-20 17:40:50 +02:00
Giovanni Ricca
72bfdb9894
Import NXP SR100 ultra wideband driver
From branch: zijin-s-oss

Change-Id: I084b089a42715b903f4aae103b95e2cb20ad9d88
2024-05-20 17:40:49 +02:00
Giovanni Ricca
c65543d317
soc: qcom: icnss2: Use device specific firmware versions
From branches: mona-r-oss lisa-r-oss taoyao-s-oss zijin-s-oss redwood-s-oss

Change-Id: I6962479d585a2fa04216bdb96f4207672ec7fd37
2024-05-20 17:40:48 +02:00
Arian
04ecdb7b1b
net: wireless: cnss2: Use device specific firmware versions
From branch: zijin-s-oss

Change-Id: I014643f74afd5b53bbce411c8a31c8a1c30144a5
2024-05-20 17:40:46 +02:00
Giovanni Ricca
ef211e239a
soc: qcom: Reduce smp2p_sleepstate wakeup event time
Change-Id: I1c3eaee134597acecf856535682de6d6f592ce2c
2024-05-20 17:40:45 +02:00
Giovanni Ricca
0c17517617
misc: Import mmhardware detection
From branch: redwood-s-oss

Change-Id: I03d8e19d51e7519abb57450a67a18031f727529d
2024-05-20 17:40:44 +02:00
Giovanni Ricca
1be5724284
misc: Import AL6021 ISP driver
From branch: zijin-s-oss

Change-Id: I4eec5cddea26c14959d095b264e82ffe84b4b264
2024-05-20 17:40:43 +02:00
Arian
2e0ab82b59
misc: Introduce simplified xiaomi hardware identification driver
Change-Id: I6ae7a76dcc687fe8fa9edb5c119182d2c32462be
2024-05-20 17:40:42 +02:00
Giovanni Ricca
8aaa0f8681
spi: spi-msm-geni: Enlarge SPI timeout
Change-Id: Icd6e4d72a3472d51c7cabed0a53978ab0754818e
2024-05-20 17:40:41 +02:00
Giovanni Ricca
e9bb43575f
pinctrl: qcom: Import Xiaomi changes
From branch: redwood-s-oss

Change-Id: Ib47a937635ffbb1e249406945c5eba9d17f84e82
2024-05-20 17:40:39 +02:00
Giovanni Ricca
0312ee81ad
thermal: Import Xiaomi changes
From branch: redwood-s-oss
mi_thermal_interface From branch: zijin-s-oss

Change-Id: Ia224f2ac382abb409dd03e881779c51e478fa582
2024-05-20 17:40:38 +02:00
Arian
8fa6995f56
power: reset: Import xiaomi changes
[ItsVixano: Skip `qcom_dload_restart` func changes, due to commit
52c3eb6f12]

Change-Id: I7b70bf2dcace33a063fb060b6108287765afc147
2024-05-20 17:40:37 +02:00
TheStrechh
9ef32b7651
power: supply: qti_battery_charger: Import redwood changes
* Since most Xiaomi lahaina devices introduced major changes to the power supply kernel driver, these properties in header files got additions, this breaks reporting
* Guard non-redwood properties under the lack of a redwood-specific flag

Change-Id: I06f1a8a37632f5237d00d1073df4b41ea7511631
2024-05-20 17:40:36 +02:00
Ramii Ahmed
d7a0b31461
power: supply: qti_battery_charger: Guard power properties changes against Venus
* The XM properties in the power supply kernel driver header files must match the one in ADSP firmware
* These properties are used to map ADSP FW properties so we can expose values like charging speed to kernel, and then expose them to userspace using nodes
* Since most Xiaomi lahaina devices after Venus introduced major changes to the power supply kernel driver, these properties in header files got additions, this breaks reporting
* Guard non-venus properties under the lack of a venus-specific flag

Change-Id: Ic1d2256f7acdb624b8f913608cdd55285d3fff2d
2024-05-20 17:40:35 +02:00
FlowerSea0208
4ac66c04c2
power: supply: qti_battery_charger: change the measuring unit of TIME_TO_FULL_AVG property
* In Android 13, Xiaomi changed the measuring unit of this property in firmware to minutes instead of seconds, revert that behavior back by intercepting the property value and multiplying it by 60 before setting the node, as userspace expects the unit to be seconds.

* Then make sure the final value doesn't exceed 65535.

Change-Id: I9d8accbe48d743b8b071cba4253e017068b8e766
2024-05-20 17:40:33 +02:00
TheStrechh
b12e06a7da
power: supply: qti_battery_charger: Move xiaomi adapter definitions to header
Devices using CONFIG_MI_WIRELESS rely on these defines being available for power_max node.

Change-Id: Ibde7a73560a1cb26fb7280961488e16368296daf
2024-05-20 17:40:32 +02:00
Arian
a6512f27cb
power: supply: Introduce qti_battery_charger_xiaomi
This contains huge xiaomi additions like the sysfs attributes

Change-Id: I542476baaff220299d0aa0346de337c87356f271
2024-05-20 17:40:31 +02:00
Arian
66d9b9a489
Fixup! power: supply: qti_battery_charger: Return charge counter in uAh
Devices using BQ_FUEL_GAUGE seem to report this value correctly by default, so exclude the patch for them.

Change-Id: I0d882ef3b71fdfcde45d8a9aca0c726ea882da25
2024-05-20 17:40:30 +02:00
Arian
b8944e288a
power: supply: qti_battery_charger: Return charge counter in uAh
Previously the charge counter was not reported in uAh while the
charge full capacity was. The charge counter used to go up to
100 times as high as the max battery capacity is in uAh.
Frameworks use this property to set the battery state and
expects it to be in uAh. Refer to [1] and [2].

Since commit "Use getUahDischarge when available" [3] AOSP
uses the getUahDischarge method to determine the amount of
discharge. Without this patch the value used to be 100 times
too high leading to the consumed power of
AGGREGATE_BATTERY_CONSUMER_SCOPE_DEVICE becoming very high
so that the relative consumption of all consumers got very
low. Due to [4] AOSP does not show consumers with less than
0.5% consumption so that the section was always empty.

[1]: d42ec4c0e5/services/core/java/com/android/server/BatteryService.java (L579)
[2]: d42ec4c0e5/services/core/java/com/android/server/am/BatteryStatsService.java (L2079)
[3]: 9f08c607f8
[4]: 36c727a1d0/src/com/android/settings/fuelgauge/BatteryAppListPreferenceController.java (L228)

Change-Id: I64dff6478588d991971b60bad61652f5c9f581b0
2024-05-20 17:40:29 +02:00
Arian
a2ac6b286d
power: supply: qti_battery_charger: Apply xiaomi changes
From branch: zijin-s-oss

Change-Id: Ieb19795ff69250b2c425392e6a1e9b6c4dd814e1
2024-05-20 17:40:27 +02:00
Arian
42d3441c27
power: supply: qti_battery_charger: Create header for defines, enums and structs
These will be used by the xiaomi additions in an upcoming commit

Change-Id: I80aaa7c46f7690ebf7c432f0a74cfd24246c29c4
2024-05-20 17:40:26 +02:00
Arian
73606279f7
usb: Import Xiaomi changes
Change-Id: I3d2f755729bfc5dc8d6c88d58ededdf93db0adfb
2024-05-20 17:40:25 +02:00
Arian
d53b31c054
media: rc: ir-spi: Import Xiaomi changes
Change-Id: Ia0979af2d8744cafbc15573ce30b669355cd5865
2024-05-20 17:40:23 +02:00
Arian
29c7f3ad84
iio: proximity: Add mius kconfig
Change-Id: I58e2ac0bb2587627ff0b6615ad85ca1327ada981
2024-05-20 17:40:22 +02:00