Skip to content

Commit

Permalink
boards: st: nucleo_l496zg: add zephyr_udc0 and hsi48 dt nodes
Browse files Browse the repository at this point in the history
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]>
(cherry picked from commit 3a07c9f)
  • Loading branch information
Chris Friedt authored and github-actions[bot] committed Sep 12, 2024
1 parent a0c8a43 commit 073d60f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boards/arm/nucleo_l496zg/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ The Zephyr nucleo_l496zg board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-----------+------------+-------------------------------------+
| OTG FS | on-chip | USB OTG Full-speed |
+-----------+------------+-------------------------------------+
| WATCHDOG | on-chip | System Window Watchdog |
+-----------+------------+-------------------------------------+

Expand Down
10 changes: 10 additions & 0 deletions boards/arm/nucleo_l496zg/nucleo_l496zg.dts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
status = "okay";
};

&clk_hsi48 {
status = "okay";
};

&pll {
div-m = <1>;
mul-n = <20>;
Expand Down Expand Up @@ -111,6 +115,12 @@
status = "okay";
};

zephyr_udc0: &usbotg_fs {
pinctrl-0 = <&usb_otg_fs_dm_pa11 &usb_otg_fs_dp_pa12>;
pinctrl-names = "default";
status = "okay";
};

&timers1 {
st,prescaler = <10000>;
status = "okay";
Expand Down
3 changes: 3 additions & 0 deletions boards/arm/nucleo_l496zg/nucleo_l496zg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ supported:
- spi
- pwm
- counter
- usb
- usb_device
- usbd
- watchdog
testing:
ignore_tags:
Expand Down

0 comments on commit 073d60f

Please sign in to comment.