Skip to content
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

os/: st7701 LCD driver with MIPI #6148

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
7505655
os/:amebasmart and rtl8730e code changes
namanjain7 Apr 17, 2024
2fd0807
os/:add mipi driver support
namanjain7 Apr 17, 2024
c094417
os/:add support for st7701 lcd driver
namanjain7 Apr 17, 2024
28a6f4f
apps/examples/lcd_test/: add color change test of st7701 lcd in test app
namanjain7 Apr 17, 2024
386a8dd
Merge branch 'master' of github.com:namanjain7/TizenRT into MIPI_st77…
namanjain7 Apr 19, 2024
aad06af
os/: Remove return, fix function names and remove detach call
namanjain7 Apr 19, 2024
912e97f
Merge branch 'master' of github.com:namanjain7/TizenRT into MIPI_st77…
namanjain7 Apr 25, 2024
2a99b0e
os/: add hv lcdc isr, add amebasmart prefix to functions in amebasmar…
namanjain7 Apr 25, 2024
6270675
Merge branch 'master' of github.com:namanjain7/TizenRT into MIPI_st77…
namanjain7 May 1, 2024
4da26fd
os/: Remove code repetition, mipi_dsi_device.c driver register
namanjain7 May 1, 2024
f5ff4bc
Merge branch 'master' of github.com:namanjain7/TizenRT into MIPI_st77…
namanjain7 May 2, 2024
8d3693d
os/:Change typo and add polling
namanjain7 May 2, 2024
047645f
os/arch/arm/src/amebasmart/: remove is_transfer_completed function
namanjain7 May 2, 2024
468851d
Merge branch 'master' of github.com:namanjain7/TizenRT into MIPI_st77…
namanjain7 May 6, 2024
371cdef
os/: Add check for transfer failure and name change for config and re…
namanjain7 May 6, 2024
0d2d823
os/drivers/lcd/: Add CONFIG_LCD_ST7701 flag in make.defs
namanjain7 May 8, 2024
ee61dda
Merge branch 'master' of github.com:namanjain7/TizenRT into MIPI_st77…
namanjain7 May 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
48 changes: 48 additions & 0 deletions apps/examples/lcd_test/example_lcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,49 @@ static void test_orientation(void)
close(fd);
}

#ifdef CONFIG_LCD_ST7701
static void test_color_st7701(void)
namanjain7 marked this conversation as resolved.
Show resolved Hide resolved
{
int fd = 0;
int p = 0;
char port[20] = { '\0' };

sprintf(port, LCD_DEV_PATH, p);
fd = open(port, O_RDWR | O_SYNC, 0666);
if (fd < 0) {
printf("ERROR: Failed to open lcd port : %s error:%d\n", port, fd);
return -1;
}
struct fb_videoinfo_s vinfo;
ioctl(fd, LCDDEVIO_GETVIDEOINFO, (unsigned long)(uintptr_t)&vinfo);
xres = vinfo.xres;
yres = vinfo.yres;
printf("xres : %d, yres:%d\n", xres, yres);
close(fd);

int c = 0, a = 0;
while(true){
a++;
if(c >= 3) break;
switch (a){
case 1:
putarea(1, xres - 1, 1, yres - 1, RED);
break;
case 2:
putarea(1, xres - 1, 1, yres - 1, WHITE);
break;
case 3:
putarea(1, xres - 1, 1, yres - 1, BLACK);
a = 0;
c++;
break;
}
sleep(2);
}
return;
}
#endif

#ifdef CONFIG_BUILD_KERNEL
int main(int argc, FAR char *argv[])
#else
Expand All @@ -244,6 +287,10 @@ int lcd_test_main(int argc, char *argv[])
int count = 0;
test_init();
sleep(1);

#ifdef CONFIG_LCD_ST7701
test_color_st7701();
#else
while (count < 5) {
test_clear();
sleep(1);
Expand All @@ -257,4 +304,5 @@ int lcd_test_main(int argc, char *argv[])
sleep(1);
count++;
}
#endif
}
3 changes: 3 additions & 0 deletions os/arch/arm/src/amebasmart/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ EXTRA_LIBS += ${TOPDIR}/board/rtl8730e/src/libs/lib_btgap.a
#endif
endif

ifeq ($(CONFIG_AMEBASMART_MIPI),y)
CHIP_CSRCS += amebasmart_mipi.c
endif
ifeq ($(CONFIG_AMEBASMART_TRUSTZONE),y)
#CHIP_CSRCS += amebasmart_nsc.c

Expand Down