Skip to content

Commit

Permalink
Synchronize codes for OnePlus 7T Pro 5G Oxygen OS 10.0.16
Browse files Browse the repository at this point in the history
Add dts files.

Change-Id: I0615a8de0f56d5df1008c890c073a9dcf26c04ea
  • Loading branch information
OnePlusTomCheng committed Dec 9, 2019
1 parent f8fb5fb commit 6b74918
Show file tree
Hide file tree
Showing 13 changed files with 1,572 additions and 1 deletion.
12 changes: 11 additions & 1 deletion arch/arm64/boot/dts/qcom/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,12 @@ ifeq ($(CONFIG_BUILD_ARM64_DT_OVERLAY),y)
hotdog-overlay-t0.dtbo \
hotdog-overlay-evt.dtbo \
hotdog-overlay-dvt.dtbo \
hotdog-overlay-pvt.dtbo
hotdog-overlay-pvt.dtbo \
hotdogg-sdx55m-overlay-t0.dtbo \
hotdogg-sdx55m-overlay-evt1.dtbo \
hotdogg-sdx55m-overlay-evt2.dtbo \
hotdogg-sdx55m-overlay-dvt.dtbo \
hotdogg-sdx55m-overlay-pvt.dtbo

sm8150-mtp-overlay.dtbo-base := sm8150.dtb sm8150-v2.dtb sm8150p.dtb sm8150p-v2.dtb
sm8150-sdxprairie-mtp-overlay.dtbo-base := sm8150.dtb sm8150-v2.dtb sm8150p.dtb sm8150p-v2.dtb
Expand Down Expand Up @@ -137,6 +142,11 @@ hotdog-overlay-t0.dtbo-base := sm8150.dtb sm8150-v2.dtb sm8150p.dtb sm8150p-v2.d
hotdog-overlay-evt.dtbo-base := sm8150.dtb sm8150-v2.dtb sm8150p.dtb sm8150p-v2.dtb
hotdog-overlay-dvt.dtbo-base := sm8150.dtb sm8150-v2.dtb sm8150p.dtb sm8150p-v2.dtb
hotdog-overlay-pvt.dtbo-base := sm8150.dtb sm8150-v2.dtb sm8150p.dtb sm8150p-v2.dtb
hotdogg-sdx55m-overlay-t0.dtbo-base := sm8150.dtb sm8150-v2.dtb sm8150p.dtb sm8150p-v2.dtb
hotdogg-sdx55m-overlay-evt1.dtbo-base := sm8150.dtb sm8150-v2.dtb sm8150p.dtb sm8150p-v2.dtb
hotdogg-sdx55m-overlay-evt2.dtbo-base := sm8150.dtb sm8150-v2.dtb sm8150p.dtb sm8150p-v2.dtb
hotdogg-sdx55m-overlay-dvt.dtbo-base := sm8150.dtb sm8150-v2.dtb sm8150p.dtb sm8150p-v2.dtb
hotdogg-sdx55m-overlay-pvt.dtbo-base := sm8150.dtb sm8150-v2.dtb sm8150p.dtb sm8150p-v2.dtb
hotdogb-overlay-t0.dtbo-base := sm8150.dtb sm8150-v2.dtb sm8150p.dtb sm8150p-v2.dtb
hotdogb-overlay-evt.dtbo-base := sm8150.dtb sm8150-v2.dtb sm8150p.dtb sm8150p-v2.dtb
hotdogb-overlay-evt-second.dtbo-base := sm8150.dtb sm8150-v2.dtb sm8150p.dtb sm8150p-v2.dtb
Expand Down
39 changes: 39 additions & 0 deletions arch/arm64/boot/dts/qcom/hotdog-overlay-dvt.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/* Copyright (c) 2017-2018, 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.
*/

/dts-v1/;
/plugin/;

#include <dt-bindings/clock/qcom,gcc-sm8150.h>
#include <dt-bindings/clock/qcom,camcc-sm8150.h>
#include <dt-bindings/clock/qcom,rpmh.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

#include "sm8150-mtp.dtsi"
#include "sm8150-mtp-audio-overlay.dtsi"
#include "sm8150-oem-camera-hotdog-t0.dtsi"

#include "sm8150-oem.dtsi"
#include "hotdog.dtsi"
#include "hotdog_sm8150.dtsi"
#include "hotdog_dvt.dtsi"

/ {
model = "MTP 19081 DVT 13";
compatible = "qcom,sm8150-mtp", "qcom,sm8150", "qcom,mtp";
qcom,board-id = <8 0 >;
/*we can add project id to this array,uefi can auto read it,if new project,we add to this array */
oem,project-id = <19801>;
/*we can add hw id to this array,uefi can auto read it,if new hw,we add to this array */
oem,hw-id = <13>;
};

39 changes: 39 additions & 0 deletions arch/arm64/boot/dts/qcom/hotdog-overlay-evt.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/* Copyright (c) 2017-2018, 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.
*/

/dts-v1/;
/plugin/;

#include <dt-bindings/clock/qcom,gcc-sm8150.h>
#include <dt-bindings/clock/qcom,camcc-sm8150.h>
#include <dt-bindings/clock/qcom,rpmh.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

#include "sm8150-mtp.dtsi"
#include "sm8150-mtp-audio-overlay.dtsi"
#include "sm8150-oem-camera-hotdog-t0.dtsi"

#include "sm8150-oem.dtsi"
#include "hotdog.dtsi"
#include "hotdog_sm8150.dtsi"
#include "hotdog_evt1.dtsi"
#include "hotdog_evt2.dtsi"
/ {
model = "MTP 19801 EVT 12";
compatible = "qcom,sm8150-mtp", "qcom,sm8150", "qcom,mtp";
qcom,board-id = <8 0>;
/*we can add project id to this array,uefi can auto read it,if new project,we add to this array */
oem,project-id = <19801>;
/*we can add hw id to this array,uefi can auto read it,if new hw,we add to this array */
oem,hw-id = <12>;
};

39 changes: 39 additions & 0 deletions arch/arm64/boot/dts/qcom/hotdog-overlay-pvt.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/* Copyright (c) 2017-2018, 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.
*/

/dts-v1/;
/plugin/;

#include <dt-bindings/clock/qcom,gcc-sm8150.h>
#include <dt-bindings/clock/qcom,camcc-sm8150.h>
#include <dt-bindings/clock/qcom,rpmh.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

#include "sm8150-mtp.dtsi"
#include "sm8150-mtp-audio-overlay.dtsi"
#include "sm8150-oem-camera-hotdog-t0.dtsi"

#include "sm8150-oem.dtsi"
#include "hotdog.dtsi"
#include "hotdog_sm8150.dtsi"
#include "hotdog_pvt.dtsi"

/ {
model = "MTP 19801 MP 14 15";
compatible = "qcom,sm8150-mtp", "qcom,sm8150", "qcom,mtp";
qcom,board-id = <8 0>;
/*we can add project id to this array,uefi can auto read it,if new project,we add to this array */
oem,project-id = <19801>;
/*we can add hw id to this array,uefi can auto read it,if new hw,we add to this array */
oem,hw-id = <14 15>;
};

39 changes: 39 additions & 0 deletions arch/arm64/boot/dts/qcom/hotdog-overlay-t0.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/* Copyright (c) 2017-2018, 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.
*/

/dts-v1/;
/plugin/;

#include <dt-bindings/clock/qcom,gcc-sm8150.h>
#include <dt-bindings/clock/qcom,camcc-sm8150.h>
#include <dt-bindings/clock/qcom,rpmh.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

#include "sm8150-mtp.dtsi"
#include "sm8150-mtp-audio-overlay.dtsi"
#include "sm8150-oem-camera-hotdog-t0.dtsi"

#include "sm8150-oem.dtsi"
#include "hotdog.dtsi"
#include "hotdog_sm8150.dtsi"
#include "hotdog_t0.dtsi"

/ {
model = "MTP 19801 T0 11";
compatible = "qcom,sm8150-mtp", "qcom,sm8150", "qcom,mtp";
qcom,board-id = <8 0>;
/*we can add project id to this array,uefi can auto read it,if new project,we add to this array */
oem,project-id = <19801>;
/*we can add hw id to this array,uefi can auto read it,if new hw,we add to this array */
oem,hw-id = <11>;
};

7 changes: 7 additions & 0 deletions arch/arm64/boot/dts/qcom/hotdogg-sdx55m-ois.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*this is for sm8150_Q version */
&ois_rear_0 {
ois_gyro,id = <1>;//19801/19861
};
&ois_rear_1 {
ois_gyro,id = <1>;//19801/19861
};
43 changes: 43 additions & 0 deletions arch/arm64/boot/dts/qcom/hotdogg-sdx55m-overlay-dvt.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/* Copyright (c) 2018, 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.
*/

/dts-v1/;
/plugin/;

#include <dt-bindings/clock/qcom,gcc-sm8150.h>
#include <dt-bindings/clock/qcom,camcc-sm8150.h>
#include <dt-bindings/clock/qcom,rpmh.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

#include "sm8150-mtp.dtsi"

#include "sdx5xm-external-soc.dtsi"
#include "sm8150-sdxprairie.dtsi"
#include "sm8150-mtp-audio-overlay.dtsi"
#include "sm8150-oem-camera-hotdog-t0.dtsi"
#include "hotdogg-sdx55m-ois.dtsi"


#include "sm8150-oem.dtsi"
#include "hotdog.dtsi"
#include "hotdogg-sdx55m.dtsi"
#include "hotdog_dvt.dtsi"

/ {
model = "SDX55M MTP 19861 51 52";
compatible = "qcom,sm8150-mtp", "qcom,sm8150", "qcom,mtp";
qcom,board-id = <8 2>;
/*we can add project id to this array,uefi can auto read it,if new project,we add to this array */
oem,project-id = <19861>;
/*we can add hw id to this array,uefi can auto read it,if new hw,we add to this array */
oem,hw-id = <51 52>;
};
42 changes: 42 additions & 0 deletions arch/arm64/boot/dts/qcom/hotdogg-sdx55m-overlay-evt1.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/* Copyright (c) 2018, 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.
*/

/dts-v1/;
/plugin/;

#include <dt-bindings/clock/qcom,gcc-sm8150.h>
#include <dt-bindings/clock/qcom,camcc-sm8150.h>
#include <dt-bindings/clock/qcom,rpmh.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

#include "sm8150-mtp.dtsi"

#include "sdx5xm-external-soc.dtsi"
#include "sm8150-sdxprairie.dtsi"
#include "sm8150-mtp-audio-overlay.dtsi"
#include "sm8150-oem-camera-hotdog-t0.dtsi"
#include "hotdogg-sdx55m-ois.dtsi"

#include "sm8150-oem.dtsi"
#include "hotdog.dtsi"
#include "hotdogg-sdx55m.dtsi"
#include "hotdog_evt1.dtsi"

/ {
model = "SDX55M MTP 18961 43";
compatible = "qcom,sm8150-mtp", "qcom,sm8150", "qcom,mtp";
qcom,board-id = <8 2>;
/*we can add project id to this array,uefi can auto read it,if new project,we add to this array */
oem,project-id = <19861>;
/*we can add hw id to this array,uefi can auto read it,if new hw,we add to this array */
oem,hw-id = <43>;
};
43 changes: 43 additions & 0 deletions arch/arm64/boot/dts/qcom/hotdogg-sdx55m-overlay-evt2.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/* Copyright (c) 2018, 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.
*/

/dts-v1/;
/plugin/;

#include <dt-bindings/clock/qcom,gcc-sm8150.h>
#include <dt-bindings/clock/qcom,camcc-sm8150.h>
#include <dt-bindings/clock/qcom,rpmh.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

#include "sm8150-mtp.dtsi"

#include "sdx5xm-external-soc.dtsi"
#include "sm8150-sdxprairie.dtsi"
#include "sm8150-mtp-audio-overlay.dtsi"
#include "sm8150-oem-camera-hotdog-t0.dtsi"
#include "hotdogg-sdx55m-ois.dtsi"


#include "sm8150-oem.dtsi"
#include "hotdog.dtsi"
#include "hotdogg-sdx55m.dtsi"
#include "hotdog_evt2.dtsi"

/ {
model = "SDX55M MTP 19861 44 45";
compatible = "qcom,sm8150-mtp", "qcom,sm8150", "qcom,mtp";
qcom,board-id = <8 2>;
/*we can add project id to this array,uefi can auto read it,if new project,we add to this array */
oem,project-id = <19861>;
/*we can add hw id to this array,uefi can auto read it,if new hw,we add to this array */
oem,hw-id = <44 45>;
};
42 changes: 42 additions & 0 deletions arch/arm64/boot/dts/qcom/hotdogg-sdx55m-overlay-pvt.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/* Copyright (c) 2018, 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.
*/

/dts-v1/;
/plugin/;

#include <dt-bindings/clock/qcom,gcc-sm8150.h>
#include <dt-bindings/clock/qcom,camcc-sm8150.h>
#include <dt-bindings/clock/qcom,rpmh.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

#include "sm8150-mtp.dtsi"

#include "sdx5xm-external-soc.dtsi"
#include "sm8150-sdxprairie.dtsi"
#include "sm8150-mtp-audio-overlay.dtsi"
#include "sm8150-oem-camera-hotdog-t0.dtsi"
#include "hotdogg-sdx55m-ois.dtsi"

#include "sm8150-oem.dtsi"
#include "hotdog.dtsi"
#include "hotdogg-sdx55m.dtsi"
#include "hotdog_pvt.dtsi"

/ {
model = "SDX55M MTP 19861 53 54";
compatible = "qcom,sm8150-mtp", "qcom,sm8150", "qcom,mtp";
qcom,board-id = <8 2>;
/*we can add project id to this array,uefi can auto read it,if new project,we add to this array */
oem,project-id = <19861>;
/*we can add hw id to this array,uefi can auto read it,if new hw,we add to this array */
oem,hw-id = <53 54>;
};
Loading

2 comments on commit 6b74918

@0ctobot
Copy link

Choose a reason for hiding this comment

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

I'm all for the unified 5G support, but it would be much appreciated if you could push an update of substance particularly pertaining to the current T-variant kernels, as of 10.0.7 oneplus_brain service is running absolutely buck wild with 100% CPU utilization on all of our existing custom kernels for OP7T devices and yet is behaving as expected on the stock kernel. Clearly some changes that we're not privy to have been made here and it would be great to see a larger focus on keeping this repo up to date for the sake of community support for these devices, especially if there's going to be ongoing changes with such a radical impact on core functionality. We want to be involved in this community, help us help you.

@mjevange
Copy link

Choose a reason for hiding this comment

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

ild with 100% CPU utilization on all of our existing custom kernels for OP7T devices and yet is behaving as expected on the stock kernel. Clearly some changes that we're not privy to have been made here and it would be great to see a larger focus on keeping this repo up to date for the sake of community support for these devices, especially if there's going to be ongoing changes with such a radical impact on core functionality. We want to be involved in this

I second this. I've been developing solely for the 5G variant over the last few months, we need an update.

Please sign in to comment.