Skip to content

Add DPI mode 3 (rgb565-padhi) support to vc4-kms-dpi-generic #4882

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -3649,6 +3649,8 @@ Params: clock-frequency Display clock frequency (Hz)
width-mm Define the screen width in mm
height-mm Define the screen height in mm
rgb565 Change to RGB565 output on GPIOs 0-19
rgb565-padhi Change to RGB565 output on GPIOs 0-8, 12-17, and
20-24
rgb666-padhi Change to RGB666 output on GPIOs 0-9, 12-17, and
20-25
rgb888 Change to RGB888 output on GPIOs 0-27
Expand Down
20 changes: 11 additions & 9 deletions arch/arm/boot/dts/overlays/vc4-kms-dpi-generic-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

fragment@0 {
target = <&panel>;
__overlay__ {
panel_generic: __overlay__ {
compatible = "panel-dpi";

width-mm = <154>;
Expand Down Expand Up @@ -40,7 +40,7 @@

fragment@1 {
target = <&dpi>;
__overlay__ {
dpi_node_generic: __overlay__ {
pinctrl-0 = <&dpi_18bit_gpio0>;
};
};
Expand All @@ -63,12 +63,14 @@
width-mm = <&panel>, "width-mm:0";
height-mm = <&panel>, "height-mm:0";

rgb565 = <&panel>, "bus-format:0=0x1017",
<&dpi_node>, "pinctrl-0:0=",<&dpi_16bit_gpio0>;
rgb666-padhi = <&panel>, "bus-format:0=0x1015",
<&dpi_node>, "pinctrl-0:0=",<&dpi_18bit_cpadhi_gpio0>;
rgb888 = <&panel>, "bus-format:0=0x100a",
<&dpi_node>, "pinctrl-0:0=",<&dpi_gpio0>;
bus-format = <&panel>, "bus-format:0";
rgb565 = <&panel_generic>, "bus-format:0=0x1017",
<&dpi_node_generic>, "pinctrl-0:0=",<&dpi_16bit_gpio0>;
rgb565-padhi = <&panel_generic>, "bus-format:0=0x1020",
<&dpi_node_generic>, "pinctrl-0:0=",<&dpi_16bit_cpadhi_gpio0>;
rgb666-padhi = <&panel_generic>, "bus-format:0=0x1015",
<&dpi_node_generic>, "pinctrl-0:0=",<&dpi_18bit_cpadhi_gpio0>;
rgb888 = <&panel_generic>, "bus-format:0=0x100a",
<&dpi_node_generic>, "pinctrl-0:0=",<&dpi_gpio0>;
bus-format = <&panel_generic>, "bus-format:0";
};
};