Skip to content

Commit 92cfd34

Browse files
6by9pelwell
authored andcommitted
dtoverlays: Fix up ili9881 DSI panel overlays for upstream changes
The regulator compatible string changed, and implements the PWM API instead of the backlight one, therefore requiring pwm-backlight to sit inbetween. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
1 parent 57ea4e4 commit 92cfd34

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

arch/arm/boot/dts/overlays/vc4-kms-dsi-ili9881-7inch-overlay.dts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919

2020
display_mcu: display_mcu@45
2121
{
22-
compatible = "raspberrypi,v2-touchscreen-panel-regulator";
22+
compatible = "raspberrypi,touchscreen-panel-regulator-v2";
2323
reg = <0x45>;
2424
gpio-controller;
2525
#gpio-cells = <2>;
26+
#pwm-cells = <3>;
2627
};
2728

2829
gt911: gt911@5d {
@@ -54,7 +55,7 @@
5455
reg = <0>;
5556
compatible = "raspberrypi,dsi-7inch";
5657
reset-gpio = <&display_mcu 0 GPIO_ACTIVE_LOW>;
57-
backlight = <&display_mcu>;
58+
backlight = <&backlight>;
5859

5960
port {
6061
panel_in: endpoint {
@@ -90,6 +91,14 @@
9091
startup-delay-us = <50000>;
9192
enable-active-high;
9293
};
94+
95+
backlight: panel_backlight@1 {
96+
compatible = "pwm-backlight";
97+
brightness-levels = <0 31>;
98+
num-interpolated-steps = <31>;
99+
default-brightness-level = <15>;
100+
pwms = <&display_mcu 0 200000 0>;
101+
};
93102
};
94103
};
95104

@@ -111,7 +120,8 @@
111120
dsi0 = <&dsi_frag>, "target:0=",<&dsi0>,
112121
<&i2c_frag>, "target:0=",<&i2c_csi_dsi0>,
113122
<&touch_reg>, "reg:0=0",
114-
<&touch_reg>, "regulator-name=touch_reg_0";
123+
<&touch_reg>, "regulator-name=touch_reg_0",
124+
<&backlight>, "reg:0=0";
115125
sizex = <&gt911>,"touchscreen-size-x:0";
116126
sizey = <&gt911>,"touchscreen-size-y:0";
117127
invx = <0>, "+10";

0 commit comments

Comments
 (0)