Commit 2f9139c2 authored by Martin Blumenstingl's avatar Martin Blumenstingl Committed by Kevin Hilman

arm64: dts: amlogic: use the new USB control driver for GXL and GXM

Add the correcly architectured USB Glue node and adapt all the Amlogic
GXL and GXM board to the new organization.
Signed-off-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
Signed-off-by: default avatarKevin Hilman <khilman@baylibre.com>
Link: https://lore.kernel.org/r/20200326134507.4808-11-narmstrong@baylibre.com
parent 8f3d9f35
...@@ -360,8 +360,9 @@ &uart_AO { ...@@ -360,8 +360,9 @@ &uart_AO {
status = "okay"; status = "okay";
}; };
&usb0 { &usb {
status = "okay"; status = "okay";
dr_mode = "host";
}; };
&usb2_phy0 { &usb2_phy0 {
......
...@@ -223,6 +223,7 @@ &uart_AO { ...@@ -223,6 +223,7 @@ &uart_AO {
pinctrl-names = "default"; pinctrl-names = "default";
}; };
&usb0 { &usb {
status = "okay"; status = "okay";
dr_mode = "otg";
}; };
...@@ -243,6 +243,7 @@ &uart_AO { ...@@ -243,6 +243,7 @@ &uart_AO {
pinctrl-names = "default"; pinctrl-names = "default";
}; };
&usb0 { &usb {
status = "okay"; status = "okay";
dr_mode = "host";
}; };
...@@ -216,6 +216,7 @@ &uart_AO { ...@@ -216,6 +216,7 @@ &uart_AO {
pinctrl-names = "default"; pinctrl-names = "default";
}; };
&usb0 { &usb {
status = "okay"; status = "okay";
dr_mode = "host";
}; };
...@@ -29,3 +29,7 @@ status { ...@@ -29,3 +29,7 @@ status {
&cvbs_vdac_port { &cvbs_vdac_port {
status = "disabled"; status = "disabled";
}; };
&usb {
dr_mode = "host";
};
...@@ -20,3 +20,7 @@ memory@0 { ...@@ -20,3 +20,7 @@ memory@0 {
reg = <0x0 0x0 0x0 0x40000000>; reg = <0x0 0x0 0x0 0x40000000>;
}; };
}; };
&usb {
dr_mode = "host";
};
...@@ -24,3 +24,7 @@ memory@0 { ...@@ -24,3 +24,7 @@ memory@0 {
&ir { &ir {
linux,rc-map-name = "rc-tanix-tx3mini"; linux,rc-map-name = "rc-tanix-tx3mini";
}; };
&usb {
dr_mode = "host";
};
...@@ -207,3 +207,7 @@ &uart_AO_B { ...@@ -207,3 +207,7 @@ &uart_AO_B {
pinctrl-0 = <&uart_ao_b_pins>; pinctrl-0 = <&uart_ao_b_pins>;
pinctrl-names = "default"; pinctrl-names = "default";
}; };
&usb {
dr_mode = "peripheral";
};
...@@ -272,8 +272,9 @@ &uart_AO { ...@@ -272,8 +272,9 @@ &uart_AO {
pinctrl-names = "default"; pinctrl-names = "default";
}; };
&usb0 { &usb {
status = "okay"; status = "okay";
dr_mode = "host";
}; };
&usb2_phy0 { &usb2_phy0 {
......
...@@ -218,6 +218,7 @@ &uart_AO { ...@@ -218,6 +218,7 @@ &uart_AO {
pinctrl-names = "default"; pinctrl-names = "default";
}; };
&usb0 { &usb {
status = "okay"; status = "okay";
dr_mode = "host";
}; };
...@@ -195,8 +195,9 @@ &uart_AO { ...@@ -195,8 +195,9 @@ &uart_AO {
pinctrl-names = "default"; pinctrl-names = "default";
}; };
&usb0 { &usb {
status = "okay"; status = "okay";
dr_mode = "host";
}; };
&usb2_phy0 { &usb2_phy0 {
......
...@@ -14,26 +14,43 @@ / { ...@@ -14,26 +14,43 @@ / {
compatible = "amlogic,meson-gxl"; compatible = "amlogic,meson-gxl";
soc { soc {
usb0: usb@c9000000 { usb: usb@d0078080 {
status = "disabled"; compatible = "amlogic,meson-gxl-usb-ctrl";
compatible = "amlogic,meson-gxl-dwc3"; reg = <0x0 0xd0078080 0x0 0x20>;
interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <2>; #address-cells = <2>;
#size-cells = <2>; #size-cells = <2>;
ranges; ranges;
clocks = <&clkc CLKID_USB>; clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1_DDR_BRIDGE>;
clock-names = "usb_general"; clock-names = "usb_ctrl", "ddr";
resets = <&reset RESET_USB_OTG>; resets = <&reset RESET_USB_OTG>;
reset-names = "usb_otg";
dwc3: dwc3@c9000000 { dr_mode = "otg";
phys = <&usb2_phy0>, <&usb2_phy1>;
phy-names = "usb2-phy0", "usb2-phy1";
dwc2: usb@c9100000 {
compatible = "amlogic,meson-g12a-usb", "snps,dwc2";
reg = <0x0 0xc9100000 0x0 0x40000>;
interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clkc CLKID_USB1>;
clock-names = "otg";
phys = <&usb2_phy1>;
dr_mode = "peripheral";
g-rx-fifo-size = <192>;
g-np-tx-fifo-size = <128>;
g-tx-fifo-size = <128 128 16 16 16>;
};
dwc3: usb@c9000000 {
compatible = "snps,dwc3"; compatible = "snps,dwc3";
reg = <0x0 0xc9000000 0x0 0x100000>; reg = <0x0 0xc9000000 0x0 0x100000>;
interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
dr_mode = "host"; dr_mode = "host";
maximum-speed = "high-speed"; maximum-speed = "high-speed";
snps,dis_u2_susphy_quirk; snps,dis_u2_susphy_quirk;
phys = <&usb3_phy>, <&usb2_phy0>, <&usb2_phy1>;
}; };
}; };
...@@ -71,18 +88,6 @@ usb2_phy1: phy@78020 { ...@@ -71,18 +88,6 @@ usb2_phy1: phy@78020 {
reset-names = "phy"; reset-names = "phy";
status = "okay"; status = "okay";
}; };
usb3_phy: phy@78080 {
compatible = "amlogic,meson-gxl-usb3-phy";
#phy-cells = <0>;
reg = <0x0 0x78080 0x0 0x20>;
interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clkc CLKID_USB>, <&clkc_AO CLKID_AO_CEC_32K>;
clock-names = "phy", "peripheral";
resets = <&reset RESET_USB_OTG>, <&reset RESET_USB_OTG>;
reset-names = "phy", "peripheral";
status = "okay";
};
}; };
&efuse { &efuse {
......
...@@ -380,6 +380,7 @@ &saradc { ...@@ -380,6 +380,7 @@ &saradc {
vref-supply = <&vddio_ao18>; vref-supply = <&vddio_ao18>;
}; };
&usb0 { &usb {
status = "okay"; status = "okay";
dr_mode = "peripheral";
}; };
...@@ -179,6 +179,7 @@ &uart_AO { ...@@ -179,6 +179,7 @@ &uart_AO {
pinctrl-names = "default"; pinctrl-names = "default";
}; };
&usb0 { &usb {
status = "okay"; status = "okay";
dr_mode = "host";
}; };
...@@ -39,3 +39,7 @@ external_phy: ethernet-phy@0 { ...@@ -39,3 +39,7 @@ external_phy: ethernet-phy@0 {
&ir { &ir {
linux,rc-map-name = "rc-vega-s9x"; linux,rc-map-name = "rc-vega-s9x";
}; };
&usb {
dr_mode = "host";
};
...@@ -169,8 +169,11 @@ &hdmi_tx { ...@@ -169,8 +169,11 @@ &hdmi_tx {
compatible = "amlogic,meson-gxm-dw-hdmi", "amlogic,meson-gx-dw-hdmi"; compatible = "amlogic,meson-gxm-dw-hdmi", "amlogic,meson-gx-dw-hdmi";
}; };
&dwc3 { &usb {
phys = <&usb3_phy>, <&usb2_phy0>, <&usb2_phy1>, <&usb2_phy2>; compatible = "amlogic,meson-gxm-usb-ctrl";
phy-names = "usb2-phy0", "usb2-phy1", "usb2-phy2";
phys = <&usb2_phy0>, <&usb2_phy1>, <&usb2_phy2>;
}; };
&vdec { &vdec {
......
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