diff mbox series

[1/2] phy: qcom-qmp: Add QMP V3 USB3 PHY support for SC7180

Message ID 1572418544-11593-2-git-send-email-sanm@codeaurora.org (mailing list archive)
State Superseded
Headers show
Series Add QMP V3 USB3 PHY support for SC7180 | expand

Commit Message

Sandeep Maheswaram Oct. 30, 2019, 6:55 a.m. UTC
Adding QMP v3 USB3 phy support for SC7180.

Signed-off-by: Sandeep Maheswaram <sanm@codeaurora.org>
---
 drivers/phy/qualcomm/phy-qcom-qmp.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Comments

Manu Gautam Nov. 7, 2019, 3:35 p.m. UTC | #1
On 10/30/2019 12:25 PM, Sandeep Maheswaram wrote:
> Adding QMP v3 USB3 phy support for SC7180.
>
> Signed-off-by: Sandeep Maheswaram <sanm@codeaurora.org>
> ---
>  drivers/phy/qualcomm/phy-qcom-qmp.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c b/drivers/phy/qualcomm/phy-qcom-qmp.c
> index 091e203..52275c5 100644
> --- a/drivers/phy/qualcomm/phy-qcom-qmp.c
> +++ b/drivers/phy/qualcomm/phy-qcom-qmp.c
> @@ -1,6 +1,6 @@
>  // SPDX-License-Identifier: GPL-2.0
>  /*
> - * Copyright (c) 2017, The Linux Foundation. All rights reserved.
> + * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
>   */
>  
>  #include <linux/clk.h>
> @@ -2118,6 +2118,9 @@ static const struct of_device_id qcom_qmp_phy_of_match_table[] = {
>  	}, {
>  		.compatible = "qcom,sm8150-qmp-ufs-phy",
>  		.data = &sm8150_ufsphy_cfg,
> +	}, {
> +		.compatible = "qcom,sc7180-qmp-usb3-phy",
> +		.data = &qmp_v3_usb3phy_cfg,

SC7180 has single QMP PHY with each lane dedicated for USB and DP.
USB driver should perform only PHY reset, not the global reset.


>  	},
>  	{ },
>  };
diff mbox series

Patch

diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c b/drivers/phy/qualcomm/phy-qcom-qmp.c
index 091e203..52275c5 100644
--- a/drivers/phy/qualcomm/phy-qcom-qmp.c
+++ b/drivers/phy/qualcomm/phy-qcom-qmp.c
@@ -1,6 +1,6 @@ 
 // SPDX-License-Identifier: GPL-2.0
 /*
- * Copyright (c) 2017, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
  */
 
 #include <linux/clk.h>
@@ -2118,6 +2118,9 @@  static const struct of_device_id qcom_qmp_phy_of_match_table[] = {
 	}, {
 		.compatible = "qcom,sm8150-qmp-ufs-phy",
 		.data = &sm8150_ufsphy_cfg,
+	}, {
+		.compatible = "qcom,sc7180-qmp-usb3-phy",
+		.data = &qmp_v3_usb3phy_cfg,
 	},
 	{ },
 };