|
8 | 8 |
|
9 | 9 | #include <st/mp13/stm32mp135.dtsi>
|
10 | 10 | #include <st/mp13/stm32mp135faex-pinctrl.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,sram = &ddr_data;
|
20 | 21 | zephyr,console = &uart4;
|
21 | 22 | zephyr,shell-uart = &uart4;
|
| 23 | + zephyr,display = <dc; |
22 | 24 | };
|
23 | 25 |
|
24 | 26 | gpio_keys {
|
|
91 | 93 | current-speed = <115200>;
|
92 | 94 | status = "okay";
|
93 | 95 | };
|
| 96 | + |
| 97 | +&i2c1 { |
| 98 | + pinctrl-names = "default"; |
| 99 | + pinctrl-0 = <&i2c1_scl_pd12 &i2c1_sda_pe8>; |
| 100 | + status = "okay"; |
| 101 | +}; |
| 102 | + |
| 103 | +&i2c4 { |
| 104 | + pinctrl-names = "default"; |
| 105 | + pinctrl-0 = <&i2c4_scl_pe15 &i2c4_sda_pb9>; |
| 106 | + status = "okay"; |
| 107 | +}; |
| 108 | + |
| 109 | +&i2c5 { |
| 110 | + pinctrl-names = "default"; |
| 111 | + pinctrl-0 = <&i2c5_scl_pd1 &i2c5_sda_ph6>; |
| 112 | + status = "okay"; |
| 113 | +}; |
| 114 | + |
| 115 | +<dc { |
| 116 | + pinctrl-0 = <<dc_r2_pg7 <dc_r3_pb12 |
| 117 | + <dc_r4_pd14 <dc_r5_pe7 <dc_r6_pe13 <dc_r7_pe9 |
| 118 | + <dc_g2_ph13 <dc_g3_pf3 |
| 119 | + <dc_g4_pd5 <dc_g5_pg0 <dc_g6_pc7 <dc_g7_pa15 |
| 120 | + <dc_b2_pd10 <dc_b3_pf2 |
| 121 | + <dc_b4_ph14 <dc_b5_pe0 <dc_b6_pb6 <dc_b7_pf1 |
| 122 | + <dc_de_ph9 <dc_clk_pd9 <dc_hsync_pc6 <dc_vsync_pg4>; |
| 123 | + pinctrl-names = "default"; |
| 124 | + disp-on-gpios = <&gpioi 7 GPIO_ACTIVE_HIGH>; |
| 125 | + bl-ctrl-gpios = <&gpioe 12 GPIO_ACTIVE_HIGH>; |
| 126 | + |
| 127 | + status = "okay"; |
| 128 | + |
| 129 | + width = <480>; |
| 130 | + height = <272>; |
| 131 | + pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>; |
| 132 | + display-timings { |
| 133 | + compatible = "zephyr,panel-timing"; |
| 134 | + de-active = <0>; |
| 135 | + pixelclk-active = <0>; |
| 136 | + hsync-active = <0>; |
| 137 | + vsync-active = <0>; |
| 138 | + hsync-len = <41>; |
| 139 | + vsync-len = <10>; |
| 140 | + hback-porch = <13>; |
| 141 | + vback-porch = <2>; |
| 142 | + hfront-porch = <32>; |
| 143 | + vfront-porch = <2>; |
| 144 | + }; |
| 145 | + def-back-color-red = <0xFF>; |
| 146 | + def-back-color-green = <0xFF>; |
| 147 | + def-back-color-blue = <0xFF>; |
| 148 | +}; |
0 commit comments