Skip to content

Commit 45df70c

Browse files
Russell Kinggclement
authored andcommitted
arm64: dts: marvell: fix USB3 regulator definition on MacchiatoBin
Due to the lack of GPIO support, the USB3 regulator definition was left unfinished in the MacchiatoBin DT description. Now that GPIO support is available, this commit adjusts the Device Tree to properly describe the USB3 regulator. [gregory.clement@free-electrons.com: use commit log from Thomas] Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
1 parent 31ec18e commit 45df70c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646

4747
#include "armada-8040.dtsi"
4848

49+
#include <dt-bindings/gpio/gpio.h>
50+
4951
/ {
5052
model = "Marvell 8040 MACHIATOBin";
5153
compatible = "marvell,armada8040-mcbin", "marvell,armada8040",
@@ -77,11 +79,13 @@
7779

7880
v_5v0_usb3_hst_vbus: regulator-usb3-vbus0 {
7981
compatible = "regulator-fixed";
82+
enable-active-high;
83+
gpio = <&cpm_gpio2 15 GPIO_ACTIVE_HIGH>;
84+
pinctrl-names = "default";
85+
pinctrl-0 = <&cpm_xhci_vbus_pins>;
8086
regulator-name = "v_5v0_usb3_hst_vbus";
8187
regulator-min-microvolt = <5000000>;
8288
regulator-max-microvolt = <5000000>;
83-
/* actually GPIO controlled, but 8k has no GPIO support yet */
84-
regulator-always-on;
8589
status = "okay";
8690
};
8791

@@ -136,6 +140,10 @@
136140
marvell,pins = "mpp37", "mpp38";
137141
marvell,function = "i2c0";
138142
};
143+
cpm_xhci_vbus_pins: xhci0-vbus-pins {
144+
marvell,pins = "mpp47";
145+
marvell,function = "gpio";
146+
};
139147
cpm_sdhci_pins: sdhci-pins {
140148
marvell,pins = "mpp55", "mpp56", "mpp57", "mpp58", "mpp59",
141149
"mpp60", "mpp61";

0 commit comments

Comments
 (0)