Skip to content

Commit

Permalink
ARM64: dts: marvell: armada-3720-db: Add phy for USB3
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gregory CLEMENT committed Mar 23, 2017
1 parent e4afb48 commit a12af1c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions arch/arm64/boot/dts/marvell/armada-3720-db.dts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@

/dts-v1/;

#include <dt-bindings/gpio/gpio.h>
#include "armada-372x.dtsi"

/ {
Expand All @@ -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 {
Expand Down Expand Up @@ -127,6 +143,7 @@
/* CON31 */
&usb3 {
status = "okay";
usb-phy = <&usb3_phy>;
};

/* CON17 (PCIe) / CON12 (mini-PCIe) */
Expand Down

0 comments on commit a12af1c

Please sign in to comment.