Skip to content

Commit c107ec4

Browse files
erwangocarlescufi
authored andcommitted
boards: stm32: Add zephyr_udc0 when it is missing.
Some STM32 based boards where missing the alternate node label zephyr_udc0, leading to build issues when compiling usb samples. Fixes #46626 Signed-off-by: Erwan Gouriou <[email protected]>
1 parent 2bfc245 commit c107ec4

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

boards/arm/b_l072z_lrwan1/b_l072z_lrwan1.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ arduino_i2c: &i2c1 {};
165165
status = "okay";
166166
};
167167

168-
&usb {
168+
zephyr_udc0: &usb {
169169
pinctrl-0 = <&usb_dm_pa11 &usb_dp_pa12>;
170170
pinctrl-names = "default";
171171
status = "okay";

boards/arm/olimex_stm32_h103/olimex_stm32_h103.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
status = "okay";
130130
};
131131

132-
&usb {
132+
zephyr_udc0: &usb {
133133
pinctrl-0 = <&usb_dm_pa11 &usb_dp_pa12>;
134134
pinctrl-names = "default";
135135
disconnect-gpios = <&gpioc 11 GPIO_ACTIVE_LOW>;

boards/arm/olimex_stm32_h407/olimex_stm32_h407.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
status = "okay";
9494
};
9595

96-
&usbotg_fs {
96+
zephyr_udc0: &usbotg_fs {
9797
pinctrl-0 = <&usb_otg_fs_dm_pa11 &usb_otg_fs_dp_pa12>;
9898
pinctrl-names = "default";
9999
};

boards/arm/stm32_min_dev/stm32_min_dev.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
};
112112
};
113113

114-
&usb {
114+
zephyr_udc0: &usb {
115115
pinctrl-0 = <&usb_dm_pa11 &usb_dp_pa12>;
116116
pinctrl-names = "default";
117117
status = "okay";

boards/arm/stm32f103_mini/stm32f103_mini.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
};
107107
};
108108

109-
&usb {
109+
zephyr_udc0: &usb {
110110
pinctrl-0 = <&usb_dm_pa11 &usb_dp_pa12>;
111111
pinctrl-names = "default";
112112
status = "okay";

0 commit comments

Comments
 (0)