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 max2
The Patch based on QualComm release TAG:LA.UM.5.6.r1-01900-89xx.0-1 The kernel config file used is oxygen_user_defconfig Change-Id: I2cef84d51b215fc166511a6f472ad0fe2aa39a9d Signed-off-by: wuzuofu <wuzuofu@xiaomi.com>
- Loading branch information
wuzuofu
committed
Jan 8, 2018
1 parent
dc1fa13
commit 7c41252
Showing
392 changed files
with
85,909 additions
and
13,067 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Device tree bindings for IR LED connected through SPI bus which is used as | ||
remote controller. | ||
|
||
The IR LED switch is connected to the MOSI line of the SPI device and the data | ||
are delivered thourgh that. | ||
|
||
Required properties: | ||
- compatible: should be "ir-spi" | ||
|
||
Optional properties: | ||
- irled,switch: specifies the gpio switch which enables the irled | ||
|
||
Example: | ||
|
||
irled@0 { | ||
compatible = "ir-spi"; | ||
reg = <0x0>; | ||
spi-max-frequency = <5000000>; | ||
irled,switch = <&gpr3 3 0>; | ||
|
||
controller-data { | ||
samsung,spi-feedback-delay = <0>; | ||
}; | ||
}; |
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
60 changes: 60 additions & 0 deletions
60
arch/arm/boot/dts/qcom/batterydata-d4-coslight-5300mAh.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,60 @@ | ||
/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved. | ||
* Copyright (C) 2017 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,d4_coslight_5300mah { | ||
qcom,max-voltage-uv = <4400000>; | ||
qcom,nom-batt-capacity-mah = <5300>; | ||
qcom,batt-id-kohm = <100>; | ||
qcom,battery-beta = <3435>; | ||
qcom,battery-type = "d4_coslight"; | ||
qcom,chg-rslow-comp-c1 = <3697337>; | ||
qcom,chg-rslow-comp-c2 = <6273538>; | ||
qcom,chg-rs-to-rslow = <777588>; | ||
qcom,chg-rslow-comp-thr = <0xB5>; | ||
qcom,checksum = <0xD0D9>; | ||
qcom,gui-version = "PMI8950GUI - 2.0.0.16"; | ||
qcom,fg-profile-data = [ | ||
E1 83 C5 7C | ||
F5 80 DD 76 | ||
61 83 C0 6E | ||
DF 88 23 94 | ||
2E 82 EB 99 | ||
FA BC A9 C9 | ||
56 0E 01 88 | ||
89 7D 63 81 | ||
78 77 45 83 | ||
F8 72 10 7C | ||
8F 5F 7B 82 | ||
AB 93 69 B5 | ||
2A C1 58 13 | ||
E5 14 2C 58 | ||
14 70 EE FB | ||
B4 3C C6 3F | ||
DE 33 00 00 | ||
9B 44 4A 3A | ||
3E 45 00 00 | ||
00 00 00 00 | ||
00 00 00 00 | ||
68 6A 70 69 | ||
09 68 84 88 | ||
4C 74 6E 69 | ||
A1 64 4E 79 | ||
9E 6D A9 62 | ||
A7 74 8A A2 | ||
20 BA 60 74 | ||
5E A0 71 0C | ||
28 00 FF 36 | ||
F0 11 30 03 | ||
00 00 00 0C | ||
]; | ||
}; |
60 changes: 60 additions & 0 deletions
60
arch/arm/boot/dts/qcom/batterydata-d4-sunwoda-5300mAh.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,60 @@ | ||
/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved. | ||
* Copyright (C) 2017 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,d4_sunwoda_5300mah { | ||
qcom,max-voltage-uv = <4400000>; | ||
qcom,nom-batt-capacity-mah = <5300>; | ||
qcom,batt-id-kohm = <68>; | ||
qcom,battery-beta = <3435>; | ||
qcom,battery-type = "d4_sunwoda"; | ||
qcom,chg-rslow-comp-c1 = <3079027>; | ||
qcom,chg-rslow-comp-c2 = <3974719>; | ||
qcom,chg-rs-to-rslow = <938740>; | ||
qcom,chg-rslow-comp-thr = <0x9C>; | ||
qcom,checksum = <0xC937>; | ||
qcom,gui-version = "PMI8950GUI - 2.0.0.16"; | ||
qcom,fg-profile-data = [ | ||
F1 83 79 7D | ||
98 81 18 7C | ||
50 83 89 60 | ||
70 7B B1 86 | ||
20 82 68 9A | ||
B0 BD E6 CA | ||
5C 0E 10 88 | ||
AB 7E 59 82 | ||
BB 7C 48 83 | ||
33 72 C0 75 | ||
D1 65 5C 82 | ||
1E 99 3B BC | ||
B6 C8 5E 0D | ||
E5 14 41 58 | ||
14 70 02 FC | ||
26 3D A3 45 | ||
E6 41 00 00 | ||
FE 47 86 31 | ||
CF 38 00 00 | ||
00 00 00 00 | ||
00 00 00 00 | ||
35 70 B0 6A | ||
99 6D A9 88 | ||
D4 75 0D 6B | ||
0C 65 D2 78 | ||
E3 6E D9 62 | ||
EA 6F 0E AA | ||
20 D8 63 1F | ||
66 A0 71 0C | ||
28 00 FF 36 | ||
F0 11 30 03 | ||
00 00 00 0C | ||
]; | ||
}; |
173 changes: 173 additions & 0 deletions
173
arch/arm/boot/dts/qcom/dsi-panel-auo-r61322-1080p-video.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,173 @@ | ||
/* Copyright (c) 2015, The Linux Foundation. All rights reserved. | ||
* Copyright (C) 2017 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. | ||
*/ | ||
&mdss_mdp { | ||
dsi_auo_r61322_1080p_vid: qcom,mdss_dsi_auo_r61322_1080p_video { | ||
qcom,mdss-dsi-panel-name = "auo r61322 1080p video mode dsi panel"; | ||
qcom,mdss-dsi-panel-type = "dsi_video_mode"; | ||
qcom,mdss-dsi-panel-id = <1>; | ||
qcom,mdss-dsi-panel-framerate = <60>; | ||
qcom,mdss-dsi-virtual-channel-id = <0>; | ||
qcom,mdss-dsi-stream = <0>; | ||
qcom,mdss-dsi-panel-width = <1080>; | ||
qcom,mdss-dsi-panel-height = <1920>; | ||
qcom,mdss-dsi-h-front-porch = <150>; | ||
qcom,mdss-dsi-h-back-porch = <40>; | ||
qcom,mdss-dsi-h-pulse-width = <10>; | ||
qcom,mdss-dsi-h-sync-skew = <0>; | ||
qcom,mdss-dsi-v-back-porch = <21>; | ||
qcom,mdss-dsi-v-front-porch = <24>; | ||
qcom,mdss-dsi-v-pulse-width = <2>; | ||
qcom,mdss-dsi-h-left-border = <0>; | ||
qcom,mdss-dsi-h-right-border = <0>; | ||
qcom,mdss-dsi-v-top-border = <0>; | ||
qcom,mdss-dsi-v-bottom-border = <0>; | ||
qcom,mdss-dsi-bpp = <24>; | ||
qcom,mdss-dsi-underflow-color = <0x0>; | ||
qcom,mdss-dsi-border-color = <0>; | ||
qcom,mdss-dsi-h-sync-pulse = <0>; | ||
qcom,mdss-dsi-traffic-mode = "burst_mode"; | ||
qcom,mdss-dsi-bllp-eof-power-mode; | ||
qcom,mdss-dsi-bllp-power-mode; | ||
qcom,mdss-dsi-lp11-init; | ||
qcom,mdss-dsi-lane-0-state; | ||
qcom,mdss-dsi-lane-1-state; | ||
qcom,mdss-dsi-lane-2-state; | ||
qcom,mdss-dsi-lane-3-state; | ||
qcom,mdss-dsi-panel-timings = [e8 4f 3b 00 ac a6 3d 52 42 03 04 00]; | ||
qcom,mdss-dsi-t-clk-post = <0x0D>; | ||
qcom,mdss-dsi-t-clk-pre = <0x30>; | ||
qcom,mdss-dsi-bl-min-level = <1>; | ||
qcom,mdss-dsi-bl-max-level = <4095>; | ||
qcom,mdss-brightness-max-level = <4095>; | ||
qcom,mdss-dsi-dma-trigger = "trigger_sw"; | ||
qcom,mdss-dsi-mdp-trigger = "none"; | ||
qcom,mdss-dsi-on-command = [ | ||
29 00 00 00 00 00 02 B0 00 | ||
29 00 00 00 00 00 02 D6 01 | ||
29 00 00 00 00 00 09 B3 14 40 00 00 00 00 00 00 | ||
29 00 00 00 00 00 03 B4 0C 00 | ||
29 00 00 00 00 00 03 B6 0B D3 | ||
29 00 00 00 00 00 2B C1 0C 60 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 10 02 0F 10 00 88 00 00 01 00 00 00 62 30 40 A5 0F 04 20 | ||
29 00 00 00 00 00 0A C2 20 F0 07 80 17 18 00 00 00 | ||
29 00 00 00 00 00 16 C4 70 00 03 00 00 00 00 00 00 00 00 00 00 00 00 05 01 00 00 01 02 | ||
29 00 00 00 00 00 0C C6 78 28 4B 1E 41 00 00 00 00 00 00 | ||
29 00 00 00 00 00 0E CB FF FF 0F FF FF 0F 00 00 00 00 00 00 00 | ||
29 00 00 00 00 00 02 CC 23 | ||
29 00 00 00 00 00 2A CD 01 04 04 04 04 01 03 02 10 0F 0E 0D 0C 0B 0A 09 00 12 04 04 04 04 04 04 12 00 09 0A 0B 0C 0D 0E 0F 10 02 03 01 04 04 04 04 | ||
29 00 00 00 00 00 04 C3 00 00 00 | ||
29 00 00 00 00 00 0E D0 11 59 BB 68 D9 4C 99 11 19 8C CD 14 00 | ||
29 00 00 00 00 00 1E D3 A3 33 BB DD D5 33 33 33 00 00 0A 91 91 21 21 3B 3B 33 33 37 60 FD FE 07 10 00 00 00 52 | ||
29 00 00 00 00 00 18 D7 10 F0 04 2A 04 10 00 80 03 1D C0 00 DC 10 10 60 10 07 00 00 00 00 00 | ||
29 00 00 00 00 00 20 EB 10 55 55 44 50 55 55 55 55 51 11 44 44 44 10 21 0E 00 00 00 00 00 00 44 44 44 44 33 37 44 05 | ||
29 00 00 00 00 00 1F C7 16 23 2A 33 3F 4B 54 61 44 4C 57 63 6A 70 77 0E 23 2A 33 3F 4B 54 61 44 4C 57 63 6A 70 77 | ||
29 00 00 00 00 00 14 C8 00 00 FF 05 FF EC 00 00 01 04 FE FC 00 00 01 05 09 FA 00 | ||
29 00 00 00 00 00 07 B8 07 87 26 18 00 32 | ||
29 00 00 00 00 00 07 B9 07 75 61 20 16 87 | ||
29 00 00 00 00 00 07 BA 07 70 81 20 45 B4 | ||
29 00 00 00 00 00 04 BB 01 1E 14 | ||
29 00 00 00 00 00 04 BC 01 50 32 | ||
29 00 00 00 00 00 04 BD 00 B4 A0 | ||
29 00 00 00 00 00 21 CA 00 80 80 80 80 80 80 80 08 20 80 80 0A 4A 37 A0 55 F8 0C 0C 20 10 3F 3F 00 00 10 10 3F 3F 3F 3F | ||
29 00 00 00 00 00 02 B0 03 | ||
39 00 00 00 00 00 02 51 FF | ||
39 00 00 00 00 00 02 53 24 | ||
39 00 00 00 00 00 02 55 00 | ||
05 01 00 00 14 00 02 29 00 | ||
05 01 00 00 78 00 02 11 00]; | ||
qcom,mdss-dsi-off-command = [ | ||
05 01 00 00 14 00 02 28 00 | ||
05 01 00 00 32 00 02 10 00]; | ||
qcom,mdss-dsi-on-command-state = "dsi_hs_mode"; | ||
qcom,mdss-dsi-off-command-state = "dsi_hs_mode"; | ||
qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; | ||
qcom,mdss-dsi-reset-sequence = <0 5>, <1 10>; | ||
qcom,mdss-dsi-reset-off-delay = <1>; | ||
qcom,mdss-dsi-tx-eot-append; | ||
qcom,cont-splash-enabled; | ||
qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; | ||
qcom,mdss-pan-physical-width-dimension = <80>; | ||
qcom,mdss-pan-physical-height-dimension = <142>; | ||
qcom,mdss-night-brightness = <9 27 44 62>; | ||
qcom,dispparam-enabled; | ||
qcom,mdss-panel-on-dimming-delay = <120>; | ||
qcom,mdss-dsi-dispparam-dimmingon-command = [39 01 00 00 01 00 02 53 2C]; | ||
qcom,mdss-dsi-dispparam-ceon-command = [ | ||
29 00 00 00 00 00 02 B0 00 | ||
29 00 00 00 00 00 21 CA 01 00 89 A8 B0 9C 90 90 08 20 80 80 4A 4A 4A 4A 80 80 02 0B 00 00 00 00 00 00 10 10 3F 3F 3F 3F | ||
29 01 00 00 00 00 02 B0 03 | ||
]; | ||
qcom,mdss-dsi-dispparam-ceon-command-state = "dsi_hs_mode"; | ||
qcom,mdss-dsi-dispparam-ceoff-command = [ | ||
29 00 00 00 00 00 02 B0 00 | ||
29 00 00 00 00 00 02 CA 00 | ||
29 01 00 00 00 00 02 B0 03 | ||
]; | ||
qcom,mdss-dsi-dispparam-ceoff-command-state = "dsi_hs_mode"; | ||
qcom,mdss-dsi-dispparam-cabcon-command = [ | ||
29 00 00 00 00 00 02 B0 04 | ||
15 00 00 00 00 00 02 55 01 | ||
29 00 00 00 00 00 07 B8 07 87 09 00 28 88 | ||
29 00 00 00 00 00 19 CE 2D 40 4C 5A 69 77 84 93 A2 B1 C1 D1 E0 F0 F1 F2 FF 04 00 0f 0f 42 04 00 | ||
29 00 00 00 00 00 14 C8 00 00 00 00 00 FC 00 00 00 00 00 FC 00 00 00 00 00 FC 00 | ||
29 00 00 00 00 00 0C F9 20 3F E0 00 00 07 FF 00 00 07 FF | ||
29 01 00 00 00 00 02 B0 03 | ||
]; | ||
qcom,mdss-dsi-dispparam-cabcon-command-state = "dsi_hs_mode"; | ||
qcom,mdss-dsi-dispparam-cabcguion-command = [ | ||
29 00 00 00 00 00 02 B0 04 | ||
15 00 00 00 00 00 02 55 01 | ||
29 00 00 00 00 00 07 B8 07 87 09 00 28 88 | ||
29 00 00 00 00 00 19 CE 2D 40 4C 5A 69 77 84 93 A2 B1 C1 D1 E0 F0 F1 F2 FF 04 00 0f 0f 42 04 00 | ||
29 00 00 00 00 00 14 C8 00 00 00 00 00 FC 00 00 00 00 00 FC 00 00 00 00 00 FC 00 | ||
29 00 00 00 00 00 0C F9 20 3F E0 00 00 07 FF 00 00 07 FF | ||
29 01 00 00 00 00 02 B0 03 | ||
]; | ||
qcom,mdss-dsi-dispparam-cabcguion-command-state = "dsi_hs_mode"; | ||
qcom,mdss-dsi-dispparam-cabcstillon-command = [ | ||
29 00 00 00 00 00 02 B0 04 | ||
15 00 00 00 00 00 02 55 02 | ||
29 00 00 00 00 00 07 B9 07 8C 00 00 17 FE | ||
29 00 00 00 00 00 19 CE 2D 40 4C 5A 69 77 84 93 A2 B1 C1 D1 E0 F0 F1 F2 FF 04 00 0f 0f 42 04 00 | ||
29 00 00 00 00 00 14 C8 00 00 00 00 00 FC 00 00 00 00 00 FC 00 00 00 00 00 FC 00 | ||
29 00 00 00 00 00 0C F9 20 3F E0 00 00 07 FF 00 00 07 FF | ||
29 01 00 00 00 00 02 B0 03 | ||
]; | ||
qcom,mdss-dsi-dispparam-cabcstillon-command-state = "dsi_hs_mode"; | ||
qcom,mdss-dsi-dispparam-cabcmovieon-command = [ | ||
29 00 00 00 00 00 02 B0 04 | ||
15 00 00 00 00 00 02 55 03 | ||
29 00 00 00 00 00 07 BA 07 8A 03 00 1D BA | ||
29 00 00 00 00 00 19 CE 2D 40 4C 5A 69 77 84 93 A2 B1 C1 D1 E0 F0 F1 F2 FF 04 00 0f 0f 42 04 00 | ||
29 00 00 00 00 00 14 C8 00 00 00 00 00 FC 00 00 00 00 00 FC 00 00 00 00 00 FC 00 | ||
29 00 00 00 00 00 0C F9 20 3F E0 00 00 07 FF 00 00 07 FF | ||
29 01 00 00 00 00 02 B0 03 | ||
]; | ||
qcom,mdss-dsi-dispparam-cabcmovieon-command-state = "dsi_hs_mode"; | ||
qcom,mdss-dsi-dispparam-cabcoff-command = [ | ||
39 01 00 00 01 00 02 55 00 | ||
]; | ||
qcom,mdss-dsi-dispparam-cabcoff-command-state = "dsi_hs_mode"; | ||
qcom,mdss-dsi-dispparam-papermode2-command = [ | ||
29 00 00 00 00 00 02 B0 00 | ||
29 00 00 00 00 00 14 C8 01 00 FD 02 07 FC 00 00 FC 01 01 C3 00 00 F8 01 01 86 00 | ||
29 01 00 00 00 00 02 B0 03 | ||
]; | ||
qcom,mdss-dsi-dispparam-papermode2-command-state = "dsi_hs_mode"; | ||
qcom,mdss-dsi-dispparam-default-command = [ | ||
29 00 00 00 00 00 02 B0 00 | ||
29 00 00 00 00 00 14 C8 00 00 FF 05 FF EC 00 00 01 04 FE FC 00 00 01 05 09 FA 00 | ||
29 01 00 00 00 00 02 B0 03 | ||
]; | ||
qcom,mdss-dsi-dispparam-default-command-state = "dsi_hs_mode"; | ||
}; | ||
}; |
Oops, something went wrong.
7c41252
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How you know?