ARM: dts: am335x-evm: Use drm simple-panel instead of tilcdc-panel
PATCH 1/1 ARM: dts: am335x-evm: Use drm simple-panel instead of tilcdc-panel
Move to use the new drm panel support in tilcdc together with added "tfc,s9700rtwv43tr-01b"-panel support in drm panel-simple.
---
"tfc,s9700rtwv43tr-01b" in panel-simple has been in for some time now so it is about time to get this in too.
arch/arm/boot/dts/am335x-evm.dts | 44 +++++++++++++------------------- 1 file changed, 18 insertions(+), 26 deletions(-)
arch/arm/boot/dts/am335x-evm.dts +18 -26
@@ -113,7 +113,7 @@ }; }; - backlight { + backlight: backlight { compatible = "pwm-backlight"; pwms = <&ecap0 0 50000 0>; brightness-levels = <0 51 53 56 62 75 101 152 255>;
@@ -121,35 +121,19 @@ }; panel { - compatible = "ti,tilcdc,panel"; + compatible = "tfc,s9700rtwv43tr-01b"; + status = "okay"; + pinctrl-names = "default"; pinctrl-0 = <&lcd_pins_s0>; - panel-info { - ac-bias = <255>; - ac-bias-intrpt = <0>; - dma-burst-sz = <16>; - bpp = <32>; - fdd = <0x80>; - sync-edge = <0>; - sync-ctrl = <1>; - raster-order = <0>; - fifo-th = <0>; - }; - display-timings { - 800x480p62 { - clock-frequency = <30000000>; - hactive = <800>; - vactive = <480>; - hfront-porch = <39>; - hback-porch = <39>; - hsync-len = <47>; - vback-porch = <29>; - vfront-porch = <13>; - vsync-len = <2>; - hsync-active = <1>; - vsync-active = <1>; + backlight = <&backlight>; + ports { + port { + panel_0: endpoint@0 { + remote-endpoint = <&lcdc_0>; + }; }; }; };
@@ -525,6 +509,14 @@ status = "okay"; blue-and-red-wiring = "crossed"; + + ports { + port { + lcdc_0: endpoint@0 { + remote-endpoint = <&panel_0>; + }; + }; + }; }; &elm {
Signature · 6 lines
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi Jyri,
Thank you for the patch.
Quoted 26 lines · Jyri Sarha
Move to use the new drm panel support in tilcdc together with added "tfc,s9700rtwv43tr-01b"-panel support in drm panel-simple.
Signed-off-by Jyri Sarha <[email protected]>Reviewed-by Tomi Valkeinen <[email protected]>---
"tfc,s9700rtwv43tr-01b" in panel-simple has been in for some time now so it is about time to get this in too.arch/arm/boot/dts/am335x-evm.dts | 44 +++++++++++++------------------- 1 file changed, 18 insertions(+), 26 deletions(-)arch/arm/boot/dts/am335x-evm.dts +1
-1@@ -113,7 +113,7 @@ }; }; - backlight { + backlight: backlight { compatible = "pwm-backlight"; pwms = <&ecap0 0 50000 0>; brightness-levels = <0 51 53 56 62 75 101 152 255>;
arch/arm/boot/dts/am335x-evm.dts line 126
Quoted 7 lines
arch/arm/boot/dts/am335x-evm.dts +2
-1@@ -121,35 +121,19 @@ }; panel { - compatible = "ti,tilcdc,panel"; + compatible = "tfc,s9700rtwv43tr-01b"; + status = "okay";
I think this can be dropped as it's implicit.
Quoted 19 lines
arch/arm/boot/dts/am335x-evm.dts +1
-15+ pinctrl-names = "default"; pinctrl-0 = <&lcd_pins_s0>; - panel-info { - ac-bias = <255>; - ac-bias-intrpt = <0>; - dma-burst-sz = <16>; - bpp = <32>; - fdd = <0x80>; - sync-edge = <0>; - sync-ctrl = <1>; - raster-order = <0>; - fifo-th = <0>; - }; - display-timings { - 800x480p62 { - clock-frequency = <30000000>; - hactive = <800>;
arch/arm/boot/dts/am335x-evm.dts line 131
Quoted 10 lines
arch/arm/boot/dts/am335x-evm.dts +1
-9- vactive = <480>; - hfront-porch = <39>; - hback-porch = <39>; - hsync-len = <47>; - vback-porch = <29>; - vfront-porch = <13>; - vsync-len = <2>; - hsync-active = <1>; - vsync-active = <1>; + backlight = <&backlight>;
I would add a blank line here.
arch/arm/boot/dts/am335x-evm.dts line 138
Quoted 7 lines
arch/arm/boot/dts/am335x-evm.dts +5
-0+ ports { + port { + panel_0: endpoint@0 { + remote-endpoint = <&lcdc_0>; + }; }; };
The outter ports node isn't required if there's a single port, up to you.
arch/arm/boot/dts/am335x-evm.dts line 519
Quoted 13 lines
arch/arm/boot/dts/am335x-evm.dts +8
-0};@@ -525,6 +509,14 @@ status = "okay"; blue-and-red-wiring = "crossed"; + + ports { + port { + lcdc_0: endpoint@0 { + remote-endpoint = <&panel_0>; + }; + }; + };
Same here.
With the above issues addressed as applicable,
Quoted 3 lines
arch/arm/boot/dts/am335x-evm.dts +0
-0}; &elm {
Signature · 7 lines
Regards, Laurent Pinchart _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel