Skip to content

Commit 7d15c29

Browse files
committed
arm64: dts: qcom: msm8916-lenovo-phab: add display & touchscreen
Add jdi_1080p display panel with pwm and backlight and FT5336 touchscreen with according pinctrls Signed-off-by: Oleksandr Knyshuk <[email protected]>
1 parent b96b42d commit 7d15c29

File tree

1 file changed

+107
-0
lines changed

1 file changed

+107
-0
lines changed

arch/arm64/boot/dts/qcom/msm8916-lenovo-phab.dts

+107
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@
3535
};
3636
};
3737

38+
backlight: backlight {
39+
compatible = "pwm-backlight";
40+
pwms = <&pm8916_pwm 0 100000>;
41+
brightness-levels = <0 255>;
42+
num-interpolated-steps = <255>;
43+
default-brightness-level = <128>;
44+
};
45+
3846
battery: battery {
3947
compatible = "simple-battery";
4048
voltage-min-design-microvolt = <3200000>;
@@ -123,23 +131,82 @@
123131
};
124132
};
125133

134+
&blsp_i2c5 {
135+
status = "okay";
136+
137+
touchscreen@38 {
138+
/* actually FT5336 */
139+
compatible = "edt,edt-ft5306";
140+
reg = <0x38>;
141+
interrupt-parent = <&msmgpio>;
142+
interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
143+
pinctrl-0 = <&touchscreen_default>;
144+
pinctrl-names = "default";
145+
vcc-supply = <&pm8916_l17>;
146+
iovcc-supply = <&pm8916_l6>;
147+
reset-gpios = <&msmgpio 12 GPIO_ACTIVE_LOW>;
148+
touchscreen-size-x = <720>;
149+
touchscreen-size-y = <1280>;
150+
};
151+
};
152+
126153
&blsp1_uart2 {
127154
status = "okay";
128155
};
129156

157+
&dsi0 {
158+
pinctrl-0 = <&mdss_default>;
159+
pinctrl-1 = <&mdss_sleep>;
160+
pinctrl-names = "default", "sleep";
161+
162+
panel@0 {
163+
compatible = "lenovo,phab-jdi_1080p";
164+
reg = <0>;
165+
backlight = <&backlight>;
166+
reset-gpios = <&msmgpio 25 GPIO_ACTIVE_LOW>;
167+
168+
port {
169+
panel_in: endpoint {
170+
remote-endpoint = <&dsi0_out>;
171+
};
172+
};
173+
};
174+
};
175+
176+
&dsi0_out {
177+
data-lanes = <0 1 2 3>;
178+
qcom,platform-enable-gpio = <&msmgpio 109 GPIO_ACTIVE_HIGH>;
179+
qcom,platform-reset-gpio = <&msmgpio 25 GPIO_ACTIVE_HIGH>;
180+
remote-endpoint = <&panel_in>;
181+
};
182+
183+
&dsi_phy0 {
184+
qcom,dsi-phy-regulator-ldo-mode;
185+
};
186+
130187
&lpass {
131188
dai@3 {
132189
reg = <MI2S_QUATERNARY>;
133190
qcom,playback-sd-lines = <1>;
134191
};
135192
};
136193

194+
&mdss {
195+
status = "okay";
196+
};
197+
137198
&pm8916_bms {
138199
monitored-battery = <&battery>;
139200
//power-supplies = <&charger>;
140201
status = "okay";
141202
};
142203

204+
&pm8916_pwm {
205+
pinctrl-0 = <&pwm_out>;
206+
pinctrl-names = "default";
207+
status = "okay";
208+
};
209+
143210
&pm8916_resin {
144211
linux,code = <KEY_VOLUMEDOWN>;
145212
status = "okay";
@@ -345,6 +412,36 @@
345412
bias-pull-up;
346413
};
347414

415+
touchscreen_default: touchscreen-default-state {
416+
reset-pins {
417+
pins = "gpio12";
418+
function = "gpio";
419+
drive-strength = <2>;
420+
bias-disable;
421+
};
422+
423+
touchscreen-pins {
424+
pins = "gpio13";
425+
function = "gpio";
426+
drive-strength = <2>;
427+
bias-pull-up;
428+
};
429+
};
430+
431+
mdss_default: mdss-default-state {
432+
pins = "gpio25";
433+
function = "gpio";
434+
drive-strength = <8>;
435+
bias-disable;
436+
};
437+
438+
mdss_sleep: mdss-sleep-state {
439+
pins = "gpio25";
440+
function = "gpio";
441+
drive-strength = <2>;
442+
bias-pull-down;
443+
};
444+
348445
mpu_default: mpu-default-state {
349446
pins = "gpio115";
350447
function = "gpio";
@@ -358,3 +455,13 @@
358455
drive-strength = <2>;
359456
};
360457
};
458+
459+
&pm8916_mpps {
460+
pwm_out: mpp4-state {
461+
pins = "mpp4";
462+
function = "digital";
463+
output-low;
464+
qcom,dtest = <1>;
465+
power-source = <PM8916_MPP_VPH>;
466+
};
467+
};

0 commit comments

Comments
 (0)