File tree Expand file tree Collapse file tree 8 files changed +134
-91
lines changed
shields/st_b_lcd40_dsi1_mb1166
st_b_lcd40_dsi1_mb1166_a09 Expand file tree Collapse file tree 8 files changed +134
-91
lines changed Original file line number Diff line number Diff line change 4
4
5
5
if SHIELD_ST_B_LCD40_DSI1_MB1166 || SHIELD_ST_B_LCD40_DSI1_MB1166_A09
6
6
7
- # Double frame buffer maintained by lvgl.
8
- if LVGL
7
+ orsource "boards/*.defconfig"
9
8
10
- config STM32_LTDC_FB_NUM
11
- default 0
9
+ if LVGL
12
10
13
11
config INPUT
14
12
default y
15
13
16
- config LV_Z_VDB_SIZE
17
- default 100
18
-
19
- config LV_Z_DOUBLE_VDB
20
- default y
21
-
22
- config LV_Z_VBD_CUSTOM_SECTION
23
- default y
24
-
25
- config LV_Z_FULL_REFRESH
26
- default y
27
-
28
14
config LV_Z_BITS_PER_PIXEL
29
15
default 32
30
16
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
* SPDX-License-Identifier: Apache-2.0
5
5
*/
6
6
7
- #include <zephyr/dt-bindings/display/panel.h>
8
-
9
- &mipi_dsi {
7
+ &zephyr_mipi_dsi {
8
+ status = "okay";
10
9
loosely-packed;
11
10
largest-packet-size = <64>;
12
11
bta-ack-disable;
13
12
};
14
-
15
- <dc {
16
- /* frida, nt35510 */
17
- display-timings {
18
- compatible = "zephyr,panel-timing";
19
- hsync-active = <0>;
20
- vsync-active = <0>;
21
- de-active = <0>;
22
- pixelclk-active = <0>;
23
- hsync-len = <2>;
24
- vsync-len = <120>;
25
- hback-porch = <34>;
26
- vback-porch = <150>;
27
- hfront-porch = <34>;
28
- vfront-porch = <150>;
29
- };
30
- };
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2024 Linumiz
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ if BOARD_STM32H747I_DISCO_STM32H747XX_M7
5
+ if LVGL
6
+
7
+ # Double frame buffer maintained by lvgl.
8
+ config STM32_LTDC_FB_NUM
9
+ default 0
10
+
11
+ config LV_Z_DOUBLE_VDB
12
+ default y
13
+
14
+ config LV_Z_VBD_CUSTOM_SECTION
15
+ default y
16
+
17
+ config LV_Z_FULL_REFRESH
18
+ default y
19
+
20
+ endif #LVGL
21
+ endif # BOARD_STM32H747I_DISCO_STM32H747XX_M7
Original file line number Diff line number Diff line change 4
4
* SPDX-License-Identifier: Apache-2.0
5
5
*/
6
6
7
- #include <zephyr/dt-bindings/display/panel.h>
8
-
9
- / {
10
- lvgl_pointer {
11
- compatible = "zephyr,lvgl-pointer-input";
12
- input = <&ft5336>;
13
- invert-y;
14
- };
15
-
16
- chosen {
17
- zephyr,display = <dc;
18
- };
19
- };
20
-
21
7
&sdram2 {
22
- /* Frame buffer memory cache will cause screen flickering. */
8
+ /* Frame buffer memory when cached causes screen flickering. */
23
9
zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_RAM_NOCACHE) )>;
24
10
};
25
11
26
- <dc {
12
+ &zephyr_lcd_controller {
27
13
status = "okay";
28
14
ext-sdram = <&sdram2>;
29
- width = <800>;
30
- height = <480>;
31
15
def-back-color-red = <0>;
32
16
def-back-color-green = <0>;
33
17
def-back-color-blue = <0>;
34
- pixel-format = <PANEL_PIXEL_FORMAT_RGB_888>;
35
18
};
36
19
37
20
/* ltdc uses pll3_r as pixel clock */
45
28
div-r = <24>; /* 27.5 MHz */
46
29
};
47
30
48
- &mipi_dsi {
31
+ &zephyr_mipi_dsi {
49
32
status = "okay";
50
33
51
34
/* DSI HOST dedicated PLL
61
44
hs-active-high;
62
45
de-active-high;
63
46
};
64
-
65
- &i2c4 {
66
- pinctrl-0 = <&i2c4_scl_pd12 &i2c4_sda_pd13>;
67
- pinctrl-names = "default";
68
- clock-frequency = <I2C_BITRATE_FAST>;
69
- status = "okay";
70
-
71
- ft5336: ft5336@38 {
72
- compatible = "focaltech,ft5336";
73
- reg = <0x38>;
74
- };
75
- };
Original file line number Diff line number Diff line change 4
4
* SPDX-License-Identifier: Apache-2.0
5
5
*/
6
6
7
- &mipi_dsi {
7
+ #include <zephyr/dt-bindings/display/panel.h>
8
+
9
+ / {
10
+ lvgl_pointer {
11
+ compatible = "zephyr,lvgl-pointer-input";
12
+ input = <&ft5336>;
13
+ invert-y;
14
+ };
15
+
16
+ chosen {
17
+ zephyr,display = &zephyr_lcd_controller;
18
+ };
19
+ };
20
+
21
+ &zephyr_mipi_dsi {
22
+ status = "okay";
8
23
otm8009a: otm8009a@0 {
9
24
status = "okay";
10
25
compatible = "orisetech,otm8009a";
18
33
rotation = <90>;
19
34
};
20
35
};
36
+
37
+ &zephyr_lcd_controller {
38
+ status = "okay";
39
+ width = <800>;
40
+ height = <480>;
41
+ pixel-format = <PANEL_PIXEL_FORMAT_RGB_888>;
42
+ /* orisetech, otm8009a */
43
+ display-timings {
44
+ compatible = "zephyr,panel-timing";
45
+ hsync-active = <0>;
46
+ vsync-active = <0>;
47
+ de-active = <0>;
48
+ pixelclk-active = <0>;
49
+ hsync-len = <2>;
50
+ vsync-len = <1>;
51
+ hback-porch = <34>;
52
+ vback-porch = <15>;
53
+ hfront-porch = <34>;
54
+ vfront-porch = <16>;
55
+ };
56
+ };
57
+
58
+ &qsh_030_i2c {
59
+ ft5336: ft5336@38 {
60
+ compatible = "focaltech,ft5336";
61
+ reg = <0x38>;
62
+ int-gpios = <&dsi_lcd_qsh_030 4 0>;
63
+ status = "okay";
64
+ };
65
+ };
Original file line number Diff line number Diff line change 4
4
* SPDX-License-Identifier: Apache-2.0
5
5
*/
6
6
7
- &mipi_dsi {
7
+ #include <zephyr/dt-bindings/display/panel.h>
8
+
9
+ / {
10
+ lvgl_pointer {
11
+ compatible = "zephyr,lvgl-pointer-input";
12
+ input = <&ft5336>;
13
+ invert-y;
14
+ };
15
+
16
+ chosen {
17
+ zephyr,display = &zephyr_lcd_controller;
18
+ };
19
+ };
20
+
21
+ &zephyr_mipi_dsi {
22
+ status = "okay";
8
23
nt35510: nt35510@0 {
9
24
status = "okay";
10
25
compatible = "frida,nt35510";
18
33
rotation = <90>;
19
34
};
20
35
};
36
+
37
+ &zephyr_lcd_controller {
38
+ status = "okay";
39
+ width = <800>;
40
+ height = <480>;
41
+ pixel-format = <PANEL_PIXEL_FORMAT_RGB_888>;
42
+ /* frida, nt35510 */
43
+ display-timings {
44
+ compatible = "zephyr,panel-timing";
45
+ hsync-active = <0>;
46
+ vsync-active = <0>;
47
+ de-active = <0>;
48
+ pixelclk-active = <0>;
49
+ hsync-len = <2>;
50
+ vsync-len = <120>;
51
+ hback-porch = <34>;
52
+ vback-porch = <150>;
53
+ hfront-porch = <34>;
54
+ vfront-porch = <150>;
55
+ };
56
+ };
57
+
58
+ &qsh_030_i2c {
59
+ ft5336: ft5336@38 {
60
+ compatible = "focaltech,ft5336";
61
+ reg = <0x38>;
62
+ int-gpios = <&dsi_lcd_qsh_030 4 0>;
63
+ status = "okay";
64
+ };
65
+ };
Original file line number Diff line number Diff line change @@ -278,3 +278,17 @@ zephyr_udc0: &usbotg_hs {
278
278
};
279
279
280
280
arduino_spi: &spi5 {};
281
+
282
+ /* alias used by display shields with touch control */
283
+ qsh_030_i2c: &i2c4 {
284
+ pinctrl-0 = <&i2c4_scl_pd12 &i2c4_sda_pd13>;
285
+ pinctrl-names = "default";
286
+ clock-frequency = <I2C_BITRATE_FAST>;
287
+ status = "okay";
288
+ };
289
+
290
+ /* alias used by display shields */
291
+ zephyr_mipi_dsi: &mipi_dsi {};
292
+
293
+ /* alias used by LCD display shields */
294
+ zephyr_lcd_controller: <dc {};
You can’t perform that action at this time.
0 commit comments