arm64: dts: qcom: sm8350-lemonade(p): New devices
Device tree files for OnePlus 9 and 9 Pro. Details of supported features mentioned in the cover letter for this patch series, but for accessibility also repeated here: - USB OTG - UFS - Framebuffer display - Touchscreen (for lemonade) - Power & volume down keys - Battery reading - Modem, IPA, and remoteproc bringup Steps to get booting: - Wipe dtbo partition - Flash vbmeta with disabled verity bit - Flash kernel and initfs to boot partition with CLI args pd_ignore_unused and clk_ignore_unused as v1 bootimg - Flash rootfs to some other partition (probably super or userdata) Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org> Signed-off-by: Nia Espera <nespera@igalia.com>
This commit is contained in:
parent
d33ce74450
commit
b675abfb03
4 changed files with 1164 additions and 0 deletions
|
|
@ -223,6 +223,8 @@ dtb-$(CONFIG_ARCH_QCOM) += sm8250-xiaomi-elish-csot.dtb
|
|||
dtb-$(CONFIG_ARCH_QCOM) += sm8350-hdk.dtb
|
||||
dtb-$(CONFIG_ARCH_QCOM) += sm8350-microsoft-surface-duo2.dtb
|
||||
dtb-$(CONFIG_ARCH_QCOM) += sm8350-mtp.dtb
|
||||
dtb-$(CONFIG_ARCH_QCOM) += sm8350-oneplus-lemonade.dtb
|
||||
dtb-$(CONFIG_ARCH_QCOM) += sm8350-oneplus-lemonadep.dtb
|
||||
dtb-$(CONFIG_ARCH_QCOM) += sm8350-sony-xperia-sagami-pdx214.dtb
|
||||
dtb-$(CONFIG_ARCH_QCOM) += sm8350-sony-xperia-sagami-pdx215.dtb
|
||||
dtb-$(CONFIG_ARCH_QCOM) += sm8450-hdk.dtb
|
||||
|
|
|
|||
1057
arch/arm64/boot/dts/qcom/sm8350-oneplus-common.dtsi
Normal file
1057
arch/arm64/boot/dts/qcom/sm8350-oneplus-common.dtsi
Normal file
File diff suppressed because it is too large
Load diff
85
arch/arm64/boot/dts/qcom/sm8350-oneplus-lemonade.dts
Normal file
85
arch/arm64/boot/dts/qcom/sm8350-oneplus-lemonade.dts
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
/*
|
||||
* Copyright (c) 2023 Igalia S.L.
|
||||
* Authors:
|
||||
* Nia Espera <nespera@igalia.com>
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
#include "sm8350-oneplus-common.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "oneplus,lemonade", "qcom,sm8350";
|
||||
model = "OnePlus 9";
|
||||
};
|
||||
|
||||
&i2c4 {
|
||||
touchscreen@48 {
|
||||
compatible = "samsung,s6sy761";
|
||||
reg = <0x48>;
|
||||
interrupts-extended = <&tlmm 23 IRQ_TYPE_LEVEL_LOW>;
|
||||
|
||||
avdd-supply = <&pm8350c_l13>;
|
||||
vdd-supply = <&pm8350c_l8>;
|
||||
|
||||
pinctrl-0 = <&tp_rst_active>, <&tp_irq_active>, <&tp_enable_2v8>;
|
||||
pinctrl-1 = <&tp_rst_suspend>, <&tp_irq_suspend>;
|
||||
pinctrl-names = "default", "sleep";
|
||||
};
|
||||
};
|
||||
|
||||
&mpss {
|
||||
pinctrl-0 = <&rf_cable_ant0_active>,
|
||||
<&rf_cable_ant1_active>,
|
||||
<&rf_cable_ant2_active>,
|
||||
<&rf_cable_ant3_active>,
|
||||
<&rf_cable_ant7_active>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&tlmm {
|
||||
/* Modem antenna pins exclusive to lemonade */
|
||||
rf_cable_ant1_active: rf-cable-ant1-active-state {
|
||||
pins = "gpio27";
|
||||
function = "gpio";
|
||||
drive-strength = <2>;
|
||||
bias-pull-up;
|
||||
};
|
||||
|
||||
rf_cable_ant2_active: rf-cable-ant2-active-state {
|
||||
pins = "gpio92";
|
||||
function = "gpio";
|
||||
drive-strength = <2>;
|
||||
bias-pull-up;
|
||||
};
|
||||
|
||||
rf_cable_ant3_active: rf-cable-ant3-active-state {
|
||||
pins = "gpio44";
|
||||
function = "gpio";
|
||||
drive-strength = <2>;
|
||||
bias-pull-up;
|
||||
};
|
||||
|
||||
rf_cable_ant7_active: rf-cable-ant7-active-state {
|
||||
pins = "gpio155";
|
||||
function = "gpio";
|
||||
drive-strength = <2>;
|
||||
bias-pull-up;
|
||||
};
|
||||
|
||||
tp_rst_suspend: tp-rst-suspend-state {
|
||||
pins = "gpio22";
|
||||
function = "gpio";
|
||||
drive-strength = <2>;
|
||||
bias-pull-down;
|
||||
};
|
||||
|
||||
tp_enable_2v8: tp-enable-2v8-state {
|
||||
pins = "gpio74";
|
||||
function = "gpio";
|
||||
drive-strength = <8>;
|
||||
bias-pull-up;
|
||||
output-high;
|
||||
};
|
||||
};
|
||||
20
arch/arm64/boot/dts/qcom/sm8350-oneplus-lemonadep.dts
Normal file
20
arch/arm64/boot/dts/qcom/sm8350-oneplus-lemonadep.dts
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
/*
|
||||
* Copyright (c) 2023 Igalia S.L.
|
||||
* Authors:
|
||||
* Nia Espera <nespera@igalia.com>
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
#include "sm8350-oneplus-common.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "oneplus,lemonadep", "qcom,sm8350";
|
||||
model = "OnePlus 9 Pro";
|
||||
};
|
||||
|
||||
&mpss {
|
||||
pinctrl-0 = <&rf_cable_ant0_active>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue