arm64: dts: renesas: ulcb-kf: enable USB2 PHY of channel 0

This supports USB2 PHY channel #0 on ULCB Kingfisher board

The dedicated USB0_PWEN pin is used to control CN13 VBUS source from U43
power supply.
MAX3355 can also provide VBUS, hence it should be disabled via OTG_OFFVBUSn
node coming from gpio expander TCA9539.
Set MAX3355 enabled using OTG_EXTLPn node to be able to read OTG ID of
CN13.

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
This commit is contained in:
Vladimir Barinov 2017-11-08 15:21:38 +03:00 committed by Simon Horman
parent 88d1eb0c99
commit 8078502476
1 changed files with 26 additions and 0 deletions

View File

@ -67,6 +67,20 @@ hub_rst {
output-high; output-high;
line-name = "HUB rst"; line-name = "HUB rst";
}; };
otg_offvbusn {
gpio-hog;
gpios = <8 GPIO_ACTIVE_HIGH>;
output-low;
line-name = "OTG OFFVBUSn";
};
otg_extlpn {
gpio-hog;
gpios = <9 GPIO_ACTIVE_HIGH>;
output-high;
line-name = "OTG EXTLPn";
};
}; };
gpio_exp_75: gpio@75 { gpio_exp_75: gpio@75 {
@ -154,6 +168,11 @@ scif1_pins: scif1 {
groups = "scif1_data_b", "scif1_ctrl"; groups = "scif1_data_b", "scif1_ctrl";
function = "scif1"; function = "scif1";
}; };
usb0_pins: usb0 {
groups = "usb0";
function = "usb0";
};
}; };
&scif1 { &scif1 {
@ -164,6 +183,13 @@ &scif1 {
status = "okay"; status = "okay";
}; };
&usb2_phy0 {
pinctrl-0 = <&usb0_pins>;
pinctrl-names = "default";
status = "okay";
};
&xhci0 { &xhci0 {
status = "okay"; status = "okay";
}; };