diff options
author | Emil Renner Berthing <emil.renner.berthing@canonical.com> | 2023-07-22 19:50:49 +0300 |
---|---|---|
committer | Emil Renner Berthing <emil.renner.berthing@canonical.com> | 2025-07-05 00:03:28 +0300 |
commit | 2f1c7f18b0b0bb635a700757299a53b0e399cb6a (patch) | |
tree | 8b6b55e6675060a8c0ed9e9fa1f09a3b222482b8 /arch | |
parent | 469a684a698e13e9833d6d4c54d8293d4bbb8a38 (diff) | |
download | linux-2f1c7f18b0b0bb635a700757299a53b0e399cb6a.tar.xz |
usb: cdns3: starfive: Initialize JH7100 host mode
These settings are directly copied from StarFive's port of u-boot
for the JH7100:
/* config strap */
_SET_SYSCON_REG_SCFG_usb0_mode_strap(0x2);
_SET_SYSCON_REG_SCFG_usb7_PLL_EN(0x1);
_SET_SYSCON_REG_SCFG_usb7_U3_EQ_EN(0x1);
_SET_SYSCON_REG_SCFG_usb7_U3_SSRX_SEL(0x1);
_SET_SYSCON_REG_SCFG_usb7_U3_SSTX_SEL(0x1);
_SET_SYSCON_REG_SCFG_usb3_utmi_iddig(0x1);
Signed-off-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/riscv/boot/dts/starfive/jh7100.dtsi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/riscv/boot/dts/starfive/jh7100.dtsi b/arch/riscv/boot/dts/starfive/jh7100.dtsi index b9a6f44526cf..7dfb6cc2151e 100644 --- a/arch/riscv/boot/dts/starfive/jh7100.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7100.dtsi @@ -255,6 +255,11 @@ #reset-cells = <1>; }; + sysaudio: syscon@104a0000 { + compatible = "starfive,jh7100-sysaudio", "syscon"; + reg = <0x0 0x104a0000 0x0 0x10000>; + }; + usb3: usb@104c0000 { compatible = "starfive,jh7100-usb"; ranges = <0x0 0x0 0x104c0000 0x100000>; @@ -268,6 +273,7 @@ resets = <&rstgen JH7100_RSTN_USB_AXI>, <&rstgen JH7100_RSTN_USBNOC_AXI>; reset-names = "axi", "nocaxi"; + starfive,syscon = <&sysaudio>; status = "disabled"; usb_cdns3: usb@0 { |