Skip to content

Commit 9e7596d

Browse files
ngphibangcfriedt
authored andcommitted
boards: shields: rk0xxx: Set default format to RGB565
The default supported format in these LCD is RGB565, not BGR565. It is set to BGR565 because a wrong assumption about "byte swap" in Zephyr. Signed-off-by: Phi Bang Nguyen <[email protected]>
1 parent d69bea3 commit 9e7596d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

boards/shields/rk043fn02h_ct/rk043fn02h_ct.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
vsync-active = <0>;
4646
clock-frequency = <9210240>;
4747
};
48-
pixel-format = <PANEL_PIXEL_FORMAT_BGR_565>;
48+
pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>;
4949
data-bus-width = "16-bit";
5050
backlight-gpios = <&nxp_parallel_lcd_connector 0 GPIO_ACTIVE_HIGH>;
5151
};

boards/shields/rk043fn66hs_ctg/rk043fn66hs_ctg.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
vsync-active = <0>;
4747
clock-frequency = <9210240>;
4848
};
49-
pixel-format = <PANEL_PIXEL_FORMAT_BGR_565>;
49+
pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>;
5050
data-bus-width = "16-bit";
5151
backlight-gpios = <&nxp_parallel_lcd_connector 0 GPIO_ACTIVE_HIGH>;
5252
};

boards/shields/rk055hdmipi4m/rk055hdmipi4m.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
*/
5959
clock-frequency = <62346240>;
6060
};
61-
pixel-format = <PANEL_PIXEL_FORMAT_BGR_565>;
61+
pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>;
6262
data-bus-width = "24-bit";
6363
backlight-gpios = <&nxp_mipi_connector 0 GPIO_ACTIVE_HIGH>;
6464
};

boards/shields/rk055hdmipi4ma0/rk055hdmipi4ma0.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
*/
5959
clock-frequency = <62346240>;
6060
};
61-
pixel-format = <PANEL_PIXEL_FORMAT_BGR_565>;
61+
pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>;
6262
data-bus-width = "24-bit";
6363
backlight-gpios = <&nxp_mipi_connector 0 GPIO_ACTIVE_HIGH>;
6464
};

0 commit comments

Comments
 (0)