Commit graph

916,564 commits

Author SHA1 Message Date
louhs1
4b2c8bda0a Rhodei change the kernel config from rhodec
remark:
change kernel config based rhodec

Change-Id: Ic76a6580da2a8fbe2bc051ac5f14c04520a97cf2
Signed-off-by: louhs1 <louhs1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2203000
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:08 +08:00
zhoujs3
4148db0fd2 Bring up miami on sm2021
Init config for new product miami
Base on rhodep

Change-Id: I680b5e4d272007f0e99b98609bbd7abf0ce8b7c4
Signed-off-by: zhoujs3 <zhoujs3@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-on: https://gerrit.mot.com/2205187
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
2024-04-18 14:45:08 +08:00
louhs1
4b7a563db6 defconfig/rhode5g enable CHACHA20 crypto config
enable CHACHA20 crypto config
fix the CTS issue:CtsNetTestCases

Change-Id: I947d6a45964c425c7e5c8522f3b97c93a72393be
Signed-off-by: louhs1 <louhs1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2203787
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Chuanchun Zhu <zhucc2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:08 +08:00
zhucc2
46e26d31e7 arm64/config: remove unnecessary configs
QC case: 05726418:
QC suggest to disbale below configs on user build to improve performance:
1. CONFIG_DEBUG_STACK_USAGE
2. CONFIG_DEBUG_MEMORY_INIT
3. CONFIG_LOCKUP_DETECTOR

however, CONFIG_SOFTLOCKUP_DETECTOR need disbale, or CONFIG_LOCKUP_DETECTOR will
auto selected.

Change-Id: I4b00cdad78c01791ba8e63846ccc76338ed9e138
Reviewed-on: https://gerrit.mot.com/2202807
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:08 +08:00
wangwang1
556a8e2870 kernel:ram overwritten by TZ logs
Ibiza and Denver have some crashes related to memory. We noticed that the
crashes only appeared in build user, as these devices use the same kernel
version, we propagated to the br-4350 branch and we will monitor future issues.

PROPAGATED_from (CR)

In SM7325 platform, there are lots of random crash issues on user build,
and not reproduced in userdebug builds.

in RAMDump file, we can see the memory in kernel was overwritten by TZ logs
the tzlog strings corrupted the memory address to cause abort on VM to PHY-M
similar panic issue was frequently reported in User build which disable
DebugFS along with tzlog driver which depends on DebugFS. Add the tzlog driver
back, but remove the dependency of DebugFS, instead, use ProcFS for output

Change-Id: I6c9bb8e44f77d9f68da8fc1f5e1d57a15666cb13
Signed-off-by: wangwang1 <wangwang1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1836661
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Signed-off-by: xizx <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/1961925
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Signed-off-by: Robert Cabral <robertc@motorola.com>
Reviewed-on: https://gerrit.mot.com/2193587
2024-04-18 14:45:08 +08:00
panyq6
985c58b952 Rhode5g of india sku(rhodei)initial kernel defconfig
initial configs base on rhodep

Change-Id: I9bead9193552d7fe521e3a64780af849d4f700be
Reviewed-on: https://gerrit.mot.com/2193951
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: panyq6 <panyq6@motorola.com>
2024-04-18 14:45:08 +08:00
Sarthak Garg
1f59df2378 mmc: sdhci-msm: Send a disable vote to make RMP driver consistent
Removing SD card at UEFI/XBL stage can lead to regulator getting turned off
due to MGPI but RPM isn't aware of that.
Kernel comes up with vote_count = 0 and we call enable API but RPM
ignores this thinking that it is already turned on leading the vdd
regulator in OFF state despite our vote.
CMD timeouts are seen in our sd_init path due to this and card detection
fails.

After the first enable vote, send a disable vote followed by re-enable
vote to make the RPM driver consistent with the regulator state.

Change-Id: Ifb761d07f13daa271c10c5454195f9e55ef17833
Signed-off-by: Sarthak Garg <quic_sartgarg@quicinc.com>
Reviewed-on: https://gerrit.mot.com/2193867
Reviewed-by: Chuanchun Zhu <zhucc2@motorola.com>
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:08 +08:00
liuyc20
e0e0f33517 usb: remove LowPowMode when usb into host mode
01-25 15:40:18.596     0     0 I hub 3-0 : 1.0: USB hub found
01-25 15:40:18.597     0     0 I hub 3-0 : 1.0: 1 port detected
01-25 15:40:18.602     0     0 E msm_dwc3_perf_vote_update: latency updated to: 61
01-25 15:40:19.834     0     0 E msm-dwc3 4e00000.ssusb: DWC3-msm runtime idle
01-25 15:40:19.834     0     0 E msm-dwc3 4e00000.ssusb: DWC3-msm runtime suspend
typc-c headset connect failed sometimes,from above log,
the dwc3 into suspend mode when usb in host mode

QC case : 05701211

Change-Id: Id6c6f6bd9d49bfc303e329186491427115dc9d72
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2190504
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2024-04-18 14:45:08 +08:00
xiewen3
acad346aa3 devconfig: enable CHACHA20 crypto configs
Port from (CR)

enable CHACHA20 Crypto support
Fix cts cases: CtsNetTestCases

Change-Id: I9d0676e25d4e5753457d289adbf90f46b570d8f9
Signed-off-by: xiewen3 <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/2189669
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/2190849
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
2024-04-18 14:45:08 +08:00
liaohs
1f76f16f57 Revert "i2c: i2c-msm-geni: Do i2c transfer if GENI IOS in proper state"
GENI IOs read register - Allows a mean to SW for reading current GENI IOs
DATA might not reflect current bus status due to synchronization delay.
Let's revert it and monitor I2C crash issue some time .

This reverts commit 5ad2f9de06.

Change-Id: Ie4c9788976a0054dc7c945623b4d0562568f331d
Reviewed-on: https://gerrit.mot.com/2180331
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:08 +08:00
liuwang2
d84f09e293 arm64/config: milanf: disable ois vsync irq in factory build
[detail]
disable ois vsync irq in factory build

Change-Id: Ie131905c16eeecbb577fcb1a3b6044e5f5e48836
Signed-off-by: liuwang2 <liuwang2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2179331
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: <zhaoxy41@motorola.com>
Reviewed-by: XiaoFeng Wang <wangxf32@lenovo.com>
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: gaoyx9 <gaoyx9@motorola.com>
2024-04-18 14:45:08 +08:00
liuwang2
ad64b620a6 arm64/config: rhodep: disbale ois vsync irq in factory build
[detail]
disbale ois vsync irq in factory build

Change-Id: I41fa1c69719270028eff61feb84f0a5ef721b796
Signed-off-by: liuwang2 <liuwang2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2179330
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <zhaoxy41@motorola.com>
Reviewed-by: XiaoFeng Wang <wangxf32@lenovo.com>
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: gaoyx9 <gaoyx9@motorola.com>
2024-04-18 14:45:08 +08:00
jixj
e5ab5b3421 fs: Remove "bind" flag check
Felica requires also prevent mount external storage to these
paths. The external storage mount is a real block device
instead of bind, so remove the "bind" check.

The secid of "u:r:su:s0" equals "u:r:init:s0" at init first stage,
it will also prevent the init first stage mount, only when current
secid is not same as "u:r:init:s0" and same as "u:r:su:s0", we
prevents the mount.

The below commands should be blocked.
adb shell mount -r -w /dev/block/vold/public:179,1 /system
adb shell mount -r -w /dev/block/vold/public:179,1 /system_ext
adb shell mount -r -w /dev/block/vold/public:179,1 /product
adb shell mount -r -w /dev/block/vold/public:179,1 /vendor

Change-Id: I0e3ca33b0dd4bd67910a9d2296e297cda542016a
Reviewed-on: https://gerrit.mot.com/2177550
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:08 +08:00
jixj
4c912f3429 fs: Check absolute path
The dir parameter passed maybe a relative path, so check
absolute path.

Change-Id: Ia413a97f5787aa2e6c7072485b715fe393a13cfe
Reviewed-on: https://gerrit.mot.com/2177549
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:08 +08:00
huaqin85
2b72c052ac arch/config: enable CONFIG_QCOM_I2C_NACK_ERR_WA for wt6670f
Revert "(CR): arch/config: disable CONFIG_QCOM_I2C_NACK_ERR_WA"
revert reason is factory battery off
test, power waste is higher about 1.5mA,wt6670f pin is leakage
This reverts commit f5d22e3d7ef0d965f21901676e1419d18b7a95dc.

Change-Id: If979235dcf67ff91190bdd2619a25d83a540f77a
Reviewed-on: https://gerrit.mot.com/2177050
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:08 +08:00
jixj
3c365bdb7d fs: Don't initialize filename
Get filename when begin to check mount path or else
will cause memory leak when return halfway.

Change-Id: I397ee24c63df21d676251d49555d1ca1e0c69e60
Reviewed-on: https://gerrit.mot.com/2176260
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:08 +08:00
jixj
d5b0e84fde arm64/configs: Enable CONFIG_FELICA_MOUNT_BLOCK for cypfr
Enable CONFIG_FELICA_MOUNT_BLOCK to block mount in the
root environment.

Change-Id: I60239a506c710983c5291b55fede89554eefb0c1
Reviewed-on: https://gerrit.mot.com/2175518
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Binsheng Que <quebs2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:08 +08:00
jixj
523f17e0ea fs: Add Felica mount requirement
Mounts on "/system", "/system_ext", "/product", "/vendor" should be blocked
in the root environment.
e.g.
adb root
adb shell mount -r -w sdcard /system
adb shell mount -r -w sdcard /system_ext
adb shell mount -r -w sdcard /product
adb shell mount -r -w sdcard /vendor

Change-Id: I6637dbd93f43da04ee4d47f167c95d5531d43710
Reviewed-on: https://gerrit.mot.com/2175517
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Binsheng Que <quebs2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:08 +08:00
mahj8
f1162ae375 arch/config: disable CONFIG_QCOM_I2C_NACK_ERR_WA
disable CONFIG_QCOM_I2C_NACK_ERR_WA for remove WT6670
fw download.

Change-Id: Ic34ff7ab4906106e540b9a9a98a72a1d69739e57
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2171564
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
Pedro Bertoleti
8ad89ffeef disable PPR for Ibiza
Accordingly to (CR), overall device performance has improved
significantly after disabling PPR (PerProcess Reclaim), mainly on launch
time, major page faults, memory pressure, swap IO, and steals (kswapd,
direct and total steals).
Therefore, PPR should be disabled for this device.

FPS tests results:
http://perf.mot.com/apps/fps/rungraphs/?runids=45049,46182

Change-Id: I8bbccb92a27125b8abaf6f2afe6a3b4a6ec5b074
Reviewed-on: https://gerrit.mot.com/2166482
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Fernanda Schmidt <fschmidt@motorola.com>
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:07 +08:00
Murilo Alves
6ce7c003a8 Revert "(CR): binder: BINDER_FREEZE ioctl"
This reverts commit b69bc86c01cef6c6828f5861e3f5e0877505c908.
Freeze feature should be disabled both on upper and lower layers.

Change-Id: Ibaa36bb72ad6219d2699e21b14c2c0a59d94df88
Signed-off-by: Murilo Alves <alvesm@motorola.com>
Reviewed-on: https://gerrit.mot.com/2152151
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:07 +08:00
Murilo Alves
b9ada56245 Revert "(CR): FROMGIT: binder: BINDER_GET_FROZEN_INFO ioctl"
This reverts commit ca4dd90f57b3e814a18495205f8823b7b456a70b.
Freeze feature should be disabled both on upper and lower layers.

Change-Id: I649ea96a42f7669103b760f94dec9302480593bd
Signed-off-by: Murilo Alves <alvesm@motorola.com>
Reviewed-on: https://gerrit.mot.com/2152150
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:07 +08:00
Murilo Alves
459f11b79b Revert "BACKPORT: FROMGIT: binder: fix freeze race"
This reverts commit 1d847974a85f6ce044b744a5d3136bbbb75e7c52.
Freeze feature should be disabled both on upper and lower layers.

Change-Id: I499cbe821f419a0251cad3c62c236eea0fb0c87f
Signed-off-by: Murilo Alves <alvesm@motorola.com>
Reviewed-on: https://gerrit.mot.com/2152149
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:07 +08:00
huaqin85
8f252d1acb kernel:add charger termination definition
Add charger enable termination
id definition.
follow rhode gerrit:
https://gerrit.mot.com/#/c/2148117/

Change-Id: Ib788a80f44f4f94201b3c19a79590710639d1098
Signed-off-by: huaqin85 <huaqin85@motorola.com>
Reviewed-on: https://gerrit.mot.com/2149411
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2024-04-18 14:45:07 +08:00
zhucc2
e8932e1cde arm64/config: disable SamSung TW and switch to WB
On Android S, SamSung TW performance is abnormal, after write about 30GB data continually,
the sequent write performance will drop from 450MB/s to 200MB/s.
After switch to WB, the sequent write speed will keep 450MB/s.

Change-Id: I513e6daee45d5ffbdd411fb5d747ccd4f32ca34f
Reviewed-on: https://gerrit.mot.com/2146604
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
Pedro Bertoleti
df09bc8f95 change CONFIG_HZ_300 value to y
Accordingly to https://source.android.com/devices/tech/debug/jank_jitter
, CONFIG_HZ value can be changes in order to reduce janks. As the most
of Motorola devices use CONFIG_HZ=300 and Denver uses CONFIG_HZ=250
(check (CR)), changing CONFIG_HZ to 300 is a good call to prevent
janks (mostly for heavy-use cases).

This gerrit makes CONFIG_HZ_300=y, in order to CONFIG_HZ=300.

Change-Id: I82663948f5f01baff7872ba1a8ec1bba3c8f049f
Reviewed-on: https://gerrit.mot.com/2147064
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Fernanda Schmidt <fschmidt@motorola.com>
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Reviewed-by: Carlos Pinho <cpinho@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:07 +08:00
Luiz Cressoni
140a5026a2 Set CONFIG_HZ_300 to y
On Ibiza, accordingly to (CR), overall device
performance has improved when CONFIG_HZ_300 is set to y.
We observed ~17% performance gain on mean launch time.
FPS run with tes results available at:
http://perf.mot.com/apps/fps/rungraphs/?runids=45049,45389

Therefore, CONFIG_HZ_300 should be set to y.

Change-Id: Ib2f958ce7cfa1fb389afd8352447d3a45ae02762
Signed-off-by: Luiz Cressoni <lutcho@motorola.com>
Reviewed-on: https://gerrit.mot.com/2145700
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Pedro Henrique Fonseca Bertoleti <pedrohfb@motorola.com>
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Reviewed-by: Carlos Pinho <cpinho@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:07 +08:00
huaqin87
c93611649e Rhode 5GP:kernel: qc3p wt6760 isp download function
charging qc3+ wt6670
import blank firmware upgrade function

Change-Id: Ib85b26b8189d7e51b3f31e3bc657dd18d1e2d631
Signed-off-by: huaqin87 <huaqin87@motorola.com>
Reviewed-on: https://gerrit.mot.com/2142642
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
huaqin85
011653c2d7 QC3P:add iio channel definition for rhodep
Add iio channel definition for
qc3p turbo charger module to rhodep

Change-Id: Iad5cd83d180f6508a5fa207114973a5adefc31df
Signed-off-by: huaqin85 <huaqin85@motorola.com>
Reviewed-on: https://gerrit.mot.com/2142096
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
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