Skip to content

Commit 817eac1

Browse files
docularxuConchuOD
authored andcommitted
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>
1 parent 5a5001d commit 817eac1

4 files changed

Lines changed: 15 additions & 5 deletions

File tree

arch/riscv/boot/dts/starfive/jh7110-common.dtsi

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -637,11 +637,6 @@
637637
status = "okay";
638638
};
639639

640-
&usb0 {
641-
dr_mode = "peripheral";
642-
status = "okay";
643-
};
644-
645640
&U74_1 {
646641
cpu-supply = <&vdd_cpu>;
647642
};

arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,8 @@
5252
&spi0 {
5353
status = "okay";
5454
};
55+
56+
&usb0 {
57+
dr_mode = "peripheral";
58+
status = "okay";
59+
};

arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,8 @@
8080
&spi0 {
8181
status = "okay";
8282
};
83+
84+
&usb0 {
85+
dr_mode = "peripheral";
86+
status = "okay";
87+
};

arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,8 @@
6060
&spi0 {
6161
status = "okay";
6262
};
63+
64+
&usb0 {
65+
dr_mode = "peripheral";
66+
status = "okay";
67+
};

0 commit comments

Comments
 (0)