dts: arm: 96b_carbon use DT to configure USB
Configure USB using DT for 96b_carbon Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
This commit is contained in:
parent
c431152147
commit
22c1018bfb
5 changed files with 33 additions and 10 deletions
|
@ -30,16 +30,6 @@ if USB
|
|||
config USB_DC_STM32
|
||||
def_bool y
|
||||
|
||||
# USB OTG FS has four endpoints including ep0
|
||||
config USB_DC_STM32_EP_NUM
|
||||
int
|
||||
default 4
|
||||
|
||||
# 320 4-Byte words FIFO for USB OTG FS controller
|
||||
config USB_DC_STM32_RAM_SIZE
|
||||
int
|
||||
default 1280
|
||||
|
||||
if USB_CDC_ACM
|
||||
|
||||
config CDC_ACM_INT_EP_ADDR
|
||||
|
|
|
@ -83,4 +83,12 @@
|
|||
#define FLASH_DEV_BASE_ADDRESS ST_STM32F4_FLASH_CONTROLLER_40023C00_BASE_ADDRESS_0
|
||||
#define FLASH_DEV_NAME ST_STM32F4_FLASH_CONTROLLER_40023C00_LABEL
|
||||
|
||||
#define CONFIG_USB_BASE_ADDRESS ST_STM32_OTGFS_50000000_BASE_ADDRESS
|
||||
#define CONFIG_USB_IRQ ST_STM32_OTGFS_50000000_IRQ_OTGFS
|
||||
#define CONFIG_USB_IRQ_PRI ST_STM32_OTGFS_50000000_IRQ_OTGFS_PRIORITY
|
||||
#define CONFIG_USB_NUM_BIDIR_ENDPOINTS ST_STM32_OTGFS_50000000_NUM_BIDIR_ENDPOINTS
|
||||
#define CONFIG_USB_NUM_IN_ENDPOINTS ST_STM32_OTGFS_50000000_NUM_IN_ENDPOINTS
|
||||
#define CONFIG_USB_NUM_OUT_ENDPOINTS ST_STM32_OTGFS_50000000_NUM_OUT_ENDPOINTS
|
||||
#define CONFIG_USB_RAM_SIZE ST_STM32_OTGFS_50000000_RAM_SIZE
|
||||
|
||||
/* End of SoC Level DTS fixup file */
|
||||
|
|
|
@ -57,6 +57,10 @@
|
|||
status = "ok";
|
||||
};
|
||||
|
||||
&usbotg_fs {
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
&flash0 {
|
||||
/*
|
||||
* If chosen's zephyr,code-partition
|
||||
|
|
|
@ -42,3 +42,11 @@ config HAS_DTS_SPI_DEVICE
|
|||
help
|
||||
This option specifies that the target platform supports device tree
|
||||
configuration for spi devices, like sensors or RF modules.
|
||||
|
||||
config HAS_DTS_USB
|
||||
bool
|
||||
default n
|
||||
depends on HAS_DTS
|
||||
help
|
||||
This option specifies that the target platform supports device tree
|
||||
configuration for USB.
|
||||
|
|
|
@ -135,6 +135,19 @@
|
|||
status = "disabled";
|
||||
label = "SPI_1";
|
||||
};
|
||||
|
||||
usbotg_fs: usb@50000000 {
|
||||
compatible = "st,stm32-otgfs";
|
||||
reg = <0x50000000 0x40000>;
|
||||
interrupts = <67 0>;
|
||||
interrupt-names = "otgfs";
|
||||
num-bidir-endpoints = <1>;
|
||||
num-in-endpoints = <3>;
|
||||
num-out-endpoints = <3>;
|
||||
ram-size = <1280>;
|
||||
status = "disabled";
|
||||
label= "OTGFS";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue