Commit graph

916,535 commits

Author SHA1 Message Date
liuwang2
c848de7dae abi: add platform_get_irq_optional to qcom ABI list to fix user build error
camera ois use platform_get_irq_optional.
and this api exists in abi_gki_aarch64.xml.

Change-Id: Ic962a879e7b89510fcff203a0a278843d679bd70
Signed-off-by: liuwang2 <liuwang2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2139758
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:07 +08:00
huaqin90
4a52021f0c define CONFIG_CAMERA_FLASH_PWM
details: define CONFIG_CAMERA_FLASH_PWM for rhodep
Eliminate impact on other projects

Change-Id: I34641f8b8370a87030cdf24c4ccc244ae2dd1831
Signed-off-by: huaqin90 <huaqin90@motorola.com>
Reviewed-on: https://gerrit.mot.com/2136222
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Ying Xu <xuying9@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:07 +08:00
Xiaofeng Wang
bcdfceeaf3 rhodec: saperate gpio TZ protection
TZ protect gpio45,46,56,57 for NFC SPI,
but the four of them are used for camera sensor power supply.
so we need to saperate them from holi baseline

Change-Id: I67746f299490c56baf1df3e0fa31482362ba9837
Signed-off-by: Xiaofeng Wang <wangxf32@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2131677
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xingyun Fu <fuxy7@motorola.com>
Reviewed-by: Shuo Wang <wangsh18@motorola.com>
Reviewed-by: <weilt2@motorola.com>
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: <liuzy55@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:07 +08:00
huaqin85
4692ceb6c1 qcom: Update qcom whitelist for goodix
Build Error log:
ERROR: "strncat" [../../motorola/kernel/modules/drivers/input/touchscreen/goodix_berlin_mmi/goodix_brl_mmi.ko] undefined!
ERROR: "input_mt_sync_frame" [../../motorola/kernel/modules/drivers/input/touchscreen/goodix_berlin_mmi/goodix_brl_mmi.ko] undefined!

Change-Id: Id28c2ec2c1c4830070694b6eff6fc1f802644bf2
Signed-off-by: huaqin85 <huaqin85@motorola.com>
Reviewed-on: https://gerrit.mot.com/2134025
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2024-04-18 14:45:07 +08:00
huaqin85
03e0add8c9 qcom: Update qcom whitelist for bq2597x
Build Error log:
ERROR: "__regmap_init_i2c" [../../motorola/kernel/modules/drivers/power/bq2597x_mmi_iio/bq2597x_mmi_iio.ko] undefined!

Change-Id: I12bc97000e0b6c1927a872e4c6dee21a6343cbb9
Signed-off-by: huaqin85 <huaqin85@motorola.com>
Reviewed-on: https://gerrit.mot.com/2133405
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:07 +08:00
zhouwl
4d0fffa802 defconfg: Rhodec audio bringup
Bringup for Rhodec audio,
define stereo speaker.

Change-Id: I0afdc2e5eed366c9b2744b58eb1d177db2e24feb
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2131925
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:07 +08:00
wuwl10
a7b30f0325 abi: add strcat to ABI list to fix build error
Focal_fps_mmi.ko will use strcat to cat version.
we need to add it  to abi list to avoid build error on user build.

Change-Id: I2fd3e35faff5c239111d417b5a5d9efd56ebec4b
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/2131504
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: gaoyx9 <gaoyx9@motorola.com>
Submit-Approved: gaoyx9 <gaoyx9@motorola.com>
Tested-by: gaoyx9 <gaoyx9@motorola.com>
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
2024-04-18 14:45:07 +08:00
liaohj
6b6c627d23 configs:rhodep:aw882xx use params from bin.
aw882xx use params from bin.
add CONFIG_AW882XX_PARAMS_FROM_BIN macro.

Change-Id: I2b8e779c9ea7925bcdbcd3105bd4494db2dd3af0
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2127349
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:07 +08:00
weiweij
8bbe2b36c3 pinctrl: distinguish reserve gpio list by macro definition
For each project has its own reserve gpio list. So we should have
the way to distinguish it in every different products.
We use a macro definition for this. If the gpios are not assigned to
TZ, they should be removed from the list.

Change-Id: I0837a3abdf8d7398aa2e7138563cb891b9f53780
Reviewed-on: https://gerrit.mot.com/2121376
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:07 +08:00
wutao
2666f2d657 kernel: remove reserved gpio45/46/56/57 from HLOS
For Rhode5gp project,
Move SPI to GPIO from TZ to HLOS , refer to this change :
https://gerrit.mot.com/#/c/2119002/

wt6670f irq pin use gpio56,
Display use gpio46 to enable VCI.
Charge use gpio45 , gpio57

so remove gpio45/46/56/57 reserved from HLOS

Change-Id: Iadc24906dcd17ba72d320394fa74824286c4089f
Reviewed-on: https://gerrit.mot.com/2119174
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:06 +08:00
zhucc2
95625f94c4 arm64/config: enable Micron HID on milanf.
Remark:
    enable Micron hid feature for milan 5G on mot4350 family.
    disable for denver,ibiza, cyprus 5G, corfu 5G and rhodep,for
    these projetcs not use Micorn uMCP, or the Micron uMCP used is
    not support HID feature.
    further project if reuse currently baseline need define it accordingly.

Change-Id: I24f2fe21260a4329df3f96f263efd0ba169c0460
Reviewed-on: https://gerrit.mot.com/2099662
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:06 +08:00
zhucc2
f04f8628d3 ufs: Add Micron UFS HID support
As Micron said, Micron UFS HID could reuse SamSung HID driver, but need
change some flags and attibutes definitions.

Change-Id: If485cd01b6b69f1f14947fe84520c190262d966f
Reviewed-on: https://gerrit.mot.com/2085180
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dongliang Yue <yuedl1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:06 +08:00
liaohj
f1fe70af8c configs:milanf:delete CONFIG_AW882XX_PARAMS_FROM_BIN
AW skt5.3.1.1 put skt params in afe side.
can't deal cowork scene.
as KP liyif request.
return back to skt params in acdb method.
and use the latest skt v5.3.0 algo.

delete params from bin config for milanf.

Change-Id: Id0dbdedec26bba231031742853a01655667cadcf
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2113315
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:06 +08:00
liaohj
cf6832f1f8 config:Rhodep:add CONFIG_AW882XX_STEREO_SMARTPA
Rhode5G+ use 6375+ two aw88261 smart pa.
add CONFIG_AW882XX_STEREO_SMARTPA macro for dual pa.

Change-Id: I6f79294cd669993fc677e5b9ec99c813ef66dfd3
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2114845
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:06 +08:00
panyq6
d39e4609fc rhodec initial kernel defconfig
initial configs base on cypfq

Change-Id: I6aecf198b46d9b3145c586c87e2a6aa285492e01
Reviewed-on: https://gerrit.mot.com/2101526
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hongshu Lou <louhs1@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: panyq6 <panyq6@motorola.com>
2024-04-18 14:45:06 +08:00
liaohj
48f1e3f22f configs:milanf:enable AW882XX_PARAMS_FROM_BIN
1.seperate aw params from acdb. stored in aw_skt.bin
use CONFIG_AW882XX_PARAMS_FROM_BIN macro
2.use profile for different scene.
3.need to match new skt algo V5.3.1.1

enable it for milanf

Change-Id: I0ddc5c916e4ce1e84787be259264b8ff5eba411d
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2095738
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Hong Zhang <zhangh12@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:06 +08:00
mahj8
90a3c8edd0 iio: add otg enable iio psy property
add otg enable iio psy property
for discrete charging

Change-Id: I8a10f22ecc0c24adb08e203c713f75528e1cf1b9
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2088700
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:06 +08:00
mahj8
d1f79327f4 gki: add some api to qcom gki white list
for build user version error, so need to
add some api to qcom gki white list

Change-Id: I0da80b6b41bbdb3e9cb416a8f7385c3d46c44976
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2093395
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:06 +08:00
gaoyx9
00bdb710c4 rhodep initial kernel defconfig
initial configs cloned from milanf.

Change-Id: I25944a40ee534a2773b963adc122d4db71f84e3a
Reviewed-on: https://gerrit.mot.com/2092297
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: gaoyx9 <gaoyx9@motorola.com>
Submit-Approved: gaoyx9 <gaoyx9@motorola.com>
Tested-by: gaoyx9 <gaoyx9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
2024-04-18 14:45:06 +08:00
gaoyx9
a15d58af3c rhodep initial kernel defconfig
initial configs cloned from milanf.

Change-Id: I01b922d184a48c5a1603920c179dfa5e99fb54dc
Reviewed-on: https://gerrit.mot.com/2092383
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: gaoyx9 <gaoyx9@motorola.com>
Submit-Approved: gaoyx9 <gaoyx9@motorola.com>
Tested-by: gaoyx9 <gaoyx9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
2024-04-18 14:45:06 +08:00
houdz1
fbb79eff17 gki: update qcom whitelist for leds_lm3697.ko
mfd_add_devices/mfd_remove_devices and  devm_pwm_get
are in GKI Whitelist and they have been used by leds_lm3697.ko.
so add it to qcom whitelist for user build.

Change-Id: I73e25d25bbbcade53d5ca072c3175202188b40fb
Signed-off-by: houdz1 <houdz1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2090764
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:06 +08:00
liuyc20
74ea94bc50 gki: add memset32 and regmap_raw_write ABI to qcom whitelist
memset32 & regmap_raw_write are in GKI Whitelist and
they have been used by RT9426A_mmi_fg.ko.
so add it to qcom whitelist for user build.

Change-Id: Ic7a09e482808786eecb3a8c456307bdf76fa21eb
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2090736
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:06 +08:00
yexh1
e944341962 kernel/config: disable the CONFIG_DM_VERITY_AVB
Hardware randomly unstable will trigger "dm-verity device corrupted"
and reboot the phone. Then it will not stamp the vbmeta partition with
the "AVE0" flag, which is persistent. Then it will boot up failed at
the next boot with AVB header check failed.
Moto has own Google verified boot process with the RED alert logo.
so we ignore this.

Change-Id: I631a601e5b0f6e2f4ef06f19bb53dd29b2534c7d
Reviewed-on: https://gerrit.mot.com/2079554
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:06 +08:00
wuwl10
355bcec5d9 kernel: blair: remove gpio48 from reserved gpios
NXP SN100P use gpio48 as Ven gpio.
Blair platfom reserverd gpio48.

Change-Id: Id019ce0d131e8ec1a8a0649b3031df07da946d97
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/2072536
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:06 +08:00
quebs2
2208e80231 qseecom: Suppress suspend warning if without bus scaling.
Recorded from QC SR: 05399803 as if the qseecom_supsend will only
cancel the workqueque when the crypto bus scaling is enabled. Hence
restrict the operation if without the configuration.

Change-Id: I8d6d347a6393da76641fc8fa4601016629b4a53c
Signed-off-by: quebs2 <quebs2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2072405
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:06 +08:00
Yifu Lin
a7396a742a arm64/config: disable coresight on sm4350 user version.
This change is experimental in nature during development phase.
We need some soak data to decide if we could keep coresight off for use build.

Change-Id: Iec48446f1aded3e60fb5e110fd3664c9e4af2d70
Reviewed-on: https://gerrit.mot.com/2066960
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhongsheng Xia <xiazs1@motorola.com>
Reviewed-by: Yifu Lin <linyf@lenovo.com>
Reviewed-by: Chuanchun Zhu <zhucc2@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:06 +08:00
duqiu2
605d567656 wisl: cofur: FM_IC_ENABLE_01 failed
merge QC patch to enhance uart stability:
I7e1392cd82a93b1da6b19f05dbe67b66d46193f1_missing_cr#3782237.patch
I566d79145ba887de71482642655b63c5bd640fc8_missing_cr#2992638.patch

Change-Id: I2a0ab55ab5793a6eeb64de329f5df685b499b898
Signed-off-by: duqiu2 <duqiu2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2063919
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ying Xu <xuying9@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:06 +08:00
mahj8
b83ef54899 kernel: add ADC5_GPIO3_DIV3 adc channel
add ADC5_GPIO3_DIV3 adc channel for read
vbus voltage for nopmi project

Change-Id: I930bfe91555db745599fceb23f55f4337d24e859
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2049614
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:06 +08:00
wangyq13
d8f0098f41 defconfig: corfur: remove novatek touch driver
defconfig:
Remove novatek touch driver from corfur. Because corfur does not
support novatek touch, and use ko to load driver.

Change-Id: I1c060069985dcf6ff54cd60909a69f4a6920b512
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2046837
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:06 +08:00
liuyc20
7f4f01daed gki: add i2c_smbug api for sd77426 driver
gki build fail.
add i2c_smbus_read_word_data/i2c_smbus_write_word_data, build pass

Change-Id: I218e26eebec3c3fcc664a1c64ca7bede9b35da19
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2044706
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
Xiaofeng Wang
b65c5b882a corfu5g: add CONFIG_AF_NOISE_ELIMINATION
[detail]
add CONFIG_AF_NOISE_ELIMINATION for mot actuator driver

Change-Id: I0bb23b1a8703afa249d71f8f68c67bc391e055de
Signed-off-by: Xiaofeng Wang <wangxf32@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2030402
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Liu <liuwang2@lenovo.com>
Reviewed-by: Xingyun Fu <fuxy7@motorola.com>
Reviewed-by: Bolei Shang <shangbl1@lenovo.com>
Reviewed-by: Ji Zhao <zhaoji1@lenovo.com>
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
Reviewed-by: Shuo Wang <wangsh18@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
chailu1
5e221066a4 gki: add smbus and typec api for rt17xx driver
gki/pd/rt17xx
add smbus and typec api for rt17xx driver

Change-Id: I7fbab6c45390177896a69af573ce8b97e54354d3
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2040743
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
duxu1
8b19b57875 Enable CONFIG_DEBUG_FS
CONFIG_DEBUG_FS is used to collect uart ipc logs
to debug uart issue.

Change-Id: I12f0a6f01e105e79aac317d034f6197d0dface89
Signed-off-by: duxu1 <duxu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2039979
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hongshu Lou <louhs1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
weiweij
59dc457ecd driver/usb: add adb force enable logic
For some debug situations, we need to force adb function
enabled without charger notification. So we add the forcing
logic. And it is controlled by a dts
configuration("qcom,force-adb-enable")

Change-Id: I1a779c0e8b9f60cdbf978d555b3f1e537db4740f
Reviewed-on: https://gerrit.mot.com/2038917
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
liuwang2
43f49cc99a arm64/config: cypfr: add CONFIG_AF_NOISE_ELIMINATION
[detail]
enable CONFIG_AF_NOISE_ELIMINATION in cypfr

Change-Id: I5f42b8f21c1d390caca89b66af282ad2b4c8d249
Signed-off-by: liuwang2 <liuwang2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2039638
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Bolei Shang <shangbl1@lenovo.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
jixj
944ceedfc7 arm64/configs: Add Milan 5G defconfig
Add initial defconfig for Milan 5G branch bringup,
these configs are copied from cypfq.

Change-Id: I90094a35cf65035476da061ef5d07fb532fa1d02
Reviewed-on: https://gerrit.mot.com/2032542
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
chailu1
239929ee25 charge: Enhance qc3+ detect
If detect qc3+ detect power is invalid, rerun qc3+
detect again.

Change-Id: Ia8e94e0ad7379f365ae97e014da3521517f041f3
Reviewed-on: https://gerrit.mot.com/2024886
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
Yifu Lin
2b419dee3f Revert "(CR) arm64/config: disable coresight on sm4350 user version."
This reverts commit 585af9cffc7ae94d3a33bcfe65b020618b944248.
Re-enable coresight in user build.
We need to enable coresight feature to supporting the collection of modem log

Change-Id: If4d109d8575e34388ef6d425b80ad59874921b6e
Reviewed-on: https://gerrit.mot.com/2034963
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
mahj8
cff390b6c7 smb5: remove pd2.0 policy in smb5-lib.c
For add PD charging(include PPS/Fixed) policy in DLKM for single
charge path(only pmic charging), so need to remove pd2.0 policy
in smb5-lib.c

Change-Id: I10807a7c73eb6d5372019bfa9c1db0e99993cb89
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2029012
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
Zhizhong Ge
b67ec45e73 config: reduce the holi user-debug kernel config
Reduce the config on userdbug to improve the perforamce

CONFIG_DEBUG_SECTION_MISMATCH is not set
CONFIG_DEBUG_PAGEALLOC is not set
CONFIG_DEBUG_PAGEALLOC_ENABLE_DEFAULT is not set
CONFIG_DEBUG_KMEMLEAK is not set
CONFIG_DEBUG_VIRTUAL is not set
CONFIG_DEBUG_RT_MUTEXES is not set
CONFIG_DEBUG_SPINLOCK is not set
CONFIG_DEBUG_MUTEXES is not set
CONFIG_DEBUG_LOCK_ALLOC is not set
CONFIG_DEBUG_LOCKDEP is not set
CONFIG_DEBUG_ATOMIC_SLEEP is not set
CONFIG_DEBUG_FS is not set
CONFIG_RCU_TRACE is not set
CONFIG_PREEMPT_TRACER is not set
CONFIG_STACKDEPOT is not set
CONFIG_SCHED_STACK_END_CHECK is not set
CONFIG_PAGE_OWNER is not set
CONFIG_DM_DEBUG is not set
CONFIG_EXT4_DEBUG is not set
CONFIG_LOCK_STAT is not set

Change-Id: Ia918fa32e73984d6f93560bc24aa45052123207c
Reviewed-on: https://gerrit.mot.com/2029094
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghui Jia <jiayh2@motorola.com>
Reviewed-by: Chuanchun Zhu <zhucc2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
chailu1
cd85b3feb0 charge: Rename sc8549 to cp
For charge pump common interface,use
cp name replace sc8549.

Change-Id: Ibbe393fceba8b5e97daf87e0f59ac37c4c9520a8
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2024887
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
houdz1
a007e73b89 arm64/config: cypfq: disable tps65132
Change the default output voltage through I2C bus at XBL. And store the default
value to EEPROM. So we can nod make I2C operation at kernel.
Only pull up/down gpio to enable/disable regulator.

Change-Id: Ie6c7a781257efe97aea8e7fe84a7efa20c6359aa
Signed-off-by: houdz1 <houdz1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2020886
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
zoujc
b97c5ab46a arm64/config: disable coresight on sm4350 user version.
coresight is not used by any module.
disable it to avoid irq wakeup issue.

https://gerrit.mot.com/#/c/1863643/ will enable coresight on debug
version.

Change-Id: I0d84be965ce088bd13e14b071b3a103b2bc5646e
Signed-off-by: zoujc <zoujc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1998604
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/2014590
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
2024-04-18 14:45:05 +08:00
chenlj2
33afc9c2c2 pinctrl:remove GPIO17 from the reserved GPIO list
GPIO17-----FPS INT
FPS bringup work on6375
remove GPIO17 from the reserved GPIO list
Otherwise the fingerprint driver cannot apply for this GPIO

Change-Id: I963f7dc55369f435bfb6bb0d58cc9bd42e51576a
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2011805
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
liuwang2
4488d1afd8 arm64/config: add CONFIG_AF_NOISE_ELIMINATION
[detail]
add CONFIG_AF_NOISE_ELIMINATION for mot actuator driver

Change-Id: I4183beb716fc64314c77349fca0c0362b102a4dd
Signed-off-by: liuwang2 <liuwang2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1999367
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Shuo Wang <wangsh18@motorola.com>
Reviewed-by: XiaoFeng Wang <wangxf32@lenovo.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
zhucc2
25e06ff369 scsi/ufs: make ufsf_device_check() result return.
SS HID driver not check the result, will do ufs feature init continuely,
include tw, hpb and hid, if the ufs is ufs2.1 FW, l(CR) Micron
MT064GASA02U21(4+64), not suport hid, will cause kernel panic.

Change-Id: I4e683ca090dc84169ab16e4ee6added0a01898f3
Reviewed-on: https://gerrit.mot.com/2009108
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
zhucc2
d4ab62c1c1 arm64/config: enable Hynix HID feature.
Remark:
enable Hynix hid feature for cyprus 5G and corfu 5G on mot4350 family.
disable for ibiza and denver,further project if reuse currently
baseline need define it accordingly.

Change-Id: I0e45c7096d3c9354a1c7580f5a8f4b151d7b5beb
Reviewed-on: https://gerrit.mot.com/2004803
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
zhucc2
c76cbe7a05 scsi/ufs: use macroes to control Hynix HID sys node.
For make Hynix HID driver disable for other vendors, we use macroes
to restrict its power.

note:
"manual_gc_status" is moved from
"/sys/device/platform/soc/4804000.ufshc/attributes" to
"/sys/device/platform/soc/4804000.ufshc/attributes_hid", APP or Script
need update this path.

Change-Id: Ic9d8350bac14945acb29fba8d00ad90994c2d062
Reviewed-on: https://gerrit.mot.com/2004779
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
zhucc2
c67b0a7b7a arm64/config: disable SamSung hid on cypfg.
For the market device is sm4350 pro, we disable HID deature on
cypfg device.
However, this is a bug, For Micron MT064GASA02U21(4+64) is not support HID, if enable HID
fearture on Micron device, will casue panic.
we wil fixed it on cypfq.

Change-Id: I6e78d4bc32dde6b089d8918ecdc0055c490f05cf
Reviewed-on: https://gerrit.mot.com/2006650
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:04 +08:00
zhouwl
0195c133d5 gki: Fix aw882xx_acf.ko compile failure
aw882xx_acf.ko compile failure when make user build add whitelist.
ERROR: "class_remove_file_ns" [techpack/audio/asoc/codecs/aw882xxacf/aw882xx_acf.ko] undefined!
ERROR: "class_create_file_ns" [techpack/audio/asoc/codecs/aw882xxacf/aw882xx_acf.ko] undefined!

Change-Id: I519cde4702a223dc2a171eba4f90114fa4fdec20
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2004700
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: gaoyx9 <gaoyx9@motorola.com>
2024-04-18 14:45:04 +08:00