Skip to content

Commit c6c66aa

Browse files
sajattackandersson
authored andcommitted
arm64: dts: qcom: sdm845-lg-judyln: Add display panel
Also include other supporting msm drm nodes, gpio and backlight Co-developed-by: Amir Dahan <system64fumo@tuta.io> Signed-off-by: Amir Dahan <system64fumo@tuta.io> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Paul Sajna <sajattack@postmarketos.org> Link: https://lore.kernel.org/r/20260331-judyln-dts-v7-10-87217b15fefb@postmarketos.org Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 2e7cdd4 commit c6c66aa

2 files changed

Lines changed: 75 additions & 6 deletions

File tree

arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -450,10 +450,6 @@
450450
status = "okay";
451451
};
452452

453-
&dispcc {
454-
status = "disabled";
455-
};
456-
457453
&gcc {
458454
protected-clocks = <GCC_QSPI_CORE_CLK>,
459455
<GCC_QSPI_CORE_CLK_SRC>,
@@ -525,6 +521,15 @@
525521
};
526522
};
527523

524+
&pmi8998_wled {
525+
qcom,current-limit-microamp = <20000>;
526+
qcom,ovp-millivolt = <29600>;
527+
qcom,switching-freq = <800>;
528+
qcom,num-strings = <3>;
529+
qcom,cabc;
530+
status = "okay";
531+
};
532+
528533
&qupv3_id_0 {
529534
status = "okay";
530535
};

arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts

Lines changed: 66 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
height = <3120>;
2222
stride = <(1440 * 4)>;
2323
format = "a8r8g8b8";
24-
lab-supply = <&lab>;
25-
ibb-supply = <&ibb>;
2624
};
2725
};
2826

@@ -71,6 +69,51 @@
7169
firmware-name = "qcom/sdm845/LG/judyln/ipa_fws.mbn";
7270
};
7371

72+
&mdss {
73+
status = "okay";
74+
};
75+
76+
&mdss_dsi0 {
77+
vdda-supply = <&vdda_mipi_dsi0_1p2>;
78+
79+
status = "okay";
80+
81+
display_panel: panel@0 {
82+
reg = <0>;
83+
compatible = "lg,sw49410-lh609qh1", "lg,sw49410";
84+
85+
backlight = <&pmi8998_wled>;
86+
reset-gpios = <&tlmm 6 GPIO_ACTIVE_LOW>;
87+
width-mm = <65>;
88+
height-mm = <140>;
89+
90+
vsp-supply = <&lab>;
91+
vsn-supply = <&ibb>;
92+
93+
pinctrl-0 = <&sde_dsi_active &sde_te_active_sleep>;
94+
pinctrl-1 = <&sde_dsi_sleep &sde_te_active_sleep>;
95+
pinctrl-names = "default", "sleep";
96+
97+
port {
98+
panel_in: endpoint {
99+
remote-endpoint = <&mdss_dsi0_out>;
100+
};
101+
};
102+
};
103+
};
104+
105+
&mdss_dsi0_phy {
106+
vdds-supply = <&vdda_mipi_dsi0_pll>;
107+
108+
status = "okay";
109+
};
110+
111+
&mdss_dsi0_out {
112+
data-lanes = <0 1 2 3>;
113+
remote-endpoint = <&panel_in>;
114+
qcom,te-source = "mdp_vsync_e";
115+
};
116+
74117
&ibb {
75118
regulator-min-microvolt = <5500000>;
76119
regulator-max-microvolt = <5500000>;
@@ -106,6 +149,27 @@
106149
drive-strength = <2>;
107150
bias-pull-up;
108151
};
152+
153+
sde_dsi_active: sde-dsi-active-state {
154+
pins = "gpio6";
155+
function = "gpio";
156+
drive-strength = <8>;
157+
bias-disable;
158+
};
159+
160+
sde_dsi_sleep: sde-dsi-sleep-state {
161+
pins = "gpio6";
162+
function = "gpio";
163+
drive-strength = <2>;
164+
bias-pull-down;
165+
};
166+
167+
sde_te_active_sleep: sde-te-active-sleep-state {
168+
pins = "gpio10";
169+
function = "mdp_vsync";
170+
drive-strength = <2>;
171+
bias-pull-down;
172+
};
109173
};
110174

111175
&venus {

0 commit comments

Comments
 (0)