From: AngeloGioacchino Del Regno <hidden> Date: 2021-01-14 17:48:14
The TCSR's PHY_CLK_SCHEME register is not available on all SoC
models, but some may still use a differential reference clock.
In preparation for these SoCs, add a se_clk_scheme_default
configuration entry and declare it to true for all currently
supported SoCs (retaining the previous defaults.
This patch brings no functional changes.
Signed-off-by: AngeloGioacchino Del Regno <redacted>
---
drivers/phy/qualcomm/phy-qcom-qusb2.c | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
@@ -701,8 +707,13 @@ static int qusb2_phy_init(struct phy *phy)/* Required to get phy pll lock successfully */usleep_range(150,160);-/* Default is single-ended clock on msm8996 */-qphy->has_se_clk_scheme=true;+/*+*NotalltheSoCshavegotareadableTCSR_PHY_CLK_SCHEME+*registerintheTCSRso,ifthere'snone,usethedefault+*valuehardcodedintheconfiguration.+*/+qphy->has_se_clk_scheme=cfg->se_clk_scheme_default;+/**readTCSR_PHY_CLK_SCHEMEregistertocheckifsingle-ended*clockschemeisselected.Ifyes,thendisabledifferential
From: AngeloGioacchino Del Regno <hidden> Date: 2021-01-14 17:48:55
The SDM660 SoC uses the same configuration as MSM8996, but the
clock scheme uses a differential reference clock and none of
the SoCs in this series (630, 636 and others) have got a usable
PHY_CLK_SCHEME register in the TCSR for clk scheme detection.
Signed-off-by: AngeloGioacchino Del Regno <redacted>
---
drivers/phy/qualcomm/phy-qcom-qusb2.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
From: AngeloGioacchino Del Regno <hidden> Date: 2021-01-14 17:49:15
Support for the SDM630/660 series of SoCs was added to the driver:
document the qcom,sdm660-qusb2-phy compatible here.
Signed-off-by: AngeloGioacchino Del Regno <redacted>
---
Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml | 1 +
1 file changed, 1 insertion(+)
On Thu 14 Jan 11:47 CST 2021, AngeloGioacchino Del Regno wrote:
The TCSR's PHY_CLK_SCHEME register is not available on all SoC
models, but some may still use a differential reference clock.
In preparation for these SoCs, add a se_clk_scheme_default
configuration entry and declare it to true for all currently
supported SoCs (retaining the previous defaults.
This patch brings no functional changes.
Reviewed-by: Bjorn Andersson <redacted>
quoted hunk
Signed-off-by: AngeloGioacchino Del Regno <redacted>
---
drivers/phy/qualcomm/phy-qcom-qusb2.c | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
@@ -701,8 +707,13 @@ static int qusb2_phy_init(struct phy *phy)/* Required to get phy pll lock successfully */usleep_range(150,160);-/* Default is single-ended clock on msm8996 */-qphy->has_se_clk_scheme=true;+/*+*NotalltheSoCshavegotareadableTCSR_PHY_CLK_SCHEME+*registerintheTCSRso,ifthere'snone,usethedefault+*valuehardcodedintheconfiguration.+*/+qphy->has_se_clk_scheme=cfg->se_clk_scheme_default;+/**readTCSR_PHY_CLK_SCHEMEregistertocheckifsingle-ended*clockschemeisselected.Ifyes,thendisabledifferential
On Thu 14 Jan 11:47 CST 2021, AngeloGioacchino Del Regno wrote:
The SDM660 SoC uses the same configuration as MSM8996, but the
clock scheme uses a differential reference clock and none of
the SoCs in this series (630, 636 and others) have got a usable
PHY_CLK_SCHEME register in the TCSR for clk scheme detection.
Reviewed-by: Bjorn Andersson <redacted>
quoted hunk
Signed-off-by: AngeloGioacchino Del Regno <redacted>
---
drivers/phy/qualcomm/phy-qcom-qusb2.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
From: AngeloGioacchino Del Regno <hidden> Date: 2021-01-14 17:58:50
Il 14/01/21 18:52, Bjorn Andersson ha scritto:
On Thu 14 Jan 11:47 CST 2021, AngeloGioacchino Del Regno wrote:
quoted
The TCSR's PHY_CLK_SCHEME register is not available on all SoC
models, but some may still use a differential reference clock.
In preparation for these SoCs, add a se_clk_scheme_default
configuration entry and declare it to true for all currently
supported SoCs (retaining the previous defaults.
This patch brings no functional changes.
Reviewed-by: Bjorn Andersson <redacted>
Thanks!! :)
quoted
Signed-off-by: AngeloGioacchino Del Regno <redacted>
---
drivers/phy/qualcomm/phy-qcom-qusb2.c | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
@@ -701,8 +707,13 @@ static int qusb2_phy_init(struct phy *phy)/* Required to get phy pll lock successfully */usleep_range(150,160);-/* Default is single-ended clock on msm8996 */-qphy->has_se_clk_scheme=true;+/*+*NotalltheSoCshavegotareadableTCSR_PHY_CLK_SCHEME+*registerintheTCSRso,ifthere'snone,usethedefault+*valuehardcodedintheconfiguration.+*/+qphy->has_se_clk_scheme=cfg->se_clk_scheme_default;+/**readTCSR_PHY_CLK_SCHEMEregistertocheckifsingle-ended*clockschemeisselected.Ifyes,thendisabledifferential
On 14-01-21, 18:47, AngeloGioacchino Del Regno wrote:
The TCSR's PHY_CLK_SCHEME register is not available on all SoC
models, but some may still use a differential reference clock.
In preparation for these SoCs, add a se_clk_scheme_default
configuration entry and declare it to true for all currently
supported SoCs (retaining the previous defaults.
This patch brings no functional changes.
Patch 2 had two blank lines getting inserted, I have fixed that up while
applying.. so:
Applied all, thanks
--
~Vinod