[v5,5/6] ARM64: dts: marvell: armada-37xx: declare USB2 UTMI PHYs
diff mbox series

Message ID 20190129093635.4321-6-miquel.raynal@bootlin.com
State New
Headers show
Series
  • A3700 USB UTMI PHY support
Related show

Commit Message

Miquel Raynal Jan. 29, 2019, 9:36 a.m. UTC
On Marvell Armada 3700 SoCs there are two USB2 UTMI PHYs. They are
both very similar but only one has OTG/charging capabilities.

Because there are USB host registers and PHY registers mixed in a
single area, a system controller is also created and referenced from
both the USB host node and the PHY node.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
 arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 28 ++++++++++++++++++++
 1 file changed, 28 insertions(+)

Comments

Gregory CLEMENT Feb. 6, 2019, 11:10 a.m. UTC | #1
Hi Miquel,
 
 On mar., janv. 29 2019, Miquel Raynal <miquel.raynal@bootlin.com> wrote:

> On Marvell Armada 3700 SoCs there are two USB2 UTMI PHYs. They are
> both very similar but only one has OTG/charging capabilities.
>
> Because there are USB host registers and PHY registers mixed in a
> single area, a system controller is also created and referenced from
> both the USB host node and the PHY node.
>
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>

Applied to mvebu/dt64

Thanks,

Gregory

> ---
>  arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 28 ++++++++++++++++++++
>  1 file changed, 28 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
> index 5cfd1b920f31..d2d8ef00c592 100644
> --- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
> +++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
> @@ -344,18 +344,46 @@
>  				compatible = "marvell,armada3700-xhci",
>  				"generic-xhci";
>  				reg = <0x58000 0x4000>;
> +				marvell,usb-misc-reg = <&usb32_syscon>;
>  				interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
>  				clocks = <&sb_periph_clk 12>;
>  				status = "disabled";
>  			};
>  
> +			usb2_utmi_otg_phy: phy@5d000 {
> +				compatible = "marvell,a3700-utmi-otg-phy";
> +				reg = <0x5d000 0x800>;
> +				marvell,usb-misc-reg = <&usb32_syscon>;
> +				#phy-cells = <0>;
> +			};
> +
> +			usb32_syscon: system-controller@5d800 {
> +				compatible = "marvell,armada-3700-usb2-host-device-misc",
> +				"syscon";
> +				reg = <0x5d800 0x800>;
> +			};
> +
>  			usb2: usb@5e000 {
>  				compatible = "marvell,armada-3700-ehci";
>  				reg = <0x5e000 0x1000>;
> +				marvell,usb-misc-reg = <&usb2_syscon>;
>  				interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
>  				status = "disabled";
>  			};
>  
> +			usb2_utmi_host_phy: phy@5f000 {
> +				compatible = "marvell,a3700-utmi-host-phy";
> +				reg = <0x5f000 0x800>;
> +				marvell,usb-misc-reg = <&usb2_syscon>;
> +				#phy-cells = <0>;
> +			};
> +
> +			usb2_syscon: system-controller@5f800 {
> +				compatible = "marvell,armada-3700-usb2-host-misc",
> +				"syscon";
> +				reg = <0x5f800 0x800>;
> +			};
> +
>  			xor@60900 {
>  				compatible = "marvell,armada-3700-xor";
>  				reg = <0x60900 0x100>,
> -- 
> 2.19.1
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Patch
diff mbox series

diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
index 5cfd1b920f31..d2d8ef00c592 100644
--- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
+++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
@@ -344,18 +344,46 @@ 
 				compatible = "marvell,armada3700-xhci",
 				"generic-xhci";
 				reg = <0x58000 0x4000>;
+				marvell,usb-misc-reg = <&usb32_syscon>;
 				interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
 				clocks = <&sb_periph_clk 12>;
 				status = "disabled";
 			};
 
+			usb2_utmi_otg_phy: phy@5d000 {
+				compatible = "marvell,a3700-utmi-otg-phy";
+				reg = <0x5d000 0x800>;
+				marvell,usb-misc-reg = <&usb32_syscon>;
+				#phy-cells = <0>;
+			};
+
+			usb32_syscon: system-controller@5d800 {
+				compatible = "marvell,armada-3700-usb2-host-device-misc",
+				"syscon";
+				reg = <0x5d800 0x800>;
+			};
+
 			usb2: usb@5e000 {
 				compatible = "marvell,armada-3700-ehci";
 				reg = <0x5e000 0x1000>;
+				marvell,usb-misc-reg = <&usb2_syscon>;
 				interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
 				status = "disabled";
 			};
 
+			usb2_utmi_host_phy: phy@5f000 {
+				compatible = "marvell,a3700-utmi-host-phy";
+				reg = <0x5f000 0x800>;
+				marvell,usb-misc-reg = <&usb2_syscon>;
+				#phy-cells = <0>;
+			};
+
+			usb2_syscon: system-controller@5f800 {
+				compatible = "marvell,armada-3700-usb2-host-misc",
+				"syscon";
+				reg = <0x5f800 0x800>;
+			};
+
 			xor@60900 {
 				compatible = "marvell,armada-3700-xor";
 				reg = <0x60900 0x100>,