Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Synchronize codes for OxygenOS 4.7.1
kernel device tree source code for OnePlus 5T N MR1 device
- Loading branch information
aaron
committed
Nov 16, 2017
1 parent
66d12bf
commit bed1ab9
Showing
617 changed files
with
104,756 additions
and
13,944 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
fingerprint | ||
|
||
Required Properties: | ||
- compatible: Must be "ompatible = "oneplus,fpdetect". |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Tri-state key | ||
|
||
Required Properties: | ||
- compatible: Must be "ompatible = "oneplus,tri-state-key". | ||
|
||
|
||
Example: | ||
|
||
tri_state_key { | ||
compatible = "oneplus,tri-state-key"; | ||
status = "okay"; | ||
interrupt-parent = <&tlmm>; | ||
tristate,gpio_key1 = <&tlmm 40 0x00>; | ||
tristate,gpio_key2 = <&tlmm 42 0x00>; | ||
tristate,gpio_key3 = <&tlmm 26 0x00>; | ||
pinctrl-names = "pmx_tri_state_key_active", | ||
"pmx_tri_state_key_suspend"; | ||
pinctrl-0 = <&tri_state_key_active>; | ||
pinctrl-1 = <&tri_state_key_suspend>; | ||
}; | ||
|
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
18 changes: 18 additions & 0 deletions
18
Documentation/devicetree/bindings/misc/goodix_fingerprint_tee.txt
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,18 @@ | ||
Goodix Fingerprint TEE driver | ||
|
||
Required properties: | ||
|
||
-compatible : should be "goodix,fingerprint". | ||
-interrupt-parent : gpio interrupt parent declare | ||
-fp-gpio-irq : irq gpio declare | ||
-fp-gpio-reset : reset gpio declare | ||
|
||
Example: | ||
|
||
goodix_fp { | ||
compatible = "goodix,fingerprint"; | ||
interrupt-parent = <&tlmm>; | ||
fp-gpio-irq = <&tlmm 58 0x00>; | ||
fp-gpio-reset = <&tlmm 59 0x00>; | ||
status = "okay"; | ||
}; |
23 changes: 23 additions & 0 deletions
23
Documentation/devicetree/bindings/power/supply/qcom/bq27541_fuelgauger.txt
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,23 @@ | ||
BQ27541 battery charger | ||
|
||
BQ27541 is a single-cell switching mode battery charger. It can charge | ||
the battery and power the system via the USB and AC adapter input. | ||
|
||
The BQ27541 interface is via I2C bus. | ||
|
||
Required Properties: | ||
- compatible: Must be "ti,bq27541-battery". | ||
- reg: The device 7-bit I2C address. | ||
|
||
|
||
Example: | ||
|
||
&i2c_7 { | ||
bq27541-battery@55 { | ||
status = "ok"; | ||
compatible = "ti,bq27541-battery"; | ||
reg = <0x55>; | ||
qcom,modify-soc-smooth; | ||
}; | ||
|
||
}; |
33 changes: 33 additions & 0 deletions
33
Documentation/devicetree/bindings/power/supply/qcom/oneplus_fastcg.txt
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,33 @@ | ||
oneplus_fastcg | ||
|
||
BQ27541 is a single-cell switching mode battery charger. It can charge | ||
the battery and power the system via the USB and AC adapter input. | ||
|
||
The BQ27541 interface is via I2C bus. | ||
|
||
Required Properties: | ||
- compatible: Must be "ompatible = "microchip,oneplus_fastcg". | ||
- reg: The device 7-bit I2C address. | ||
|
||
|
||
Example: | ||
|
||
&i2c_7 { | ||
oneplus_fastcg@26{ | ||
status = "ok"; | ||
compatible = "microchip,oneplus_fastcg"; | ||
reg = <0x26>; | ||
microchip,mcu-en-gpio = <&tlmm 96 0x00>; | ||
microchip,usb-sw-1-gpio = <&tlmm 90 0x00>; | ||
microchip,usb-sw-2-gpio = <&tlmm 91 0x00>; | ||
microchip,ap-clk = <&tlmm 79 0x00>; | ||
microchip,ap-data = <&tlmm 80 0x00>; | ||
|
||
pinctrl-names = "mux_fastchg_active", "mux_fastchg_suspend"; | ||
pinctrl-0 = <&fastchg_active &usb_sw_active | ||
&ap_clk_active &ap_data_active>; | ||
pinctrl-1 = <&usb_sw_suspend &fastchg_suspend | ||
&ap_clk_suspend &ap_data_suspend>; | ||
}; | ||
|
||
}; |
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
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
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,80 @@ | ||
/* Copyright (c) 2016, The Linux Foundation. All rights reserved. | ||
* | ||
* 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,OP_3300mah { | ||
qcom,max-voltage-uv = <4370000>; | ||
qcom,fg-cc-cv-threshold-mv = <4360>; | ||
qcom,fastchg-current-ma = <3000>; | ||
qcom,batt-id-kohm = <200>; | ||
qcom,battery-beta = <3450>; | ||
qcom,battery-type = "OP_3300mah"; | ||
qcom,checksum = <0xE06B>; | ||
qcom,gui-version = "PMI8998GUI - 0.0.0.82"; | ||
qcom,fg-profile-data = [ | ||
A4 1F 6E 05 | ||
9C 0A 16 06 | ||
32 1D 24 E5 | ||
61 0B 1B 15 | ||
AD 17 8C 22 | ||
EB 3C 87 4A | ||
5B 00 00 00 | ||
12 00 00 00 | ||
00 00 62 C2 | ||
0C CD D8 C2 | ||
19 00 0C 00 | ||
7E 00 C7 EC | ||
E3 05 5D FA | ||
97 F5 12 12 | ||
C2 05 90 3B | ||
22 09 40 40 | ||
07 00 05 00 | ||
7D 1F DE 05 | ||
3F 0A 73 06 | ||
72 1D E2 F5 | ||
6F 12 BF 1D | ||
88 18 FB 22 | ||
8D 45 C6 52 | ||
54 00 00 00 | ||
0F 00 00 00 | ||
00 00 BD CD | ||
55 C2 5D C5 | ||
14 00 00 00 | ||
7E 00 C7 EC | ||
60 06 BB 00 | ||
B3 FC 61 03 | ||
6A 06 78 1B | ||
B3 33 08 33 | ||
07 10 00 00 | ||
3E 0B 99 45 | ||
14 00 19 00 | ||
AE 01 0A FA | ||
FF 00 00 00 | ||
00 00 00 00 | ||
00 00 00 00 | ||
00 00 00 00 | ||
00 00 00 00 | ||
00 00 00 00 | ||
00 00 00 00 | ||
00 00 00 00 | ||
00 00 00 00 | ||
00 00 00 00 | ||
00 00 00 00 | ||
00 00 00 00 | ||
00 00 00 00 | ||
00 00 00 00 | ||
00 00 00 00 | ||
00 00 00 00 | ||
00 00 00 00 | ||
00 00 00 00 | ||
00 00 00 00 | ||
]; | ||
}; |
Oops, something went wrong.
bed1ab9
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.
Hi Oneplus Official! It's glad to see you're supporting custom development now! 😁. In order to improve custom development, can you fill these values ? i mean the partition sizes of OnePlus 5T please?
Will be helpful.Thanks you!
This values will be added to BoardConfig.mk-->
Partitions
BOARD_BOOTIMAGE_PARTITION_SIZE :=
BOARD_CACHEIMAGE_PARTITION_SIZE :=
BOARD_RECOVERYIMAGE_PARTITION_SIZE :=
BOARD_SYSTEMIMAGE_PARTITION_SIZE :=
BOARD_USERDATAIMAGE_PARTITION_SIZE :=
BOARD_FLASH_BLOCK_SIZE :=
bed1ab9
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.
@Alberteno values are here already??? please take a look of it. Thanks.
https://github.com/OnePlusOSS/android_vendor_qcom_cobalt/blob/oneplus/QC8998_5T_N_7.1/BoardConfig.mk
bed1ab9
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.
and thanks you for reply.I want to to confirm if the OP5T's codename is "dumpling" or something else?
bed1ab9
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.
Hello. Were you guys able to compile?
bed1ab9
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.
bed1ab9
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.
@Alberteno just extract them?
bed1ab9
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.