]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts
ARM: sun8i: h3: orangepi-pc: Enable USB OTG
authorChen-Yu Tsai <wens@csie.org>
Wed, 19 Apr 2017 05:09:18 +0000 (13:09 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 14 May 2017 06:32:31 +0000 (08:32 +0200)
commit52826587a44f55e958e89c6f21bfdaadf0273ac8
tree0aa2d1cd45018b23f1fe7768fbdfbc693fdb41bc
parentcf439662affda9475d4b71b910aad856fc3966d3
ARM: sun8i: h3: orangepi-pc: Enable USB OTG

The Orange Pi PC, PC Plus, and Plus 2E all have a USB OTG port
that can be used in both powered host mode and peripheral mode.
When in peripheral mode, the port does not power the board.
There is no VBUS sensing on the port. All three boards have all
related pins routed the same way.

The device tree file for the Orange Pi Plus 2E is based on the
Orange Pi PC Plus, which itself is based on the Orange Pi PC.
Changes to the base Orange Pi PC device tree file affects all 3
boards.

This patch adds the regulator controlling VBUS on the OTG port,
the GPIO for the ID detect pin, and enables the USB OTG and host
controllers.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts