Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34948992 authored by Liangliang Lu's avatar Liangliang Lu
Browse files

usb: misc: Add USB super speed re-driver support for QRD8150



Due to USB sub board design on QRD8150, we use TypeC redrive
chipset to improve signal quality for USB3.1 Gen2 up to 10Gbps.

Different board level designs may need to use different parameters,
so expose four interfaces under /sys/kerne/debug for the tuning,
that is eq, flat_gain, output_comp and loss_match.

Change-Id: Ia662fec69063cb676b0511486d09b4cffa57e25a
Signed-off-by: default avatarLiangliang Lu <luliang@codeaurora.org>
parent 9b6c9bc1
Loading
Loading
Loading
Loading
+29 −0
Original line number Diff line number Diff line
ON Semiconductor USB Type-C and display port 10Gbps Linear Re-Driver

Required properties:
- compatible: Must be "onnn,redriver".
- reg: I2C address on the selected bus.
- extcon: phandles to external connector devices. The first phandle
	should point to the external connector which provides
	both "USB" cable events and "USB-HOST" cable events.
	An optional second phandle may be specified for DP
	lane events.

Optional properties:
- eq: Equalization value of re-driver channel A/B/C/D, 8 bit.
- flat-gain: Flat gain control value of re-driver channel A/B/C/D, 8 bit.
- output-comp: Output compression value of re-driver channel A/B/C/D,
	8 bit.
- loss-match: Loss profile matching control value of re-driver channel
	A/B/C/D, 8 bit.

Example:
	redriver@19 {
		compatible = "onnn,redriver";
		reg = <0x19>;
		extcon = <&pm8150b_pdphy>, <&pm8150b_pdphy>;
		eq = /bits/ 8 <0x5 0x4 0x4 0x5>;
		flat-gain = /bits/ 8 <0x3 0x1 0x1 0x3>;
		output-comp = /bits/ 8 <0x2 0x2 0x2 0x2>;
		loss-match = /bits/ 8 <0x0 0x3 0x3 0x0>;
	};
+6 −0
Original line number Diff line number Diff line
@@ -275,3 +275,9 @@ config USB_CHAOSKEY

	  To compile this driver as a module, choose M here: the
	  module will be called chaoskey.

config USB_REDRIVER_NB7VPQ904M
	tristate "USB 3.1 Gen1/Gen2 10Gbps re-driver driver for NB7VPQ904M"
	depends on USB_PHY
	help
	  Say Y here if you want to support USB super speed re-driver NB7VPQ904M.
+1 −0
Original line number Diff line number Diff line
@@ -31,3 +31,4 @@ obj-$(CONFIG_USB_CHAOSKEY) += chaoskey.o

obj-$(CONFIG_USB_SISUSBVGA)		+= sisusbvga/
obj-$(CONFIG_USB_LINK_LAYER_TEST)	+= lvstest.o
obj-$(CONFIG_USB_REDRIVER_NB7VPQ904M)	+= ssusb-redriver-nb7vpq904m.o
+1079 −0

File added.

Preview size limit exceeded, changes collapsed.