mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
riscv: dts: spacemit: k3: add USB controller and USB phy support
Add all USB device node to the Spacemit K3. Signed-off-by: Inochi Amaoto <inochiama@gmail.com> Reviewed-by: Yixun Lan <dlan@kernel.org> Link: https://patch.msgid.link/20260727094726.890179-2-inochiama@gmail.com Signed-off-by: Yixun Lan <dlan@kernel.org>
This commit is contained in:
parent
31efde747b
commit
46380e4b15
|
|
@ -220,6 +220,11 @@ dldo7: dldo7 {
|
|||
};
|
||||
};
|
||||
|
||||
&combophy {
|
||||
spacemit,apmu = <&syscon_apmu 0x11>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
ð0 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&gmac0_rgmii_0_cfg>, <&gmac0_phy_0_cfg>;
|
||||
|
|
@ -317,3 +322,11 @@ hub@1 {
|
|||
&usb2_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb3d_u2phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb3d {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
#include <dt-bindings/clock/spacemit,k3-clocks.h>
|
||||
#include <dt-bindings/interrupt-controller/irq.h>
|
||||
#include <dt-bindings/reset/spacemit,k3-resets.h>
|
||||
#include <dt-bindings/phy/phy.h>
|
||||
|
||||
#include "k3-pdma.h"
|
||||
|
||||
|
|
@ -440,6 +441,47 @@ soc: soc {
|
|||
dma-noncoherent;
|
||||
ranges;
|
||||
|
||||
usb3d: usb@81a00000 {
|
||||
compatible = "spacemit,k3-dwc3";
|
||||
reg = <0x0 0x81a00000 0x0 0x10000>;
|
||||
interrupts = <149 IRQ_TYPE_LEVEL_HIGH>;
|
||||
interrupt-parent = <&saplic>;
|
||||
clocks = <&syscon_apmu CLK_APMU_USB3_PORTD_BUS>;
|
||||
clock-names = "usbdrd30";
|
||||
resets = <&syscon_apmu RESET_APMU_USB3_D_AHB>,
|
||||
<&syscon_apmu RESET_APMU_USB3_D_VCC>,
|
||||
<&syscon_apmu RESET_APMU_USB3_D_PHY>;
|
||||
reset-names = "ahb", "vcc", "phy";
|
||||
phys = <&usb3d_u2phy>,
|
||||
<&combophy 4 PHY_TYPE_USB3>;
|
||||
phy-names = "usb2-phy", "usb3-phy";
|
||||
phy_type = "utmi";
|
||||
snps,dis_enblslpm_quirk;
|
||||
snps,dis_u2_susphy_quirk;
|
||||
snps,dis_u3_susphy_quirk;
|
||||
snps,dis-del-phy-power-chg-quirk;
|
||||
snps,dis-tx-ipgap-linecheck-quirk;
|
||||
snps,parkmode-disable-ss-quirk;
|
||||
dr_mode = "host";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
usb3d_u2phy: phy@81b00000 {
|
||||
compatible = "spacemit,k3-usb2-phy";
|
||||
reg = <0x0 0x81b00000 0x0 0x200>;
|
||||
clocks = <&syscon_apmu CLK_APMU_USB3_PORTD_BUS>;
|
||||
#phy-cells = <0>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
combophy: phy@81d00000 {
|
||||
compatible = "spacemit,k3-combo-phy";
|
||||
reg = <0x0 0x81d00000 0x0 0x600000>;
|
||||
#phy-cells = <2>;
|
||||
spacemit,apb-spare = <&pll>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
usb2_host: usb@c0a00000 {
|
||||
compatible = "spacemit,k3-dwc3";
|
||||
reg = <0x0 0xc0a00000 0x0 0x10000>;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user