diff options
author | Michael Walle <michael@walle.cc> | 2022-03-30 13:34:42 +0200 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2022-04-11 09:39:13 +0800 |
commit | 73d901d6dc6158e3a7474b184f319260a2ebc921 (patch) | |
tree | 5e85b08d6f867227b9c800a88254c44cd6de7ae5 /arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts | |
parent | be0b178c50c37a666d54f435da71cf9f008362a0 (diff) |
arm64: dts: ls1028a: default to OTG mode for USB
At the moment, the dtsi will force the dr_mode to host. This is
problematic because it will always turn on the Vbus voltage regardless
if the port is host or device. This might lead to a "shortcut" between
the two USB endpoints because both might have their Vbus supplies
enabled. Therefore, the default should be "otg" for any ports which
aren't host only (from a SoC point of view) and have a user of the dtsi
file overwrite that explicitly.
Move the 'dr_mode = "host";' into the board dts. Now that the dtsi
doesn't set the dr_mode anymore, we can also drop the 'dr_mode = "otg";'
in the board dts because that is the default value if dr_mode is not
set.
Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts')
-rw-r--r-- | arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts index 0825c090ca95..4ab17b984b03 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts @@ -324,5 +324,6 @@ }; &usb1 { + dr_mode = "host"; status = "okay"; }; |