Skip to content

Commit 9494cf2

Browse files
Alain Volmatkartben
Alain Volmat
authored andcommitted
boards: st: stm32mp135f_dk: add the I/O expander i2c device and led 2-3
The stm32mp135f_dk board embeds an I/O expander to get access to more I/O. Led 3 (green) and Led 4 (orange) are accessible via this I/O expander. Signed-off-by: Alain Volmat <[email protected]>
1 parent ae4358f commit 9494cf2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

boards/st/stm32mp135f_dk/stm32mp135f_dk.dts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@
4545
gpios = <&gpioa 13 GPIO_ACTIVE_LOW>;
4646
label = "LD4";
4747
};
48+
49+
green_led_3: led_3 {
50+
gpios = <&mcp23017 14 GPIO_ACTIVE_HIGH>;
51+
label = "LD7";
52+
};
53+
54+
orange_led_4: led_4 {
55+
gpios = <&mcp23017 15 GPIO_ACTIVE_HIGH>;
56+
label = "LD6";
57+
};
4858
};
4959

5060
aliases {
@@ -98,6 +108,14 @@
98108
pinctrl-names = "default";
99109
pinctrl-0 = <&i2c1_scl_pd12 &i2c1_sda_pe8>;
100110
status = "okay";
111+
112+
mcp23017: pinctrl@21 {
113+
compatible = "microchip,mcp23017";
114+
reg = <0x21>;
115+
gpio-controller;
116+
#gpio-cells = <2>;
117+
ngpios = <16>;
118+
};
101119
};
102120

103121
&i2c4 {

0 commit comments

Comments
 (0)