Loading Documentation/devicetree/bindings/usb/onsemi_redriver.txt 0 → 100644 +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>; }; arch/arm64/boot/dts/qcom/sm8150-qrd.dtsi +9 −0 Original line number Diff line number Diff line Loading @@ -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 { Loading arch/arm64/configs/vendor/sm8150-perf_defconfig +1 −0 Original line number Diff line number Diff line Loading @@ -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 Loading arch/arm64/configs/vendor/sm8150_defconfig +1 −0 Original line number Diff line number Diff line Loading @@ -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 Loading drivers/extcon/extcon.c +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
Documentation/devicetree/bindings/usb/onsemi_redriver.txt 0 → 100644 +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>; };
arch/arm64/boot/dts/qcom/sm8150-qrd.dtsi +9 −0 Original line number Diff line number Diff line Loading @@ -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 { Loading
arch/arm64/configs/vendor/sm8150-perf_defconfig +1 −0 Original line number Diff line number Diff line Loading @@ -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 Loading
arch/arm64/configs/vendor/sm8150_defconfig +1 −0 Original line number Diff line number Diff line Loading @@ -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 Loading
drivers/extcon/extcon.c +1 −1 Original line number Diff line number Diff line Loading @@ -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