mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
08a0a4f987
Maxim Integrated MAX3355E chip integrates a charge pump and comparators to enable a system with an integrated USB OTG dual-role transceiver to function as an USB OTG dual-role device. In addition to sensing/controlling Vbus, the chip also passes thru the ID signal from the USB OTG connector. On some Renesas boards, this signal is just fed into the SoC thru a GPIO pin -- there's no real OTG controller, only host and gadget USB controllers sharing the same USB bus; however, we'd like to allow host or gadget drivers to be loaded depending on the cable type, hence the need for the MAX3355 extcon driver. The Vbus status signals are also wired to GPIOs (however, we aren't currently interested in them), the OFFVBUS# signal is controlled by the host controllers, there's also the SHDN# signal wired to a GPIO, it should be driven high for the normal operation. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Acked-by: Chanwoo Choi <cw00.choi@samsung.com> Acked-by: Rob Herring <robh@kernel.org> [cw00.choi: Add the GPIOLIB dependency] Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
22 lines
692 B
Plaintext
22 lines
692 B
Plaintext
Maxim Integrated MAX3355 USB OTG chip
|
|
-------------------------------------
|
|
|
|
MAX3355 integrates a charge pump and comparators to enable a system with an
|
|
integrated USB OTG dual-role transceiver to function as a USB OTG dual-role
|
|
device.
|
|
|
|
Required properties:
|
|
- compatible: should be "maxim,max3355";
|
|
- maxim,shdn-gpios: should contain a phandle and GPIO specifier for the GPIO pin
|
|
connected to the MAX3355's SHDN# pin;
|
|
- id-gpios: should contain a phandle and GPIO specifier for the GPIO pin
|
|
connected to the MAX3355's ID_OUT pin.
|
|
|
|
Example:
|
|
|
|
usb-otg {
|
|
compatible = "maxim,max3355";
|
|
maxim,shdn-gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
|
|
id-gpios = <&gpio5 31 GPIO_ACTIVE_HIGH>;
|
|
};
|