Commit 91c4c3e0 authored by Peter Geis's avatar Peter Geis Committed by Heiko Stuebner

arm64: dts: rockchip: add usb2 nodes to rk3568 device tree

Add the requisite nodes to the rk3568 device tree to enable the usb2
device controllers.
Includes the usb2phy nodes, usb2phy grf nodes, and usb2 controller
nodes.
Signed-off-by: default avatarPeter Geis <pgwipeout@gmail.com>
Tested-by: default avatarMichael Riesch <michael.riesch@wolfvision.net>
Link: https://lore.kernel.org/r/20211215210252.120923-8-pgwipeout@gmail.comSigned-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent e783362e
...@@ -208,6 +208,50 @@ gic: interrupt-controller@fd400000 { ...@@ -208,6 +208,50 @@ gic: interrupt-controller@fd400000 {
msi-controller; msi-controller;
}; };
usb_host0_ehci: usb@fd800000 {
compatible = "generic-ehci";
reg = <0x0 0xfd800000 0x0 0x40000>;
interrupts = <GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru HCLK_USB2HOST0>, <&cru HCLK_USB2HOST0_ARB>,
<&cru PCLK_USB>;
phys = <&u2phy1_otg>;
phy-names = "usb";
status = "disabled";
};
usb_host0_ohci: usb@fd840000 {
compatible = "generic-ohci";
reg = <0x0 0xfd840000 0x0 0x40000>;
interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru HCLK_USB2HOST0>, <&cru HCLK_USB2HOST0_ARB>,
<&cru PCLK_USB>;
phys = <&u2phy1_otg>;
phy-names = "usb";
status = "disabled";
};
usb_host1_ehci: usb@fd880000 {
compatible = "generic-ehci";
reg = <0x0 0xfd880000 0x0 0x40000>;
interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru HCLK_USB2HOST1>, <&cru HCLK_USB2HOST1_ARB>,
<&cru PCLK_USB>;
phys = <&u2phy1_host>;
phy-names = "usb";
status = "disabled";
};
usb_host1_ohci: usb@fd8c0000 {
compatible = "generic-ohci";
reg = <0x0 0xfd8c0000 0x0 0x40000>;
interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru HCLK_USB2HOST1>, <&cru HCLK_USB2HOST1_ARB>,
<&cru PCLK_USB>;
phys = <&u2phy1_host>;
phy-names = "usb";
status = "disabled";
};
pmugrf: syscon@fdc20000 { pmugrf: syscon@fdc20000 {
compatible = "rockchip,rk3568-pmugrf", "syscon", "simple-mfd"; compatible = "rockchip,rk3568-pmugrf", "syscon", "simple-mfd";
reg = <0x0 0xfdc20000 0x0 0x10000>; reg = <0x0 0xfdc20000 0x0 0x10000>;
...@@ -223,6 +267,16 @@ grf: syscon@fdc60000 { ...@@ -223,6 +267,16 @@ grf: syscon@fdc60000 {
reg = <0x0 0xfdc60000 0x0 0x10000>; reg = <0x0 0xfdc60000 0x0 0x10000>;
}; };
usb2phy0_grf: syscon@fdca0000 {
compatible = "rockchip,rk3568-usb2phy-grf", "syscon";
reg = <0x0 0xfdca0000 0x0 0x8000>;
};
usb2phy1_grf: syscon@fdca8000 {
compatible = "rockchip,rk3568-usb2phy-grf", "syscon";
reg = <0x0 0xfdca8000 0x0 0x8000>;
};
pmucru: clock-controller@fdd00000 { pmucru: clock-controller@fdd00000 {
compatible = "rockchip,rk3568-pmucru"; compatible = "rockchip,rk3568-pmucru";
reg = <0x0 0xfdd00000 0x0 0x1000>; reg = <0x0 0xfdd00000 0x0 0x1000>;
...@@ -1141,6 +1195,50 @@ pwm15: pwm@fe700030 { ...@@ -1141,6 +1195,50 @@ pwm15: pwm@fe700030 {
status = "disabled"; status = "disabled";
}; };
u2phy0: usb2phy@fe8a0000 {
compatible = "rockchip,rk3568-usb2phy";
reg = <0x0 0xfe8a0000 0x0 0x10000>;
clocks = <&pmucru CLK_USBPHY0_REF>;
clock-names = "phyclk";
clock-output-names = "clk_usbphy0_480m";
interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>;
rockchip,usbgrf = <&usb2phy0_grf>;
#clock-cells = <0>;
status = "disabled";
u2phy0_host: host-port {
#phy-cells = <0>;
status = "disabled";
};
u2phy0_otg: otg-port {
#phy-cells = <0>;
status = "disabled";
};
};
u2phy1: usb2phy@fe8b0000 {
compatible = "rockchip,rk3568-usb2phy";
reg = <0x0 0xfe8b0000 0x0 0x10000>;
clocks = <&pmucru CLK_USBPHY1_REF>;
clock-names = "phyclk";
clock-output-names = "clk_usbphy1_480m";
interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>;
rockchip,usbgrf = <&usb2phy1_grf>;
#clock-cells = <0>;
status = "disabled";
u2phy1_host: host-port {
#phy-cells = <0>;
status = "disabled";
};
u2phy1_otg: otg-port {
#phy-cells = <0>;
status = "disabled";
};
};
pinctrl: pinctrl { pinctrl: pinctrl {
compatible = "rockchip,rk3568-pinctrl"; compatible = "rockchip,rk3568-pinctrl";
rockchip,grf = <&grf>; rockchip,grf = <&grf>;
......
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