Skip to content

Commit 3a07c9f

Browse files
cfriedtcarlescufi
authored andcommitted
boards: st: nucleo_l496zg: add zephyr_udc0 and hsi48 dt nodes
Add Zephyr UDC (USB Device Class) and clk_hsi48 (hi-speed internal 48 MHz) devicetree nodes so that the nucleo_l496zg board works with other USB DC samples and tests. Update the board yaml description to indicate usb and usb device roles are supported. Signed-off-by: Chris Friedt <[email protected]>
1 parent 6e97595 commit 3a07c9f

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

boards/st/nucleo_l496zg/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ The Zephyr nucleo_l496zg board configuration supports the following hardware fea
127127
+-----------+------------+-------------------------------------+
128128
| RTC | on-chip | rtc |
129129
+-----------+------------+-------------------------------------+
130+
| OTG FS | on-chip | USB OTG Full-speed |
131+
+-----------+------------+-------------------------------------+
130132
| WATCHDOG | on-chip | System Window Watchdog |
131133
+-----------+------------+-------------------------------------+
132134

boards/st/nucleo_l496zg/nucleo_l496zg.dts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@
7272
status = "okay";
7373
};
7474

75+
&clk_hsi48 {
76+
status = "okay";
77+
};
78+
7579
&pll {
7680
div-m = <1>;
7781
mul-n = <20>;
@@ -111,6 +115,12 @@
111115
status = "okay";
112116
};
113117

118+
zephyr_udc0: &usbotg_fs {
119+
pinctrl-0 = <&usb_otg_fs_dm_pa11 &usb_otg_fs_dp_pa12>;
120+
pinctrl-names = "default";
121+
status = "okay";
122+
};
123+
114124
&timers1 {
115125
st,prescaler = <10000>;
116126
status = "okay";

boards/st/nucleo_l496zg/nucleo_l496zg.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ supported:
1616
- spi
1717
- pwm
1818
- counter
19+
- usb
20+
- usb_device
21+
- usbd
1922
- watchdog
2023
testing:
2124
ignore_tags:

0 commit comments

Comments
 (0)