Skip to content

Commit b0a8f19

Browse files
thenguyenyfcfriedt
authored andcommitted
shields: Add EK-RA8D1 to RTK7EKA6M3B00001BU Display Adapter
Add EK-RA8D1 to RTK7EKA6M3B00001BU Display Adapter. This is a converter from EK-RA8D1 J57 port to RTK7EKA6M3B00001BU Display CN1 pin signal. Signed-off-by: The Nguyen <[email protected]>
1 parent f191de3 commit b0a8f19

File tree

8 files changed

+83
-17
lines changed

8 files changed

+83
-17
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2025 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config SHIELD_EK_RA8D1_RTK7EKA6M3B00001BU
5+
def_bool $(shields_list_contains,ek_ra8d1_rtk7eka6m3b00001bu)
Binary file not shown.
Binary file not shown.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
.. _ek_ra8d1_rtk7eka6m3b00001bu:
2+
3+
EK-RA8D1 to RTK7EKA6M3B00001BU Display Adapter
4+
##############################################
5+
6+
Overview
7+
********
8+
9+
The EK-RA8D1 to RTK7EKA6M3B00001BU Display Adapter is an open-source hardware converter PCB that
10+
adapts the EK-RA8D1 Parallel Graphics Expansion Port (J57) to the RTK7EKA6M3B00001BU display
11+
shield.
12+
13+
.. figure:: img/top.webp
14+
:align: center
15+
:alt: EK-RA8D1 to RTK7EKA6M3B00001BU Display Adapter (top)
16+
:width: 300
17+
18+
EK-RA8D1 to RTK7EKA6M3B00001BU Display Adapter (top)
19+
20+
.. figure:: img/bottom.webp
21+
:align: center
22+
:alt: EK-RA8D1 to RTK7EKA6M3B00001BU Display Adapter (bottom)
23+
:width: 300
24+
25+
EK-RA8D1 to RTK7EKA6M3B00001BU Display Adapter (bottom)
26+
27+
Programming
28+
***********
29+
30+
Set ``--shield ek_ra8d1_rtk7eka6m3b00001bu`` when you invoke ``west build``.
31+
This shield is just a converter, so it is usually used with RTK7EKA6M3B00001BU shield.
32+
33+
For example,
34+
35+
.. zephyr-app-commands::
36+
:zephyr-app: tests/drivers/display/display_read_write
37+
:board: ek_ra8d1
38+
:shield: ek_ra8d1_rtk7eka6m3b00001bu,rtk7eka6m3b00001bu
39+
:goals: build
40+
41+
References
42+
**********
43+
- `EK-RA8D1 to RTK7EKA6M3B00001BU Display Adapter`_
44+
45+
.. _EK-RA8D1 to RTK7EKA6M3B00001BU Display Adapter:
46+
https://oshpark.com/shared_projects/pzfp0mCD
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
lcd_expansion_rtk7eka6m3b00001bu: parallel-graphics-connector {
9+
compatible = "renesas,ra-parallel-graphics-header";
10+
#gpio-cells = <2>;
11+
gpio-map-mask = <0xffffffff 0xffffffc0>;
12+
gpio-map-pass-thru = <0 0x3f>;
13+
gpio-map = <5 0 &ek_ra8d1_parallel_graphics_expansion 4 0>, /* IIC_SCL */
14+
<21 0 &ek_ra8d1_parallel_graphics_expansion 2 0>, /* IIC_SDA */
15+
<35 0 &ek_ra8d1_parallel_graphics_expansion 6 0>, /* DISP_RST */
16+
<38 0 &ek_ra8d1_parallel_graphics_expansion 3 0>, /* DISP_INT */
17+
<39 0 &ek_ra8d1_parallel_graphics_expansion 1 0>; /* DISP_BLEN */
18+
};
19+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
shield:
2+
name: ek_ra8d1_rtk7eka6m3b00001bu
3+
full_name: EK-RA8D1 to RTK7EKA6M3B00001BU Display Adapter
4+
vendor: renesas
5+
supported_features:
6+
- display

boards/shields/rtk7eka6m3b00001bu/boards/ek_ra8d1.overlay

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,6 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
/ {
8-
renesas_parallel_graphics_connector: parallel-graphics-connector {
9-
compatible = "renesas,ra-parallel-graphics-header";
10-
#gpio-cells = <2>;
11-
gpio-map-mask = <0xffffffff 0xffffffc0>;
12-
gpio-map-pass-thru = <0 0x3f>;
13-
gpio-map = <1 0 &ioport4 4 0>, /* DISP_BLEN */
14-
<2 0 &ioport5 11 0>, /* IIC_SDA */
15-
<3 0 &ioport5 10 0>, /* DISP_INT */
16-
<4 0 &ioport5 12 0>, /* IIC_SCL */
17-
<6 0 &ioporta 1 0>; /* DISP_RST */
18-
};
19-
};
20-
217
&port_irq3 {
228
interrupts = <90 1>;
239
status = "okay";

boards/shields/rtk7eka6m3b00001bu/rtk7eka6m3b00001bu.overlay

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,26 @@
1515
compatible = "zephyr,lvgl-pointer-input";
1616
input = <&ft5336_rtk7eka6m3b00001bu>;
1717
};
18+
19+
lcd_expansion_rtk7eka6m3b00001bu: parallel-graphics-connector {
20+
compatible = "renesas,ra-parallel-graphics-header";
21+
};
1822
};
1923

2024
&iic1 {
2125
status = "okay";
2226
ft5336_rtk7eka6m3b00001bu: ft5336-rtk7eka6m3b00001bu@38 {
2327
compatible = "focaltech,ft5336";
2428
reg = <0x38>;
25-
int-gpios = <&renesas_parallel_graphics_connector 3 GPIO_ACTIVE_HIGH>;
29+
int-gpios = <&lcd_expansion_rtk7eka6m3b00001bu 38 GPIO_ACTIVE_HIGH>;
2630
};
2731
};
2832

2933
&zephyr_lcdif {
3034
status = "okay";
3135
width = <480>;
3236
height = <272>;
33-
input-pixel-format = <PANEL_PIXEL_FORMAT_RGB_888>;
37+
input-pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>;
3438
output-pixel-format = <PANEL_PIXEL_FORMAT_RGB_888>;
3539
display-timings {
3640
compatible = "zephyr,panel-timing";
@@ -45,5 +49,5 @@
4549
hfront-porch = <4>;
4650
vfront-porch = <35>;
4751
};
48-
backlight-gpios = <&renesas_parallel_graphics_connector 1 GPIO_ACTIVE_HIGH>;
52+
backlight-gpios = <&lcd_expansion_rtk7eka6m3b00001bu 39 GPIO_ACTIVE_HIGH>;
4953
};

0 commit comments

Comments
 (0)