From 17849691a95e033d83bc2481173dd665b6525daa Mon Sep 17 00:00:00 2001 From: Udipto Goswami Date: Sat, 28 Dec 2024 16:01:01 +0530 Subject: [PATCH 1/2] ARM: dts: msm: Enable nb7vpq904m redriver on Kera QRD platfrom Add nb7vpq904m related configurations including i2c device, pinctrl, gpio and register sequences. Change-Id: I781e670f14fa9658003e397233b5a91068f75729 Signed-off-by: Udipto Goswami --- qcom/kera-qrd.dtsi | 51 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/qcom/kera-qrd.dtsi b/qcom/kera-qrd.dtsi index 6981e8c7..0167d656 100644 --- a/qcom/kera-qrd.dtsi +++ b/qcom/kera-qrd.dtsi @@ -118,3 +118,54 @@ &pm8550ve_f_die_temp { status = "disabled"; }; + +&qupv3_se4_i2c { + status = "ok"; + + #address-cells = <1>; + #size-cells = <0>; + redriver: redriver@1c { + compatible = "onnn,redriver"; + reg = <0x1c>; + + vdd-supply = <&L7B>; + + lane-channel-swap; + + eq = /bits/ 8 < + /* Parameters for USB */ + 0x4 0x4 0x4 0x4 + /* Parameters for DP */ + 0x5 0x7 0x7 0x5>; + flat-gain = /bits/ 8 < + /* Parameters for USB */ + 0x3 0x1 0x1 0x3 + /* Parameters for DP */ + 0x0 0x3 0x3 0x0>; + output-comp = /bits/ 8 < + /* Parameters for USB */ + 0x3 0x3 0x3 0x3 + /* Parameters for DP */ + 0x3 0x3 0x3 0x3>; + loss-match = /bits/ 8 < + /* Parameters for USB */ + 0x1 0x3 0x3 0x1 + /* Parameters for DP */ + 0x3 0x3 0x3 0x3>; + }; +}; + +&usb_qmp_dp_phy { + pinctrl-names = "unused"; +}; + +&usb0 { + pinctrl-names = "default"; + pinctrl-0 = <&usb3phy_portselect_gpio>; + gpios = <&tlmm 122 0>; + + ssusb_redriver = <&redriver>; + + qcom,wcd_usbss = <&wcd_usbss>; + +}; From dd1ed36916352b63d22c5694634f35591ca9743d Mon Sep 17 00:00:00 2001 From: Udipto Goswami Date: Sun, 5 Jan 2025 12:52:16 +0530 Subject: [PATCH 2/2] ARM: dts: msm: Add wcd_usbss reference to USB on Kera The USB D+/D- signal lines are first routed through the WCD939x USB subsystem before connecting to the USB controller on MTP and QRD platform for kera. Add a phandle to the former to the USB device node. This will allow the USB driver to control the D+/D- switches when functionality is needed. Change-Id: Ie6e76885785cc57974d52df91297a98f300cf666 Signed-off-by: Udipto Goswami --- qcom/kera-mtp.dtsi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qcom/kera-mtp.dtsi b/qcom/kera-mtp.dtsi index b5b73f13..e875880e 100644 --- a/qcom/kera-mtp.dtsi +++ b/qcom/kera-mtp.dtsi @@ -1,6 +1,6 @@ // SPDX-License-Identifier: BSD-3-Clause /* - * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2024-2025 Qualcomm Innovation Center, Inc. All rights reserved. */ #include #include @@ -88,3 +88,7 @@ &pm8550ve_f_die_temp { status = "disabled"; }; + +&usb0 { + qcom,wcd_usbss = <&wcd_usbss>; +};