summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/sun8i-q8-common.dtsi
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2016-06-11 16:53:04 +0300
committerMaxime Ripard <maxime.ripard@free-electrons.com>2016-07-04 22:18:00 +0300
commit77b1be43da720ac8aadc982675519c677b2d624e (patch)
tree94e90f5013b11eeb3311d3bdf7433d226187cb46 /arch/arm/boot/dts/sun8i-q8-common.dtsi
parent46850c55c64f73238ca3a37b6b8aed0ff664bf78 (diff)
downloadlinux-77b1be43da720ac8aadc982675519c677b2d624e.tar.xz
ARM: dts: sun8i-a?3-q8-tablet.dts: Add full otg support
Now that we've all the necessary bits in place we can enable full otg support on these tablets. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'arch/arm/boot/dts/sun8i-q8-common.dtsi')
-rw-r--r--arch/arm/boot/dts/sun8i-q8-common.dtsi31
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun8i-q8-common.dtsi b/arch/arm/boot/dts/sun8i-q8-common.dtsi
index 346a49d805a7..991087f7f130 100644
--- a/arch/arm/boot/dts/sun8i-q8-common.dtsi
+++ b/arch/arm/boot/dts/sun8i-q8-common.dtsi
@@ -87,6 +87,13 @@
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
};
+
+ usb0_id_detect_pin: usb0_id_detect_pin@0 {
+ allwinner,pins = "PH8";
+ allwinner,function = "gpio_in";
+ allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+ allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
+ };
};
&r_rsb {
@@ -98,6 +105,7 @@
interrupt-parent = <&nmi_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
eldoin-supply = <&reg_dcdc1>;
+ x-powers,drive-vbus-en;
};
};
@@ -163,6 +171,11 @@
regulator-name = "vcc-dram";
};
+&reg_drivevbus {
+ regulator-name = "usb0-vbus";
+ status = "okay";
+};
+
&reg_rtc_ldo {
regulator-name = "vcc-rtc";
};
@@ -176,3 +189,21 @@
&simplefb_lcd {
vcc-lcd-supply = <&reg_dc1sw>;
};
+
+&usb_otg {
+ dr_mode = "otg";
+ status = "okay";
+};
+
+&usb_power_supply {
+ status = "okay";
+};
+
+&usbphy {
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb0_id_detect_pin>;
+ usb0_id_det-gpio = <&pio 7 8 GPIO_ACTIVE_HIGH>; /* PH8 */
+ usb0_vbus_power-supply = <&usb_power_supply>;
+ usb0_vbus-supply = <&reg_drivevbus>;
+ status = "okay";
+};