Skip to content

Commit

Permalink
Synchronize codes for OxygenOS 4.7.1
Browse files Browse the repository at this point in the history
kernel device tree source code for OnePlus 5T N MR1 device
  • Loading branch information
aaron committed Nov 16, 2017
1 parent 66d12bf commit bed1ab9
Show file tree
Hide file tree
Showing 617 changed files with 104,756 additions and 13,944 deletions.
1 change: 0 additions & 1 deletion .get_maintainer.ignore

This file was deleted.

5 changes: 1 addition & 4 deletions Documentation/devicetree/bindings/arm/msm/rdbg-smp2p.txt
Expand Up @@ -2,15 +2,12 @@ Qualcomm Technologies, Inc. Remote Debugger (RDBG) driver

Required properties:
-compatible : Should be one of
To communicate with adsp
To communicate with modem
qcom,smp2pgpio_client_rdbg_2_in (inbound)
qcom,smp2pgpio_client_rdbg_2_out (outbound)
To communicate with modem
qcom,smp2pgpio_client_rdbg_1_in (inbound)
qcom,smp2pgpio_client_rdbg_1_out (outbound)
To communicate with cdsp
qcom,smp2pgpio_client_rdbg_5_in (inbound)
qcom,smp2pgpio_client_rdbg_5_out (outbound)
-gpios : the relevant gpio pins of the entry.

Example:
Expand Down
4 changes: 4 additions & 0 deletions Documentation/devicetree/bindings/fingerprint_detcet.txt
@@ -0,0 +1,4 @@
fingerprint

Required Properties:
- compatible: Must be "ompatible = "oneplus,fpdetect".
1 change: 0 additions & 1 deletion Documentation/devicetree/bindings/input/qpnp-power-on.txt
Expand Up @@ -85,7 +85,6 @@ Optional properties:
- qcom,kpdpwr-sw-debounce Boolean property to enable the debounce logic
on the KPDPWR_N rising edge.


All the below properties are in the sub-node section (properties of the child
node).

Expand Down
21 changes: 21 additions & 0 deletions Documentation/devicetree/bindings/input/tri_state_key.txt
@@ -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>;
};

5 changes: 0 additions & 5 deletions Documentation/devicetree/bindings/mhi/msm_mhi.txt
Expand Up @@ -18,11 +18,6 @@ Required properties:
- qcom,msm-bus,num-paths
- qcom,msm-bus,vectors-KBps
- mhi-chan-cfg-#: mhi channel configuration parameters for platform
defined as below <A B C D>:
A = chan number
B = maximum descriptors
C = event ring associated with channel
D = flags defined by mhi_macros.h GET_CHAN_PROPS
- mhi-event-cfg-#: mhi event ring configuration parameters for platform
- mhi-event-rings: number of event rings supported by platform
- mhi-dev-address-win-size: size of the MHI device addressing window
Expand Down
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/misc/goodix_fingerprint_tee.txt
@@ -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";
};
@@ -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;
};

};
@@ -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>;
};

};
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/vendor-prefixes.txt
Expand Up @@ -257,3 +257,4 @@ zyxel ZyXEL Communications Corp.
zarlink Zarlink Semiconductor
zii Zodiac Inflight Innovations
zte ZTE Corp.
oneplus OnePlus Technologies
23 changes: 23 additions & 0 deletions MAINTAINERS
Expand Up @@ -11973,6 +11973,29 @@ L: linux-mm@kvack.org
S: Maintained
F: mm/zswap.c

TRI_STATE_KEY
M: zenk <taokai@oneplus.net>
S: Maintained
F: Documentation/devicetree/bindings/input/tri_state_key.txt

FASTCHARGE
M: zenk <taokai@oneplus.net>
S: Maintained
F: Documentation/devicetree/bindings/power/supply/qcom/oneplus_fastcg.txt
F: Documentation/devicetree/bindings/power/supply/qcom/bq27541_fuelgauger.txt

DTSI
M: zenk <taokai@oneplus.net>
S: Maintained
F: arch/arm/boot/dts/qcom/dumpling-t0.dtsi
F: arch/arm/boot/dts/qcom/dumpling-v2.1-t0.dts
F: arch/arm/boot/dts/qcom/dumpling-evt1.dtsi
F: arch/arm/boot/dts/qcom/dumpling-v2.1-evt1.dts
F: arch/arm/boot/dts/qcom/dumpling-evt2.dtsi
F: arch/arm/boot/dts/qcom/dumpling-v2.1-evt2.dts
F: arch/arm/boot/dts/qcom/dumpling-dvt.dtsi
F: arch/arm/boot/dts/qcom/dumpling-v2.1-dvt.dts

THE REST
M: Linus Torvalds <torvalds@linux-foundation.org>
L: linux-kernel@vger.kernel.org
Expand Down
10 changes: 10 additions & 0 deletions Makefile
Expand Up @@ -404,6 +404,16 @@ KBUILD_AFLAGS_MODULE := -DMODULE
KBUILD_CFLAGS_MODULE := -DMODULE
KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds

#CFLAGS_KERNEL += -DJUST_FOR_BRINGUP


ifeq ($(OEM_USE_F2FS),true)
KBUILD_CFLAGS += -DOEM_USE_F2FS
KBUILD_CPPFLAGS += -DOEM_USE_F2FS
CFLAGS_KERNEL += -DOEM_USE_F2FS
CFLAGS_MODULE += -DOEM_USE_F2FS
endif

# Read KERNELRELEASE from include/config/kernel.release (if it exists)
KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null)
KERNELVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(SUBLEVEL)))$(EXTRAVERSION)
Expand Down
40 changes: 7 additions & 33 deletions arch/arm/boot/dts/qcom/Makefile
Expand Up @@ -102,39 +102,13 @@ dtb-$(CONFIG_ARCH_MSM8996) += msm8996-v2-pmi8994-cdp.dtb \
apq8096-v3-pmi8996-mdm9x55-slimbus-mtp.dtb \
apq8096-v3-pmi8996-dragonboard.dtb

dtb-$(CONFIG_ARCH_MSM8998) += msm8998-sim.dtb \
msm8998-rumi.dtb \
msm8998-cdp.dtb \
msm8998-mtp.dtb \
msm8998-qrd.dtb \
msm8998-v2-sim.dtb \
msm8998-v2-rumi.dtb \
msm8998-v2-mtp.dtb \
msm8998-v2-cdp.dtb \
msm8998-v2-qrd.dtb \
msm8998-qrd-skuk.dtb \
msm8998-v2-qrd-skuk.dtb \
msm8998-qrd-vr1.dtb \
msm8998-v2-qrd-vr1.dtb \
msm8998-v2-qrd-skuk-evt3.dtb \
msm8998-v2-qrd-skuk-hdk.dtb \
apq8998-mtp.dtb \
apq8998-cdp.dtb \
apq8998-v2-mtp.dtb \
apq8998-v2-cdp.dtb \
apq8998-v2-qrd.dtb \
apq8998-v2-qrd-skuk-hdk.dtb \
msm8998-v2.1-mtp.dtb \
msm8998-v2.1-mtp-4k-display.dtb \
msm8998-v2.1-cdp.dtb \
msm8998-v2.1-qrd.dtb \
apq8998-v2.1-mtp.dtb \
apq8998-v2.1-cdp.dtb \
apq8998-v2.1-qrd.dtb \
apq8998-v2.1-mediabox.dtb \
msm8998-v2.1-interposer-sdm660-cdp.dtb \
msm8998-v2.1-interposer-sdm660-mtp.dtb \
msm8998-v2.1-interposer-sdm660-qrd.dtb

dtb-$(CONFIG_ARCH_MSM8998) += cheeseburger-v2.1-dvt1.dtb
dtb-$(CONFIG_ARCH_MSM8998) += cheeseburger-v2.1-pvt.dtb
dtb-$(CONFIG_ARCH_MSM8998) += cheeseburger-v2.1-pvt1.dtb
dtb-$(CONFIG_ARCH_MSM8998) += dumpling-v2.1-dvt.dtb
dtb-$(CONFIG_ARCH_MSM8998) += dumpling-v2.1-pvt.dtb


dtb-$(CONFIG_ARCH_MSMHAMSTER) += msmhamster-rumi.dtb

Expand Down
80 changes: 80 additions & 0 deletions arch/arm/boot/dts/qcom/OP-batterydata-3300mah.dtsi
@@ -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
];
};

7 comments on commit bed1ab9

@pratikmandi
Copy link

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 :=

@desuvinodkumar
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pratikmandi
Copy link

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?

@jgcaap
Copy link

@jgcaap jgcaap commented on bed1ab9 Nov 23, 2017

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?

@pratikmandi
Copy link

@pratikmandi pratikmandi commented on bed1ab9 Dec 7, 2017 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jumoog
Copy link

@jumoog jumoog commented on bed1ab9 Dec 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Alberteno just extract them?

@pratikmandi
Copy link

@pratikmandi pratikmandi commented on bed1ab9 Dec 9, 2017 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.