|
19 | 19 |
|
20 | 20 | display_mcu: display_mcu@45 |
21 | 21 | { |
22 | | - compatible = "raspberrypi,v2-touchscreen-panel-regulator"; |
| 22 | + compatible = "raspberrypi,touchscreen-panel-regulator-v2"; |
23 | 23 | reg = <0x45>; |
24 | 24 | gpio-controller; |
25 | 25 | #gpio-cells = <2>; |
| 26 | + #pwm-cells = <3>; |
26 | 27 | }; |
27 | 28 |
|
28 | 29 | gt911: gt911@5d { |
|
54 | 55 | reg = <0>; |
55 | 56 | compatible = "raspberrypi,dsi-7inch"; |
56 | 57 | reset-gpio = <&display_mcu 0 GPIO_ACTIVE_LOW>; |
57 | | - backlight = <&display_mcu>; |
| 58 | + backlight = <&backlight>; |
58 | 59 |
|
59 | 60 | port { |
60 | 61 | panel_in: endpoint { |
|
90 | 91 | startup-delay-us = <50000>; |
91 | 92 | enable-active-high; |
92 | 93 | }; |
| 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 | + }; |
93 | 102 | }; |
94 | 103 | }; |
95 | 104 |
|
|
111 | 120 | dsi0 = <&dsi_frag>, "target:0=",<&dsi0>, |
112 | 121 | <&i2c_frag>, "target:0=",<&i2c_csi_dsi0>, |
113 | 122 | <&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"; |
115 | 125 | sizex = <>911>,"touchscreen-size-x:0"; |
116 | 126 | sizey = <>911>,"touchscreen-size-y:0"; |
117 | 127 | invx = <0>, "+10"; |
|
0 commit comments