3cc03de772583212be46bde9dcd2ec8469dfcf69
[openwrt/staging/rmilecki.git] /
1 From 4b3fe84c0de9fe0d6669abb0ec8ae628b65b4a2e Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Mon, 14 Feb 2022 15:59:32 +0000
4 Subject: [PATCH] dtoverlays: Add additional mappings to
5 vc4-kms-dpi-generic
6
7 Adds mappings for bgr666, bgr666-padhi, and bgr888.
8
9 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
10 ---
11 arch/arm/boot/dts/overlays/README | 4 ++++
12 arch/arm/boot/dts/overlays/vc4-kms-dpi-generic-overlay.dts | 5 +++++
13 2 files changed, 9 insertions(+)
14
15 --- a/arch/arm/boot/dts/overlays/README
16 +++ b/arch/arm/boot/dts/overlays/README
17 @@ -3651,8 +3651,12 @@ Params: clock-frequency Display
18 rgb565 Change to RGB565 output on GPIOs 0-19
19 rgb565-padhi Change to RGB565 output on GPIOs 0-8, 12-17, and
20 20-24
21 + bgr666 Change to BGR666 output on GPIOs 0-21.
22 + bgr666-padhi Change to BGR666 output on GPIOs 0-9, 12-17, and
23 + 20-25
24 rgb666-padhi Change to RGB666 output on GPIOs 0-9, 12-17, and
25 20-25
26 + bgr888 Change to BGR888 output on GPIOs 0-27
27 rgb888 Change to RGB888 output on GPIOs 0-27
28 bus-format Override the bus format for a MEDIA_BUS_FMT_*
29 value. NB also overridden by rgbXXX overrides.
30 --- a/arch/arm/boot/dts/overlays/vc4-kms-dpi-generic-overlay.dts
31 +++ b/arch/arm/boot/dts/overlays/vc4-kms-dpi-generic-overlay.dts
32 @@ -67,8 +67,13 @@
33 <&dpi_node_generic>, "pinctrl-0:0=",<&dpi_16bit_gpio0>;
34 rgb565-padhi = <&panel_generic>, "bus-format:0=0x1020",
35 <&dpi_node_generic>, "pinctrl-0:0=",<&dpi_16bit_cpadhi_gpio0>;
36 + bgr666 = <&panel_generic>, "bus-format:0=0x101f";
37 + bgr666-padhi = <&panel_generic>, "bus-format:0=0x101e",
38 + <&dpi_node_generic>, "pinctrl-0:0=",<&dpi_18bit_cpadhi_gpio0>;
39 rgb666-padhi = <&panel_generic>, "bus-format:0=0x1015",
40 <&dpi_node_generic>, "pinctrl-0:0=",<&dpi_18bit_cpadhi_gpio0>;
41 + bgr888 = <&panel_generic>, "bus-format:0=0x1013",
42 + <&dpi_node_generic>, "pinctrl-0:0=",<&dpi_gpio0>;
43 rgb888 = <&panel_generic>, "bus-format:0=0x100a",
44 <&dpi_node_generic>, "pinctrl-0:0=",<&dpi_gpio0>;
45 bus-format = <&panel_generic>, "bus-format:0";