Commit 47498916 authored by Jami Kettunen's avatar Jami Kettunen Committed by Bjorn Andersson

arm64: dts: qcom: Add support for OnePlus 5/5T

Add device trees for OnePlus 5 (cheeseburger) and 5T (dumpling)
MSM8998 SoC smartphones with initial support included for:

- UFS internal storage
- USB peripheral mode
- Display
- Touch
- Bluetooth
- Hall effect sensor
- Power and volume buttons
- Capacitive keypad button backlight (on cheeseburger)
Signed-off-by: default avatarJami Kettunen <jamipkettunen@gmail.com>
Link: https://lore.kernel.org/r/20210406010708.2376807-2-jamipkettunen@gmail.comSigned-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent 03041cd2
......@@ -27,6 +27,8 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8998-asus-novago-tp370ql.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8998-hp-envy-x2.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8998-lenovo-miix-630.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8998-mtp.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8998-oneplus-cheeseburger.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8998-oneplus-dumpling.dtb
dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-1000.dtb
dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-4000.dtb
dtb-$(CONFIG_ARCH_QCOM) += qrb5165-rb5.dtb
......
// SPDX-License-Identifier: BSD-3-Clause
/*
* OnePlus 5 (cheeseburger) device tree
*
* Copyright (c) 2021, Jami Kettunen <jamipkettunen@gmail.com>
*/
#include <dt-bindings/leds/common.h>
#include "msm8998-oneplus-common.dtsi"
/ {
model = "OnePlus 5";
compatible = "oneplus,cheeseburger", "qcom,msm8998";
/* Required for bootloader to select correct board */
qcom,board-id = <8 0 16859 23>;
/* Capacitive keypad button backlight */
leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&button_backlight_default>;
button-backlight {
gpios = <&pmi8998_gpio 5 GPIO_ACTIVE_HIGH>;
color = <LED_COLOR_ID_WHITE>;
function = LED_FUNCTION_KBD_BACKLIGHT;
default-state = "off";
};
};
};
&pmi8998_gpio {
button_backlight_default: button-backlight-default {
pinconf {
pins = "gpio5";
function = "normal";
bias-pull-down;
qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
};
};
};
This diff is collapsed.
// SPDX-License-Identifier: BSD-3-Clause
/*
* OnePlus 5T (dumpling) device tree
*
* Copyright (c) 2021, Jami Kettunen <jamipkettunen@gmail.com>
*/
#include "msm8998-oneplus-common.dtsi"
/ {
model = "OnePlus 5T";
compatible = "oneplus,dumpling", "qcom,msm8998";
/* Required for bootloader to select correct board */
qcom,board-id = <8 0 17801 43>;
};
/* Update the screen height values from 1920 to 2160 on the 5T */
&framebuffer0 {
height = <2160>;
};
/* Adjust digitizer area height to match the 5T's taller panel */
&rmi4_f12 {
touchscreen-y-mm = <137>;
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment