riscv: dts: starfive: jh7110-common: move usb0 config to board dts

The JH7110 USB0 can operate as a dual-role USB device.  Different
boards can have different configuration.

For all current boards this device operates in peripheral mode, but
on a new board this operates in host mode.  This property will no
longer be common, so define the "dr_mode" property in the board files
rather than in the common DTSI file.

Signed-off-by: Alex Elder <elder@riscstar.com>
Signed-off-by: Guodong Xu <guodong@riscstar.com>
Reviewed-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
This commit is contained in:
Guodong Xu 2024-10-28 16:25:50 +08:00 committed by Conor Dooley
parent 5a5001d270
commit 817eac165e
4 changed files with 15 additions and 5 deletions

View file

@ -637,11 +637,6 @@
status = "okay";
};
&usb0 {
dr_mode = "peripheral";
status = "okay";
};
&U74_1 {
cpu-supply = <&vdd_cpu>;
};

View file

@ -52,3 +52,8 @@
&spi0 {
status = "okay";
};
&usb0 {
dr_mode = "peripheral";
status = "okay";
};

View file

@ -80,3 +80,8 @@
&spi0 {
status = "okay";
};
&usb0 {
dr_mode = "peripheral";
status = "okay";
};

View file

@ -60,3 +60,8 @@
&spi0 {
status = "okay";
};
&usb0 {
dr_mode = "peripheral";
status = "okay";
};