boards: added touch controller to the /chosen node

This adds zephyr,touch property to boards with touch controllers, analogous
to `zephyr,display`.

Signed-off-by: Dominik Lau <dlau@internships.antmicro.com>
Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
This commit is contained in:
Dominik Lau 2024-09-27 10:17:05 +02:00 committed by Fabio Baltieri
parent 8941a2100c
commit b38a4ccbdb
24 changed files with 25 additions and 0 deletions

View file

@ -16,6 +16,7 @@
zephyr,bt-c2h-uart = &uart0; zephyr,bt-c2h-uart = &uart0;
zephyr,display = &ili9340; zephyr,display = &ili9340;
zephyr,bt-hci = &bt_hci_ipc0; zephyr,bt-hci = &bt_hci_ipc0;
zephyr,touch = &ft5336;
}; };
/* Main LEDs and buttons are on an I2C TCA9538 GPIO port expander */ /* Main LEDs and buttons are on an I2C TCA9538 GPIO port expander */

View file

@ -35,6 +35,7 @@
zephyr,code-partition = &slot0_partition; zephyr,code-partition = &slot0_partition;
zephyr,rtc = &pfc8563_rtc; zephyr,rtc = &pfc8563_rtc;
zephyr,bt-hci = &esp32_bt_hci; zephyr,bt-hci = &esp32_bt_hci;
zephyr,touch = &ft5336_touch;
}; };
leds { leds {

View file

@ -34,6 +34,7 @@
zephyr,console = &lpuart1; zephyr,console = &lpuart1;
zephyr,shell-uart = &lpuart1; zephyr,shell-uart = &lpuart1;
zephyr,canbus = &flexcan2; zephyr,canbus = &flexcan2;
zephyr,touch = &ft5336;
}; };
sdram0: memory@80000000 { sdram0: memory@80000000 {

View file

@ -3,6 +3,7 @@
/ { / {
chosen { chosen {
zephyr,display = &st7796s_lcdic; zephyr,display = &st7796s_lcdic;
zephyr,touch = &ft7401;
}; };
lvgl_pointer { lvgl_pointer {

View file

@ -27,6 +27,7 @@
zephyr,flash = &flash0; zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition; zephyr,code-partition = &slot0_partition;
zephyr,display = &st7789v; zephyr,display = &st7789v;
zephyr,touch = &cst816s;
}; };
aliases { aliases {

View file

@ -10,6 +10,7 @@
/ { / {
chosen { chosen {
zephyr,display = &lcdc; zephyr,display = &lcdc;
zephyr,touch = &display_touch;
}; };
lvgl_pointer { lvgl_pointer {

View file

@ -10,6 +10,7 @@
/ { / {
chosen { chosen {
zephyr,display = &ili9340; zephyr,display = &ili9340;
zephyr,touch = &display_touch;
}; };
lvgl_pointer { lvgl_pointer {

View file

@ -9,6 +9,7 @@
/ { / {
chosen { chosen {
zephyr,display = &adafruit_2_8_tft_touch_v2_ili9340; zephyr,display = &adafruit_2_8_tft_touch_v2_ili9340;
zephyr,touch = &ft5336_adafruit_2_8_tft_touch_v2;
}; };
lvgl_pointer { lvgl_pointer {

View file

@ -9,6 +9,7 @@
/ { / {
chosen { chosen {
zephyr,display = &ili9340_buydisplay_2_8_tft_touch_arduino; zephyr,display = &ili9340_buydisplay_2_8_tft_touch_arduino;
zephyr,touch = &ft5336_buydisplay_2_8_tft_touch_arduino;
}; };
lvgl_pointer { lvgl_pointer {

View file

@ -9,6 +9,7 @@
/ { / {
chosen { chosen {
zephyr,display = &ili9488_buydisplay_3_5_tft_touch_arduino; zephyr,display = &ili9488_buydisplay_3_5_tft_touch_arduino;
zephyr,touch = &ft5336_buydisplay_3_5_tft_touch_arduino;
}; };
lvgl_pointer { lvgl_pointer {

View file

@ -7,6 +7,7 @@
/{ /{
chosen { chosen {
zephyr,display = &rm67162_g1120b0mipi; zephyr,display = &rm67162_g1120b0mipi;
zephyr,touch = &ft3267_g1120b0mipi;
}; };
en_mipi_display_g1120b0mipi: enable-mipi-display { en_mipi_display_g1120b0mipi: enable-mipi-display {

View file

@ -9,6 +9,7 @@
/{ /{
chosen { chosen {
zephyr,display = &st7796s; zephyr,display = &st7796s;
zephyr,touch = &gt911_lcd_par_s035;
}; };
lvgl_pointer { lvgl_pointer {

View file

@ -9,6 +9,7 @@
/{ /{
chosen { chosen {
zephyr,display = &zephyr_lcdif; zephyr,display = &zephyr_lcdif;
zephyr,touch = &ft5336_rk043fn02h_ct;
}; };
lvgl_pointer { lvgl_pointer {

View file

@ -9,6 +9,7 @@
/{ /{
chosen { chosen {
zephyr,display = &zephyr_lcdif; zephyr,display = &zephyr_lcdif;
zephyr,touch = &gt911_rk043fn66hs_ctg;
}; };
lvgl_pointer { lvgl_pointer {

View file

@ -9,6 +9,7 @@
/{ /{
chosen { chosen {
zephyr,display = &lcdif; zephyr,display = &lcdif;
zephyr,touch = &gt911_rk055hdmipi4m;
}; };
en_mipi_display: enable-mipi-display { en_mipi_display: enable-mipi-display {

View file

@ -9,6 +9,7 @@
/{ /{
chosen { chosen {
zephyr,display = &lcdif; zephyr,display = &lcdif;
zephyr,touch = &gt911_rk055hdmipi4ma0;
}; };
en_mipi_display_rk055hdmipi4ma0: enable-mipi-display-rk055hdmipi4ma0 { en_mipi_display_rk055hdmipi4ma0: enable-mipi-display-rk055hdmipi4ma0 {

View file

@ -10,6 +10,7 @@
/ { / {
chosen { chosen {
zephyr,display = &gc9a01_xiao_round_display; zephyr,display = &gc9a01_xiao_round_display;
zephyr,touch = &chsc6x_xiao_round_display;
}; };
vbatt { vbatt {

View file

@ -22,6 +22,7 @@
zephyr,flash = &flash0; zephyr,flash = &flash0;
zephyr,ccm = &ccm0; zephyr,ccm = &ccm0;
zephyr,display = &ltdc; zephyr,display = &ltdc;
zephyr,touch = &stmpe811;
}; };
sdram2: sdram@d0000000 { sdram2: sdram@d0000000 {

View file

@ -24,6 +24,7 @@
zephyr,dtcm = &dtcm; zephyr,dtcm = &dtcm;
zephyr,flash-controller = &n25q128a1; zephyr,flash-controller = &n25q128a1;
zephyr,display = &ltdc; zephyr,display = &ltdc;
zephyr,touch = &ft5336;
}; };
leds { leds {

View file

@ -24,6 +24,7 @@
zephyr,dtcm = &dtcm; zephyr,dtcm = &dtcm;
zephyr,flash-controller = &n25q128a1; zephyr,flash-controller = &n25q128a1;
zephyr,display = &ltdc; zephyr,display = &ltdc;
zephyr,touch = &ft5336;
}; };
leds { leds {

View file

@ -22,6 +22,7 @@
zephyr,flash = &flash0; zephyr,flash = &flash0;
zephyr,dtcm = &dtcm; zephyr,dtcm = &dtcm;
zephyr,flash-controller = &mx25l51245g; zephyr,flash-controller = &mx25l51245g;
zephyr,touch = &ft6202;
}; };
sdram1: sdram@c0000000 { sdram1: sdram@c0000000 {

View file

@ -22,6 +22,7 @@
zephyr,flash = &flash0; zephyr,flash = &flash0;
zephyr,display = &ltdc; zephyr,display = &ltdc;
zephyr,canbus = &fdcan1; zephyr,canbus = &fdcan1;
zephyr,touch = &ft5336;
}; };
leds { leds {

View file

@ -31,6 +31,7 @@
zephyr,code-partition = &slot0_partition; zephyr,code-partition = &slot0_partition;
zephyr,display = &gc9a01; zephyr,display = &gc9a01;
zephyr,bt-hci = &esp32_bt_hci; zephyr,bt-hci = &esp32_bt_hci;
zephyr,touch = &cst816s;
}; };
/* Buttons */ /* Buttons */

View file

@ -456,3 +456,5 @@ device.
* - zephyr,led-strip * - zephyr,led-strip
- A LED-strip node which is used to determine the timings of the - A LED-strip node which is used to determine the timings of the
WS2812 GPIO driver WS2812 GPIO driver
* - zephyr,touch
- touchscreen controller device node.