[PATCH v2 1/3] dt-bindings: clock: qcom: Add NSS clock controller for IPQ5210 SoC
From: Luo Jie
Date: Wed Nov 11 2026 - 05:07:10 EST
NSS clock controller provides the clocks and resets to the networking
blocks such as PPE (Packet Process Engine), UNIPHY (PCS) and EPHY on
IPQ5210 devices.
Add support for the compatible string "qcom,ipq5210-nsscc" based on the
existing IPQ9574/IPQ5424 NSS clock controller Device Tree binding. IPQ5210
additionally exposes a pair of EPHY-RAW Rx/Tx clock sources used to derive
the clocks for its integrated 2.5G Ethernet PHY, so extend the clocks and
clock-names lists with "ephy_rx" and "ephy_tx".
Also add master/slave ids for IPQ5210 networking interfaces, which are used
by the nsscc-ipq5210 driver for providing interconnect services using the
icc-clk framework.
Signed-off-by: Luo Jie <jie.luo@xxxxxxxxxxxxxxxx>
---
.../bindings/clock/qcom,ipq9574-nsscc.yaml | 47 ++++++++-
include/dt-bindings/clock/qcom,ipq5210-nsscc.h | 106 +++++++++++++++++++++
include/dt-bindings/interconnect/qcom,ipq5210.h | 18 ++++
include/dt-bindings/reset/qcom,ipq5210-nsscc.h | 60 ++++++++++++
4 files changed, 228 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/clock/qcom,ipq9574-nsscc.yaml b/Documentation/devicetree/bindings/clock/qcom,ipq9574-nsscc.yaml
index a35bbc7b1924..dc7d90a99dc7 100644
--- a/Documentation/devicetree/bindings/clock/qcom,ipq9574-nsscc.yaml
+++ b/Documentation/devicetree/bindings/clock/qcom,ipq9574-nsscc.yaml
@@ -4,24 +4,28 @@
$id: http://devicetree.org/schemas/clock/qcom,ipq9574-nsscc.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
-title: Qualcomm Networking Sub System Clock & Reset Controller on IPQ9574 and IPQ5424
+title: Qualcomm Networking Sub System Clock & Reset Controller on IPQ SoCs
maintainers:
- Bjorn Andersson <andersson@xxxxxxxxxx>
+ - Luo Jie <jie.luo@xxxxxxxxxxxxxxxx>
description: |
Qualcomm networking sub system clock control module provides the clocks,
- resets on IPQ9574 and IPQ5424
+ resets on IPQ9574, IPQ5424 and IPQ5210
See also:
+ include/dt-bindings/clock/qcom,ipq5210-nsscc.h
include/dt-bindings/clock/qcom,ipq5424-nsscc.h
include/dt-bindings/clock/qcom,ipq9574-nsscc.h
+ include/dt-bindings/reset/qcom,ipq5210-nsscc.h
include/dt-bindings/reset/qcom,ipq5424-nsscc.h
include/dt-bindings/reset/qcom,ipq9574-nsscc.h
properties:
compatible:
enum:
+ - qcom,ipq5210-nsscc
- qcom,ipq5424-nsscc
- qcom,ipq9574-nsscc
@@ -42,6 +46,9 @@ properties:
- description: Uniphy2 NSS Rx clock source
- description: Uniphy2 NSS Tx clock source
- description: GCC NSSCC clock source
+ - description: CMN_PLL EPHY-RAW Rx clock source
+ - description: CMN_PLL EPHY-RAW Tx clock source
+ minItems: 11
'#interconnect-cells':
const: 1
@@ -63,6 +70,9 @@ properties:
- const: uniphy2_rx
- const: uniphy2_tx
- const: bus
+ - const: ephy_rx
+ - const: ephy_tx
+ minItems: 11
required:
- compatible
@@ -77,6 +87,8 @@ allOf:
const: qcom,ipq9574-nsscc
then:
properties:
+ clocks:
+ maxItems: 11
clock-names:
items:
- const: xo
@@ -90,8 +102,35 @@ allOf:
- const: uniphy2_rx
- const: uniphy2_tx
- const: bus
- else:
+ - if:
+ properties:
+ compatible:
+ const: qcom,ipq5424-nsscc
+ then:
+ properties:
+ clocks:
+ maxItems: 11
+ clock-names:
+ items:
+ - const: xo
+ - const: nss
+ - const: ppe
+ - const: gpll0_out
+ - const: uniphy0_rx
+ - const: uniphy0_tx
+ - const: uniphy1_rx
+ - const: uniphy1_tx
+ - const: uniphy2_rx
+ - const: uniphy2_tx
+ - const: bus
+ - if:
+ properties:
+ compatible:
+ const: qcom,ipq5210-nsscc
+ then:
properties:
+ clocks:
+ minItems: 13
clock-names:
items:
- const: xo
@@ -105,6 +144,8 @@ allOf:
- const: uniphy2_rx
- const: uniphy2_tx
- const: bus
+ - const: ephy_rx
+ - const: ephy_tx
unevaluatedProperties: false
diff --git a/include/dt-bindings/clock/qcom,ipq5210-nsscc.h b/include/dt-bindings/clock/qcom,ipq5210-nsscc.h
new file mode 100644
index 000000000000..62ead8d9b076
--- /dev/null
+++ b/include/dt-bindings/clock/qcom,ipq5210-nsscc.h
@@ -0,0 +1,106 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+/*
+ * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
+ */
+
+#ifndef _DT_BINDINGS_CLOCK_QCOM_IPQ5210_NSSCC_H
+#define _DT_BINDINGS_CLOCK_QCOM_IPQ5210_NSSCC_H
+
+#define NSS_CC_PPE_CLK_SRC 0
+#define NSS_CC_PPE_SWITCH_IPE_CLK 1
+#define NSS_CC_PPE_SWITCH_BTQ_CLK 2
+#define NSS_CC_PPE_SWITCH_CLK 3
+#define NSS_CC_PPE_SWITCH_CFG_CLK 4
+#define NSS_CC_PPE_EDMA_CLK 5
+#define NSS_CC_PPE_EDMA_CFG_CLK 6
+#define NSS_CC_PORT1_MAC_CLK 7
+#define NSS_CC_PORT1_RX_CLK 8
+#define NSS_CC_PORT1_RX_CLK_SRC 9
+#define NSS_CC_PORT1_RX_DIV_CLK_SRC 10
+#define NSS_CC_PORT1_TX_CLK 11
+#define NSS_CC_PORT1_TX_CLK_SRC 12
+#define NSS_CC_PORT1_TX_DIV_CLK_SRC 13
+#define NSS_CC_PORT2_MAC_CLK 14
+#define NSS_CC_PORT2_RX_CLK 15
+#define NSS_CC_PORT2_RX_CLK_SRC 16
+#define NSS_CC_PORT2_RX_DIV_CLK_SRC 17
+#define NSS_CC_PORT2_TX_CLK 18
+#define NSS_CC_PORT2_TX_CLK_SRC 19
+#define NSS_CC_PORT2_TX_DIV_CLK_SRC 20
+#define NSS_CC_PORT3_MAC_CLK 21
+#define NSS_CC_PORT3_RX_CLK 22
+#define NSS_CC_PORT3_RX_CLK_SRC 23
+#define NSS_CC_PORT3_RX_DIV_CLK_SRC 24
+#define NSS_CC_PORT3_TX_CLK 25
+#define NSS_CC_PORT3_TX_CLK_SRC 26
+#define NSS_CC_PORT3_TX_DIV_CLK_SRC 27
+#define NSS_CC_PORT4_MAC_CLK 28
+#define NSS_CC_PORT4_RX_CLK 29
+#define NSS_CC_PORT4_RX_CLK_SRC 30
+#define NSS_CC_PORT4_RX_DIV_CLK_SRC 31
+#define NSS_CC_PORT4_TX_CLK 32
+#define NSS_CC_PORT4_TX_CLK_SRC 33
+#define NSS_CC_PORT4_TX_DIV_CLK_SRC 34
+#define NSS_CC_PORT5_MAC_CLK 35
+#define NSS_CC_PORT5_RX_CLK 36
+#define NSS_CC_PORT5_RX_CLK_SRC 37
+#define NSS_CC_PORT5_RX_DIV_CLK_SRC 38
+#define NSS_CC_PORT5_TX_CLK 39
+#define NSS_CC_PORT5_TX_CLK_SRC 40
+#define NSS_CC_PORT5_TX_DIV_CLK_SRC 41
+#define NSS_CC_PORT6_MAC_CLK 42
+#define NSS_CC_PORT6_RX_CLK 43
+#define NSS_CC_PORT6_RX_CLK_SRC 44
+#define NSS_CC_PORT6_RX_DIV_CLK_SRC 45
+#define NSS_CC_PORT6_TX_CLK 46
+#define NSS_CC_PORT6_TX_CLK_SRC 47
+#define NSS_CC_PORT6_TX_DIV_CLK_SRC 48
+#define NSS_CC_NSSNOC_PPE_CLK 49
+#define NSS_CC_NSSNOC_PPE_CFG_CLK 50
+#define NSS_CC_UNIPHY_PORT1_RX_CLK 51
+#define NSS_CC_UNIPHY_PORT1_TX_CLK 52
+#define NSS_CC_UNIPHY_PORT2_RX_CLK 53
+#define NSS_CC_UNIPHY_PORT2_TX_CLK 54
+#define NSS_CC_UNIPHY_PORT3_RX_CLK 55
+#define NSS_CC_UNIPHY_PORT3_TX_CLK 56
+#define NSS_CC_UNIPHY_PORT4_RX_CLK 57
+#define NSS_CC_UNIPHY_PORT4_TX_CLK 58
+#define NSS_CC_UNIPHY_PORT5_RX_CLK 59
+#define NSS_CC_UNIPHY_PORT5_TX_CLK 60
+#define NSS_CC_UNIPHY_PORT6_RX_CLK 61
+#define NSS_CC_UNIPHY_PORT6_TX_CLK 62
+#define NSS_CC_XGMAC0_PTP_REF_CLK 63
+#define NSS_CC_XGMAC0_PTP_REF_DIV_CLK_SRC 64
+#define NSS_CC_XGMAC1_PTP_REF_CLK 65
+#define NSS_CC_XGMAC1_PTP_REF_DIV_CLK_SRC 66
+#define NSS_CC_XGMAC2_PTP_REF_CLK 67
+#define NSS_CC_XGMAC2_PTP_REF_DIV_CLK_SRC 68
+#define NSS_CC_PON_CLK 69
+#define NSS_CC_EPHY_RX_CLK_SRC 70
+#define NSS_CC_EPHY_RX_CLK 71
+#define NSS_CC_EPHY_TX_CLK_SRC 72
+#define NSS_CC_EPHY_TX_CLK 73
+#define NSS_CC_UNIPHY_PORT1_RX_DIV4_CLK_SRC 74
+#define NSS_CC_UNIPHY_PORT1_TX_DIV4_CLK_SRC 75
+#define NSS_CC_UNIPHY_PORT2_RX_DIV4_CLK_SRC 76
+#define NSS_CC_UNIPHY_PORT2_TX_DIV4_CLK_SRC 77
+#define NSS_CC_UNIPHY_PORT3_RX_DIV4_CLK_SRC 78
+#define NSS_CC_UNIPHY_PORT3_TX_DIV4_CLK_SRC 79
+#define NSS_CC_UNIPHY_PORT4_RX_DIV4_CLK_SRC 80
+#define NSS_CC_UNIPHY_PORT4_TX_DIV4_CLK_SRC 81
+#define NSS_CC_UNIPHY_PORT1_RX_DIV4_CLK 82
+#define NSS_CC_UNIPHY_PORT1_TX_DIV4_CLK 83
+#define NSS_CC_UNIPHY_PORT2_RX_DIV4_CLK 84
+#define NSS_CC_UNIPHY_PORT2_TX_DIV4_CLK 85
+#define NSS_CC_UNIPHY_PORT3_RX_DIV4_CLK 86
+#define NSS_CC_UNIPHY_PORT3_TX_DIV4_CLK 87
+#define NSS_CC_UNIPHY_PORT4_RX_DIV4_CLK 88
+#define NSS_CC_UNIPHY_PORT4_TX_DIV4_CLK 89
+#define NSS_CC_EIP_BFDCD_CLK_SRC 90
+#define NSS_CC_EIP_CLK 91
+#define NSS_CC_NSSNOC_EIP_CLK 92
+#define NSS_CC_CFG_CLK_SRC 93
+#define NSS_CC_NSS_CSR_CLK 94
+#define NSS_CC_NSSNOC_NSS_CSR_CLK 95
+
+#endif
diff --git a/include/dt-bindings/interconnect/qcom,ipq5210.h b/include/dt-bindings/interconnect/qcom,ipq5210.h
new file mode 100644
index 000000000000..44f8d35a372a
--- /dev/null
+++ b/include/dt-bindings/interconnect/qcom,ipq5210.h
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+/*
+ * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
+ */
+
+#ifndef INTERCONNECT_QCOM_IPQ5210_H
+#define INTERCONNECT_QCOM_IPQ5210_H
+
+#define MASTER_NSSNOC_PPE 0
+#define SLAVE_NSSNOC_PPE 1
+#define MASTER_NSSNOC_PPE_CFG 2
+#define SLAVE_NSSNOC_PPE_CFG 3
+#define MASTER_NSSNOC_NSS_CSR 4
+#define SLAVE_NSSNOC_NSS_CSR 5
+#define MASTER_NSSNOC_EIP 6
+#define SLAVE_NSSNOC_EIP 7
+
+#endif /* INTERCONNECT_QCOM_IPQ5210_H */
diff --git a/include/dt-bindings/reset/qcom,ipq5210-nsscc.h b/include/dt-bindings/reset/qcom,ipq5210-nsscc.h
new file mode 100644
index 000000000000..0616a3623897
--- /dev/null
+++ b/include/dt-bindings/reset/qcom,ipq5210-nsscc.h
@@ -0,0 +1,60 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+/*
+ * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
+ */
+
+#ifndef _DT_BINDINGS_RESET_QCOM_IPQ5210_NSSCC_H
+#define _DT_BINDINGS_RESET_QCOM_IPQ5210_NSSCC_H
+
+#define NSS_CC_PPE_BCR 0
+#define NSS_CC_PPE_SWITCH_IPE_CLK_ARES 1
+#define NSS_CC_PPE_SWITCH_BTQ_CLK_ARES 2
+#define NSS_CC_PPE_SWITCH_CLK_ARES 3
+#define NSS_CC_PPE_SWITCH_CFG_CLK_ARES 4
+#define NSS_CC_PPE_EDMA_CLK_ARES 5
+#define NSS_CC_PPE_EDMA_CFG_CLK_ARES 6
+#define NSS_CC_PORT1_MAC_CLK_ARES 7
+#define NSS_CC_PORT2_MAC_CLK_ARES 8
+#define NSS_CC_PORT3_MAC_CLK_ARES 9
+#define NSS_CC_PORT4_MAC_CLK_ARES 10
+#define NSS_CC_PORT5_MAC_CLK_ARES 11
+#define NSS_CC_PORT6_MAC_CLK_ARES 12
+#define NSS_CC_PON_CLK_ARES 13
+#define NSS_CC_XGMAC0_PTP_REF_CLK_ARES 14
+#define NSS_CC_XGMAC1_PTP_REF_CLK_ARES 15
+#define NSS_CC_XGMAC2_PTP_REF_CLK_ARES 16
+#define NSS_CC_NSSNOC_PPE_CLK_ARES 17
+#define NSS_CC_NSSNOC_PPE_CFG_CLK_ARES 18
+#define NSS_CC_PORT1_RX_CLK_ARES 19
+#define NSS_CC_PORT1_TX_CLK_ARES 20
+#define NSS_CC_PORT2_RX_CLK_ARES 21
+#define NSS_CC_PORT2_TX_CLK_ARES 22
+#define NSS_CC_PORT3_RX_CLK_ARES 23
+#define NSS_CC_PORT3_TX_CLK_ARES 24
+#define NSS_CC_PORT4_RX_CLK_ARES 25
+#define NSS_CC_PORT4_TX_CLK_ARES 26
+#define NSS_CC_PORT5_RX_CLK_ARES 27
+#define NSS_CC_PORT5_TX_CLK_ARES 28
+#define NSS_CC_PORT6_RX_CLK_ARES 29
+#define NSS_CC_PORT6_TX_CLK_ARES 30
+#define NSS_CC_EPHY_RX_CLK_ARES 31
+#define NSS_CC_EPHY_TX_CLK_ARES 32
+#define NSS_CC_UNIPHY_PORT1_RX_CLK_ARES 33
+#define NSS_CC_UNIPHY_PORT1_TX_CLK_ARES 34
+#define NSS_CC_UNIPHY_PORT2_RX_CLK_ARES 35
+#define NSS_CC_UNIPHY_PORT2_TX_CLK_ARES 36
+#define NSS_CC_UNIPHY_PORT3_RX_CLK_ARES 37
+#define NSS_CC_UNIPHY_PORT3_TX_CLK_ARES 38
+#define NSS_CC_UNIPHY_PORT4_RX_CLK_ARES 39
+#define NSS_CC_UNIPHY_PORT4_TX_CLK_ARES 40
+#define NSS_CC_UNIPHY_PORT5_RX_CLK_ARES 41
+#define NSS_CC_UNIPHY_PORT5_TX_CLK_ARES 42
+#define NSS_CC_UNIPHY_PORT6_RX_CLK_ARES 43
+#define NSS_CC_UNIPHY_PORT6_TX_CLK_ARES 44
+#define NSS_CC_EIP_CLK_ARES 45
+#define NSS_CC_NSSNOC_EIP_CLK_ARES 46
+#define NSS_CC_NSS_CSR_CLK_ARES 47
+#define NSS_CC_NSSNOC_NSS_CSR_CLK_ARES 48
+#define NSS_CC_DEBUG_CLK_ARES 49
+
+#endif
--
2.43.0