|
8 | 8 | #include <st/h7rs/stm32h7s7X8.dtsi>
|
9 | 9 | #include <st/h7/stm32h7s7l8hxh-pinctrl.dtsi>
|
10 | 10 | #include "arduino_r3_connector.dtsi"
|
| 11 | +#include "zephyr/dt-bindings/display/panel.h" |
11 | 12 | #include <zephyr/dt-bindings/input/input-event-codes.h>
|
12 | 13 |
|
13 | 14 | / {
|
|
19 | 20 | zephyr,shell-uart = &uart4;
|
20 | 21 | zephyr,flash = &flash0;
|
21 | 22 | zephyr,sram = &sram0;
|
| 23 | + zephyr,display = <dc; |
22 | 24 | };
|
23 | 25 |
|
24 | 26 | psram: memory@90000000 {
|
|
107 | 109 | status = "okay";
|
108 | 110 | };
|
109 | 111 |
|
| 112 | +&pll3 { |
| 113 | + div-m = <12>; |
| 114 | + mul-n = <25>; |
| 115 | + div-r = <2>; |
| 116 | + clocks = <&clk_hse>; |
| 117 | + status = "okay"; |
| 118 | +}; |
| 119 | + |
110 | 120 | &rcc {
|
111 | 121 | clocks = <&pll>;
|
112 | 122 | clock-frequency = <DT_FREQ_M(250)>;
|
@@ -304,3 +314,40 @@ usb2: &usbotg_fs {
|
304 | 314 | };
|
305 | 315 |
|
306 | 316 | zephyr_udc0: &usb2 {};
|
| 317 | + |
| 318 | +<dc { |
| 319 | + pinctrl-0 = <<dc_r0_pf9 <dc_r1_pf10 <dc_r2_pf0 <dc_r3_pb4 |
| 320 | + <dc_r4_pb3 <dc_r5_pa15 <dc_r6_pg1 <dc_r7_pg0 |
| 321 | + <dc_g0_pf7 <dc_g1_pf15 <dc_g2_pa1 <dc_g3_pa0 |
| 322 | + <dc_g4_pb13 <dc_g5_pb12 <dc_g6_pb11 <dc_g7_pb15 |
| 323 | + <dc_b0_pf11 <dc_b1_pg14 <dc_b2_pa12 <dc_b3_pa11 |
| 324 | + <dc_b4_pa10 <dc_b5_pa9 <dc_b6_pa8 <dc_b7_pa6 |
| 325 | + <dc_de_pb14 <dc_clk_pg13 <dc_hsync_pg2 <dc_vsync_pe11>; |
| 326 | + pinctrl-names = "default"; |
| 327 | + disp-on-gpios = <&gpioe 15 GPIO_ACTIVE_HIGH>; |
| 328 | + bl-ctrl-gpios = <&gpiog 15 GPIO_ACTIVE_HIGH>; |
| 329 | + |
| 330 | + status = "okay"; |
| 331 | + |
| 332 | + width = <800>; |
| 333 | + height = <480>; |
| 334 | + pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>; |
| 335 | + |
| 336 | + display-timings { |
| 337 | + compatible = "zephyr,panel-timing"; |
| 338 | + de-active = <0>; |
| 339 | + pixelclk-active = <0>; |
| 340 | + hsync-active = <0>; |
| 341 | + vsync-active = <0>; |
| 342 | + hsync-len = <4>; |
| 343 | + vsync-len = <4>; |
| 344 | + hback-porch = <8>; |
| 345 | + vback-porch = <8>; |
| 346 | + hfront-porch = <8>; |
| 347 | + vfront-porch = <8>; |
| 348 | + }; |
| 349 | + |
| 350 | + def-back-color-red = <0xFF>; |
| 351 | + def-back-color-green = <0xFF>; |
| 352 | + def-back-color-blue = <0xFF>; |
| 353 | +}; |
0 commit comments