usb: add bflb ehci controller

This commit is contained in:
Allen Martin 2023-01-13 02:38:06 -08:00 committed by Grant T. Olson
parent b2fe2832f8
commit 4c45c424d0
4 changed files with 19 additions and 0 deletions
arch/riscv/boot/dts/bouffalolab
include/dt-bindings/mailbox

View file

@ -58,3 +58,7 @@
&ipclic {
status = "okay";
};
&ehci0 {
status = "okay";
};

View file

@ -53,3 +53,7 @@
&ipclic {
status = "okay";
};
&ehci0 {
status = "okay";
};

View file

@ -90,6 +90,16 @@
status = "disabled";
};
ehci0: usb@20072000 {
compatible = "generic-ehci";
reg = <0x20072010 0x1000>;
interrupts-extended = <&ipclic BFLB_IPC_SOURCE_M0
BFLB_IPC_DEVICE_USB
IRQ_TYPE_EDGE_RISING>;
clocks = <&xtal>;
status = "disabled";
};
ipclic: mailbox@30005000 {
compatible = "bouffalolab,bflb-ipc";
reg = <0x30005000 0x20>,

View file

@ -13,5 +13,6 @@
/* Peripheral device ID */
#define BFLB_IPC_DEVICE_SDHCI 0
#define BFLB_IPC_DEVICE_UART2 1
#define BFLB_IPC_DEVICE_USB 2
#endif