|
6 | 6 |
|
7 | 7 | #include <st/n6/stm32n657X0.dtsi>
|
8 | 8 | #include <st/n6/stm32n657x0hxq-pinctrl.dtsi>
|
| 9 | +#include "zephyr/dt-bindings/display/panel.h" |
9 | 10 | #include <zephyr/dt-bindings/flash_controller/xspi.h>
|
10 | 11 | #include <zephyr/dt-bindings/input/input-event-codes.h>
|
| 12 | +#include <zephyr/dt-bindings/video/video-interfaces.h> |
11 | 13 | #include "arduino_r3_connector.dtsi"
|
12 | 14 |
|
13 | 15 | / {
|
|
16 | 18 | zephyr,shell-uart = &usart1;
|
17 | 19 | zephyr,sram = &axisram2;
|
18 | 20 | zephyr,canbus = &fdcan1;
|
| 21 | + zephyr,display = <dc; |
19 | 22 | spi-flash0 = &mx66uw1g45g;
|
20 | 23 | };
|
21 | 24 |
|
|
74 | 77 | status = "okay";
|
75 | 78 | };
|
76 | 79 |
|
| 80 | +&pll4 { |
| 81 | + clocks = <&clk_hsi>; |
| 82 | + div-m = <4>; |
| 83 | + mul-n = <75>; |
| 84 | + div-p1 = <1>; |
| 85 | + div-p2 = <1>; |
| 86 | + status = "okay"; |
| 87 | +}; |
| 88 | + |
77 | 89 | &ic1 {
|
78 | 90 | pll-src = <1>;
|
79 | 91 | ic-div = <2>;
|
|
104 | 116 | status = "okay";
|
105 | 117 | };
|
106 | 118 |
|
| 119 | +&ic16 { |
| 120 | + pll-src = <4>; |
| 121 | + ic-div = <60>; |
| 122 | + status = "okay"; |
| 123 | +}; |
| 124 | + |
107 | 125 | &perck {
|
108 | 126 | clocks = <&rcc STM32_SRC_HSI PER_SEL(0)>;
|
109 | 127 | status = "okay";
|
@@ -288,3 +306,40 @@ zephyr_udc0: &usbotg_hs1 {
|
288 | 306 | reg = <0x0>;
|
289 | 307 | };
|
290 | 308 | };
|
| 309 | + |
| 310 | +<dc { |
| 311 | + pinctrl-0 = <<dc_r0_pg0 <dc_r1_pd9 <dc_r2_pd15 <dc_r3_pb4 |
| 312 | + <dc_r4_ph4 <dc_r5_pa15 <dc_r6_pg11 <dc_r7_pd8 |
| 313 | + <dc_g0_pg12 <dc_g1_pg1 <dc_g2_pa1 <dc_g3_pa0 |
| 314 | + <dc_g4_pb15 <dc_g5_pb12 <dc_g6_pb11 <dc_g7_pg8 |
| 315 | + <dc_b0_pg15 <dc_b1_pa7 <dc_b2_pb2 <dc_b3_pg6 |
| 316 | + <dc_b4_ph3 <dc_b5_ph6 <dc_b6_pa8 <dc_b7_pa2 |
| 317 | + <dc_de_pg13 <dc_clk_pb13 <dc_hsync_pb14 <dc_vsync_pe11>; |
| 318 | + pinctrl-names = "default"; |
| 319 | + disp-on-gpios = <&gpioq 3 GPIO_ACTIVE_HIGH>; |
| 320 | + bl-ctrl-gpios = <&gpioq 6 GPIO_ACTIVE_HIGH>; |
| 321 | + |
| 322 | + ext-sdram = <&psram>; |
| 323 | + |
| 324 | + status = "okay"; |
| 325 | + |
| 326 | + width = <800>; |
| 327 | + height = <480>; |
| 328 | + pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>; |
| 329 | + display-timings { |
| 330 | + compatible = "zephyr,panel-timing"; |
| 331 | + de-active = <0>; |
| 332 | + pixelclk-active = <0>; |
| 333 | + hsync-active = <0>; |
| 334 | + vsync-active = <0>; |
| 335 | + hsync-len = <4>; |
| 336 | + vsync-len = <4>; |
| 337 | + hback-porch = <8>; |
| 338 | + vback-porch = <8>; |
| 339 | + hfront-porch = <8>; |
| 340 | + vfront-porch = <8>; |
| 341 | + }; |
| 342 | + def-back-color-red = <0xFF>; |
| 343 | + def-back-color-green = <0xFF>; |
| 344 | + def-back-color-blue = <0xFF>; |
| 345 | +}; |
0 commit comments