2019-06-28 20:20:37 +08:00
|
|
|
=====================================================
|
2016-12-21 19:20:25 +08:00
|
|
|
Intel INT3496 ACPI device extcon driver documentation
|
2019-06-28 20:20:37 +08:00
|
|
|
=====================================================
|
2016-12-21 19:20:25 +08:00
|
|
|
|
|
|
|
The Intel INT3496 ACPI device extcon driver is a driver for ACPI
|
|
|
|
devices with an acpi-id of INT3496, such as found for example on
|
|
|
|
Intel Baytrail and Cherrytrail tablets.
|
|
|
|
|
|
|
|
This ACPI device describes how the OS can read the id-pin of the devices'
|
|
|
|
USB-otg port, as well as how it optionally can enable Vbus output on the
|
|
|
|
otg port and how it can optionally control the muxing of the data pins
|
|
|
|
between an USB host and an USB peripheral controller.
|
|
|
|
|
|
|
|
The ACPI devices exposes this functionality by returning an array with up
|
|
|
|
to 3 gpio descriptors from its ACPI _CRS (Current Resource Settings) call:
|
|
|
|
|
2019-06-28 20:20:37 +08:00
|
|
|
======= =====================================================================
|
|
|
|
Index 0 The input gpio for the id-pin, this is always present and valid
|
|
|
|
Index 1 The output gpio for enabling Vbus output from the device to the otg
|
2016-12-21 19:20:25 +08:00
|
|
|
port, write 1 to enable the Vbus output (this gpio descriptor may
|
|
|
|
be absent or invalid)
|
2019-06-28 20:20:37 +08:00
|
|
|
Index 2 The output gpio for muxing of the data pins between the USB host and
|
2016-12-21 19:20:25 +08:00
|
|
|
the USB peripheral controller, write 1 to mux to the peripheral
|
|
|
|
controller
|
2019-06-28 20:20:37 +08:00
|
|
|
======= =====================================================================
|
2017-02-24 20:35:55 +08:00
|
|
|
|
|
|
|
There is a mapping between indices and GPIO connection IDs as follows
|
2019-06-28 20:20:37 +08:00
|
|
|
|
|
|
|
======= =======
|
2017-02-24 20:35:55 +08:00
|
|
|
id index 0
|
|
|
|
vbus index 1
|
|
|
|
mux index 2
|
2019-06-28 20:20:37 +08:00
|
|
|
======= =======
|