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> | 2024-05-28 13:42:34 +0300 |
commit | 0f5db8641af7bed224244e71db6129e6e71be0d8 (patch) | |
tree | ad055e9ef1962f6e7cbf49b547f673afc670cc0a /arch | |
parent | b16f680045ec84fe0ed73bdb99af16d2375000d6 (diff) | |
download | linux-0f5db8641af7bed224244e71db6129e6e71be0d8.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 { |