Add a few minor enhancements to the Qualcomm IPQ GCC drivers.
Subsystems (7)
cover Add a few minor enhancements to the Qualcomm IPQ GCC drivers.
This series adds USB, NSS, and clock-related updates for several Qualcomm IPQ SoCs, including:
- Configure the USB UTMI reference clock to 24 MHz on IPQ5018, IPQ5210, and IPQ5332 to fix USB enumeration issues.
- Wire the USB3 PHY PIPE clocks to GCC on IPQ5424 and IPQ9574.
- Add NSS MEMNOC clocks and corresponding clock and ICC IDs for
IPQ5424.
- Connect the IPQ5424 PPE clock to GCC and document the required
clock input ordering.
- Add UNIPHY XPCS reset definitions required for NSS support on
IPQ5210.- Fix IPA-related typos in the IPQ5424 APSS clock driver.
---
Kathiravan Thirumoorthy (11):
clk: qcom: ipq5018: add 24MHz rate for USB UTMI clock
clk: qcom: ipq5332: add 24MHz rate for USB UTMI clock
clk: qcom: ipq5210: add 24MHz rate for USB UTMI clock
arm64: dts: qcom: ipq9574: Wire up USB3 PHY PIPE clock to GCC
dt-bindings: clock: qcom: ipq5332-gcc: Describe clock inputs per compatible
arm64: dts: qcom: ipq5424: Wire up USB3 PHY PIPE clock to GCC
dt-bindings: qcom,ipq5424: add NSS MEMNOC clock and ICC IDs
clk: qcom: gcc-ipq5424: add the MEMNOC clocks needed for the NSS block
arm64: dts: qcom: ipq5424: Wire up PPE clock to GCC
clk: qcom: gcc-ipq5210: add UNIPHY XPCS reset entries
clk: qcom: apss-ipq5424: fix 'ipa' typos
.../bindings/clock/qcom,ipq5332-gcc.yaml | 26 +++--- arch/arm64/boot/dts/qcom/ipq5424.dtsi | 3 +- arch/arm64/boot/dts/qcom/ipq9574.dtsi | 2 +- drivers/clk/qcom/apss-ipq5424.c | 10 +-- drivers/clk/qcom/gcc-ipq5018.c | 1 + drivers/clk/qcom/gcc-ipq5210.c | 4 + drivers/clk/qcom/gcc-ipq5332.c | 1 + drivers/clk/qcom/gcc-ipq5424.c | 93 ++++++++++++++++++++++ include/dt-bindings/clock/qcom,ipq5424-gcc.h | 4 + include/dt-bindings/interconnect/qcom,ipq5424.h | 4 + 10 files changed, 131 insertions(+), 17 deletions(-)
---
base-commit: 3f2425f5b5bbbdd991ca9cdfd5502e68d8895998
change-id: 20260825-ipq_clk_changes-f12f06219193
Best regards,
Signature · 1 line
Kathiravan Thirumoorthy <[email protected]>
PATCH 1/11 clk: qcom: ipq5018: add 24MHz rate for USB UTMI clock
The USB UTMI reference clock must operate at 24 MHz, as recommended by the hardware team, for reliable USB operation.
Validation showed that USB 3.2 hub enumeration with USB 2.0 devices fails when the UTMI reference clock is not configured to the required 24 MHz rate. Configuring the UTMI reference clock to 24 MHz to resolve the enumeration failure and ensure successful device detection.
--- drivers/clk/qcom/gcc-ipq5018.c | 1 + 1 file changed, 1 insertion(+)
drivers/clk/qcom/gcc-ipq5018.c +1 -0
@@ -1260,6 +1260,7 @@ static struct clk_rcg2 usb0_master_clk_src = { };static const struct freq_tbl ftbl_usb0_mock_utmi_clk_src[] = { +F (24000000 ,P_XO ,1 ,0 ,0 ),F (60000000 ,P_GPLL4 ,10 ,1 ,2 ), { } };
Signature · 1 line
2.34.1
Re: [PATCH 01/11] clk: qcom: ipq5018: add 24MHz rate for USB UTMI clock
Quoted 11 lines · Kathiravan Thirumoorthy
The USB UTMI reference clock must operate at 24 MHz, as recommended by the hardware team, for reliable USB operation.
Validation showed that USB 3.2 hub enumeration with USB 2.0 devices fails when the UTMI reference clock is not configured to the required 24 MHz rate. Configuring the UTMI reference clock to 24 MHz to resolve the enumeration failure and ensure successful device detection.
Fixes e3fdbef1bab8 ("clk: qcom: Add Global Clock controller (GCC) driver for IPQ5018")Signed-off-by Kathiravan Thirumoorthy <[email protected]>
PATCH 2/11 clk: qcom: ipq5332: add 24MHz rate for USB UTMI clock
In reply to Kathiravan ThirumoorthyThe USB UTMI reference clock must operate at 24 MHz, as recommended by the hardware team, for reliable USB operation.
Validation showed that USB 3.2 hub enumeration with USB 2.0 devices fails when the UTMI reference clock is not configured to the required 24 MHz rate. Configuring the UTMI reference clock to 24 MHz to resolve the enumeration failure and ensure successful device detection.
--- drivers/clk/qcom/gcc-ipq5332.c | 1 + 1 file changed, 1 insertion(+)
drivers/clk/qcom/gcc-ipq5332.c +1 -0
@@ -1038,6 +1038,7 @@ static struct clk_rcg2 gcc_usb0_master_clk_src = { };static const struct freq_tbl ftbl_gcc_usb0_mock_utmi_clk_src[] = { +F (24000000 ,P_XO ,1 ,0 ,0 ),F (60000000 ,P_GPLL4_OUT_AUX ,10 ,1 ,2 ), { } };
Signature · 1 line
2.34.1
Re: [PATCH 02/11] clk: qcom: ipq5332: add 24MHz rate for USB UTMI clock
Quoted 11 lines · Kathiravan Thirumoorthy
The USB UTMI reference clock must operate at 24 MHz, as recommended by the hardware team, for reliable USB operation.
Validation showed that USB 3.2 hub enumeration with USB 2.0 devices fails when the UTMI reference clock is not configured to the required 24 MHz rate. Configuring the UTMI reference clock to 24 MHz to resolve the enumeration failure and ensure successful device detection.
Fixes 3d89d52970fd ("clk: qcom: add Global Clock controller (GCC) driver for IPQ5332 SoC")Signed-off-by Kathiravan Thirumoorthy <[email protected]>
PATCH 3/11 clk: qcom: ipq5210: add 24MHz rate for USB UTMI clock
In reply to Kathiravan ThirumoorthyThe USB UTMI reference clock must operate at 24 MHz, as recommended by the hardware team, for reliable USB operation.
Validation showed that USB 3.2 hub enumeration with USB 2.0 devices fails when the UTMI reference clock is not configured to the required 24 MHz rate. Configuring the UTMI reference clock to 24 MHz to resolve the enumeration failure and ensure successful device detection.
--- drivers/clk/qcom/gcc-ipq5210.c | 1 + 1 file changed, 1 insertion(+)
drivers/clk/qcom/gcc-ipq5210.c +1 -0
@@ -716,6 +716,7 @@ static struct clk_rcg2 gcc_usb0_master_clk_src = { };static const struct freq_tbl ftbl_gcc_usb0_mock_utmi_clk_src[] = { +F (24000000 ,P_XO ,1 ,0 ,0 ),F (60000000 ,P_GPLL4_OUT_AUX ,10 ,1 ,2 ), { } };
Signature · 1 line
2.34.1
Re: [PATCH 03/11] clk: qcom: ipq5210: add 24MHz rate for USB UTMI clock
Quoted 11 lines · Kathiravan Thirumoorthy
The USB UTMI reference clock must operate at 24 MHz, as recommended by the hardware team, for reliable USB operation.
Validation showed that USB 3.2 hub enumeration with USB 2.0 devices fails when the UTMI reference clock is not configured to the required 24 MHz rate. Configuring the UTMI reference clock to 24 MHz to resolve the enumeration failure and ensure successful device detection.
Fixes 844be6e24afd ("clk: qcom: add Global Clock controller (GCC) driver for IPQ5210 SoC")Signed-off-by Kathiravan Thirumoorthy <[email protected]>
PATCH 4/11 arm64: dts: qcom: ipq9574: Wire up USB3 PHY PIPE clock to GCC
In reply to Kathiravan ThirumoorthyConnect the QMP PHY USB3 output to GCC so the USB3 PHY pipe clock can propagate to the USB controller.
--- arch/arm64/boot/dts/qcom/ipq9574.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/ipq9574.dtsi +1 -1
@@ -428,7 +428,7 @@ gcc: clock-controller@1800000 { <&pcie1_phy>, <&pcie2_phy>, <&pcie3_phy>, - <0>; + <&usb_0_qmpphy>; #clock-cells = <1>; #reset-cells = <1>; #interconnect-cells = <1>;
Signature · 1 line
2.34.1
Re: [PATCH 04/11] arm64: dts: qcom: ipq9574: Wire up USB3 PHY PIPE clock to GCC
Quoted 7 lines · Kathiravan Thirumoorthy
Connect the QMP PHY USB3 output to GCC so the USB3 PHY pipe clock can propagate to the USB controller.
Fixes a98bfb31f676 ("arm64: dts: qcom: ipq9574: Add USB related nodes")Reviewed-by Konrad Dybcio <[email protected]>Signed-off-by Kathiravan Thirumoorthy <[email protected]>
PATCH 5/11 dt-bindings: clock: qcom: ipq5332-gcc: Describe clock inputs per compatible
In reply to Kathiravan ThirumoorthyThe IPQ5332 and IPQ5424 GCC blocks use different clock input orderings. Document the clock inputs in compatible-specific schema constraints instead of using a common clock description.
Also add the 375 MHz PPE clock generated by the CMN PLL to the IPQ5424 clock input list.
This keeps the binding aligned with the clock ordering used by the existing DTS and GCC driver implementations.
--- .../bindings/clock/qcom,ipq5332-gcc.yaml | 26 +++++++++++++--------- 1 file changed, 16 insertions(+), 10 deletions(-)
Documentation/devicetree/bindings/clock/qcom,ipq5332-gcc.yaml +16 -10
@@ -25,14 +25,7 @@ properties: clocks: minItems: 5 - items: - - description: Board XO clock source - - description: Sleep clock source - - description: PCIE 2lane PHY pipe clock source - - description: PCIE 2lane x1 PHY pipe clock source (For second lane) - - description: USB PCIE wrapper pipe clock source - - description: PCIE 2-lane PHY2 pipe clock source - - description: PCIE 2-lane PHY3 pipe clock source + maxItems: 8 '#power-domain-cells': false '#interconnect-cells':
@@ -52,7 +45,12 @@ allOf: then: properties: clocks: - maxItems: 5 + items: + - description: Board XO clock source + - description: Sleep clock source + - description: PCIE 2lane PHY pipe clock source + - description: PCIE 2lane x1 PHY pipe clock source (For second lane) + - description: USB PCIE wrapper pipe clock source - if: properties:
@@ -63,7 +61,15 @@ allOf: properties: clocks: minItems: 7 - maxItems: 7 + items: + - description: Board XO clock source + - description: Sleep clock source + - description: PCIE 2lane PHY pipe clock source + - description: PCIE 2lane x1 PHY pipe clock source (For second lane) + - description: PCIE 2-lane PHY2 pipe clock source + - description: PCIE 2-lane PHY3 pipe clock source + - description: USB PCIE wrapper pipe clock source + - description: 375 MHz PPE clock generated from the CMN PLL unevaluatedProperties: false
Signature · 1 line
2.34.1
Re: [PATCH 05/11] dt-bindings: clock: qcom: ipq5332-gcc: Describe clock inputs per compatible
Quoted 21 lines · Kathiravan Thirumoorthy
The IPQ5332 and IPQ5424 GCC blocks use different clock input orderings. Document the clock inputs in compatible-specific schema constraints instead of using a common clock description.
Also add the 375 MHz PPE clock generated by the CMN PLL to the IPQ5424 clock input list.
This keeps the binding aligned with the clock ordering used by the existing DTS and GCC driver implementations.
Signed-off-by Kathiravan Thirumoorthy <[email protected]>--- .../bindings/clock/qcom,ipq5332-gcc.yaml | 26 +++++++++++++--------- 1 file changed, 16 insertions(+), 10 deletions(-)Documentation/devicetree/bindings/clock/qcom,ipq5332-gcc.yaml +0
-0@@ -25,14 +25,7 @@ properties:
Documentation/devicetree/bindings/clock/qcom,ipq5332-gcc.yaml properties: · line 35
Quoted 10 lines
Documentation/devicetree/bindings/clock/qcom,ipq5332-gcc.yaml +0
-8clocks: minItems: 5 - items: - - description: Board XO clock source - - description: Sleep clock source - - description: PCIE 2lane PHY pipe clock source - - description: PCIE 2lane x1 PHY pipe clock source (For second lane) - - description: USB PCIE wrapper pipe clock source - - description: PCIE 2-lane PHY2 pipe clock source - - description: PCIE 2-lane PHY3 pipe clock source
You are changing the order which is ABI break. Describe the actual problem to justify such change. Are you saying this was broken since beginning or what exactly is not working here? The driver was added by Qualcomm in 2024, so how did it even work? It's not some 10 yo legacy where we did some mistakes in binding while converting from TXT.
Also, I do not get why the list cannot be shared.
Best regards,
Krzysztof
Re: [PATCH 05/11] dt-bindings: clock: qcom: ipq5332-gcc: Describe clock inputs per compatible
Quoted 39 lines · Krzysztof Kozlowski
Quoted 21 lines · Kathiravan Thirumoorthy
The IPQ5332 and IPQ5424 GCC blocks use different clock input orderings. Document the clock inputs in compatible-specific schema constraints instead of using a common clock description.
Also add the 375 MHz PPE clock generated by the CMN PLL to the IPQ5424 clock input list.
This keeps the binding aligned with the clock ordering used by the existing DTS and GCC driver implementations.
Signed-off-by Kathiravan Thirumoorthy <[email protected]>--- .../bindings/clock/qcom,ipq5332-gcc.yaml | 26 +++++++++++++--------- 1 file changed, 16 insertions(+), 10 deletions(-)Documentation/devicetree/bindings/clock/qcom,ipq5332-gcc.yaml +0
-0@@ -25,14 +25,7 @@ properties:Documentation/devicetree/bindings/clock/qcom,ipq5332-gcc.yaml properties: · line 35
Quoted 10 lines
Documentation/devicetree/bindings/clock/qcom,ipq5332-gcc.yaml +0
-8clocks: minItems: 5 - items: - - description: Board XO clock source - - description: Sleep clock source - - description: PCIE 2lane PHY pipe clock source - - description: PCIE 2lane x1 PHY pipe clock source (For second lane) - - description: USB PCIE wrapper pipe clock source - - description: PCIE 2-lane PHY2 pipe clock source - - description: PCIE 2-lane PHY3 pipe clock sourceYou are changing the order which is ABI break. Describe the actual problem to justify such change. Are you saying this was broken since beginning or what exactly is not working here? The driver was added by Qualcomm in 2024, so how did it even work? It's not some 10 yo legacy where we did some mistakes in binding while converting from TXT.
Quoted 1 line
Also, I do not get why the list cannot be shared.
When the bindings was posted, list is combined for both IPQ5332 and IPQ5424. But the driver wasn't updated and it was following the below order, so was DTS, which is not compatible the DT binding description.
enum {
DT_XO,
DT_SLEEP_CLK,
DT_PCIE30_PHY0_PIPE_CLK,
DT_PCIE30_PHY1_PIPE_CLK,
DT_PCIE30_PHY2_PIPE_CLK,
DT_PCIE30_PHY3_PIPE_CLK,
DT_USB_PCIE_WRAPPER_PIPE_CLK,
DT_CMN_PLL_NSS_375M_CLK,
};
So I'm splitting the description between IPQ5332 and IPQ5424 to matching with the DTS and the driver description.
Quoted 3 lines
Best regards,
Krzysztof
Re: [PATCH 05/11] dt-bindings: clock: qcom: ipq5332-gcc: Describe clock inputs per compatible
Quoted 58 lines · Kathiravan Thirumoorthy
Quoted 39 lines · Krzysztof Kozlowski
Quoted 21 lines · Kathiravan Thirumoorthy
The IPQ5332 and IPQ5424 GCC blocks use different clock input orderings. Document the clock inputs in compatible-specific schema constraints instead of using a common clock description.
Also add the 375 MHz PPE clock generated by the CMN PLL to the IPQ5424 clock input list.
This keeps the binding aligned with the clock ordering used by the existing DTS and GCC driver implementations.
Signed-off-by Kathiravan Thirumoorthy <[email protected]>--- .../bindings/clock/qcom,ipq5332-gcc.yaml | 26 +++++++++++++--------- 1 file changed, 16 insertions(+), 10 deletions(-)Documentation/devicetree/bindings/clock/qcom,ipq5332-gcc.yaml +0
-0@@ -25,14 +25,7 @@ properties:Documentation/devicetree/bindings/clock/qcom,ipq5332-gcc.yaml properties: · line 35
Quoted 10 lines
Documentation/devicetree/bindings/clock/qcom,ipq5332-gcc.yaml +0
-8clocks: minItems: 5 - items: - - description: Board XO clock source - - description: Sleep clock source - - description: PCIE 2lane PHY pipe clock source - - description: PCIE 2lane x1 PHY pipe clock source (For second lane) - - description: USB PCIE wrapper pipe clock source - - description: PCIE 2-lane PHY2 pipe clock source - - description: PCIE 2-lane PHY3 pipe clock sourceYou are changing the order which is ABI break. Describe the actual problem to justify such change. Are you saying this was broken since beginning or what exactly is not working here? The driver was added by Qualcomm in 2024, so how did it even work? It's not some 10 yo legacy where we did some mistakes in binding while converting from TXT.
Quoted 1 line
Also, I do not get why the list cannot be shared.
When the bindings was posted, list is combined for both IPQ5332 and IPQ5424. But the driver wasn't updated and it was following the below order, so was DTS, which is not compatible the DT binding description.
enum {
DT_XO,
DT_SLEEP_CLK,
DT_PCIE30_PHY0_PIPE_CLK,
DT_PCIE30_PHY1_PIPE_CLK,
DT_PCIE30_PHY2_PIPE_CLK,
DT_PCIE30_PHY3_PIPE_CLK,
DT_USB_PCIE_WRAPPER_PIPE_CLK,
DT_CMN_PLL_NSS_375M_CLK,
};
Quoted 2 lines
So I'm splitting the description between IPQ5332 and IPQ5424 to matching with the DTS and the driver description.
So we asked back in 2024 to have the common part of the list. I even did the effort to dig it:
https://lore.kernel.org/all/ruti7hmkxkayzmqfbme6rw6j2vbhlx4ul4ptcckwamcpd4cyfx@owufhxwpvlcj/
Authors implemented it partially, broken drivers. Now you basically revert what we asked, which is BTW logical option. It's logical and reasonable, but leaves bitter feeling.
I have feeling there is no accountability and no responsibility of the IPQ at all.
No, that's not going to work. You cannot come 1.5 year later and revert what reviewer asked you, even if issue was just by mistake in the first place. And you should not even try to do that.
NAK
Best regards,
Krzysztof
Re: [PATCH 05/11] dt-bindings: clock: qcom: ipq5332-gcc: Describe clock inputs per compatible
Quoted 67 lines · Krzysztof Kozlowski
Quoted 55 lines · Kathiravan Thirumoorthy
Quoted 38 lines · Krzysztof Kozlowski
Quoted 21 lines · Kathiravan Thirumoorthy
The IPQ5332 and IPQ5424 GCC blocks use different clock input orderings. Document the clock inputs in compatible-specific schema constraints instead of using a common clock description.
Also add the 375 MHz PPE clock generated by the CMN PLL to the IPQ5424 clock input list.
This keeps the binding aligned with the clock ordering used by the existing DTS and GCC driver implementations.
Signed-off-by Kathiravan Thirumoorthy <[email protected]>--- .../bindings/clock/qcom,ipq5332-gcc.yaml | 26 +++++++++++++--------- 1 file changed, 16 insertions(+), 10 deletions(-)Documentation/devicetree/bindings/clock/qcom,ipq5332-gcc.yaml +0
-0@@ -25,14 +25,7 @@ properties:Documentation/devicetree/bindings/clock/qcom,ipq5332-gcc.yaml properties: · line 35
Quoted 10 lines
Documentation/devicetree/bindings/clock/qcom,ipq5332-gcc.yaml +0
-8clocks: minItems: 5 - items: - - description: Board XO clock source - - description: Sleep clock source - - description: PCIE 2lane PHY pipe clock source - - description: PCIE 2lane x1 PHY pipe clock source (For second lane) - - description: USB PCIE wrapper pipe clock source - - description: PCIE 2-lane PHY2 pipe clock source - - description: PCIE 2-lane PHY3 pipe clock sourceYou are changing the order which is ABI break. Describe the actual problem to justify such change. Are you saying this was broken since beginning or what exactly is not working here? The driver was added by Qualcomm in 2024, so how did it even work? It's not some 10 yo legacy where we did some mistakes in binding while converting from TXT.
Quoted 1 line
Also, I do not get why the list cannot be shared.
When the bindings was posted, list is combined for both IPQ5332 and IPQ5424. But the driver wasn't updated and it was following the below order, so was DTS, which is not compatible the DT binding description.
enum {
DT_XO,
DT_SLEEP_CLK,
DT_PCIE30_PHY0_PIPE_CLK,
DT_PCIE30_PHY1_PIPE_CLK,
DT_PCIE30_PHY2_PIPE_CLK,
DT_PCIE30_PHY3_PIPE_CLK,
DT_USB_PCIE_WRAPPER_PIPE_CLK,
DT_CMN_PLL_NSS_375M_CLK,
};Quoted 2 lines
So I'm splitting the description between IPQ5332 and IPQ5424 to matching with the DTS and the driver description.
So we asked back in 2024 to have the common part of the list. I even did the effort to dig it:
https://lore.kernel.org/all/ruti7hmkxkayzmqfbme6rw6j2vbhlx4ul4ptcckwamcpd4cyfx@owufhxwpvlcj/
Authors implemented it partially, broken drivers. Now you basically revert what we asked, which is BTW logical option. It's logical and reasonable, but leaves bitter feeling.
Quoted 6 lines
I have feeling there is no accountability and no responsibility of the IPQ at all.
No, that's not going to work. You cannot come 1.5 year later and revert what reviewer asked you, even if issue was just by mistake in the first place. And you should not even try to do that.
I understand the concern, and I agree this should have been caught much earlier.
I only discovered the mismatch while working on the IPQ5424 clock additions. My intent here is resolve the inconsistency that currently exists between the binding and implementation.
Quoted 2 lines
NAK
I'm happy to explore an alternative approach if updating the binding is not considered acceptable.
Quoted 3 lines
Best regards,
Krzysztof
Re: [PATCH 05/11] dt-bindings: clock: qcom: ipq5332-gcc: Describe clock inputs per compatible
Quoted 86 lines · Kathiravan Thirumoorthy
Quoted 69 lines · Krzysztof Kozlowski
Quoted 56 lines · Kathiravan Thirumoorthy
Quoted 39 lines · Krzysztof Kozlowski
Quoted 24 lines · Kathiravan Thirumoorthy
The IPQ5332 and IPQ5424 GCC blocks use different clock input orderings. Document the clock inputs in compatible-specific schema constraints instead of using a common clock description.
Also add the 375 MHz PPE clock generated by the CMN PLL to the IPQ5424 clock input list.
This keeps the binding aligned with the clock ordering used by the existing DTS and GCC driver implementations.
Signed-off-by Kathiravan Thirumoorthy <[email protected]>---
.../bindings/clock/qcom,ipq5332-gcc.yaml | 26
+++++++++++++---------1 file changed, 16 insertions(+), 10 deletions(-)Documentation/devicetree/bindings/clock/qcom,ipq5332-gcc.yaml +0
-0@@ -25,14 +25,7 @@ properties:clocks:
minItems: 5
- items:Quoted 8 lines
- - description: Board XO clock source
- - description: Sleep clock source
- - description: PCIE 2lane PHY pipe clock source - - description: PCIE 2lane x1 PHY pipe clock source (For second lane)
- - description: USB PCIE wrapper pipe clock source - - description: PCIE 2-lane PHY2 pipe clock source - - description: PCIE 2-lane PHY3 pipe clock sourceYou are changing the order which is ABI break. Describe the actual problem to justify such change. Are you saying this was broken since beginning or what exactly is not working here? The driver was added by Qualcomm in 2024, so how did it even work? It's not some 10 yo legacy where we did some mistakes in binding while converting from TXT.
Quoted 1 line
Also, I do not get why the list cannot be shared.
When the bindings was posted, list is combined for both IPQ5332 and IPQ5424. But the driver wasn't updated and it was following the below order, so was DTS, which is not compatible the DT binding description.
enum {
DT_XO,
DT_SLEEP_CLK,
DT_PCIE30_PHY0_PIPE_CLK,
DT_PCIE30_PHY1_PIPE_CLK,
DT_PCIE30_PHY2_PIPE_CLK,
DT_PCIE30_PHY3_PIPE_CLK,
DT_USB_PCIE_WRAPPER_PIPE_CLK,
DT_CMN_PLL_NSS_375M_CLK,
};Quoted 2 lines
So I'm splitting the description between IPQ5332 and IPQ5424 to matching with the DTS and the driver description.
So we asked back in 2024 to have the common part of the list. I even did the effort to dig it:
https://lore.kernel.org/all/ruti7hmkxkayzmqfbme6rw6j2vbhlx4ul4ptcckwamcpd4cyfx@owufhxwpvlcj/
Authors implemented it partially, broken drivers. Now you basically revert what we asked, which is BTW logical option. It's logical and reasonable, but leaves bitter feeling.
Quoted 6 lines
I have feeling there is no accountability and no responsibility of the IPQ at all.
No, that's not going to work. You cannot come 1.5 year later and revert what reviewer asked you, even if issue was just by mistake in the first place. And you should not even try to do that.
I understand the concern, and I agree this should have been caught much earlier.
I only discovered the mismatch while working on the IPQ5424 clock additions. My intent here is resolve the inconsistency that currently exists between the binding and implementation.
Quoted 1 line
Quoted 4 lines
Quoted 1 line
NAK
I'm happy to explore an alternative approach if updating the binding is not considered acceptable.
Krzysztof, I understand the frustration behind this, and we will make sure issues like this are caught earlier going forward.
Could you please advise us on the acceptable way forward for this series?
Quoted 4 lines
Quoted 4 lines
Best regards,
Krzysztof
Re: [PATCH 05/11] dt-bindings: clock: qcom: ipq5332-gcc: Describe clock inputs per compatible
Quoted 97 lines · Kathiravan Thirumoorthy
Quoted 95 lines · Kathiravan Thirumoorthy
Quoted 76 lines · Krzysztof Kozlowski
Quoted 62 lines · Kathiravan Thirumoorthy
Quoted 45 lines · Krzysztof Kozlowski
Quoted 30 lines · Kathiravan Thirumoorthy
The IPQ5332 and IPQ5424 GCC blocks use different clock input orderings.
Document the clock inputs in compatible-specific schema constraints instead
of using a common clock description.Also add the 375 MHz PPE clock generated by the CMN PLL to the IPQ5424
clock input list.This keeps the binding aligned with the clock ordering used by the existing DTS and GCC driver implementations.
Signed-off-by: Kathiravan Thirumoorthy <[email protected]>
---
.../bindings/clock/qcom,ipq5332-gcc.yaml | 26
+++++++++++++---------1 file changed, 16 insertions(+), 10 deletions(-)(quoted diff) +0
-0
a/Documentation/devicetree/bindings/clock/qcom,ipq5332-gcc.yamlb/Documentation/devicetree/bindings/clock/qcom,ipq5332-gcc.yamlindex1230183fc0a9..fb39dffca988100644Documentation/devicetree/bindings/clock/qcom,ipq5332-gcc.yaml +0
-0@@ -25,14 +25,7 @@ properties:clocks:
minItems: 5
- items:Quoted 8 lines
- - description: Board XO clock source
- - description: Sleep clock source
- - description: PCIE 2lane PHY pipe clock source - - description: PCIE 2lane x1 PHY pipe clock source (For second lane)
- - description: USB PCIE wrapper pipe clock source - - description: PCIE 2-lane PHY2 pipe clock source - - description: PCIE 2-lane PHY3 pipe clock sourceYou are changing the order which is ABI break. Describe the actual problem to justify such change. Are you saying this was broken since beginning or what exactly is not working here? The driver was added by Qualcomm in 2024, so how did it even work? It's not some 10 yo legacy where we did some mistakes in binding while converting from TXT.
Quoted 1 line
Also, I do not get why the list cannot be shared.
When the bindings was posted, list is combined for both IPQ5332 and IPQ5424. But the driver wasn't updated and it was following the below order, so was DTS, which is not compatible the DT binding description.
enum {
DT_XO,
DT_SLEEP_CLK,
DT_PCIE30_PHY0_PIPE_CLK,
DT_PCIE30_PHY1_PIPE_CLK,
DT_PCIE30_PHY2_PIPE_CLK,
DT_PCIE30_PHY3_PIPE_CLK,
DT_USB_PCIE_WRAPPER_PIPE_CLK,
DT_CMN_PLL_NSS_375M_CLK,
};Quoted 3 lines
So I'm splitting the description between IPQ5332 and IPQ5424 to matching
with the DTS and the driver description.So we asked back in 2024 to have the common part of the list. I even did the effort to dig it:
https://lore.kernel.org/all/ruti7hmkxkayzmqfbme6rw6j2vbhlx4ul4ptcckwamcpd4cyfx@owufhxwpvlcj/
Authors implemented it partially, broken drivers. Now you basically revert what we asked, which is BTW logical option. It's logical and reasonable, but leaves bitter feeling.
Quoted 6 lines
I have feeling there is no accountability and no responsibility of the IPQ at all.
No, that's not going to work. You cannot come 1.5 year later and revert what reviewer asked you, even if issue was just by mistake in the first place. And you should not even try to do that.
I understand the concern, and I agree this should have been caught much earlier.
I only discovered the mismatch while working on the IPQ5424 clock additions. My intent here is resolve the inconsistency that currently exists between the binding and implementation.
Quoted 2 lines
NAK
Quoted 8 lines
Quoted 2 lines
I'm happy to explore an alternative approach if updating the binding is not considered acceptable.
Krzysztof, I understand the frustration behind this, and we will make sure issues like this are caught earlier going forward.
Could you please advise us on the acceptable way forward for this series?
Unfortunately I don't know what to advise. I cannot Ack it, because people look at history commits, take them out of context and use as arguments in discussion ("oh look, here you acked such change, so I can do the same").
Maintainer's feedback was basically only partially implemented and now you want to revert that part which was implemented, basically opening the gate to allow such patterns in the future. I don't know how you are going to guarantee such issues will not happen in the future, so I guess you need to live with broken platform. Please align with Qualcomm SoC maintainers on this, because I will not ack it.
Best regards,
Krzysztof
Re: [PATCH 05/11] dt-bindings: clock: qcom: ipq5332-gcc: Describe clock inputs per compatible
Quoted 105 lines · Krzysztof Kozlowski
Quoted 91 lines · Kathiravan Thirumoorthy
Quoted 90 lines · Kathiravan Thirumoorthy
Quoted 76 lines · Krzysztof Kozlowski
Quoted 62 lines · Kathiravan Thirumoorthy
Quoted 45 lines · Krzysztof Kozlowski
Quoted 28 lines · Kathiravan Thirumoorthy
The IPQ5332 and IPQ5424 GCC blocks use different clock input orderings.
Document the clock inputs in compatible-specific schema constraints instead
of using a common clock description.Also add the 375 MHz PPE clock generated by the CMN PLL to the IPQ5424
clock input list.This keeps the binding aligned with the clock ordering used by the existing DTS and GCC driver implementations.
Signed-off-by: Kathiravan Thirumoorthy
<[email protected]>--- .../bindings/clock/qcom,ipq5332-gcc.yaml | 26 +++++++++++++--------- 1 file changed, 16 insertions(+), 10 deletions(-)diff --git
a/Documentation/devicetree/bindings/clock/qcom,ipq5332-gcc.yamlb/Documentation/devicetree/bindings/clock/qcom,ipq5332-gcc.yamlindex1230183fc0a9..fb39dffca988100644Documentation/devicetree/bindings/clock/qcom,ipq5332-gcc.yaml +0
-0@@ -25,14 +25,7 @@ properties: clocks:Documentation/devicetree/bindings/clock/qcom,ipq5332-gcc.yaml properties: · line 35
Quoted 10 lines
Documentation/devicetree/bindings/clock/qcom,ipq5332-gcc.yaml +0
-8minItems: 5 - items: - - description: Board XO clock source - - description: Sleep clock source - - description: PCIE 2lane PHY pipe clock source - - description: PCIE 2lane x1 PHY pipe clock source (For second lane) - - description: USB PCIE wrapper pipe clock source - - description: PCIE 2-lane PHY2 pipe clock source - - description: PCIE 2-lane PHY3 pipe clock sourceYou are changing the order which is ABI break. Describe the actual problem to justify such change. Are you saying this was broken since beginning or what exactly is not working here? The driver was added by Qualcomm in 2024, so how did it even work? It's not some 10 yo legacy where we did some mistakes in binding while converting from TXT.
Quoted 1 line
Also, I do not get why the list cannot be shared.
When the bindings was posted, list is combined for both IPQ5332 and IPQ5424. But the driver wasn't updated and it was following the below order, so was DTS, which is not compatible the DT binding description.
enum {
DT_XO,
DT_SLEEP_CLK,
DT_PCIE30_PHY0_PIPE_CLK,
DT_PCIE30_PHY1_PIPE_CLK,
DT_PCIE30_PHY2_PIPE_CLK,
DT_PCIE30_PHY3_PIPE_CLK,
DT_USB_PCIE_WRAPPER_PIPE_CLK,
DT_CMN_PLL_NSS_375M_CLK,
};Quoted 3 lines
So I'm splitting the description between IPQ5332 and IPQ5424 to matching
with the DTS and the driver description.So we asked back in 2024 to have the common part of the list. I even did the effort to dig it:
https://lore.kernel.org/all/ruti7hmkxkayzmqfbme6rw6j2vbhlx4ul4ptcckwamcpd4cyfx@owufhxwpvlcj/
Authors implemented it partially, broken drivers. Now you basically revert what we asked, which is BTW logical option. It's logical and reasonable, but leaves bitter feeling.
Quoted 6 lines
I have feeling there is no accountability and no responsibility of the IPQ at all.
No, that's not going to work. You cannot come 1.5 year later and revert what reviewer asked you, even if issue was just by mistake in the first place. And you should not even try to do that.
I understand the concern, and I agree this should have been caught much earlier.
I only discovered the mismatch while working on the IPQ5424 clock additions. My intent here is resolve the inconsistency that currently exists between the binding and implementation.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
NAK
I'm happy to explore an alternative approach if updating the binding is not considered acceptable.
Krzysztof, I understand the frustration behind this, and we will make sure issues like this are caught earlier going forward.
Could you please advise us on the acceptable way forward for this series?
Unfortunately I don't know what to advise. I cannot Ack it, because people look at history commits, take them out of context and use as arguments in discussion ("oh look, here you acked such change, so I can do the same").
Quoted 6 lines
Maintainer's feedback was basically only partially implemented and now you want to revert that part which was implemented, basically opening the gate to allow such patterns in the future. I don't know how you are going to guarantee such issues will not happen in the future, so I guess you need to live with broken platform. Please align with Qualcomm SoC maintainers on this, because I will not ack it.
Bjorn, could you please share your thoughts on this and suggest how we should proceed? These clocks are required by the networking modules.
Patches 11 and 12 are independent of this discussion. Since resolving this may take some time, would it make sense for me to send those separately so they can move forward independently?
Quoted 3 lines
Best regards,
Krzysztof
PATCH 6/11 arm64: dts: qcom: ipq5424: Wire up USB3 PHY PIPE clock to GCC
In reply to Kathiravan ThirumoorthyConnect the QMP PHY USB3 output to GCC so the USB3 PHY pipe clock can propagate to the USB controller.
--- arch/arm64/boot/dts/qcom/ipq5424.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/ipq5424.dtsi +1 -1
@@ -486,7 +486,7 @@ gcc: clock-controller@1800000 { <&pcie1_phy>, <&pcie2_phy>, <&pcie3_phy>, - <0>; + <&ssphy_0>; #clock-cells = <1>; #reset-cells = <1>; #interconnect-cells = <1>;
Signature · 1 line
2.34.1
Re: [PATCH 06/11] arm64: dts: qcom: ipq5424: Wire up USB3 PHY PIPE clock to GCC
Quoted 6 lines · Kathiravan Thirumoorthy
Connect the QMP PHY USB3 output to GCC so the USB3 PHY pipe clock can propagate to the USB controller.
Fixes 113d52bdc820 ("arm64: dts: qcom: ipq5424: Add USB controller and phy nodes")Signed-off-by Kathiravan Thirumoorthy <[email protected]>
PATCH 7/11 dt-bindings: qcom,ipq5424: add NSS MEMNOC clock and ICC IDs
In reply to Kathiravan ThirumoorthyAdd clock IDs for gcc_nssnoc_memnoc_clk and gcc_nssnoc_memnoc_1_clk, which provide the NSSNOC-to-GEMNOC path required by the NSS block.
As these clocks are exposed through the interconnect framework, add the corresponding ICC IDs as well.
--- include/dt-bindings/clock/qcom,ipq5424-gcc.h | 4 ++++ include/dt-bindings/interconnect/qcom,ipq5424.h | 4 ++++ 2 files changed, 8 insertions(+)
include/dt-bindings/clock/qcom,ipq5424-gcc.h +4 -0
@@ -153,5 +153,9 @@#define GCC_IM_SLEEP_CLK 144#define GCC_XO_CLK 145#define GPLL0_OUT_AUX 146 +#define GCC_NSSNOC_MEMNOC_BFDCD_CLK_SRC 147 +#define GCC_NSSNOC_MEMNOC_DIV_CLK_SRC 148 +#define GCC_NSSNOC_MEMNOC_CLK 149 +#define GCC_NSSNOC_MEMNOC_1_CLK 150#endif
include/dt-bindings/interconnect/qcom,ipq5424.h +4 -0
@@ -40,6 +40,10 @@#define SLAVE_CNOC_LPASS_CFG 35#define MASTER_SNOC_LPASS 36#define SLAVE_SNOC_LPASS 37 +#define MASTER_NSSNOC_MEMNOC 38 +#define SLAVE_NSSNOC_MEMNOC 39 +#define MASTER_NSSNOC_MEMNOC_1 40 +#define SLAVE_NSSNOC_MEMNOC_1 41#define MASTER_CPU 0#define SLAVE_L3 1
Signature · 1 line
2.34.1
Re: [PATCH 07/11] dt-bindings: qcom,ipq5424: add NSS MEMNOC clock and ICC IDs
Quoted 4 lines · Kathiravan Thirumoorthy
Add clock IDs for
gcc_nssnoc_memnoc_clkandgcc_nssnoc_memnoc_1_clk, which provide the NSSNOC-to-GEMNOC path required by the NSS block.
Quoted 8 lines
As these clocks are exposed through the interconnect framework, add the corresponding ICC IDs as well.
Signed-off-by Kathiravan Thirumoorthy <[email protected]>--- include/dt-bindings/clock/qcom,ipq5424-gcc.h | 4 ++++ include/dt-bindings/interconnect/qcom,ipq5424.h | 4 ++++ 2 files changed, 8 insertions(+)
Quoted 16 lines
include/dt-bindings/interconnect/qcom,ipq5424.h +4
-0@@ -40,6 +40,10 @@#define SLAVE_CNOC_LPASS_CFG 35#define MASTER_SNOC_LPASS 36#define SLAVE_SNOC_LPASS 37 +#define MASTER_NSSNOC_MEMNOC 38 +#define SLAVE_NSSNOC_MEMNOC 39 +#define MASTER_NSSNOC_MEMNOC_1 40 +#define SLAVE_NSSNOC_MEMNOC_1 41#define MASTER_CPU 0#define SLAVE_L3 1
PATCH 8/11 clk: qcom: gcc-ipq5424: add the MEMNOC clocks needed for the NSS block
In reply to Kathiravan ThirumoorthyAdd gcc_nssnoc_memnoc_clk and gcc_nssnoc_memnoc_1_clk to the GCC driver to enable the NSSNOC-to-GEMNOC path for the NSS block and expose them as ICC clocks.
--- drivers/clk/qcom/gcc-ipq5424.c | 93 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+)
drivers/clk/qcom/gcc-ipq5424.c +93 -0
@@ -34,6 +34,7 @@ enum {DT_PCIE30_PHY2_PIPE_CLK ,DT_PCIE30_PHY3_PIPE_CLK ,DT_USB_PCIE_WRAPPER_PIPE_CLK , + DT_CMN_PLL_NSS_375M_CLK, }; enum {
@@ -47,6 +48,7 @@ enum {P_SLEEP_CLK ,P_XO ,P_USB3PHY_0_PIPE , + P_NSS_CMN_CLK, };static const struct clk_parent_data gcc_parent_data_xo = { .index =DT_XO };
@@ -291,6 +293,20 @@ static const struct clk_parent_data gcc_parent_data_11[] = { { .hw = &gpll2.clkr.hw }, }; +static const struct parent_map gcc_parent_map_12[] = { + {P_XO ,0 }, + {P_NSS_CMN_CLK ,1 }, + {P_GPLL0_OUT_AUX ,2 }, + {P_GPLL2_OUT_AUX ,3 }, +}; + +static const struct clk_parent_data gcc_parent_data_12[] = { + { .index =DT_XO }, + { .index =DT_CMN_PLL_NSS_375M_CLK }, + { .hw = &gpll0.clkr.hw }, + { .hw = &gpll2.clkr.hw }, +}; +static const struct freq_tbl ftbl_gcc_adss_pwm_clk_src[] = {F (24000000 ,P_XO ,1 ,0 ,0 ),F (100000000 ,P_GPLL0_OUT_MAIN ,8 ,0 ,0 ),
@@ -1108,6 +1124,41 @@ static struct clk_regmap_div gcc_usb1_mock_utmi_div_clk_src = { }, }; +static const struct freq_tbl ftbl_gcc_nssnoc_memnoc_bfdcd_clk_src[] = { +F (375000000 ,P_NSS_CMN_CLK ,1 ,0 ,0 ), + { } +}; + +static struct clk_rcg2 gcc_nssnoc_memnoc_bfdcd_clk_src = { + .cmd_rcgr =0x17004 , + .mnd_width =0 , + .hid_width =5 , + .parent_map = gcc_parent_map_12, + .freq_tbl = ftbl_gcc_nssnoc_memnoc_bfdcd_clk_src, + .clkr.hw.init = &(const struct clk_init_data ) { + .name ="gcc_nssnoc_memnoc_bfdcd_clk_src" , + .parent_data = gcc_parent_data_12, + .num_parents =ARRAY_SIZE (gcc_parent_data_12), + .ops = &clk_rcg2_ops, + }, +}; + +static struct clk_regmap_div gcc_nssnoc_memnoc_div_clk_src = { + .reg =0x1700c , + .shift =0 , + .width =4 , + .clkr.hw.init = &(const struct clk_init_data ) { + .name ="gcc_nssnoc_memnoc_div_clk_src" , + .parent_hws = (const struct clk_hw *[]) { + &gcc_nssnoc_memnoc_bfdcd_clk_src.clkr.hw, + }, + .num_parents =1 , + .flags =CLK_SET_RATE_PARENT , + .ops = &clk_regmap_div_ro_ops, + }, +}; + +static struct clk_branch gcc_adss_pwm_clk = { .halt_reg =0x1c00c , .halt_check =BRANCH_HALT ,
@@ -2793,6 +2844,42 @@ static struct clk_branch gcc_pcie3_rchng_clk = { }, }; +static struct clk_branch gcc_nssnoc_memnoc_clk = { + .halt_reg =0x17024 , + .halt_check =BRANCH_HALT , + .clkr = { + .enable_reg =0x17024 , + .enable_mask =BIT (0 ), + .hw.init = &(const struct clk_init_data ) { + .name ="gcc_nssnoc_memnoc_clk" , + .parent_hws = (const struct clk_hw *[]) { + &gcc_nssnoc_memnoc_div_clk_src.clkr.hw, + }, + .num_parents =1 , + .flags =CLK_SET_RATE_PARENT , + .ops = &clk_branch2_ops, + }, + }, +}; + +static struct clk_branch gcc_nssnoc_memnoc_1_clk = { + .halt_reg =0x17084 , + .halt_check =BRANCH_HALT , + .clkr = { + .enable_reg =0x17084 , + .enable_mask =BIT (0 ), + .hw.init = &(const struct clk_init_data ) { + .name ="gcc_nssnoc_memnoc_1_clk" , + .parent_hws = (const struct clk_hw *[]) { + &gcc_nssnoc_memnoc_div_clk_src.clkr.hw, + }, + .num_parents =1 , + .flags =CLK_SET_RATE_PARENT , + .ops = &clk_branch2_ops, + }, + }, +}; +static struct clk_regmap *gcc_ipq5424_clocks[] = { [GCC_ADSS_PWM_CLK ] = &gcc_adss_pwm_clk.clkr, [GCC_ADSS_PWM_CLK_SRC ] = &gcc_adss_pwm_clk_src.clkr,
@@ -2938,6 +3025,10 @@ static struct clk_regmap *gcc_ipq5424_clocks[] = { [GPLL2_OUT_MAIN] = &gpll2_out_main.clkr, [GPLL4] = &gpll4.clkr, [GPLL0_OUT_AUX] = &gpll0_out_aux.clkr, + [GCC_NSSNOC_MEMNOC_BFDCD_CLK_SRC] = &gcc_nssnoc_memnoc_bfdcd_clk_src.clkr, + [GCC_NSSNOC_MEMNOC_DIV_CLK_SRC] = &gcc_nssnoc_memnoc_div_clk_src.clkr, + [GCC_NSSNOC_MEMNOC_CLK] = &gcc_nssnoc_memnoc_clk.clkr, + [GCC_NSSNOC_MEMNOC_1_CLK] = &gcc_nssnoc_memnoc_1_clk.clkr, };static const struct qcom_reset_map gcc_ipq5424_resets[] = {
@@ -3264,6 +3355,8 @@ static const struct qcom_icc_hws_data icc_ipq5424_hws[] = { { MASTER_NSSNOC_ATB, SLAVE_NSSNOC_ATB, GCC_NSSNOC_ATB_CLK }, { MASTER_CNOC_LPASS_CFG, SLAVE_CNOC_LPASS_CFG, GCC_CNOC_LPASS_CFG_CLK }, { MASTER_SNOC_LPASS, SLAVE_SNOC_LPASS, GCC_SNOC_LPASS_CLK }, + { MASTER_NSSNOC_MEMNOC, SLAVE_NSSNOC_MEMNOC, GCC_NSSNOC_MEMNOC_CLK }, + { MASTER_NSSNOC_MEMNOC_1, SLAVE_NSSNOC_MEMNOC_1, GCC_NSSNOC_MEMNOC_1_CLK }, }; static const struct of_device_id gcc_ipq5424_match_table[] = {
Signature · 1 line
2.34.1
Re: [PATCH 08/11] clk: qcom: gcc-ipq5424: add the MEMNOC clocks needed for the NSS block
Quoted 6 lines · Kathiravan Thirumoorthy
Add
gcc_nssnoc_memnoc_clkandgcc_nssnoc_memnoc_1_clkto the GCC driver to enable the NSSNOC-to-GEMNOC path for the NSS block and expose them as ICC clocks.Reviewed-by Konrad Dybcio <[email protected]>Signed-off-by Kathiravan Thirumoorthy <[email protected]>
PATCH 9/11 arm64: dts: qcom: ipq5424: Wire up PPE clock to GCC
In reply to Kathiravan ThirumoorthyAdd the PPE 375 MHz clock generated by the CMN PLL to the GCC clock controller inputs. GCC uses this clock as the source for the NSS MEMNOC clocks.
--- arch/arm64/boot/dts/qcom/ipq5424.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/ipq5424.dtsi +2 -1
@@ -486,7 +486,8 @@ gcc: clock-controller@1800000 { <&pcie1_phy>, <&pcie2_phy>, <&pcie3_phy>, - <&ssphy_0>; + <&ssphy_0>, + <&cmn_pll IPQ5424_PPE_375MHZ_CLK>; #clock-cells = <1>; #reset-cells = <1>; #interconnect-cells = <1>;
Signature · 1 line
2.34.1
Re: [PATCH 09/11] arm64: dts: qcom: ipq5424: Wire up PPE clock to GCC
Quoted 6 lines · Kathiravan Thirumoorthy
Add the PPE 375 MHz clock generated by the CMN PLL to the GCC clock controller inputs. GCC uses this clock as the source for the NSS MEMNOC clocks.
Reviewed-by Konrad Dybcio <[email protected]>Signed-off-by Kathiravan Thirumoorthy <[email protected]>
PATCH 10/11 clk: qcom: gcc-ipq5210: add UNIPHY XPCS reset entries
In reply to Kathiravan ThirumoorthyAdd reset entries for the UNIPHY0, UNIPHY1, and UNIPHY2 XPCS blocks. These resets are required by the NSS block for proper operation.
--- drivers/clk/qcom/gcc-ipq5210.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/clk/qcom/gcc-ipq5210.c +3 -0
@@ -2601,6 +2601,9 @@ static const struct qcom_reset_map gcc_ipq5210_resets[] = { [GCC_USB3PHY_0_PHY_BCR] = { 0x2c070 }, [GCC_USB_BCR] = { 0x2c000 }, [GCC_QDSS_BCR] = { 0x2d000 }, + [GCC_UNIPHY0_XPCS_ARES] = { 0x17050, 2 }, + [GCC_UNIPHY1_XPCS_ARES] = { 0x17060, 2 }, + [GCC_UNIPHY2_XPCS_ARES] = { 0x17070, 2 }, };static const struct of_device_id gcc_ipq5210_match_table[] = {
Signature · 1 line
2.34.1
Re: [PATCH 10/11] clk: qcom: gcc-ipq5210: add UNIPHY XPCS reset entries
Quoted 5 lines · Kathiravan Thirumoorthy
Add reset entries for the UNIPHY0, UNIPHY1, and UNIPHY2 XPCS blocks. These resets are required by the NSS block for proper operation.
Reviewed-by Konrad Dybcio <[email protected]>Signed-off-by Kathiravan Thirumoorthy <[email protected]>
PATCH 11/11 clk: qcom: apss-ipq5424: fix 'ipa' typos
In reply to Kathiravan ThirumoorthyReplace incorrect occurrences of "ipa" with "ipq".
Compile-tested only.
--- drivers/clk/qcom/apss-ipq5424.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/clk/qcom/apss-ipq5424.c +5 -5
@@ -206,14 +206,14 @@ static struct clk_regmap *apss_ipq5424_clks[] = { [L3_CORE_CLK] = &l3_core_clk.clkr, }; -static struct clk_alpha_pll *ipa5424_apss_plls[] = { +static struct clk_alpha_pll *ipq5424_apss_plls[] = { &ipq5424_l3_pll, &ipq5424_apss_pll, }; -static const struct qcom_cc_driver_data ipa5424_apss_driver_data = { - .alpha_plls = ipa5424_apss_plls, - .num_alpha_plls =ARRAY_SIZE (ipa5424_apss_plls), +static const struct qcom_cc_driver_data ipq5424_apss_driver_data = { + .alpha_plls = ipq5424_apss_plls, + .num_alpha_plls =ARRAY_SIZE (ipq5424_apss_plls), };#define IPQ_APPS_PLL_ID (5424 * 3)/* some unique value */
@@ -229,7 +229,7 @@ static const struct qcom_cc_desc apss_ipq5424_desc = { .icc_hws = icc_ipq5424_cpu_l3, .num_icc_hws = ARRAY_SIZE(icc_ipq5424_cpu_l3), .icc_first_node_id = IPQ_APPS_PLL_ID, - .driver_data = &ipa5424_apss_driver_data, + .driver_data = &ipq5424_apss_driver_data, };static int apss_ipq5424_probe (struct platform_device *pdev)
Signature · 1 line
2.34.1
Re: [PATCH 11/11] clk: qcom: apss-ipq5424: fix 'ipa' typos
Quoted 6 lines · Kathiravan Thirumoorthy
Replace incorrect occurrences of "ipa" with "ipq".
Compile-tested only.
Reviewed-by Konrad Dybcio <[email protected]>Signed-off-by Kathiravan Thirumoorthy <[email protected]>
Re: (subset) [PATCH 00/11] Add a few minor enhancements to the Qualcomm IPQ GCC drivers.
In reply to Kathiravan ThirumoorthyQuoted 7 lines · Kathiravan Thirumoorthy
This series adds USB, NSS, and clock-related updates for several Qualcomm IPQ SoCs, including:
- Configure the USB UTMI reference clock to 24 MHz on IPQ5018, IPQ5210, and IPQ5332 to fix USB enumeration issues.
- Wire the USB3 PHY PIPE clocks to GCC on IPQ5424 and IPQ9574.
- Add NSS MEMNOC clocks and corresponding clock and ICC IDs for
Quoted 8 lines
IPQ5424. - Connect the IPQ5424 PPE clock to GCC and document the required clock input ordering. - Add UNIPHY XPCS reset definitions required for NSS support on IPQ5210.- Fix IPA-related typos in the IPQ5424 APSS clock driver.
[...]
Applied, thanks!
[01/11] clk: qcom: ipq5018: add 24MHz rate for USB UTMI clock
commit: 0fe2995196a5973e226f506c9ec705f0dccec82f
[02/11] clk: qcom: ipq5332: add 24MHz rate for USB UTMI clock
commit: 33e6a4864ddc4824f8a9505a97232b7879eb5528
[03/11] clk: qcom: ipq5210: add 24MHz rate for USB UTMI clock
commit: 0336b65aef4721edbc01073dffdf9bc12673f0e5
[04/11] arm64: dts: qcom: ipq9574: Wire up USB3 PHY PIPE clock to GCC
commit: 117d8d40be1ded4f35f3252efa83607a7134d5e0Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>
Re: (subset) [PATCH 00/11] Add a few minor enhancements to the Qualcomm IPQ GCC drivers.
Quoted 18 lines · Bjorn Andersson
Quoted 7 lines · Kathiravan Thirumoorthy
This series adds USB, NSS, and clock-related updates for several Qualcomm IPQ SoCs, including:
- Configure the USB UTMI reference clock to 24 MHz on IPQ5018, IPQ5210, and IPQ5332 to fix USB enumeration issues.
- Wire the USB3 PHY PIPE clocks to GCC on IPQ5424 and IPQ9574.
- Add NSS MEMNOC clocks and corresponding clock and ICC IDs forQuoted 8 lines
IPQ5424. - Connect the IPQ5424 PPE clock to GCC and document the required clock input ordering. - Add UNIPHY XPCS reset definitions required for NSS support on IPQ5210.- Fix IPA-related typos in the IPQ5424 APSS clock driver.
[...]
Applied, thanks!
Quoted 8 lines
[01/11] clk: qcom: ipq5018: add 24MHz rate for USB UTMI clock
commit: 0fe2995196a5973e226f506c9ec705f0dccec82f [02/11] clk: qcom: ipq5332: add 24MHz rate for USB UTMI clock commit: 33e6a4864ddc4824f8a9505a97232b7879eb5528 [03/11] clk: qcom: ipq5210: add 24MHz rate for USB UTMI clock commit: 0336b65aef4721edbc01073dffdf9bc12673f0e5 [04/11] arm64: dts: qcom: ipq9574: Wire up USB3 PHY PIPE clock to GCC commit: 117d8d40be1ded4f35f3252efa83607a7134d5e0
Thanks Bjorn. Patch 10/11 and 11/11 are independent of the IPQ5424 dt-binding discussion. Since those patches are not bug fixes, added into the last part of the series. Can you pick those patches as well for v7.4?
Quoted 2 lines
Best regards,