]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
riscv: dts: starfive: jh7110-common: move usb0 config to board dts
authorGuodong Xu <guodong@riscstar.com>
Mon, 28 Oct 2024 08:25:50 +0000 (16:25 +0800)
committerConor Dooley <conor.dooley@microchip.com>
Thu, 31 Oct 2024 12:22:53 +0000 (12:22 +0000)
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>
arch/riscv/boot/dts/starfive/jh7110-common.dtsi
arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts
arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts
arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi

index 9e77f79ec162163e11562fc66ecc5836da8b6a77..87ea81e9fed4f48e18687f75ab10f37f559546f7 100644 (file)
        status = "okay";
 };
 
-&usb0 {
-       dr_mode = "peripheral";
-       status = "okay";
-};
-
 &U74_1 {
        cpu-supply = <&vdd_cpu>;
 };
index 66ad3eb2fd6654ed6f0397992d41aa6ce2e3250d..0d248b671d4bbecfb3a028e6830e3fb336a4c83a 100644 (file)
@@ -52,3 +52,8 @@
 &spi0 {
        status = "okay";
 };
+
+&usb0 {
+       dr_mode = "peripheral";
+       status = "okay";
+};
index dbc8612b84646ed05e100ea6d97d26b847e362f5..d5180c67ac5526851a6ae44e61cccbb94fd6acda 100644 (file)
@@ -80,3 +80,8 @@
 &spi0 {
        status = "okay";
 };
+
+&usb0 {
+       dr_mode = "peripheral";
+       status = "okay";
+};
index ef93a394bb2f1fa0980bf4d798b9849ed339b33f..5f14afb2c24dcf342433140068e86fa9bd52db40 100644 (file)
@@ -60,3 +60,8 @@
 &spi0 {
        status = "okay";
 };
+
+&usb0 {
+       dr_mode = "peripheral";
+       status = "okay";
+};