* [PATCH 1/3] ARM64: dts: marvell: armada-37xx: Fix interrupt mapping for USB3
2017-03-08 17:33 [PATCH 0/3] Fix and improve USB3 support on Armada 37xx Gregory CLEMENT
@ 2017-03-08 17:33 ` Gregory CLEMENT
2017-03-08 17:33 ` [PATCH 2/3] ARM64: dts: marvell: armada-37xx: Add clock resource " Gregory CLEMENT
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Gregory CLEMENT @ 2017-03-08 17:33 UTC (permalink / raw)
To: linux-arm-kernel
IRQ number for xhci controller was wrong, fix it.
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
index 7639518d8ee1..25ae5ccaf1bf 100644
--- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
+++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
@@ -200,7 +200,7 @@
compatible = "marvell,armada3700-xhci",
"generic-xhci";
reg = <0x58000 0x4000>;
- interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
+ interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
};
--
2.11.0
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH 2/3] ARM64: dts: marvell: armada-37xx: Add clock resource for USB3
2017-03-08 17:33 [PATCH 0/3] Fix and improve USB3 support on Armada 37xx Gregory CLEMENT
2017-03-08 17:33 ` [PATCH 1/3] ARM64: dts: marvell: armada-37xx: Fix interrupt mapping for USB3 Gregory CLEMENT
@ 2017-03-08 17:33 ` Gregory CLEMENT
2017-03-08 17:33 ` [PATCH 3/3] ARM64: dts: marvell: armada-3720-db: Add phy " Gregory CLEMENT
2017-03-23 16:43 ` [PATCH 0/3] Fix and improve USB3 support on Armada 37xx Gregory CLEMENT
3 siblings, 0 replies; 5+ messages in thread
From: Gregory CLEMENT @ 2017-03-08 17:33 UTC (permalink / raw)
To: linux-arm-kernel
Now that clocks are available provide a clock resource for xhci node.
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
index 25ae5ccaf1bf..1df9d4e0d943 100644
--- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
+++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
@@ -201,6 +201,7 @@
"generic-xhci";
reg = <0x58000 0x4000>;
interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&sb_periph_clk 12>;
status = "disabled";
};
--
2.11.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/3] ARM64: dts: marvell: armada-3720-db: Add phy for USB3
2017-03-08 17:33 [PATCH 0/3] Fix and improve USB3 support on Armada 37xx Gregory CLEMENT
2017-03-08 17:33 ` [PATCH 1/3] ARM64: dts: marvell: armada-37xx: Fix interrupt mapping for USB3 Gregory CLEMENT
2017-03-08 17:33 ` [PATCH 2/3] ARM64: dts: marvell: armada-37xx: Add clock resource " Gregory CLEMENT
@ 2017-03-08 17:33 ` Gregory CLEMENT
2017-03-23 16:43 ` [PATCH 0/3] Fix and improve USB3 support on Armada 37xx Gregory CLEMENT
3 siblings, 0 replies; 5+ messages in thread
From: Gregory CLEMENT @ 2017-03-08 17:33 UTC (permalink / raw)
To: linux-arm-kernel
Now that the gpio expander is present in the dts, use it to add an USB3
PHY using one of these gpio as a regulator.
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
arch/arm64/boot/dts/marvell/armada-3720-db.dts | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/arch/arm64/boot/dts/marvell/armada-3720-db.dts b/arch/arm64/boot/dts/marvell/armada-3720-db.dts
index aa39339b6582..10207f96f090 100644
--- a/arch/arm64/boot/dts/marvell/armada-3720-db.dts
+++ b/arch/arm64/boot/dts/marvell/armada-3720-db.dts
@@ -46,6 +46,7 @@
/dts-v1/;
+#include <dt-bindings/gpio/gpio.h>
#include "armada-372x.dtsi"
/ {
@@ -60,6 +61,21 @@
device_type = "memory";
reg = <0x00000000 0x00000000 0x00000000 0x20000000>;
};
+
+ exp_usb3_vbus: usb3-vbus {
+ compatible = "regulator-fixed";
+ regulator-name = "usb3-vbus";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ enable-active-high;
+ regulator-always-on;
+ gpio = <&gpio_exp 1 GPIO_ACTIVE_HIGH>;
+ };
+
+ usb3_phy: usb3-phy {
+ compatible = "usb-nop-xceiv";
+ vcc-supply = <&exp_usb3_vbus>;
+ };
};
&i2c0 {
@@ -127,6 +143,7 @@
/* CON31 */
&usb3 {
status = "okay";
+ usb-phy = <&usb3_phy>;
};
/* CON17 (PCIe) / CON12 (mini-PCIe) */
--
2.11.0
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH 0/3] Fix and improve USB3 support on Armada 37xx
2017-03-08 17:33 [PATCH 0/3] Fix and improve USB3 support on Armada 37xx Gregory CLEMENT
` (2 preceding siblings ...)
2017-03-08 17:33 ` [PATCH 3/3] ARM64: dts: marvell: armada-3720-db: Add phy " Gregory CLEMENT
@ 2017-03-23 16:43 ` Gregory CLEMENT
3 siblings, 0 replies; 5+ messages in thread
From: Gregory CLEMENT @ 2017-03-23 16:43 UTC (permalink / raw)
To: linux-arm-kernel
Hi,
On mer., mars 08 2017, Gregory CLEMENT <gregory.clement@free-electrons.com> wrote:
> Hi,
>
> The first patch fixes a wrong IRQ number present since the
> introduction of the device tree for this SoC.
>
> The second and the third ones improve the USB3 representation
> following the add of the clock support on Armada 37xx and the gpio
> expander on Armada 3720 DB.
>
> Thanks,
>
> Gregory
>
> Gregory CLEMENT (3):
> ARM64: dts: marvell: armada-37xx: Fix interrupt mapping for USB3
> ARM64: dts: marvell: armada-37xx: Add clock resource for USB3
> ARM64: dts: marvell: armada-3720-db: Add phy for USB3
All 3 patches applied on mvebu/dt64
Gregory
>
> arch/arm64/boot/dts/marvell/armada-3720-db.dts | 17 +++++++++++++++++
> arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 3 ++-
> 2 files changed, 19 insertions(+), 1 deletion(-)
>
> --
> 2.11.0
>
--
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread