Skip to content

Commit 285d1d2

Browse files
Alain Volmatkartben
authored andcommitted
boards: st: enable all i2c and panel available on the stm32mp135f_dk board
The stm32mp135f_dk board has 3 i2c instances enabled and feature a 480x272 panel controlled via the LTDC. Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
1 parent 7481187 commit 285d1d2

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

boards/st/stm32mp135f_dk/stm32mp135f_dk.dts

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include <st/mp13/stm32mp135.dtsi>
1010
#include <st/mp13/stm32mp135faex-pinctrl.dtsi>
11+
#include "zephyr/dt-bindings/display/panel.h"
1112
#include <zephyr/dt-bindings/input/input-event-codes.h>
1213

1314
/ {
@@ -19,6 +20,7 @@
1920
zephyr,sram = &ddr_data;
2021
zephyr,console = &uart4;
2122
zephyr,shell-uart = &uart4;
23+
zephyr,display = &ltdc;
2224
};
2325

2426
gpio_keys {
@@ -91,3 +93,56 @@
9193
current-speed = <115200>;
9294
status = "okay";
9395
};
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+
&ltdc {
116+
pinctrl-0 = <&ltdc_r2_pg7 &ltdc_r3_pb12
117+
&ltdc_r4_pd14 &ltdc_r5_pe7 &ltdc_r6_pe13 &ltdc_r7_pe9
118+
&ltdc_g2_ph13 &ltdc_g3_pf3
119+
&ltdc_g4_pd5 &ltdc_g5_pg0 &ltdc_g6_pc7 &ltdc_g7_pa15
120+
&ltdc_b2_pd10 &ltdc_b3_pf2
121+
&ltdc_b4_ph14 &ltdc_b5_pe0 &ltdc_b6_pb6 &ltdc_b7_pf1
122+
&ltdc_de_ph9 &ltdc_clk_pd9 &ltdc_hsync_pc6 &ltdc_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

Comments
 (0)