Commit f952b45b authored by Heiko Stuebner's avatar Heiko Stuebner Committed by Heiko Stuebner

arm64: dts: rockchip: add usb2phy for px30

Add the usb2phy node on the px30 and hook it up to the usb controllers
it supplies.
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20190917082659.25549-12-heiko@sntech.de
parent 7272d6e0
...@@ -718,6 +718,43 @@ pmucru: clock-controller@ff2bc000 { ...@@ -718,6 +718,43 @@ pmucru: clock-controller@ff2bc000 {
<26000000>; <26000000>;
}; };
usb2phy_grf: syscon@ff2c0000 {
compatible = "rockchip,px30-usb2phy-grf", "syscon",
"simple-mfd";
reg = <0x0 0xff2c0000 0x0 0x10000>;
#address-cells = <1>;
#size-cells = <1>;
u2phy: usb2-phy@100 {
compatible = "rockchip,px30-usb2phy";
reg = <0x100 0x20>;
clocks = <&pmucru SCLK_USBPHY_REF>;
clock-names = "phyclk";
#clock-cells = <0>;
assigned-clocks = <&cru USB480M>;
assigned-clock-parents = <&u2phy>;
clock-output-names = "usb480m_phy";
status = "disabled";
u2phy_host: host-port {
#phy-cells = <0>;
interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "linestate";
status = "disabled";
};
u2phy_otg: otg-port {
#phy-cells = <0>;
interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "otg-bvalid", "otg-id",
"linestate";
status = "disabled";
};
};
};
usb20_otg: usb@ff300000 { usb20_otg: usb@ff300000 {
compatible = "rockchip,px30-usb", "rockchip,rk3066-usb", compatible = "rockchip,px30-usb", "rockchip,rk3066-usb",
"snps,dwc2"; "snps,dwc2";
...@@ -730,6 +767,8 @@ usb20_otg: usb@ff300000 { ...@@ -730,6 +767,8 @@ usb20_otg: usb@ff300000 {
g-rx-fifo-size = <280>; g-rx-fifo-size = <280>;
g-tx-fifo-size = <256 128 128 64 32 16>; g-tx-fifo-size = <256 128 128 64 32 16>;
g-use-dma; g-use-dma;
phys = <&u2phy_otg>;
phy-names = "usb2-phy";
power-domains = <&power PX30_PD_USB>; power-domains = <&power PX30_PD_USB>;
status = "disabled"; status = "disabled";
}; };
...@@ -740,6 +779,8 @@ usb_host0_ehci: usb@ff340000 { ...@@ -740,6 +779,8 @@ usb_host0_ehci: usb@ff340000 {
interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru HCLK_HOST>; clocks = <&cru HCLK_HOST>;
clock-names = "usbhost"; clock-names = "usbhost";
phys = <&u2phy_host>;
phy-names = "usb";
power-domains = <&power PX30_PD_USB>; power-domains = <&power PX30_PD_USB>;
status = "disabled"; status = "disabled";
}; };
...@@ -750,6 +791,8 @@ usb_host0_ohci: usb@ff350000 { ...@@ -750,6 +791,8 @@ usb_host0_ohci: usb@ff350000 {
interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru HCLK_HOST>; clocks = <&cru HCLK_HOST>;
clock-names = "usbhost"; clock-names = "usbhost";
phys = <&u2phy_host>;
phy-names = "usb";
power-domains = <&power PX30_PD_USB>; power-domains = <&power PX30_PD_USB>;
status = "disabled"; status = "disabled";
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment