Commit dd6459a0 authored by Joel Selvaraj's avatar Joel Selvaraj Committed by Bjorn Andersson

arm64: dts: qcom: split beryllium dts into common dtsi and tianma dts

There are two panel variants of Xiaomi Poco F1. Tianma and EBBG panel.
The previous beryllium dts supported the Tianma variant. In order to
add support for EBBG variant, the common nodes from beryllium dts are
moved to a new common dtsi and to make the variants distinguishable,
sdm845-xiaomi-beryllium.dts is now named as
sdm845-xiaomi-beryllium-tianma.dts. The model property is updated to
distinguish between the variants. The compatibility property is
moved to the tianma variant, but it is not updated to avoid any
further conflict with other projects/users that might depend on it.
Signed-off-by: default avatarJoel Selvaraj <joelselvaraj.oss@gmail.com>
Reviewed-by: default avatarMarijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: default avatarCaleb Connolly <caleb@connolly.tech>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220909035447.36674-2-joelselvaraj.oss@gmail.com
parent 65b35e04
...@@ -136,7 +136,7 @@ dtb-$(CONFIG_ARCH_QCOM) += sdm845-oneplus-fajita.dtb ...@@ -136,7 +136,7 @@ dtb-$(CONFIG_ARCH_QCOM) += sdm845-oneplus-fajita.dtb
dtb-$(CONFIG_ARCH_QCOM) += sdm845-sony-xperia-tama-akari.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-sony-xperia-tama-akari.dtb
dtb-$(CONFIG_ARCH_QCOM) += sdm845-sony-xperia-tama-akatsuki.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-sony-xperia-tama-akatsuki.dtb
dtb-$(CONFIG_ARCH_QCOM) += sdm845-sony-xperia-tama-apollo.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-sony-xperia-tama-apollo.dtb
dtb-$(CONFIG_ARCH_QCOM) += sdm845-xiaomi-beryllium.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-xiaomi-beryllium-tianma.dtb
dtb-$(CONFIG_ARCH_QCOM) += sdm845-xiaomi-polaris.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-xiaomi-polaris.dtb
dtb-$(CONFIG_ARCH_QCOM) += sdm845-shift-axolotl.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-shift-axolotl.dtb
dtb-$(CONFIG_ARCH_QCOM) += sdm850-lenovo-yoga-c630.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm850-lenovo-yoga-c630.dtb
......
...@@ -26,8 +26,6 @@ ...@@ -26,8 +26,6 @@
/delete-node/ &rmtfs_mem; /delete-node/ &rmtfs_mem;
/ { / {
model = "Xiaomi Pocophone F1";
compatible = "xiaomi,beryllium", "qcom,sdm845";
chassis-type = "handset"; chassis-type = "handset";
/* required for bootloader to select correct board */ /* required for bootloader to select correct board */
...@@ -221,8 +219,7 @@ &dsi0 { ...@@ -221,8 +219,7 @@ &dsi0 {
status = "okay"; status = "okay";
vdda-supply = <&vreg_l26a_1p2>; vdda-supply = <&vreg_l26a_1p2>;
panel@0 { display_panel: panel@0 {
compatible = "tianma,fhd-video";
reg = <0>; reg = <0>;
vddio-supply = <&vreg_l14a_1p8>; vddio-supply = <&vreg_l14a_1p8>;
vddpos-supply = <&lab>; vddpos-supply = <&lab>;
...@@ -234,8 +231,10 @@ panel@0 { ...@@ -234,8 +231,10 @@ panel@0 {
backlight = <&pmi8998_wled>; backlight = <&pmi8998_wled>;
reset-gpios = <&tlmm 6 GPIO_ACTIVE_LOW>; reset-gpios = <&tlmm 6 GPIO_ACTIVE_LOW>;
status = "disabled";
port { port {
tianma_nt36672a_in_0: endpoint { panel_in_0: endpoint {
remote-endpoint = <&dsi0_out>; remote-endpoint = <&dsi0_out>;
}; };
}; };
...@@ -243,7 +242,7 @@ tianma_nt36672a_in_0: endpoint { ...@@ -243,7 +242,7 @@ tianma_nt36672a_in_0: endpoint {
}; };
&dsi0_out { &dsi0_out {
remote-endpoint = <&tianma_nt36672a_in_0>; remote-endpoint = <&panel_in_0>;
data-lanes = <0 1 2 3>; data-lanes = <0 1 2 3>;
}; };
......
// SPDX-License-Identifier: GPL-2.0
/dts-v1/;
#include "sdm845-xiaomi-beryllium-common.dtsi"
/ {
model = "Xiaomi Pocophone F1 (Tianma)";
compatible = "xiaomi,beryllium", "qcom,sdm845";
};
&display_panel {
compatible = "tianma,fhd-video";
status = "okay";
};
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