Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/panel: simple: Add support for Innolux G070Y2-L01

This patch adds support for Innolux G070Y2-L01 7" WVGA (800x480) TFT LCD
panel.

Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1528111008.2818.20.camel@googlemail.com

authored by

Christoph Fritz and committed by
Thierry Reding
a5d2ade6 3b39ad7a

+47 -2
+12
Documentation/devicetree/bindings/display/panel/innolux,g070y2-l01.txt
··· 1 + Innolux G070Y2-L01 7" WVGA (800x480) TFT LCD panel 2 + 3 + Required properties: 4 + - compatible: should be "innolux,g070y2-l01" 5 + - power-supply: as specified in the base binding 6 + 7 + Optional properties: 8 + - backlight: as specified in the base binding 9 + - enable-gpios: as specified in the base binding 10 + 11 + This binding is compatible with the simple-panel binding, which is specified 12 + in simple-panel.txt in this directory.
+35 -2
drivers/gpu/drm/panel/panel-simple.c
··· 1176 1176 .bus_format = MEDIA_BUS_FMT_RGB888_1X24, 1177 1177 }; 1178 1178 1179 + static const struct display_timing innolux_g070y2_l01_timing = { 1180 + .pixelclock = { 28000000, 29500000, 32000000 }, 1181 + .hactive = { 800, 800, 800 }, 1182 + .hfront_porch = { 61, 91, 141 }, 1183 + .hback_porch = { 60, 90, 140 }, 1184 + .hsync_len = { 12, 12, 12 }, 1185 + .vactive = { 480, 480, 480 }, 1186 + .vfront_porch = { 4, 9, 30 }, 1187 + .vback_porch = { 4, 8, 28 }, 1188 + .vsync_len = { 2, 2, 2 }, 1189 + .flags = DISPLAY_FLAGS_DE_HIGH, 1190 + }; 1191 + 1192 + static const struct panel_desc innolux_g070y2_l01 = { 1193 + .timings = &innolux_g070y2_l01_timing, 1194 + .num_timings = 1, 1195 + .bpc = 6, 1196 + .size = { 1197 + .width = 152, 1198 + .height = 91, 1199 + }, 1200 + .delay = { 1201 + .prepare = 10, 1202 + .enable = 100, 1203 + .disable = 100, 1204 + .unprepare = 800, 1205 + }, 1206 + .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, 1207 + }; 1208 + 1179 1209 static const struct display_timing innolux_g101ice_l01_timing = { 1180 1210 .pixelclock = { 60400000, 71100000, 74700000 }, 1181 1211 .hactive = { 1280, 1280, 1280 }, ··· 2371 2341 .compatible = "innolux,at070tn92", 2372 2342 .data = &innolux_at070tn92, 2373 2343 }, { 2374 - .compatible ="innolux,g101ice-l01", 2344 + .compatible = "innolux,g070y2-l01", 2345 + .data = &innolux_g070y2_l01, 2346 + }, { 2347 + .compatible = "innolux,g101ice-l01", 2375 2348 .data = &innolux_g101ice_l01 2376 2349 }, { 2377 - .compatible ="innolux,g121i1-l01", 2350 + .compatible = "innolux,g121i1-l01", 2378 2351 .data = &innolux_g121i1_l01 2379 2352 }, { 2380 2353 .compatible = "innolux,g121x1-l03",