Commit 4e4cb0df authored by Hans de Goede's avatar Hans de Goede Committed by Maxime Ripard

ARM: dts: sun8i-a23-polaroid-mid2809pxe04: 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: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 77b1be43
...@@ -131,6 +131,13 @@ mmc0_cd_pin_mid2809: mmc0_cd_pin@0 { ...@@ -131,6 +131,13 @@ mmc0_cd_pin_mid2809: mmc0_cd_pin@0 {
allwinner,drive = <SUN4I_PINCTRL_10_MA>; allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; 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>;
};
}; };
&pwm { &pwm {
...@@ -148,6 +155,7 @@ axp22x: pmic@3a3 { ...@@ -148,6 +155,7 @@ axp22x: pmic@3a3 {
interrupt-parent = <&nmi_intc>; interrupt-parent = <&nmi_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
eldoin-supply = <&reg_dcdc1>; eldoin-supply = <&reg_dcdc1>;
x-powers,drive-vbus-en;
}; };
}; };
...@@ -219,6 +227,11 @@ &reg_dcdc5 { ...@@ -219,6 +227,11 @@ &reg_dcdc5 {
regulator-name = "vcc-dram"; regulator-name = "vcc-dram";
}; };
&reg_drivevbus {
regulator-name = "usb0-vbus";
status = "okay";
};
&reg_rtc_ldo { &reg_rtc_ldo {
regulator-name = "vcc-rtc"; regulator-name = "vcc-rtc";
}; };
...@@ -227,17 +240,20 @@ &simplefb_lcd { ...@@ -227,17 +240,20 @@ &simplefb_lcd {
vcc-lcd-supply = <&reg_dc1sw>; vcc-lcd-supply = <&reg_dc1sw>;
}; };
/*
* FIXME for now we only support host mode and rely on u-boot to have
* turned on Vbus which is controlled by the axp223 pmic on the board.
*
* Once we have axp223 support we should switch to fully supporting otg.
*/
&usb_otg { &usb_otg {
dr_mode = "host"; dr_mode = "otg";
status = "okay";
};
&usb_power_supply {
status = "okay"; status = "okay";
}; };
&usbphy { &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"; status = "okay";
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment