Skip to contentSkip to conversation

clk: qcom: negcc-nord: Add the secondary QUSB2 PHY reset

PATCH Applied Shawn Guo 3 participants 6 messages Sep 1 – Sep 25

Subsystems (4)
lore
Share & tools
lore

Shawn Guo

author
#0 lore raw

cover clk: qcom: negcc-nord: Add the secondary QUSB2 PHY reset

The series adds the missing secondary QUSB2 PHY reset to negcc-nord clock driver, so that usb_1_hsphy can be enabled properly on Nord platform.

Bartosz Golaszewski (2):
dt-bindings: clock: qcom: nord-negcc: Add the secondary QUSB2 PHY
reset
clk: qcom: negcc-nord: Add the secondary QUSB2 PHY reset

 drivers/clk/qcom/negcc-nord.c               | 1 +
 include/dt-bindings/clock/qcom,nord-negcc.h | 1 +
 2 files changed, 2 insertions(+)
Signature · 1 line
2.43.0
author
#1 lore raw

PATCH 1/2 dt-bindings: clock: qcom: nord-negcc: Add the secondary QUSB2 PHY reset

From: Bartosz Golaszewski <[email protected]>

The NE_GCC block has two eUSB2 PHY block resets - PRIM and SEC - but right now only the primary is registered. Add the secondary, which is required by the usb_1 eUSB2 PHY.

Note that the SoC has three eUSB2 PHYs but only these two QUSB2PHY
resets: the HS-only USB20 tile has no dedicated QUSB2PHY reset and is instead reset as a whole via NE_GCC_USB20_PRIM_BCR.

---
 include/dt-bindings/clock/qcom,nord-negcc.h | 1 +
 1 file changed, 1 insertion(+)
include/dt-bindings/clock/qcom,nord-negcc.h +1 -0
index a7024317e90b..ad9ff389956d 100644
@@ -121,5 +121,6 @@
 #define NE_GCC_USB3PHY_PHY_PRIM_BCR				11
 #define NE_GCC_USB3PHY_PHY_SEC_BCR				12
 #define NE_GCC_QUSB2PHY_PRIM_BCR				13
+#define NE_GCC_QUSB2PHY_SEC_BCR					14
 
 #endif
Signature · 1 line
2.43.0
Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] dt-bindings: clock: qcom: nord-negcc: Add the secondary QUSB2 PHY reset

Quoted 6 lines · Shawn Guo

From: Bartosz Golaszewski <[email protected]>

The NE_GCC block has two eUSB2 PHY block resets - PRIM and SEC - but right now only the primary is registered. Add the secondary, which is required by the usb_1 eUSB2 PHY.

Quoted 6 lines

Note that the SoC has three eUSB2 PHYs but only these two QUSB2PHY
resets: the HS-only USB20 tile has no dedicated QUSB2PHY reset and is instead reset as a whole via NE_GCC_USB20_PRIM_BCR.

Signature · 2 lines
Thanks,
Taniya Das
author
#3 lore raw

PATCH 2/2 clk: qcom: negcc-nord: Add the secondary QUSB2 PHY reset

In reply to Shawn Guo

From: Bartosz Golaszewski <[email protected]>

Add the secondary USB2 PHY reset which is needed by usb_1_hsphy enabling on Nord platform.

---
 drivers/clk/qcom/negcc-nord.c | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/qcom/negcc-nord.c +1 -0
index 0db284edc4e4..896050291af0 100644
@@ -1877,6 +1877,7 @@ static const struct qcom_reset_map ne_gcc_nord_resets[] = {
 	[NE_GCC_USB3PHY_PHY_PRIM_BCR] = { 0x2b004 },
 	[NE_GCC_USB3PHY_PHY_SEC_BCR] = { 0x2d004 },
 	[NE_GCC_QUSB2PHY_PRIM_BCR] = { 0x2e000 },
+	[NE_GCC_QUSB2PHY_SEC_BCR] = { 0x2f000 },
 };
 
 static const struct clk_rcg_dfs_data ne_gcc_nord_dfs_clocks[] = {
Signature · 1 line
2.43.0
maintainer Applied
#5 lore raw

Re: (subset) [PATCH 0/2] clk: qcom: negcc-nord: Add the secondary QUSB2 PHY reset

In reply to Shawn Guo
Quoted 10 lines · Shawn Guo

The series adds the missing secondary QUSB2 PHY reset to negcc-nord clock driver, so that usb_1_hsphy can be enabled properly on Nord platform.

Bartosz Golaszewski (2):
dt-bindings: clock: qcom: nord-negcc: Add the secondary QUSB2 PHY
reset
clk: qcom: negcc-nord: Add the secondary QUSB2 PHY reset

[...]

Applied, thanks!

[2/2] clk: qcom: negcc-nord: Add the secondary QUSB2 PHY reset

      commit: 03445cb3e60340ac8215db9a59daff97d63a5ba9

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>