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-08 12:38:24 +0300 |
commit | f8f80e84c6ad4a1ab09b1016b1fdd0cc60a3e2b3 (patch) | |
tree | c66e7b2657a9e7bb46d3048b86686017ad3b8a6b /arch | |
parent | 44dd66138898c20c248d5a5b93baf201f46bf9b8 (diff) | |
download | linux-f8f80e84c6ad4a1ab09b1016b1fdd0cc60a3e2b3.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 bfe3ff40d953..517b1b306850 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 { |