Skip to content

Commit 680e713

Browse files
dts: stm32h7: Add OTG FS to DTS of the STM32H7 series
This has been verified running samples usb/console and usb/cdc_acm on a STM32H747XIH. Signed-off-by: Benjamin Björnsson <[email protected]>
1 parent a657aba commit 680e713

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

dts/arm/st/h7/stm32h745.dtsi

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,19 @@
3838
clocks = <&rcc STM32_CLOCK_BUS_APB3 0x00000008>;
3939
status = "disabled";
4040
};
41+
42+
usbotg_fs: usb@40080000 {
43+
compatible = "st,stm32-otgfs";
44+
reg = <0x40080000 0x40000>;
45+
interrupts = <98 0>, <99 0>, <100 0>, <101 0>;
46+
interrupt-names = "ep1_out", "ep1_in", "wkup", "otgfs";
47+
num-bidir-endpoints = <9>;
48+
ram-size = <4096>;
49+
maximum-speed = "full-speed";
50+
clocks = <&rcc STM32_CLOCK_BUS_AHB1 0x08000000>;
51+
phys = <&otghs_fs_phy>;
52+
status = "disabled";
53+
};
4154
};
4255
/*
4356
* The RAM memories placed here can be used by both cores M4/M7
@@ -78,4 +91,9 @@
7891
compatible = "zephyr,memory-region", "mmio-sram";
7992
zephyr,memory-region = "SRAM4";
8093
};
94+
95+
otghs_fs_phy: otghs_fs_phy {
96+
compatible = "usb-nop-xceiv";
97+
#phy-cells = <0>;
98+
};
8199
};

0 commit comments

Comments
 (0)