usb: typec: fsa4480: add support for Audio Accessory Mode
authorNeil Armstrong <neil.armstrong@linaro.org>
Wed, 14 Jun 2023 13:10:41 +0000 (15:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jun 2023 16:07:55 +0000 (18:07 +0200)
commitef1e29c6f6ad1e327d07b078e37a1eddd832e8e4
treee62bc862d5cc734f9937aa9bcc87aeda69afada1
parentc7054c31c1c94dbfe0ddf7c327f72f020d47c6c9
usb: typec: fsa4480: add support for Audio Accessory Mode

The FSA4480 Type-C switch supports switching the Audio R/L,
AGND and MIC signals to the USB-C DP/DM and SBU1/2 to support
the Audio Accessory Mode.

The FSA4480 has an integrated Audio jack detection mechanism
to automatically mux the AGND, MIX and Sense to the correct
SBU lines to support 3 pole and both 4 pole TRRS pinouts.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Tested-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230614-topic-sm8550-upstream-type-c-audio-v1-3-15a92565146b@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux/fsa4480.c