File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ endif # NETWORKING
14
14
15
15
if DISPLAY
16
16
17
+ config INPUT
18
+ default y
19
+
20
+ config I2C_STM32_V2_TIMING
21
+ default y if INPUT
22
+
17
23
# MEMC needs to be enabled in order to store
18
24
# display frame buffer to external PSRAM
19
25
config MEMC
Original file line number Diff line number Diff line change 19
19
zephyr,sram = &axisram2;
20
20
zephyr,canbus = &fdcan1;
21
21
zephyr,display = <dc;
22
+ zephyr,touch = >911;
22
23
spi-flash0 = &mx66uw1g45g;
23
24
};
24
25
25
26
aliases {
26
27
led0 = &green_led_1;
27
28
};
28
29
30
+ lvgl_pointer {
31
+ compatible = "zephyr,lvgl-pointer-input";
32
+ input = <>911>;
33
+ display = <<dc>;
34
+ invert-y;
35
+ };
36
+
29
37
psram: memory@90000000 {
30
38
compatible = "zephyr,memory-region";
31
39
reg = <0x90000000 DT_SIZE_M(32)>;
48
56
};
49
57
};
50
58
59
+ &i2c2 {
60
+ status = "okay";
61
+ clocks = <&rcc STM32_CLOCK(APB1, 22)>,
62
+ <&rcc STM32_SRC_CKPER I2C2_SEL(1)>;
63
+ pinctrl-0 = <&i2c2_scl_pd14 &i2c2_sda_pd4>;
64
+ pinctrl-names = "default";
65
+ clock-frequency = <I2C_BITRATE_FAST>;
66
+
67
+ gt911: gt911@5d {
68
+ compatible = "goodix,gt911";
69
+ reg = <0x5d>;
70
+ reset-gpios = <&gpioe 4 GPIO_ACTIVE_LOW>;
71
+ };
72
+ };
73
+
51
74
&clk_hse {
52
75
hse-div2;
53
76
clock-frequency = <DT_FREQ_M(48)>;
You can’t perform that action at this time.
0 commit comments