Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: sun5i: Enable USB DRC on UTOO P66

Enable the OTG controller on the UTOO P66 tablet.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>

authored by

Hans de Goede and committed by
Maxime Ripard
2354570d c68d23ce

+27
+27
arch/arm/boot/dts/sun5i-a13-utoo-p66.dts
··· 153 153 }; 154 154 }; 155 155 156 + &otg_sram { 157 + status = "okay"; 158 + }; 159 + 156 160 &pio { 157 161 mmc0_cd_pin_p66: mmc0_cd_pin@0 { 158 162 allwinner,pins = "PG0"; 163 + allwinner,function = "gpio_in"; 164 + allwinner,drive = <SUN4I_PINCTRL_10_MA>; 165 + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; 166 + }; 167 + 168 + usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 { 169 + allwinner,pins = "PG1"; 170 + allwinner,function = "gpio_in"; 171 + allwinner,drive = <SUN4I_PINCTRL_10_MA>; 172 + allwinner,pull = <SUN4I_PINCTRL_PULL_DOWN>; 173 + }; 174 + 175 + usb0_id_detect_pin: usb0_id_detect_pin@0 { 176 + allwinner,pins = "PG2"; 159 177 allwinner,function = "gpio_in"; 160 178 allwinner,drive = <SUN4I_PINCTRL_10_MA>; 161 179 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; ··· 237 219 status = "okay"; 238 220 }; 239 221 222 + &usb_otg { 223 + dr_mode = "otg"; 224 + status = "okay"; 225 + }; 226 + 240 227 &usbphy { 228 + pinctrl-names = "default"; 229 + pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>; 230 + usb0_id_det-gpio = <&pio 6 2 GPIO_ACTIVE_HIGH>; /* PG2 */ 231 + usb0_vbus_det-gpio = <&pio 6 1 GPIO_ACTIVE_HIGH>; /* PG1 */ 241 232 usb0_vbus-supply = <&reg_usb0_vbus>; 242 233 usb1_vbus-supply = <&reg_ldo3>; 243 234 status = "okay";