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

Commit 7b9f41eb authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ARM: dts: msm: Enable USB 3.1 Gen/Gen2 re-driver on QRD8150"

parents 55838f48 0ec4edf8
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>;
	};
+9 −0
Original line number Diff line number Diff line
@@ -225,6 +225,15 @@

&qupv3_se4_i2c {
	status = "ok";
	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>;
	};
};

&ufsphy_mem {
+1 −0
Original line number Diff line number Diff line
@@ -413,6 +413,7 @@ CONFIG_USB_DWC3=y
CONFIG_USB_DWC3_MSM=y
CONFIG_USB_ISP1760=y
CONFIG_USB_ISP1760_HOST_ROLE=y
CONFIG_USB_REDRIVER_NB7VPQ904M=y
CONFIG_NOP_USB_XCEIV=y
CONFIG_USB_QCOM_EMU_PHY=y
CONFIG_USB_MSM_SSPHY_QMP=y
+1 −0
Original line number Diff line number Diff line
@@ -430,6 +430,7 @@ CONFIG_USB_DWC3=y
CONFIG_USB_DWC3_MSM=y
CONFIG_USB_ISP1760=y
CONFIG_USB_ISP1760_HOST_ROLE=y
CONFIG_USB_REDRIVER_NB7VPQ904M=y
CONFIG_NOP_USB_XCEIV=y
CONFIG_USB_QCOM_EMU_PHY=y
CONFIG_USB_MSM_SSPHY_QMP=y
+1 −1
Original line number Diff line number Diff line
@@ -486,7 +486,7 @@ int extcon_sync(struct extcon_dev *edev, unsigned int id)
}
EXPORT_SYMBOL_GPL(extcon_sync);

int extcon_blocking_sync(struct extcon_dev *edev, unsigned int id, bool val)
int extcon_blocking_sync(struct extcon_dev *edev, unsigned int id, u8 val)
{
	int index;

Loading