-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kernel: Xiaomi kernel changes for Redmi 4/4X
The Patch based on QualComm release TAG:LA.UM.5.6.r1-04600-89xx.0-1 The kernel config file used is S88536AA2-perf_defconfig Change-Id: Idce98cf960c5f8d69ad7b8c892dea867f98ff678 Signed-off-by: wuzuofu <wuzuofu@xiaomi.com>
- Loading branch information
wuzuofu
committed
Feb 26, 2018
1 parent
acb553d
commit 09baf1a
Showing
347 changed files
with
123,353 additions
and
12,761 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
arch/arm/boot/dts/qcom/batterydata-qrd-Atl-4v4-4100mah.dtsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
|
||
qcom,2312470_wingtech_a12atl_4000mah_averaged_masterslave_feb1st2016 { | ||
qcom,max-voltage-uv = <4400000>; | ||
qcom,nom-batt-capacity-mah = <4100>; | ||
qcom,batt-id-kohm = <68>; | ||
qcom,battery-beta = <4150>; | ||
qcom,battery-type = "qrd_msm8937_Atl_4100mah"; | ||
qcom,chg-rslow-comp-c1 = <3011278>; | ||
qcom,chg-rslow-comp-c2 = <4185582>; | ||
qcom,chg-rs-to-rslow = <966005>; | ||
qcom,chg-rslow-comp-thr = <0xA3>; | ||
qcom,checksum = <0x90C2>; | ||
qcom,gui-version = "PMI8950GUI - 2.0.0.15"; | ||
qcom,fg-profile-data = [ | ||
E1 83 CD 7C | ||
FA 80 DE 76 | ||
69 83 6B 75 | ||
2B 8A 24 95 | ||
12 82 86 9A | ||
72 BD 12 CA | ||
56 11 EC 83 | ||
B5 7C C8 80 | ||
55 76 5A 83 | ||
A6 60 5E 81 | ||
ED 8D 54 82 | ||
99 99 E9 BC | ||
CD C9 54 0E | ||
65 10 A4 58 | ||
14 70 EE FC | ||
0F 36 44 3D | ||
FD 2E 00 00 | ||
60 3F 44 33 | ||
35 3F 00 00 | ||
00 00 00 00 | ||
00 00 00 00 | ||
F7 6B DA 6A | ||
5F 63 D8 80 | ||
EB 6F 3C 62 | ||
B5 57 6B 78 | ||
DF 6E AE 60 | ||
8A 84 5B A3 | ||
17 A8 63 2D | ||
65 A0 71 0C | ||
28 00 FF 36 | ||
F0 11 30 03 | ||
00 00 00 0C | ||
]; | ||
}; |
48 changes: 48 additions & 0 deletions
48
arch/arm/boot/dts/qcom/batterydata-qrd-Coslight-4v4-4100mah.dtsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
|
||
qcom,2336567_wingtech_s88537a1coslight_4000mah_averaged_masterslave_mar3rd2016 { | ||
qcom,max-voltage-uv = <4400000>; | ||
qcom,nom-batt-capacity-mah = <4100>; | ||
qcom,batt-id-kohm = <100>; | ||
qcom,battery-beta = <4250>; | ||
qcom,battery-type = "qrd_msm8937_Coslight_4100mah"; | ||
qcom,chg-rslow-comp-c1 = <3658227>; | ||
qcom,chg-rslow-comp-c2 = <6007355>; | ||
qcom,chg-rs-to-rslow = <1091156>; | ||
qcom,chg-rslow-comp-thr = <0xB2>; | ||
qcom,checksum = <0xA765>; | ||
qcom,gui-version = "PMI8950GUI - 2.0.0.15"; | ||
qcom,fg-profile-data = [ | ||
E1 83 E0 7C | ||
31 81 88 77 | ||
62 83 1C 74 | ||
4E 89 60 94 | ||
40 82 A6 98 | ||
79 B6 08 C2 | ||
52 17 07 88 | ||
0A 7E F7 81 | ||
73 7C 36 83 | ||
40 79 08 86 | ||
9D 81 6B 82 | ||
6B 98 D0 B6 | ||
25 C3 5E 15 | ||
32 10 42 59 | ||
14 70 EE FC | ||
04 36 DC 44 | ||
DE 3B 00 00 | ||
7C 4C FD 31 | ||
E6 41 00 00 | ||
00 00 00 00 | ||
00 00 00 00 | ||
4F 71 C5 6B | ||
5B 74 71 88 | ||
88 7C E6 71 | ||
60 74 15 72 | ||
A2 75 71 6A | ||
B9 66 5C A3 | ||
23 91 60 87 | ||
5E A0 71 0C | ||
28 00 FF 36 | ||
F0 11 30 03 | ||
00 00 00 0C | ||
]; | ||
}; |
48 changes: 48 additions & 0 deletions
48
arch/arm/boot/dts/qcom/batterydata-qrd-Default-4v4-4100mah.dtsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
|
||
qcom,2312470_wingtech_a12atl_4000mah_default { | ||
qcom,max-voltage-uv = <4400000>; | ||
qcom,nom-batt-capacity-mah = <4000>; | ||
qcom,batt-id-kohm = <1>; | ||
qcom,battery-beta = <4150>; | ||
qcom,battery-type = "Generic_Battery"; | ||
qcom,chg-rslow-comp-c1 = <3011278>; | ||
qcom,chg-rslow-comp-c2 = <4185582>; | ||
qcom,chg-rs-to-rslow = <966005>; | ||
qcom,chg-rslow-comp-thr = <0xA3>; | ||
qcom,checksum = <0x90C2>; | ||
qcom,gui-version = "PMI8950GUI - 2.0.0.15"; | ||
qcom,fg-profile-data = [ | ||
E1 83 CD 7C | ||
FA 80 DE 76 | ||
69 83 6B 75 | ||
2B 8A 24 95 | ||
12 82 86 9A | ||
72 BD 12 CA | ||
56 11 EC 83 | ||
B5 7C C8 80 | ||
55 76 5A 83 | ||
A6 60 5E 81 | ||
ED 8D 54 82 | ||
99 99 E9 BC | ||
CD C9 54 0E | ||
65 10 A4 58 | ||
14 70 EE FC | ||
0F 36 44 3D | ||
FD 2E 00 00 | ||
60 3F 44 33 | ||
35 3F 00 00 | ||
00 00 00 00 | ||
00 00 00 00 | ||
F7 6B DA 6A | ||
5F 63 D8 80 | ||
EB 6F 3C 62 | ||
B5 57 6B 78 | ||
DF 6E AE 60 | ||
8A 84 5B A3 | ||
17 A8 63 2D | ||
65 A0 71 0C | ||
28 00 FF 36 | ||
F0 11 30 03 | ||
00 00 00 0C | ||
]; | ||
}; |
48 changes: 48 additions & 0 deletions
48
arch/arm/boot/dts/qcom/batterydata-qrd-Desay-4v4-4100mah.dtsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
|
||
qcom,2312442_wingtech_a12desay_4000mah_averaged_masterslave_feb1st2016 { | ||
qcom,max-voltage-uv = <4400000>; | ||
qcom,nom-batt-capacity-mah = <4100>; | ||
qcom,batt-id-kohm = <30>; | ||
qcom,battery-beta = <4100>; | ||
qcom,battery-type = "qrd_msm8937_Desay_4100mah"; | ||
qcom,chg-rslow-comp-c1 = <3278930>; | ||
qcom,chg-rslow-comp-c2 = <4973220>; | ||
qcom,chg-rs-to-rslow = <1125247>; | ||
qcom,chg-rslow-comp-thr = <0xAC>; | ||
qcom,checksum = <0xAB22>; | ||
qcom,gui-version = "PMI8950GUI - 2.0.0.15"; | ||
qcom,fg-profile-data = [ | ||
D6 83 5E 7C | ||
BB 80 9B 76 | ||
64 83 81 74 | ||
A6 89 BC 94 | ||
9D 82 F3 91 | ||
E0 AF 03 BB | ||
52 16 FE 83 | ||
7E 7D 8B 81 | ||
0B 7C 6A 83 | ||
62 6F B7 89 | ||
29 95 49 82 | ||
32 9A B0 BD | ||
0A CB 52 0D | ||
1B 10 B3 59 | ||
14 70 EE FC | ||
78 3E 7B 3F | ||
0B 40 00 00 | ||
5A 46 C1 2B | ||
1E 2A 00 00 | ||
00 00 00 00 | ||
00 00 00 00 | ||
BA 70 4D 6B | ||
31 63 73 88 | ||
BF 75 02 6B | ||
DE 60 EF 7B | ||
D4 6E 44 63 | ||
D6 75 4F A0 | ||
1E E4 60 FF | ||
5E A0 71 0C | ||
28 00 FF 36 | ||
F0 11 30 03 | ||
00 00 00 0C | ||
]; | ||
}; |
117 changes: 117 additions & 0 deletions
117
arch/arm/boot/dts/qcom/batterydata-wingtech-desai_SAMSUNG-4v4-4000mah.dtsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
/* Copyright (c) 2014, The Linux Foundation. All rights reserved. | ||
* Copyright (C) 2018 XiaoMi, Inc. | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 and | ||
* only version 2 as published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
*/ | ||
|
||
|
||
qcom,wingtech-desai-4v4-4000mah-data { | ||
qcom,default-rbatt-mohm = <116>; | ||
qcom,max-voltage-uv = <4400000>; | ||
qcom,fcc-mah = <4000>; | ||
qcom,rbatt-capacitive-mohm = <10>; | ||
qcom,v-cutoff-uv = <3400000>; | ||
qcom,chg-term-ua = <100000>; | ||
qcom,batt-id-kohm = <10>; | ||
qcom,flat-ocv-threshold-uv = <3800000>; | ||
qcom,battery-type = "wingtech-desai-4v4-3000mah"; | ||
|
||
qcom,fcc-temp-lut { | ||
qcom,lut-col-legend = <(-20) 0 25 40 60>; | ||
qcom,lut-data = <4133 4132 4130 4121 4095>; | ||
}; | ||
|
||
qcom,pc-temp-ocv-lut { | ||
qcom,lut-col-legend = <(-20) 0 25 45 60>; | ||
qcom,lut-row-legend = <100 95 90 85 80>, | ||
<75 70 65 60 55>, | ||
<50 45 40 35 30>, | ||
<25 20 16 13 6>, | ||
<5 4 3 2 1>, | ||
<0>; | ||
qcom,lut-data = <4360 4360 4360 4360 4360>, | ||
<4260 4302 4308 4306 4302>, | ||
<4188 4240 4249 4248 4244>, | ||
<4124 4185 4193 4191 4187>, | ||
<4088 4132 4138 4136 4132>, | ||
<4030 4082 4086 4084 4080>, | ||
<3935 4024 4041 4038 4032>, | ||
<3890 3942 3976 3982 3988>, | ||
<3846 3909 3944 3948 3946>, | ||
<3821 3878 3895 3902 3902>, | ||
<3805 3848 3856 3857 3856>, | ||
<3790 3821 3829 3830 3828>, | ||
<3774 3798 3808 3808 3807>, | ||
<3758 3780 3790 3791 3789>, | ||
<3742 3767 3776 3774 3770>, | ||
<3726 3753 3761 3754 3744>, | ||
<3709 3734 3743 3734 3720>, | ||
<3693 3718 3722 3712 3699>, | ||
<3678 3708 3698 3689 3676>, | ||
<3604 3679 3680 3670 3657>, | ||
<3582 3661 3668 3652 3636>, | ||
<3552 3628 3624 3610 3590>, | ||
<3510 3576 3564 3550 3530>, | ||
<3444 3498 3480 3467 3445>, | ||
<3322 3368 3345 3341 3310>, | ||
<3000 3000 3000 3018 3000>; | ||
}; | ||
|
||
qcom,rbatt-sf-lut { | ||
qcom,lut-col-legend = <(-20) 0 25 40 60>; | ||
qcom,lut-row-legend = <100 95 90 85 80>, | ||
<75 70 65 60 55>, | ||
<50 45 40 35 30>, | ||
<25 20 16 13 11>, | ||
<10 9 8 7 6>, | ||
<5 4 3 2 1>; | ||
qcom,lut-data = <1382 266 100 84 79>, | ||
<1379 266 100 84 79>, | ||
<1278 267 100 85 79>, | ||
<1186 269 103 87 80>, | ||
<1162 274 107 90 79>, | ||
<1091 280 112 92 81>, | ||
<974 286 121 98 84>, | ||
<964 241 122 99 87>, | ||
<949 243 128 105 91>, | ||
<977 241 109 102 93>, | ||
<1021 240 98 85 79>, | ||
<1071 241 98 84 79>, | ||
<1124 240 101 87 81>, | ||
<1178 246 104 90 84>, | ||
<1231 262 105 90 84>, | ||
<1292 282 105 87 81>, | ||
<1360 297 103 86 81>, | ||
<1410 309 104 86 81>, | ||
<1322 312 100 83 77>, | ||
<1381 324 99 84 78>, | ||
<1416 334 101 85 79>, | ||
<1453 345 103 88 83>, | ||
<1485 359 107 91 88>, | ||
<1525 379 112 97 93>, | ||
<1576 393 117 102 97>, | ||
<1634 405 120 97 90>, | ||
<1745 412 109 91 84>, | ||
<2055 432 110 91 86>, | ||
<2583 466 115 95 90>, | ||
<5166 565 160 109 109>; | ||
}; | ||
|
||
qcom,ibat-acc-lut { | ||
qcom,lut-col-legend = <(-20) 0 25>; | ||
qcom,lut-row-legend = <0 250 500 1000 1500 2000>; | ||
qcom,lut-data =<4066 4081 4072>, | ||
<2422 4004 4006>, | ||
<1628 3880 3989>, | ||
<492 3340 3943>, | ||
<110 2576 3850>, | ||
<50 1987 3666>; | ||
}; | ||
}; |
Oops, something went wrong.