* [PATCH 0/6] clk: qcom: add clock drivers for Qualcomm Seca
@ 2026-11-27 11:41 Bartosz Golaszewski
2026-11-27 11:41 ` [PATCH 1/6] dt-bindings: clock: qcom: document the Seca Global Clock Controller Bartosz Golaszewski
` (5 more replies)
0 siblings, 6 replies; 8+ messages in thread
From: Bartosz Golaszewski @ 2026-11-27 11:41 UTC (permalink / raw)
To: Bjorn Andersson, Abel Vesa, Stephen Boyd, Brian Masney,
Jerome Brunet, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Bartosz Golaszewski, Taniya Das
Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel,
Bartosz Golaszewski, Tyler Baker
Qualcomm Seca is an automotive SoC with 12 Oryon CPU cores that's a
slightly less powerful cousin of the Nord SoC.
Add the negcc, tcsrcc and nwgcc clock drivers along with bindings
documenting the hardware and update the RPMh clock driver with Seca
clocks.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
Bartosz Golaszewski (6):
dt-bindings: clock: qcom: document the Seca Global Clock Controller
clk: qcom: add the Global Clock Controller driver for Seca
dt-bindings: clock: qcom: document the Seca TCSR Clock Controller
clk: qcom: add the TCSR Clock Controller for Seca
dt-bindings: clock: qcom,rpmhcc: document the RPMh clock controller on Seca
clk: qcom: rpmh: add RPMh clocks for Seca
.../devicetree/bindings/clock/qcom,rpmhcc.yaml | 1 +
.../devicetree/bindings/clock/qcom,seca-negcc.yaml | 61 +
.../devicetree/bindings/clock/qcom,seca-nwgcc.yaml | 69 +
.../devicetree/bindings/clock/qcom,seca-tcsr.yaml | 65 +
drivers/clk/qcom/Kconfig | 21 +
drivers/clk/qcom/Makefile | 2 +
drivers/clk/qcom/clk-rpmh.c | 16 +
drivers/clk/qcom/negcc-seca.c | 1458 +++++++++++++
drivers/clk/qcom/nwgcc-seca.c | 2138 ++++++++++++++++++++
drivers/clk/qcom/tcsrcc-seca.c | 147 ++
include/dt-bindings/clock/qcom,seca-negcc.h | 98 +
include/dt-bindings/clock/qcom,seca-nwgcc.h | 144 ++
include/dt-bindings/clock/qcom,seca-tcsrcc.h | 25 +
13 files changed, 4245 insertions(+)
---
base-commit: a9c48428cbd8d96b26f92631d0db6f8519c5fcc5
change-id: 20261126-seca-clocks-28e44d453241
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/6] dt-bindings: clock: qcom: document the Seca Global Clock Controller
2026-11-27 11:41 [PATCH 0/6] clk: qcom: add clock drivers for Qualcomm Seca Bartosz Golaszewski
@ 2026-11-27 11:41 ` Bartosz Golaszewski
2026-11-27 11:41 ` [PATCH 2/6] clk: qcom: add the Global Clock Controller driver for Seca Bartosz Golaszewski
` (4 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Bartosz Golaszewski @ 2026-11-27 11:41 UTC (permalink / raw)
To: Bjorn Andersson, Abel Vesa, Stephen Boyd, Brian Masney,
Jerome Brunet, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Bartosz Golaszewski, Taniya Das
Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel,
Bartosz Golaszewski, Tyler Baker
The Global Clock Controller (GCC) on Qualcomm Seca is split into the
North-East and North-West modules. Add devicetree bindings describing
the two.
Co-developed-by: Tyler Baker <tyler.baker@oss.qualcomm.com>
Signed-off-by: Tyler Baker <tyler.baker@oss.qualcomm.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
.../devicetree/bindings/clock/qcom,seca-negcc.yaml | 61 +++++++++
.../devicetree/bindings/clock/qcom,seca-nwgcc.yaml | 69 ++++++++++
include/dt-bindings/clock/qcom,seca-negcc.h | 98 ++++++++++++++
include/dt-bindings/clock/qcom,seca-nwgcc.h | 144 +++++++++++++++++++++
4 files changed, 372 insertions(+)
diff --git a/Documentation/devicetree/bindings/clock/qcom,seca-negcc.yaml b/Documentation/devicetree/bindings/clock/qcom,seca-negcc.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b1595d7dda2b3db59a7fdfc9f6b30d56655d8836
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/qcom,seca-negcc.yaml
@@ -0,0 +1,61 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/qcom,seca-negcc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: North East Global Clock & Reset Controller on Qualcomm Seca SoC
+
+maintainers:
+ - Bartosz Golaszewski <brgl@kernel.org>
+
+description: |
+ Qualcomm North East Global Clock Control (NE) module provides the clocks,
+ resets and power domains on Seca SoC.
+
+ See also: include/dt-bindings/clock/qcom,seca-negcc.h
+
+properties:
+ compatible:
+ const: qcom,seca-negcc
+
+ clocks:
+ items:
+ - description: Board XO source
+ - description: Sleep clock source
+ - description: USB3 Phy sec wrapper pipe clock source
+ - description: USB3 Phy wrapper pipe clock source
+
+ power-domains:
+ items:
+ - description: CX power domain
+
+required:
+ - compatible
+ - clocks
+ - power-domains
+ - '#power-domain-cells'
+
+allOf:
+ - $ref: qcom,gcc.yaml#
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/qcom,rpmh.h>
+ #include <dt-bindings/power/qcom,rpmhpd.h>
+ clock-controller@8900000 {
+ compatible = "qcom,seca-negcc";
+ reg = <0x08900000 0xf4200>;
+ clocks = <&rpmhcc RPMH_CXO_CLK>,
+ <&sleep_clk>,
+ <&usb3_phy_sec_pipe_clk>,
+ <&usb3_phy_pipe_clk>;
+ power-domains = <&rpmhpd RPMHPD_CX>;
+ #clock-cells = <1>;
+ #reset-cells = <1>;
+ #power-domain-cells = <1>;
+ };
+
+...
diff --git a/Documentation/devicetree/bindings/clock/qcom,seca-nwgcc.yaml b/Documentation/devicetree/bindings/clock/qcom,seca-nwgcc.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d6f7096b9a4ac9071e65164daf3412b09dcf9f1a
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/qcom,seca-nwgcc.yaml
@@ -0,0 +1,69 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/qcom,seca-nwgcc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: North West Global Clock & Reset Controller on Qualcomm Seca SoC
+
+maintainers:
+ - Bartosz Golaszewski <brgl@kernel.org>
+
+description: |
+ Qualcomm North West Global Clock Control (NW) module provides the clocks,
+ resets and power domains on Seca SoC.
+
+ See also: include/dt-bindings/clock/qcom,seca-nwgcc.h
+
+properties:
+ compatible:
+ const: qcom,seca-nwgcc
+
+ clocks:
+ items:
+ - description: Board XO source
+ - description: Sleep clock source
+ - description: UFS 0 Phy Rx symbol 0 clock source
+ - description: UFS 0 Phy Rx symbol 1 clock source
+ - description: UFS 0 Phy Tx symbol 0 clock source
+ - description: UFS 1 Phy Rx symbol 0 clock source
+ - description: UFS 1 Phy Rx symbol 1 clock source
+ - description: UFS 1 Phy Tx symbol 0 clock source
+
+ power-domains:
+ items:
+ - description: CX power domain
+
+required:
+ - compatible
+ - clocks
+ - power-domains
+ - '#power-domain-cells'
+
+allOf:
+ - $ref: qcom,gcc.yaml#
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/qcom,rpmh.h>
+ #include <dt-bindings/power/qcom,rpmhpd.h>
+ clock-controller@8b00000 {
+ compatible = "qcom,seca-nwgcc";
+ reg = <0x08b00000 0xf4200>;
+ clocks = <&rpmhcc RPMH_CXO_CLK>,
+ <&sleep_clk>,
+ <&ufs_0_phy 0>,
+ <&ufs_0_phy 1>,
+ <&ufs_0_phy 2>,
+ <&ufs_1_phy 0>,
+ <&ufs_1_phy 1>,
+ <&ufs_1_phy 2>;
+ power-domains = <&rpmhpd RPMHPD_CX>;
+ #clock-cells = <1>;
+ #reset-cells = <1>;
+ #power-domain-cells = <1>;
+ };
+
+...
diff --git a/include/dt-bindings/clock/qcom,seca-negcc.h b/include/dt-bindings/clock/qcom,seca-negcc.h
new file mode 100644
index 0000000000000000000000000000000000000000..33d942c073d693b86ea2ee79ecb206666ac93424
--- /dev/null
+++ b/include/dt-bindings/clock/qcom,seca-negcc.h
@@ -0,0 +1,98 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+/*
+ * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
+ */
+
+#ifndef _DT_BINDINGS_CLK_QCOM_NE_GCC_SECA_H
+#define _DT_BINDINGS_CLK_QCOM_NE_GCC_SECA_H
+
+/* NE_GCC clocks */
+#define NE_GCC_AGGRE_NOC_USB2_AXI_CLK 0
+#define NE_GCC_AGGRE_NOC_USB3_PRIM_AXI_CLK 1
+#define NE_GCC_AGGRE_NOC_USB3_SEC_AXI_CLK 2
+#define NE_GCC_AHB2PHY_CLK 3
+#define NE_GCC_CNOC_USB2_AXI_CLK 4
+#define NE_GCC_CNOC_USB3_PRIM_AXI_CLK 5
+#define NE_GCC_CNOC_USB3_SEC_AXI_CLK 6
+#define NE_GCC_FRQ_MEASURE_REF_CLK 7
+#define NE_GCC_GP1_CLK 8
+#define NE_GCC_GP1_CLK_SRC 9
+#define NE_GCC_GP2_CLK 10
+#define NE_GCC_GP2_CLK_SRC 11
+#define NE_GCC_GPLL0 12
+#define NE_GCC_GPLL0_OUT_EVEN 13
+#define NE_GCC_QUPV3_WRAP2_CORE_2X_CLK 14
+#define NE_GCC_QUPV3_WRAP2_CORE_CLK 15
+#define NE_GCC_QUPV3_WRAP2_M_AHB_CLK 16
+#define NE_GCC_QUPV3_WRAP2_S0_CLK 17
+#define NE_GCC_QUPV3_WRAP2_S0_CLK_SRC 18
+#define NE_GCC_QUPV3_WRAP2_S1_CLK 19
+#define NE_GCC_QUPV3_WRAP2_S1_CLK_SRC 20
+#define NE_GCC_QUPV3_WRAP2_S2_CLK 21
+#define NE_GCC_QUPV3_WRAP2_S2_CLK_SRC 22
+#define NE_GCC_QUPV3_WRAP2_S3_CLK 23
+#define NE_GCC_QUPV3_WRAP2_S3_CLK_SRC 24
+#define NE_GCC_QUPV3_WRAP2_S4_CLK 25
+#define NE_GCC_QUPV3_WRAP2_S4_CLK_SRC 26
+#define NE_GCC_QUPV3_WRAP2_S5_CLK 27
+#define NE_GCC_QUPV3_WRAP2_S5_CLK_SRC 28
+#define NE_GCC_QUPV3_WRAP2_S6_CLK 29
+#define NE_GCC_QUPV3_WRAP2_S6_CLK_SRC 30
+#define NE_GCC_QUPV3_WRAP2_S_AHB_CLK 31
+#define NE_GCC_SDCC4_APPS_CLK 32
+#define NE_GCC_SDCC4_APPS_CLK_SRC 33
+#define NE_GCC_SDCC4_AXI_CLK 34
+#define NE_GCC_USB20_MASTER_CLK 35
+#define NE_GCC_USB20_MASTER_CLK_SRC 36
+#define NE_GCC_USB20_MOCK_UTMI_CLK 37
+#define NE_GCC_USB20_MOCK_UTMI_CLK_SRC 38
+#define NE_GCC_USB20_MOCK_UTMI_POSTDIV_CLK_SRC 39
+#define NE_GCC_USB20_SLEEP_CLK 40
+#define NE_GCC_USB31_PRIM_EUD_AHB_CLK 41
+#define NE_GCC_USB31_PRIM_MASTER_CLK 42
+#define NE_GCC_USB31_PRIM_MASTER_CLK_SRC 43
+#define NE_GCC_USB31_PRIM_MOCK_UTMI_CLK 44
+#define NE_GCC_USB31_PRIM_MOCK_UTMI_CLK_SRC 45
+#define NE_GCC_USB31_PRIM_MOCK_UTMI_POSTDIV_CLK_SRC 46
+#define NE_GCC_USB31_PRIM_SLEEP_CLK 47
+#define NE_GCC_USB31_SEC_EUD_AHB_CLK 48
+#define NE_GCC_USB31_SEC_MASTER_CLK 49
+#define NE_GCC_USB31_SEC_MASTER_CLK_SRC 50
+#define NE_GCC_USB31_SEC_MOCK_UTMI_CLK 51
+#define NE_GCC_USB31_SEC_MOCK_UTMI_CLK_SRC 52
+#define NE_GCC_USB31_SEC_MOCK_UTMI_POSTDIV_CLK_SRC 53
+#define NE_GCC_USB31_SEC_SLEEP_CLK 54
+#define NE_GCC_USB3_PRIM_PHY_AUX_CLK 55
+#define NE_GCC_USB3_PRIM_PHY_AUX_CLK_SRC 56
+#define NE_GCC_USB3_PRIM_PHY_COM_AUX_CLK 57
+#define NE_GCC_USB3_PRIM_PHY_PIPE_CLK 58
+#define NE_GCC_USB3_PRIM_PHY_PIPE_CLK_SRC 59
+#define NE_GCC_USB3_SEC_PHY_AUX_CLK 60
+#define NE_GCC_USB3_SEC_PHY_AUX_CLK_SRC 61
+#define NE_GCC_USB3_SEC_PHY_COM_AUX_CLK 62
+#define NE_GCC_USB3_SEC_PHY_PIPE_CLK 63
+#define NE_GCC_USB3_SEC_PHY_PIPE_CLK_SRC 64
+
+/* NE_GCC power domains */
+#define NE_GCC_USB20_PRIM_GDSC 0
+#define NE_GCC_USB31_PRIM_GDSC 1
+#define NE_GCC_USB31_SEC_GDSC 2
+#define NE_GCC_USB3_PHY_GDSC 3
+#define NE_GCC_USB3_SEC_PHY_GDSC 4
+
+/* NE_GCC resets */
+#define NE_GCC_QUPV3_WRAPPER_2_BCR 0
+#define NE_GCC_QUSB2PHY_PRIM_BCR 1
+#define NE_GCC_QUSB2PHY_SEC_BCR 2
+#define NE_GCC_SDCC4_BCR 3
+#define NE_GCC_USB20_PRIM_BCR 4
+#define NE_GCC_USB31_PRIM_BCR 5
+#define NE_GCC_USB31_SEC_BCR 6
+#define NE_GCC_USB3_DP_PHY_PRIM_BCR 7
+#define NE_GCC_USB3_DP_PHY_SEC_BCR 8
+#define NE_GCC_USB3_PHY_PRIM_BCR 9
+#define NE_GCC_USB3_PHY_SEC_BCR 10
+#define NE_GCC_USB3PHY_PHY_PRIM_BCR 11
+#define NE_GCC_USB3PHY_PHY_SEC_BCR 12
+
+#endif
diff --git a/include/dt-bindings/clock/qcom,seca-nwgcc.h b/include/dt-bindings/clock/qcom,seca-nwgcc.h
new file mode 100644
index 0000000000000000000000000000000000000000..887d76dbc5093acc62e42bb0bda260a7bfa835da
--- /dev/null
+++ b/include/dt-bindings/clock/qcom,seca-nwgcc.h
@@ -0,0 +1,144 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+/*
+ * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
+ */
+
+#ifndef _DT_BINDINGS_CLK_QCOM_NW_GCC_SECA_H
+#define _DT_BINDINGS_CLK_QCOM_NW_GCC_SECA_H
+
+/* NW_GCC clocks */
+#define NW_GCC_AGGRE_NOC_UFS_0_PHY_AXI_CLK 0
+#define NW_GCC_AGGRE_NOC_UFS_1_PHY_AXI_CLK 1
+#define NW_GCC_CAMERA_AHB_CLK 2
+#define NW_GCC_CAMERA_HF_AXI_CLK 3
+#define NW_GCC_CAMERA_SF_AXI_CLK 4
+#define NW_GCC_CAMERA_TRIG_CLK 5
+#define NW_GCC_CAMERA_XO_CLK 6
+#define NW_GCC_DISP_0_AHB_CLK 7
+#define NW_GCC_DISP_0_HF_AXI_CLK 8
+#define NW_GCC_DISP_0_TRIG_CLK 9
+#define NW_GCC_DISP_1_AHB_CLK 10
+#define NW_GCC_DISP_1_HF_AXI_CLK 11
+#define NW_GCC_DISP_1_TRIG_CLK 12
+#define NW_GCC_DPRX0_AXI_HF_CLK 13
+#define NW_GCC_DPRX0_CFG_AHB_CLK 14
+#define NW_GCC_EVA_AHB_CLK 15
+#define NW_GCC_EVA_AXI0_CLK 16
+#define NW_GCC_EVA_AXI0C_CLK 17
+#define NW_GCC_EVA_TRIG_CLK 18
+#define NW_GCC_EVA_XO_CLK 19
+#define NW_GCC_FRQ_MEASURE_REF_CLK 20
+#define NW_GCC_GP1_CLK 21
+#define NW_GCC_GP1_CLK_SRC 22
+#define NW_GCC_GP2_CLK 23
+#define NW_GCC_GP2_CLK_SRC 24
+#define NW_GCC_GPLL0 25
+#define NW_GCC_GPLL0_OUT_EVEN 26
+#define NW_GCC_GPLL3 27
+#define NW_GCC_GPU_CFG_AHB_CLK 28
+#define NW_GCC_GPU_GPLL0_CLK_SRC 29
+#define NW_GCC_GPU_GPLL0_DIV_CLK_SRC 30
+#define NW_GCC_GPU_SMMU_VOTE_CLK 31
+#define NW_GCC_MMU_1_TCU_VOTE_CLK 32
+#define NW_GCC_QUPV3_WRAP0_CORE_2X_CLK 33
+#define NW_GCC_QUPV3_WRAP0_CORE_CLK 34
+#define NW_GCC_QUPV3_WRAP0_M_AHB_CLK 35
+#define NW_GCC_QUPV3_WRAP0_S0_CLK 36
+#define NW_GCC_QUPV3_WRAP0_S0_CLK_SRC 37
+#define NW_GCC_QUPV3_WRAP0_S1_CLK 38
+#define NW_GCC_QUPV3_WRAP0_S1_CLK_SRC 39
+#define NW_GCC_QUPV3_WRAP0_S2_CLK 40
+#define NW_GCC_QUPV3_WRAP0_S2_CLK_SRC 41
+#define NW_GCC_QUPV3_WRAP0_S3_CLK 42
+#define NW_GCC_QUPV3_WRAP0_S3_CLK_SRC 43
+#define NW_GCC_QUPV3_WRAP0_S4_CLK 44
+#define NW_GCC_QUPV3_WRAP0_S4_CLK_SRC 45
+#define NW_GCC_QUPV3_WRAP0_S5_CLK 46
+#define NW_GCC_QUPV3_WRAP0_S5_CLK_SRC 47
+#define NW_GCC_QUPV3_WRAP0_S6_CLK 48
+#define NW_GCC_QUPV3_WRAP0_S6_CLK_SRC 49
+#define NW_GCC_QUPV3_WRAP0_S_AHB_CLK 50
+#define NW_GCC_QUPV3_WRAP1_CORE_2X_CLK 51
+#define NW_GCC_QUPV3_WRAP1_CORE_CLK 52
+#define NW_GCC_QUPV3_WRAP1_M_AHB_CLK 53
+#define NW_GCC_QUPV3_WRAP1_S0_CLK 54
+#define NW_GCC_QUPV3_WRAP1_S0_CLK_SRC 55
+#define NW_GCC_QUPV3_WRAP1_S1_CLK 56
+#define NW_GCC_QUPV3_WRAP1_S1_CLK_SRC 57
+#define NW_GCC_QUPV3_WRAP1_S2_CLK 58
+#define NW_GCC_QUPV3_WRAP1_S2_CLK_SRC 59
+#define NW_GCC_QUPV3_WRAP1_S3_CLK 60
+#define NW_GCC_QUPV3_WRAP1_S3_CLK_SRC 61
+#define NW_GCC_QUPV3_WRAP1_S4_CLK 62
+#define NW_GCC_QUPV3_WRAP1_S4_CLK_SRC 63
+#define NW_GCC_QUPV3_WRAP1_S5_CLK 64
+#define NW_GCC_QUPV3_WRAP1_S5_CLK_SRC 65
+#define NW_GCC_QUPV3_WRAP1_S6_CLK 66
+#define NW_GCC_QUPV3_WRAP1_S6_CLK_SRC 67
+#define NW_GCC_QUPV3_WRAP1_S_AHB_CLK 68
+#define NW_GCC_QUPV3_WRAP3_CORE_2X_CLK 69
+#define NW_GCC_QUPV3_WRAP3_CORE_CLK 70
+#define NW_GCC_QUPV3_WRAP3_M_CLK 71
+#define NW_GCC_QUPV3_WRAP3_QSPI_REF_CLK 72
+#define NW_GCC_QUPV3_WRAP3_QSPI_REF_CLK_SRC 73
+#define NW_GCC_QUPV3_WRAP3_S0_CLK 74
+#define NW_GCC_QUPV3_WRAP3_S0_CLK_SRC 75
+#define NW_GCC_QUPV3_WRAP3_S_AHB_CLK 76
+#define NW_GCC_UFS_0_PHY_AHB_CLK 77
+#define NW_GCC_UFS_0_PHY_AXI_CLK 78
+#define NW_GCC_UFS_0_PHY_AXI_CLK_SRC 79
+#define NW_GCC_UFS_0_PHY_ICE_CORE_CLK 80
+#define NW_GCC_UFS_0_PHY_ICE_CORE_CLK_SRC 81
+#define NW_GCC_UFS_0_PHY_PHY_AUX_CLK 82
+#define NW_GCC_UFS_0_PHY_PHY_AUX_CLK_SRC 83
+#define NW_GCC_UFS_0_PHY_RX_SYMBOL_0_CLK 84
+#define NW_GCC_UFS_0_PHY_RX_SYMBOL_0_CLK_SRC 85
+#define NW_GCC_UFS_0_PHY_RX_SYMBOL_1_CLK 86
+#define NW_GCC_UFS_0_PHY_RX_SYMBOL_1_CLK_SRC 87
+#define NW_GCC_UFS_0_PHY_TX_SYMBOL_0_CLK 88
+#define NW_GCC_UFS_0_PHY_TX_SYMBOL_0_CLK_SRC 89
+#define NW_GCC_UFS_0_PHY_UNIPRO_CORE_CLK 90
+#define NW_GCC_UFS_0_PHY_UNIPRO_CORE_CLK_SRC 91
+#define NW_GCC_UFS_1_PHY_AHB_CLK 92
+#define NW_GCC_UFS_1_PHY_AXI_CLK 93
+#define NW_GCC_UFS_1_PHY_AXI_CLK_SRC 94
+#define NW_GCC_UFS_1_PHY_ICE_CORE_CLK 95
+#define NW_GCC_UFS_1_PHY_ICE_CORE_CLK_SRC 96
+#define NW_GCC_UFS_1_PHY_PHY_AUX_CLK 97
+#define NW_GCC_UFS_1_PHY_PHY_AUX_CLK_SRC 98
+#define NW_GCC_UFS_1_PHY_RX_SYMBOL_0_CLK 99
+#define NW_GCC_UFS_1_PHY_RX_SYMBOL_0_CLK_SRC 100
+#define NW_GCC_UFS_1_PHY_RX_SYMBOL_1_CLK 101
+#define NW_GCC_UFS_1_PHY_RX_SYMBOL_1_CLK_SRC 102
+#define NW_GCC_UFS_1_PHY_TX_SYMBOL_0_CLK 103
+#define NW_GCC_UFS_1_PHY_TX_SYMBOL_0_CLK_SRC 104
+#define NW_GCC_UFS_1_PHY_UNIPRO_CORE_CLK 105
+#define NW_GCC_UFS_1_PHY_UNIPRO_CORE_CLK_SRC 106
+#define NW_GCC_VIDEO_AHB_CLK 107
+#define NW_GCC_VIDEO_AXI0_CLK 108
+#define NW_GCC_VIDEO_AXI0C_CLK 109
+#define NW_GCC_VIDEO_XO_CLK 110
+
+/* NW_GCC power domains */
+#define NW_GCC_UFS_0_MEM_PHY_GDSC 0
+#define NW_GCC_UFS_0_PHY_GDSC 1
+#define NW_GCC_UFS_1_MEM_PHY_GDSC 2
+#define NW_GCC_UFS_1_PHY_GDSC 3
+
+/* NW_GCC resets */
+#define NW_GCC_CAMERA_BCR 0
+#define NW_GCC_DISPLAY_0_BCR 1
+#define NW_GCC_DISPLAY_1_BCR 2
+#define NW_GCC_DPRX0_BCR 3
+#define NW_GCC_EVA_BCR 4
+#define NW_GCC_GPU_BCR 5
+#define NW_GCC_QUPV3_WRAPPER_0_BCR 6
+#define NW_GCC_QUPV3_WRAPPER_1_BCR 7
+#define NW_GCC_QUPV3_WRAPPER_3_BCR 8
+#define NW_GCC_UFS_0_PHY_BCR 9
+#define NW_GCC_UFS_1_PHY_BCR 10
+#define NW_GCC_VIDEO_BCR 11
+#define NW_GCC_VIDEO_AXI0_CLK_ARES 12
+#define NW_GCC_VIDEO_AXI0C_CLK_ARES 13
+
+#endif
--
2.47.3
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/6] clk: qcom: add the Global Clock Controller driver for Seca
2026-11-27 11:41 [PATCH 0/6] clk: qcom: add clock drivers for Qualcomm Seca Bartosz Golaszewski
2026-11-27 11:41 ` [PATCH 1/6] dt-bindings: clock: qcom: document the Seca Global Clock Controller Bartosz Golaszewski
@ 2026-11-27 11:41 ` Bartosz Golaszewski
2026-11-27 11:41 ` [PATCH 3/6] dt-bindings: clock: qcom: document the Seca TCSR Clock Controller Bartosz Golaszewski
` (3 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Bartosz Golaszewski @ 2026-11-27 11:41 UTC (permalink / raw)
To: Bjorn Andersson, Abel Vesa, Stephen Boyd, Brian Masney,
Jerome Brunet, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Bartosz Golaszewski, Taniya Das
Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel,
Bartosz Golaszewski, Tyler Baker
Add the driver for the North East and North West modules of the Global
Clock Controller on the Qualcomm Seca SoC.
Co-developed-by: Tyler Baker <tyler.baker@oss.qualcomm.com>
Signed-off-by: Tyler Baker <tyler.baker@oss.qualcomm.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
drivers/clk/qcom/Kconfig | 11 +
drivers/clk/qcom/Makefile | 1 +
drivers/clk/qcom/negcc-seca.c | 1458 ++++++++++++++++++++++++++++
drivers/clk/qcom/nwgcc-seca.c | 2138 +++++++++++++++++++++++++++++++++++++++++
4 files changed, 3608 insertions(+)
diff --git a/drivers/clk/qcom/Kconfig b/drivers/clk/qcom/Kconfig
index e6c58e8b184963fa3d885a7661ad982aaa5bcbc0..0680926b0ae0903d46fed642dd60e6187642e56b 100644
--- a/drivers/clk/qcom/Kconfig
+++ b/drivers/clk/qcom/Kconfig
@@ -328,6 +328,17 @@ config CLK_NORD_VIDEOCC
Say Y if you want to support video devices and functionality such as
video encode/decode.
+config CLK_SECA_GCC
+ tristate "Seca Global Clock Controller"
+ depends on ARM64 || COMPILE_TEST
+ select QCOM_GDSC
+ default ARCH_QCOM
+ help
+ Support for the global clock controller on Seca devices.
+ Say Y if you want to use peripheral devices such as UART, SPI, I2C,
+ USB, SD/UFS, PCIe etc. The clock controller is a combination of
+ NE_GCC and NW_GCC.
+
config CLK_SHIKRA_GCC
tristate "Shikra Global Clock Controller"
depends on ARM64 || COMPILE_TEST
diff --git a/drivers/clk/qcom/Makefile b/drivers/clk/qcom/Makefile
index f84d7343a3a475dd9ef1fa77bf0de25fab0d9e75..270c1b97b41f3db7f1d2fa98a262a8c8e189becc 100644
--- a/drivers/clk/qcom/Makefile
+++ b/drivers/clk/qcom/Makefile
@@ -56,6 +56,7 @@ obj-$(CONFIG_CLK_NORD_GCC) += gcc-nord.o negcc-nord.o nwgcc-nord.o segcc-nord.o
obj-$(CONFIG_CLK_NORD_GPUCC) += gpucc-nord.o gpu2cc-nord.o
obj-$(CONFIG_CLK_NORD_TCSRCC) += tcsrcc-nord.o
obj-$(CONFIG_CLK_NORD_VIDEOCC) += videocc-glymur.o
+obj-$(CONFIG_CLK_SECA_GCC) += negcc-seca.o nwgcc-seca.o
obj-$(CONFIG_CLK_SHIKRA_AUDIOCORECC) += audiocorecc-shikra.o
obj-$(CONFIG_CLK_SHIKRA_GCC) += gcc-shikra.o
obj-$(CONFIG_CLK_X1E80100_CAMCC) += camcc-x1e80100.o
diff --git a/drivers/clk/qcom/negcc-seca.c b/drivers/clk/qcom/negcc-seca.c
new file mode 100644
index 0000000000000000000000000000000000000000..116d713cda01a82e097a152a2769c3cbe9cd0f08
--- /dev/null
+++ b/drivers/clk/qcom/negcc-seca.c
@@ -0,0 +1,1458 @@
+// SPDX-License-Identifier: GPL-2.0-only
+/*
+ * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
+ */
+
+#include <linux/clk-provider.h>
+#include <linux/module.h>
+#include <linux/platform_device.h>
+#include <linux/regmap.h>
+
+#include <dt-bindings/clock/qcom,seca-negcc.h>
+
+#include "clk-alpha-pll.h"
+#include "clk-branch.h"
+#include "clk-pll.h"
+#include "clk-rcg.h"
+#include "clk-regmap.h"
+#include "clk-regmap-divider.h"
+#include "clk-regmap-phy-mux.h"
+#include "common.h"
+#include "gdsc.h"
+#include "reset.h"
+
+enum {
+ DT_BI_TCXO,
+ DT_SLEEP_CLK,
+ DT_USB3_PHY_SEC_WRAPPER_NE_GCC_USB31_PIPE_CLK,
+ DT_USB3_PHY_WRAPPER_NE_GCC_USB31_PIPE_CLK,
+};
+
+enum {
+ P_BI_TCXO,
+ P_NE_GCC_GPLL0_OUT_EVEN,
+ P_NE_GCC_GPLL0_OUT_MAIN,
+ P_SLEEP_CLK,
+};
+
+static struct clk_alpha_pll ne_gcc_gpll0 = {
+ .offset = 0x0,
+ .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_LUCID_OLE],
+ .clkr = {
+ .enable_reg = 0x57008,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_gpll0",
+ .parent_data = &(const struct clk_parent_data) {
+ .index = DT_BI_TCXO,
+ },
+ .num_parents = 1,
+ .ops = &clk_alpha_pll_fixed_lucid_ole_ops,
+ },
+ },
+};
+
+static const struct clk_div_table post_div_table_ne_gcc_gpll0_out_even[] = {
+ { 0x1, 2 },
+ { }
+};
+
+static struct clk_alpha_pll_postdiv ne_gcc_gpll0_out_even = {
+ .offset = 0x0,
+ .post_div_shift = 10,
+ .post_div_table = post_div_table_ne_gcc_gpll0_out_even,
+ .num_post_div = ARRAY_SIZE(post_div_table_ne_gcc_gpll0_out_even),
+ .width = 4,
+ .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_LUCID_OLE],
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_gpll0_out_even",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_gpll0.clkr.hw,
+ },
+ .num_parents = 1,
+ .ops = &clk_alpha_pll_postdiv_lucid_ole_ops,
+ },
+};
+
+static const struct parent_map ne_gcc_parent_map_0[] = {
+ { P_BI_TCXO, 0 },
+ { P_NE_GCC_GPLL0_OUT_MAIN, 1 },
+};
+
+static const struct clk_parent_data ne_gcc_parent_data_0[] = {
+ { .index = DT_BI_TCXO },
+ { .hw = &ne_gcc_gpll0.clkr.hw },
+};
+
+static const struct parent_map ne_gcc_parent_map_1[] = {
+ { P_BI_TCXO, 0 },
+ { P_NE_GCC_GPLL0_OUT_MAIN, 1 },
+ { P_SLEEP_CLK, 5 },
+};
+
+static const struct clk_parent_data ne_gcc_parent_data_1[] = {
+ { .index = DT_BI_TCXO },
+ { .hw = &ne_gcc_gpll0.clkr.hw },
+ { .index = DT_SLEEP_CLK },
+};
+
+static const struct parent_map ne_gcc_parent_map_2[] = {
+ { P_BI_TCXO, 0 },
+ { P_NE_GCC_GPLL0_OUT_MAIN, 1 },
+ { P_NE_GCC_GPLL0_OUT_EVEN, 5 },
+};
+
+static const struct clk_parent_data ne_gcc_parent_data_2[] = {
+ { .index = DT_BI_TCXO },
+ { .hw = &ne_gcc_gpll0.clkr.hw },
+ { .hw = &ne_gcc_gpll0_out_even.clkr.hw },
+};
+
+static const struct parent_map ne_gcc_parent_map_3[] = {
+ { P_BI_TCXO, 0 },
+ { P_SLEEP_CLK, 5 },
+};
+
+static const struct clk_parent_data ne_gcc_parent_data_3[] = {
+ { .index = DT_BI_TCXO },
+ { .index = DT_SLEEP_CLK },
+};
+
+static struct clk_regmap_phy_mux ne_gcc_usb3_prim_phy_pipe_clk_src = {
+ .reg = 0x2a078,
+ .clkr = {
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb3_prim_phy_pipe_clk_src",
+ .parent_data = &(const struct clk_parent_data){
+ .index = DT_USB3_PHY_WRAPPER_NE_GCC_USB31_PIPE_CLK,
+ },
+ .num_parents = 1,
+ .ops = &clk_regmap_phy_mux_ops,
+ },
+ },
+};
+
+static struct clk_regmap_phy_mux ne_gcc_usb3_sec_phy_pipe_clk_src = {
+ .reg = 0x2c078,
+ .clkr = {
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb3_sec_phy_pipe_clk_src",
+ .parent_data = &(const struct clk_parent_data){
+ .index = DT_USB3_PHY_SEC_WRAPPER_NE_GCC_USB31_PIPE_CLK,
+ },
+ .num_parents = 1,
+ .ops = &clk_regmap_phy_mux_ops,
+ },
+ },
+};
+
+static const struct freq_tbl ftbl_ne_gcc_gp1_clk_src[] = {
+ F(66666667, P_NE_GCC_GPLL0_OUT_MAIN, 9, 0, 0),
+ F(100000000, P_NE_GCC_GPLL0_OUT_MAIN, 6, 0, 0),
+ F(200000000, P_NE_GCC_GPLL0_OUT_MAIN, 3, 0, 0),
+ { }
+};
+
+static struct clk_rcg2 ne_gcc_gp1_clk_src = {
+ .cmd_rcgr = 0x21004,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = ne_gcc_parent_map_1,
+ .freq_tbl = ftbl_ne_gcc_gp1_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_gp1_clk_src",
+ .parent_data = ne_gcc_parent_data_1,
+ .num_parents = ARRAY_SIZE(ne_gcc_parent_data_1),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_ops,
+ },
+};
+
+static struct clk_rcg2 ne_gcc_gp2_clk_src = {
+ .cmd_rcgr = 0x22004,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = ne_gcc_parent_map_1,
+ .freq_tbl = ftbl_ne_gcc_gp1_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_gp2_clk_src",
+ .parent_data = ne_gcc_parent_data_1,
+ .num_parents = ARRAY_SIZE(ne_gcc_parent_data_1),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_ops,
+ },
+};
+
+static const struct freq_tbl ftbl_ne_gcc_qupv3_wrap2_s0_clk_src[] = {
+ F(7372800, P_NE_GCC_GPLL0_OUT_MAIN, 1, 192, 15625),
+ F(14745600, P_NE_GCC_GPLL0_OUT_MAIN, 1, 384, 15625),
+ F(19200000, P_BI_TCXO, 1, 0, 0),
+ F(29491200, P_NE_GCC_GPLL0_OUT_MAIN, 1, 768, 15625),
+ F(32000000, P_NE_GCC_GPLL0_OUT_MAIN, 1, 4, 75),
+ F(48000000, P_NE_GCC_GPLL0_OUT_MAIN, 1, 2, 25),
+ F(51200000, P_NE_GCC_GPLL0_OUT_MAIN, 1, 32, 375),
+ F(64000000, P_NE_GCC_GPLL0_OUT_MAIN, 1, 8, 75),
+ F(66666667, P_NE_GCC_GPLL0_OUT_MAIN, 9, 0, 0),
+ F(75000000, P_NE_GCC_GPLL0_OUT_MAIN, 8, 0, 0),
+ F(80000000, P_NE_GCC_GPLL0_OUT_MAIN, 1, 2, 15),
+ F(96000000, P_NE_GCC_GPLL0_OUT_MAIN, 1, 4, 25),
+ F(100000000, P_NE_GCC_GPLL0_OUT_MAIN, 6, 0, 0),
+ F(102400000, P_NE_GCC_GPLL0_OUT_MAIN, 1, 64, 375),
+ F(112000000, P_NE_GCC_GPLL0_OUT_MAIN, 1, 14, 75),
+ F(117964800, P_NE_GCC_GPLL0_OUT_MAIN, 1, 3072, 15625),
+ F(120000000, P_NE_GCC_GPLL0_OUT_MAIN, 5, 0, 0),
+ { }
+};
+
+static struct clk_init_data ne_gcc_qupv3_wrap2_s0_clk_src_init = {
+ .name = "ne_gcc_qupv3_wrap2_s0_clk_src",
+ .parent_data = ne_gcc_parent_data_0,
+ .num_parents = ARRAY_SIZE(ne_gcc_parent_data_0),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_no_init_park_ops,
+};
+
+static struct clk_rcg2 ne_gcc_qupv3_wrap2_s0_clk_src = {
+ .cmd_rcgr = 0x3816c,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = ne_gcc_parent_map_0,
+ .freq_tbl = ftbl_ne_gcc_qupv3_wrap2_s0_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &ne_gcc_qupv3_wrap2_s0_clk_src_init,
+};
+
+static struct clk_init_data ne_gcc_qupv3_wrap2_s1_clk_src_init = {
+ .name = "ne_gcc_qupv3_wrap2_s1_clk_src",
+ .parent_data = ne_gcc_parent_data_0,
+ .num_parents = ARRAY_SIZE(ne_gcc_parent_data_0),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_no_init_park_ops,
+};
+
+static struct clk_rcg2 ne_gcc_qupv3_wrap2_s1_clk_src = {
+ .cmd_rcgr = 0x382a8,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = ne_gcc_parent_map_0,
+ .freq_tbl = ftbl_ne_gcc_qupv3_wrap2_s0_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &ne_gcc_qupv3_wrap2_s1_clk_src_init,
+};
+
+static const struct freq_tbl ftbl_ne_gcc_qupv3_wrap2_s2_clk_src[] = {
+ F(7372800, P_NE_GCC_GPLL0_OUT_MAIN, 1, 192, 15625),
+ F(14745600, P_NE_GCC_GPLL0_OUT_MAIN, 1, 384, 15625),
+ F(19200000, P_BI_TCXO, 1, 0, 0),
+ F(29491200, P_NE_GCC_GPLL0_OUT_MAIN, 1, 768, 15625),
+ F(32000000, P_NE_GCC_GPLL0_OUT_MAIN, 1, 4, 75),
+ F(48000000, P_NE_GCC_GPLL0_OUT_MAIN, 1, 2, 25),
+ F(51200000, P_NE_GCC_GPLL0_OUT_MAIN, 1, 32, 375),
+ F(64000000, P_NE_GCC_GPLL0_OUT_MAIN, 1, 8, 75),
+ F(66666667, P_NE_GCC_GPLL0_OUT_MAIN, 9, 0, 0),
+ F(75000000, P_NE_GCC_GPLL0_OUT_MAIN, 8, 0, 0),
+ F(80000000, P_NE_GCC_GPLL0_OUT_MAIN, 1, 2, 15),
+ F(96000000, P_NE_GCC_GPLL0_OUT_MAIN, 1, 4, 25),
+ F(100000000, P_NE_GCC_GPLL0_OUT_MAIN, 6, 0, 0),
+ { }
+};
+
+static struct clk_init_data ne_gcc_qupv3_wrap2_s2_clk_src_init = {
+ .name = "ne_gcc_qupv3_wrap2_s2_clk_src",
+ .parent_data = ne_gcc_parent_data_0,
+ .num_parents = ARRAY_SIZE(ne_gcc_parent_data_0),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_no_init_park_ops,
+};
+
+static struct clk_rcg2 ne_gcc_qupv3_wrap2_s2_clk_src = {
+ .cmd_rcgr = 0x383e4,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = ne_gcc_parent_map_0,
+ .freq_tbl = ftbl_ne_gcc_qupv3_wrap2_s2_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &ne_gcc_qupv3_wrap2_s2_clk_src_init,
+};
+
+static struct clk_init_data ne_gcc_qupv3_wrap2_s3_clk_src_init = {
+ .name = "ne_gcc_qupv3_wrap2_s3_clk_src",
+ .parent_data = ne_gcc_parent_data_0,
+ .num_parents = ARRAY_SIZE(ne_gcc_parent_data_0),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_no_init_park_ops,
+};
+
+static struct clk_rcg2 ne_gcc_qupv3_wrap2_s3_clk_src = {
+ .cmd_rcgr = 0x38520,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = ne_gcc_parent_map_0,
+ .freq_tbl = ftbl_ne_gcc_qupv3_wrap2_s2_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &ne_gcc_qupv3_wrap2_s3_clk_src_init,
+};
+
+static struct clk_init_data ne_gcc_qupv3_wrap2_s4_clk_src_init = {
+ .name = "ne_gcc_qupv3_wrap2_s4_clk_src",
+ .parent_data = ne_gcc_parent_data_0,
+ .num_parents = ARRAY_SIZE(ne_gcc_parent_data_0),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_no_init_park_ops,
+};
+
+static struct clk_rcg2 ne_gcc_qupv3_wrap2_s4_clk_src = {
+ .cmd_rcgr = 0x3865c,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = ne_gcc_parent_map_0,
+ .freq_tbl = ftbl_ne_gcc_qupv3_wrap2_s2_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &ne_gcc_qupv3_wrap2_s4_clk_src_init,
+};
+
+static struct clk_init_data ne_gcc_qupv3_wrap2_s5_clk_src_init = {
+ .name = "ne_gcc_qupv3_wrap2_s5_clk_src",
+ .parent_data = ne_gcc_parent_data_0,
+ .num_parents = ARRAY_SIZE(ne_gcc_parent_data_0),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_no_init_park_ops,
+};
+
+static struct clk_rcg2 ne_gcc_qupv3_wrap2_s5_clk_src = {
+ .cmd_rcgr = 0x38798,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = ne_gcc_parent_map_0,
+ .freq_tbl = ftbl_ne_gcc_qupv3_wrap2_s2_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &ne_gcc_qupv3_wrap2_s5_clk_src_init,
+};
+
+static struct clk_init_data ne_gcc_qupv3_wrap2_s6_clk_src_init = {
+ .name = "ne_gcc_qupv3_wrap2_s6_clk_src",
+ .parent_data = ne_gcc_parent_data_0,
+ .num_parents = ARRAY_SIZE(ne_gcc_parent_data_0),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_no_init_park_ops,
+};
+
+static struct clk_rcg2 ne_gcc_qupv3_wrap2_s6_clk_src = {
+ .cmd_rcgr = 0x388d4,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = ne_gcc_parent_map_0,
+ .freq_tbl = ftbl_ne_gcc_qupv3_wrap2_s2_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &ne_gcc_qupv3_wrap2_s6_clk_src_init,
+};
+
+static const struct freq_tbl ftbl_ne_gcc_sdcc4_apps_clk_src[] = {
+ F(144000, P_BI_TCXO, 16, 3, 25),
+ F(400000, P_BI_TCXO, 12, 1, 4),
+ F(19200000, P_BI_TCXO, 1, 0, 0),
+ F(20000000, P_NE_GCC_GPLL0_OUT_MAIN, 1, 1, 30),
+ F(25000000, P_NE_GCC_GPLL0_OUT_MAIN, 1, 1, 24),
+ F(37500000, P_NE_GCC_GPLL0_OUT_MAIN, 16, 0, 0),
+ F(50000000, P_NE_GCC_GPLL0_OUT_MAIN, 12, 0, 0),
+ F(100000000, P_NE_GCC_GPLL0_OUT_MAIN, 6, 0, 0),
+ { }
+};
+
+static struct clk_rcg2 ne_gcc_sdcc4_apps_clk_src = {
+ .cmd_rcgr = 0x1801c,
+ .mnd_width = 8,
+ .hid_width = 5,
+ .parent_map = ne_gcc_parent_map_0,
+ .freq_tbl = ftbl_ne_gcc_sdcc4_apps_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_sdcc4_apps_clk_src",
+ .parent_data = ne_gcc_parent_data_0,
+ .num_parents = ARRAY_SIZE(ne_gcc_parent_data_0),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_floor_ops,
+ },
+};
+
+static const struct freq_tbl ftbl_ne_gcc_usb20_master_clk_src[] = {
+ F(75000000, P_NE_GCC_GPLL0_OUT_MAIN, 8, 0, 0),
+ F(120000000, P_NE_GCC_GPLL0_OUT_MAIN, 5, 0, 0),
+ { }
+};
+
+static struct clk_rcg2 ne_gcc_usb20_master_clk_src = {
+ .cmd_rcgr = 0x31030,
+ .mnd_width = 8,
+ .hid_width = 5,
+ .parent_map = ne_gcc_parent_map_0,
+ .freq_tbl = ftbl_ne_gcc_usb20_master_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb20_master_clk_src",
+ .parent_data = ne_gcc_parent_data_0,
+ .num_parents = ARRAY_SIZE(ne_gcc_parent_data_0),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_ops,
+ },
+};
+
+static const struct freq_tbl ftbl_ne_gcc_usb20_mock_utmi_clk_src[] = {
+ F(19200000, P_BI_TCXO, 1, 0, 0),
+ { }
+};
+
+static struct clk_rcg2 ne_gcc_usb20_mock_utmi_clk_src = {
+ .cmd_rcgr = 0x31048,
+ .mnd_width = 0,
+ .hid_width = 5,
+ .parent_map = ne_gcc_parent_map_0,
+ .freq_tbl = ftbl_ne_gcc_usb20_mock_utmi_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb20_mock_utmi_clk_src",
+ .parent_data = ne_gcc_parent_data_0,
+ .num_parents = ARRAY_SIZE(ne_gcc_parent_data_0),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_ops,
+ },
+};
+
+static const struct freq_tbl ftbl_ne_gcc_usb31_prim_master_clk_src[] = {
+ F(85714286, P_NE_GCC_GPLL0_OUT_MAIN, 7, 0, 0),
+ F(133333333, P_NE_GCC_GPLL0_OUT_MAIN, 4.5, 0, 0),
+ F(200000000, P_NE_GCC_GPLL0_OUT_MAIN, 3, 0, 0),
+ F(240000000, P_NE_GCC_GPLL0_OUT_MAIN, 2.5, 0, 0),
+ { }
+};
+
+static struct clk_rcg2 ne_gcc_usb31_prim_master_clk_src = {
+ .cmd_rcgr = 0x2a038,
+ .mnd_width = 8,
+ .hid_width = 5,
+ .parent_map = ne_gcc_parent_map_2,
+ .freq_tbl = ftbl_ne_gcc_usb31_prim_master_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb31_prim_master_clk_src",
+ .parent_data = ne_gcc_parent_data_2,
+ .num_parents = ARRAY_SIZE(ne_gcc_parent_data_2),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_ops,
+ },
+};
+
+static struct clk_rcg2 ne_gcc_usb31_prim_mock_utmi_clk_src = {
+ .cmd_rcgr = 0x2a050,
+ .mnd_width = 0,
+ .hid_width = 5,
+ .parent_map = ne_gcc_parent_map_0,
+ .freq_tbl = ftbl_ne_gcc_usb20_mock_utmi_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb31_prim_mock_utmi_clk_src",
+ .parent_data = ne_gcc_parent_data_0,
+ .num_parents = ARRAY_SIZE(ne_gcc_parent_data_0),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_ops,
+ },
+};
+
+static struct clk_rcg2 ne_gcc_usb31_sec_master_clk_src = {
+ .cmd_rcgr = 0x2c038,
+ .mnd_width = 8,
+ .hid_width = 5,
+ .parent_map = ne_gcc_parent_map_0,
+ .freq_tbl = ftbl_ne_gcc_usb31_prim_master_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb31_sec_master_clk_src",
+ .parent_data = ne_gcc_parent_data_0,
+ .num_parents = ARRAY_SIZE(ne_gcc_parent_data_0),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_ops,
+ },
+};
+
+static struct clk_rcg2 ne_gcc_usb31_sec_mock_utmi_clk_src = {
+ .cmd_rcgr = 0x2c050,
+ .mnd_width = 0,
+ .hid_width = 5,
+ .parent_map = ne_gcc_parent_map_0,
+ .freq_tbl = ftbl_ne_gcc_usb20_mock_utmi_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb31_sec_mock_utmi_clk_src",
+ .parent_data = ne_gcc_parent_data_0,
+ .num_parents = ARRAY_SIZE(ne_gcc_parent_data_0),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_ops,
+ },
+};
+
+static struct clk_rcg2 ne_gcc_usb3_prim_phy_aux_clk_src = {
+ .cmd_rcgr = 0x2a07c,
+ .mnd_width = 0,
+ .hid_width = 5,
+ .parent_map = ne_gcc_parent_map_3,
+ .freq_tbl = ftbl_ne_gcc_usb20_mock_utmi_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb3_prim_phy_aux_clk_src",
+ .parent_data = ne_gcc_parent_data_3,
+ .num_parents = ARRAY_SIZE(ne_gcc_parent_data_3),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_ops,
+ },
+};
+
+static struct clk_rcg2 ne_gcc_usb3_sec_phy_aux_clk_src = {
+ .cmd_rcgr = 0x2c07c,
+ .mnd_width = 0,
+ .hid_width = 5,
+ .parent_map = ne_gcc_parent_map_3,
+ .freq_tbl = ftbl_ne_gcc_usb20_mock_utmi_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb3_sec_phy_aux_clk_src",
+ .parent_data = ne_gcc_parent_data_3,
+ .num_parents = ARRAY_SIZE(ne_gcc_parent_data_3),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_ops,
+ },
+};
+
+static struct clk_regmap_div ne_gcc_usb20_mock_utmi_postdiv_clk_src = {
+ .reg = 0x31060,
+ .shift = 0,
+ .width = 4,
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb20_mock_utmi_postdiv_clk_src",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_usb20_mock_utmi_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_regmap_div_ro_ops,
+ },
+};
+
+static struct clk_regmap_div ne_gcc_usb31_prim_mock_utmi_postdiv_clk_src = {
+ .reg = 0x2a068,
+ .shift = 0,
+ .width = 4,
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb31_prim_mock_utmi_postdiv_clk_src",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_usb31_prim_mock_utmi_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_regmap_div_ro_ops,
+ },
+};
+
+static struct clk_regmap_div ne_gcc_usb31_sec_mock_utmi_postdiv_clk_src = {
+ .reg = 0x2c068,
+ .shift = 0,
+ .width = 4,
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb31_sec_mock_utmi_postdiv_clk_src",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_usb31_sec_mock_utmi_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_regmap_div_ro_ops,
+ },
+};
+
+static struct clk_branch ne_gcc_aggre_noc_usb2_axi_clk = {
+ .halt_reg = 0x31068,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x31068,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x31068,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_aggre_noc_usb2_axi_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_usb20_master_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_aggre_noc_usb3_prim_axi_clk = {
+ .halt_reg = 0x2a098,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x2a098,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x2a098,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_aggre_noc_usb3_prim_axi_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_usb31_prim_master_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_aggre_noc_usb3_sec_axi_clk = {
+ .halt_reg = 0x2c098,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x2c098,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x2c098,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_aggre_noc_usb3_sec_axi_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_usb31_sec_master_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_cnoc_usb2_axi_clk = {
+ .halt_reg = 0x31064,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x31064,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x31064,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_cnoc_usb2_axi_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_usb20_master_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_cnoc_usb3_prim_axi_clk = {
+ .halt_reg = 0x2a094,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x2a094,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x2a094,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_cnoc_usb3_prim_axi_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_usb31_prim_master_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_cnoc_usb3_sec_axi_clk = {
+ .halt_reg = 0x2c094,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x2c094,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x2c094,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_cnoc_usb3_sec_axi_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_usb31_sec_master_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_frq_measure_ref_clk = {
+ .halt_reg = 0x20008,
+ .halt_check = BRANCH_HALT,
+ .clkr = {
+ .enable_reg = 0x20008,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_frq_measure_ref_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_gp1_clk = {
+ .halt_reg = 0x21000,
+ .halt_check = BRANCH_HALT,
+ .clkr = {
+ .enable_reg = 0x21000,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_gp1_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_gp1_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_gp2_clk = {
+ .halt_reg = 0x22000,
+ .halt_check = BRANCH_HALT,
+ .clkr = {
+ .enable_reg = 0x22000,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_gp2_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_gp2_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_qupv3_wrap2_core_2x_clk = {
+ .halt_reg = 0x38020,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x57000,
+ .enable_mask = BIT(24),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_qupv3_wrap2_core_2x_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_qupv3_wrap2_core_clk = {
+ .halt_reg = 0x3800c,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x57000,
+ .enable_mask = BIT(23),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_qupv3_wrap2_core_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_qupv3_wrap2_m_ahb_clk = {
+ .halt_reg = 0x38004,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x38004,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x57000,
+ .enable_mask = BIT(21),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_qupv3_wrap2_m_ahb_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_qupv3_wrap2_s0_clk = {
+ .halt_reg = 0x3815c,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x57000,
+ .enable_mask = BIT(25),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_qupv3_wrap2_s0_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_qupv3_wrap2_s0_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_qupv3_wrap2_s1_clk = {
+ .halt_reg = 0x38298,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x57000,
+ .enable_mask = BIT(26),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_qupv3_wrap2_s1_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_qupv3_wrap2_s1_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_qupv3_wrap2_s2_clk = {
+ .halt_reg = 0x383d4,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x57000,
+ .enable_mask = BIT(27),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_qupv3_wrap2_s2_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_qupv3_wrap2_s2_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_qupv3_wrap2_s3_clk = {
+ .halt_reg = 0x38510,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x57000,
+ .enable_mask = BIT(28),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_qupv3_wrap2_s3_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_qupv3_wrap2_s3_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_qupv3_wrap2_s4_clk = {
+ .halt_reg = 0x3864c,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x57000,
+ .enable_mask = BIT(29),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_qupv3_wrap2_s4_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_qupv3_wrap2_s4_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_qupv3_wrap2_s5_clk = {
+ .halt_reg = 0x38788,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x57000,
+ .enable_mask = BIT(30),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_qupv3_wrap2_s5_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_qupv3_wrap2_s5_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_qupv3_wrap2_s6_clk = {
+ .halt_reg = 0x388c4,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x57000,
+ .enable_mask = BIT(31),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_qupv3_wrap2_s6_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_qupv3_wrap2_s6_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_qupv3_wrap2_s_ahb_clk = {
+ .halt_reg = 0x38008,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x38008,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x57000,
+ .enable_mask = BIT(22),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_qupv3_wrap2_s_ahb_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_sdcc4_apps_clk = {
+ .halt_reg = 0x18004,
+ .halt_check = BRANCH_HALT,
+ .clkr = {
+ .enable_reg = 0x18004,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_sdcc4_apps_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_sdcc4_apps_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_sdcc4_axi_clk = {
+ .halt_reg = 0x18014,
+ .halt_check = BRANCH_HALT,
+ .clkr = {
+ .enable_reg = 0x18014,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_sdcc4_axi_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_usb20_master_clk = {
+ .halt_reg = 0x31018,
+ .halt_check = BRANCH_HALT,
+ .clkr = {
+ .enable_reg = 0x31018,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb20_master_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_usb20_master_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_usb20_mock_utmi_clk = {
+ .halt_reg = 0x3102c,
+ .halt_check = BRANCH_HALT,
+ .clkr = {
+ .enable_reg = 0x3102c,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb20_mock_utmi_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_usb20_mock_utmi_postdiv_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_usb20_sleep_clk = {
+ .halt_reg = 0x31028,
+ .halt_check = BRANCH_HALT,
+ .clkr = {
+ .enable_reg = 0x31028,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb20_sleep_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_usb31_prim_eud_ahb_clk = {
+ .halt_reg = 0x2a02c,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x2a02c,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x2a02c,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb31_prim_eud_ahb_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_usb31_prim_master_clk = {
+ .halt_reg = 0x2a01c,
+ .halt_check = BRANCH_HALT,
+ .clkr = {
+ .enable_reg = 0x2a01c,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb31_prim_master_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_usb31_prim_master_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_usb31_prim_mock_utmi_clk = {
+ .halt_reg = 0x2a034,
+ .halt_check = BRANCH_HALT,
+ .clkr = {
+ .enable_reg = 0x2a034,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb31_prim_mock_utmi_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_usb31_prim_mock_utmi_postdiv_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_usb31_prim_sleep_clk = {
+ .halt_reg = 0x2a030,
+ .halt_check = BRANCH_HALT,
+ .clkr = {
+ .enable_reg = 0x2a030,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb31_prim_sleep_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_usb31_sec_eud_ahb_clk = {
+ .halt_reg = 0x2c02c,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x2c02c,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x2c02c,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb31_sec_eud_ahb_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_usb31_sec_master_clk = {
+ .halt_reg = 0x2c01c,
+ .halt_check = BRANCH_HALT,
+ .clkr = {
+ .enable_reg = 0x2c01c,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb31_sec_master_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_usb31_sec_master_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_usb31_sec_mock_utmi_clk = {
+ .halt_reg = 0x2c034,
+ .halt_check = BRANCH_HALT,
+ .clkr = {
+ .enable_reg = 0x2c034,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb31_sec_mock_utmi_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_usb31_sec_mock_utmi_postdiv_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_usb31_sec_sleep_clk = {
+ .halt_reg = 0x2c030,
+ .halt_check = BRANCH_HALT,
+ .clkr = {
+ .enable_reg = 0x2c030,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb31_sec_sleep_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_usb3_prim_phy_aux_clk = {
+ .halt_reg = 0x2a06c,
+ .halt_check = BRANCH_HALT,
+ .clkr = {
+ .enable_reg = 0x2a06c,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb3_prim_phy_aux_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_usb3_prim_phy_aux_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_usb3_prim_phy_com_aux_clk = {
+ .halt_reg = 0x2a070,
+ .halt_check = BRANCH_HALT,
+ .clkr = {
+ .enable_reg = 0x2a070,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb3_prim_phy_com_aux_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_usb3_prim_phy_aux_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_usb3_prim_phy_pipe_clk = {
+ .halt_reg = 0x2a074,
+ .halt_check = BRANCH_HALT_SKIP,
+ .hwcg_reg = 0x2a074,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x2a074,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb3_prim_phy_pipe_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_usb3_prim_phy_pipe_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_usb3_sec_phy_aux_clk = {
+ .halt_reg = 0x2c06c,
+ .halt_check = BRANCH_HALT,
+ .clkr = {
+ .enable_reg = 0x2c06c,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb3_sec_phy_aux_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_usb3_sec_phy_aux_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_usb3_sec_phy_com_aux_clk = {
+ .halt_reg = 0x2c070,
+ .halt_check = BRANCH_HALT,
+ .clkr = {
+ .enable_reg = 0x2c070,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb3_sec_phy_com_aux_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_usb3_sec_phy_aux_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch ne_gcc_usb3_sec_phy_pipe_clk = {
+ .halt_reg = 0x2c074,
+ .halt_check = BRANCH_HALT_SKIP,
+ .hwcg_reg = 0x2c074,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x2c074,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "ne_gcc_usb3_sec_phy_pipe_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &ne_gcc_usb3_sec_phy_pipe_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct gdsc ne_gcc_usb31_prim_gdsc = {
+ .gdscr = 0x2a004,
+ .en_rest_wait_val = 0x2,
+ .en_few_wait_val = 0x2,
+ .clk_dis_wait_val = 0xf,
+ .pd = {
+ .name = "ne_gcc_usb31_prim_gdsc",
+ },
+ .pwrsts = PWRSTS_OFF_ON,
+ .flags = POLL_CFG_GDSCR | RETAIN_FF_ENABLE,
+};
+
+static struct gdsc ne_gcc_usb3_phy_gdsc = {
+ .gdscr = 0x2b00c,
+ .en_rest_wait_val = 0x2,
+ .en_few_wait_val = 0x2,
+ .clk_dis_wait_val = 0x2,
+ .pd = {
+ .name = "ne_gcc_usb3_phy_gdsc",
+ },
+ .pwrsts = PWRSTS_OFF_ON,
+ .flags = POLL_CFG_GDSCR | RETAIN_FF_ENABLE,
+};
+
+static struct gdsc ne_gcc_usb31_sec_gdsc = {
+ .gdscr = 0x2c004,
+ .en_rest_wait_val = 0x2,
+ .en_few_wait_val = 0x2,
+ .clk_dis_wait_val = 0xf,
+ .pd = {
+ .name = "ne_gcc_usb31_sec_gdsc",
+ },
+ .pwrsts = PWRSTS_OFF_ON,
+ .flags = POLL_CFG_GDSCR | RETAIN_FF_ENABLE,
+};
+
+static struct gdsc ne_gcc_usb20_prim_gdsc = {
+ .gdscr = 0x31004,
+ .en_rest_wait_val = 0x2,
+ .en_few_wait_val = 0x2,
+ .clk_dis_wait_val = 0xf,
+ .pd = {
+ .name = "ne_gcc_usb20_prim_gdsc",
+ },
+ .pwrsts = PWRSTS_OFF_ON,
+ .flags = POLL_CFG_GDSCR | RETAIN_FF_ENABLE,
+};
+
+static struct gdsc ne_gcc_usb3_sec_phy_gdsc = {
+ .gdscr = 0x2d00c,
+ .en_rest_wait_val = 0x2,
+ .en_few_wait_val = 0x2,
+ .clk_dis_wait_val = 0x2,
+ .pd = {
+ .name = "ne_gcc_usb3_sec_phy_gdsc",
+ },
+ .pwrsts = PWRSTS_OFF_ON,
+ .flags = POLL_CFG_GDSCR | RETAIN_FF_ENABLE,
+};
+
+static struct clk_regmap *ne_gcc_seca_clocks[] = {
+ [NE_GCC_AGGRE_NOC_USB2_AXI_CLK] = &ne_gcc_aggre_noc_usb2_axi_clk.clkr,
+ [NE_GCC_AGGRE_NOC_USB3_PRIM_AXI_CLK] = &ne_gcc_aggre_noc_usb3_prim_axi_clk.clkr,
+ [NE_GCC_AGGRE_NOC_USB3_SEC_AXI_CLK] = &ne_gcc_aggre_noc_usb3_sec_axi_clk.clkr,
+ [NE_GCC_CNOC_USB2_AXI_CLK] = &ne_gcc_cnoc_usb2_axi_clk.clkr,
+ [NE_GCC_CNOC_USB3_PRIM_AXI_CLK] = &ne_gcc_cnoc_usb3_prim_axi_clk.clkr,
+ [NE_GCC_CNOC_USB3_SEC_AXI_CLK] = &ne_gcc_cnoc_usb3_sec_axi_clk.clkr,
+ [NE_GCC_FRQ_MEASURE_REF_CLK] = &ne_gcc_frq_measure_ref_clk.clkr,
+ [NE_GCC_GP1_CLK] = &ne_gcc_gp1_clk.clkr,
+ [NE_GCC_GP1_CLK_SRC] = &ne_gcc_gp1_clk_src.clkr,
+ [NE_GCC_GP2_CLK] = &ne_gcc_gp2_clk.clkr,
+ [NE_GCC_GP2_CLK_SRC] = &ne_gcc_gp2_clk_src.clkr,
+ [NE_GCC_GPLL0] = &ne_gcc_gpll0.clkr,
+ [NE_GCC_GPLL0_OUT_EVEN] = &ne_gcc_gpll0_out_even.clkr,
+ [NE_GCC_QUPV3_WRAP2_CORE_2X_CLK] = &ne_gcc_qupv3_wrap2_core_2x_clk.clkr,
+ [NE_GCC_QUPV3_WRAP2_CORE_CLK] = &ne_gcc_qupv3_wrap2_core_clk.clkr,
+ [NE_GCC_QUPV3_WRAP2_M_AHB_CLK] = &ne_gcc_qupv3_wrap2_m_ahb_clk.clkr,
+ [NE_GCC_QUPV3_WRAP2_S0_CLK] = &ne_gcc_qupv3_wrap2_s0_clk.clkr,
+ [NE_GCC_QUPV3_WRAP2_S0_CLK_SRC] = &ne_gcc_qupv3_wrap2_s0_clk_src.clkr,
+ [NE_GCC_QUPV3_WRAP2_S1_CLK] = &ne_gcc_qupv3_wrap2_s1_clk.clkr,
+ [NE_GCC_QUPV3_WRAP2_S1_CLK_SRC] = &ne_gcc_qupv3_wrap2_s1_clk_src.clkr,
+ [NE_GCC_QUPV3_WRAP2_S2_CLK] = &ne_gcc_qupv3_wrap2_s2_clk.clkr,
+ [NE_GCC_QUPV3_WRAP2_S2_CLK_SRC] = &ne_gcc_qupv3_wrap2_s2_clk_src.clkr,
+ [NE_GCC_QUPV3_WRAP2_S3_CLK] = &ne_gcc_qupv3_wrap2_s3_clk.clkr,
+ [NE_GCC_QUPV3_WRAP2_S3_CLK_SRC] = &ne_gcc_qupv3_wrap2_s3_clk_src.clkr,
+ [NE_GCC_QUPV3_WRAP2_S4_CLK] = &ne_gcc_qupv3_wrap2_s4_clk.clkr,
+ [NE_GCC_QUPV3_WRAP2_S4_CLK_SRC] = &ne_gcc_qupv3_wrap2_s4_clk_src.clkr,
+ [NE_GCC_QUPV3_WRAP2_S5_CLK] = &ne_gcc_qupv3_wrap2_s5_clk.clkr,
+ [NE_GCC_QUPV3_WRAP2_S5_CLK_SRC] = &ne_gcc_qupv3_wrap2_s5_clk_src.clkr,
+ [NE_GCC_QUPV3_WRAP2_S6_CLK] = &ne_gcc_qupv3_wrap2_s6_clk.clkr,
+ [NE_GCC_QUPV3_WRAP2_S6_CLK_SRC] = &ne_gcc_qupv3_wrap2_s6_clk_src.clkr,
+ [NE_GCC_QUPV3_WRAP2_S_AHB_CLK] = &ne_gcc_qupv3_wrap2_s_ahb_clk.clkr,
+ [NE_GCC_SDCC4_APPS_CLK] = &ne_gcc_sdcc4_apps_clk.clkr,
+ [NE_GCC_SDCC4_APPS_CLK_SRC] = &ne_gcc_sdcc4_apps_clk_src.clkr,
+ [NE_GCC_SDCC4_AXI_CLK] = &ne_gcc_sdcc4_axi_clk.clkr,
+ [NE_GCC_USB20_MASTER_CLK] = &ne_gcc_usb20_master_clk.clkr,
+ [NE_GCC_USB20_MASTER_CLK_SRC] = &ne_gcc_usb20_master_clk_src.clkr,
+ [NE_GCC_USB20_MOCK_UTMI_CLK] = &ne_gcc_usb20_mock_utmi_clk.clkr,
+ [NE_GCC_USB20_MOCK_UTMI_CLK_SRC] = &ne_gcc_usb20_mock_utmi_clk_src.clkr,
+ [NE_GCC_USB20_MOCK_UTMI_POSTDIV_CLK_SRC] = &ne_gcc_usb20_mock_utmi_postdiv_clk_src.clkr,
+ [NE_GCC_USB20_SLEEP_CLK] = &ne_gcc_usb20_sleep_clk.clkr,
+ [NE_GCC_USB31_PRIM_EUD_AHB_CLK] = &ne_gcc_usb31_prim_eud_ahb_clk.clkr,
+ [NE_GCC_USB31_PRIM_MASTER_CLK] = &ne_gcc_usb31_prim_master_clk.clkr,
+ [NE_GCC_USB31_PRIM_MASTER_CLK_SRC] = &ne_gcc_usb31_prim_master_clk_src.clkr,
+ [NE_GCC_USB31_PRIM_MOCK_UTMI_CLK] = &ne_gcc_usb31_prim_mock_utmi_clk.clkr,
+ [NE_GCC_USB31_PRIM_MOCK_UTMI_CLK_SRC] = &ne_gcc_usb31_prim_mock_utmi_clk_src.clkr,
+ [NE_GCC_USB31_PRIM_MOCK_UTMI_POSTDIV_CLK_SRC] =
+ &ne_gcc_usb31_prim_mock_utmi_postdiv_clk_src.clkr,
+ [NE_GCC_USB31_PRIM_SLEEP_CLK] = &ne_gcc_usb31_prim_sleep_clk.clkr,
+ [NE_GCC_USB31_SEC_EUD_AHB_CLK] = &ne_gcc_usb31_sec_eud_ahb_clk.clkr,
+ [NE_GCC_USB31_SEC_MASTER_CLK] = &ne_gcc_usb31_sec_master_clk.clkr,
+ [NE_GCC_USB31_SEC_MASTER_CLK_SRC] = &ne_gcc_usb31_sec_master_clk_src.clkr,
+ [NE_GCC_USB31_SEC_MOCK_UTMI_CLK] = &ne_gcc_usb31_sec_mock_utmi_clk.clkr,
+ [NE_GCC_USB31_SEC_MOCK_UTMI_CLK_SRC] = &ne_gcc_usb31_sec_mock_utmi_clk_src.clkr,
+ [NE_GCC_USB31_SEC_MOCK_UTMI_POSTDIV_CLK_SRC] =
+ &ne_gcc_usb31_sec_mock_utmi_postdiv_clk_src.clkr,
+ [NE_GCC_USB31_SEC_SLEEP_CLK] = &ne_gcc_usb31_sec_sleep_clk.clkr,
+ [NE_GCC_USB3_PRIM_PHY_AUX_CLK] = &ne_gcc_usb3_prim_phy_aux_clk.clkr,
+ [NE_GCC_USB3_PRIM_PHY_AUX_CLK_SRC] = &ne_gcc_usb3_prim_phy_aux_clk_src.clkr,
+ [NE_GCC_USB3_PRIM_PHY_COM_AUX_CLK] = &ne_gcc_usb3_prim_phy_com_aux_clk.clkr,
+ [NE_GCC_USB3_PRIM_PHY_PIPE_CLK] = &ne_gcc_usb3_prim_phy_pipe_clk.clkr,
+ [NE_GCC_USB3_PRIM_PHY_PIPE_CLK_SRC] = &ne_gcc_usb3_prim_phy_pipe_clk_src.clkr,
+ [NE_GCC_USB3_SEC_PHY_AUX_CLK] = &ne_gcc_usb3_sec_phy_aux_clk.clkr,
+ [NE_GCC_USB3_SEC_PHY_AUX_CLK_SRC] = &ne_gcc_usb3_sec_phy_aux_clk_src.clkr,
+ [NE_GCC_USB3_SEC_PHY_COM_AUX_CLK] = &ne_gcc_usb3_sec_phy_com_aux_clk.clkr,
+ [NE_GCC_USB3_SEC_PHY_PIPE_CLK] = &ne_gcc_usb3_sec_phy_pipe_clk.clkr,
+ [NE_GCC_USB3_SEC_PHY_PIPE_CLK_SRC] = &ne_gcc_usb3_sec_phy_pipe_clk_src.clkr,
+};
+
+static struct gdsc *ne_gcc_seca_gdscs[] = {
+ [NE_GCC_USB20_PRIM_GDSC] = &ne_gcc_usb20_prim_gdsc,
+ [NE_GCC_USB31_PRIM_GDSC] = &ne_gcc_usb31_prim_gdsc,
+ [NE_GCC_USB31_SEC_GDSC] = &ne_gcc_usb31_sec_gdsc,
+ [NE_GCC_USB3_PHY_GDSC] = &ne_gcc_usb3_phy_gdsc,
+ [NE_GCC_USB3_SEC_PHY_GDSC] = &ne_gcc_usb3_sec_phy_gdsc,
+};
+
+static const struct qcom_reset_map ne_gcc_seca_resets[] = {
+ [NE_GCC_QUPV3_WRAPPER_2_BCR] = { 0x38000 },
+ [NE_GCC_QUSB2PHY_PRIM_BCR] = { 0x2e000 },
+ [NE_GCC_QUSB2PHY_SEC_BCR] = { 0x2f000 },
+ [NE_GCC_SDCC4_BCR] = { 0x18000 },
+ [NE_GCC_USB20_PRIM_BCR] = { 0x31000 },
+ [NE_GCC_USB31_PRIM_BCR] = { 0x2a000 },
+ [NE_GCC_USB31_SEC_BCR] = { 0x2c000 },
+ [NE_GCC_USB3_DP_PHY_PRIM_BCR] = { 0x2b008 },
+ [NE_GCC_USB3_DP_PHY_SEC_BCR] = { 0x2d008 },
+ [NE_GCC_USB3_PHY_PRIM_BCR] = { 0x2b000 },
+ [NE_GCC_USB3_PHY_SEC_BCR] = { 0x2d000 },
+ [NE_GCC_USB3PHY_PHY_PRIM_BCR] = { 0x2b004 },
+ [NE_GCC_USB3PHY_PHY_SEC_BCR] = { 0x2d004 },
+};
+
+static const struct clk_rcg_dfs_data ne_gcc_seca_dfs_clocks[] = {
+ DEFINE_RCG_DFS(ne_gcc_qupv3_wrap2_s0_clk_src),
+ DEFINE_RCG_DFS(ne_gcc_qupv3_wrap2_s1_clk_src),
+ DEFINE_RCG_DFS(ne_gcc_qupv3_wrap2_s2_clk_src),
+ DEFINE_RCG_DFS(ne_gcc_qupv3_wrap2_s3_clk_src),
+ DEFINE_RCG_DFS(ne_gcc_qupv3_wrap2_s4_clk_src),
+ DEFINE_RCG_DFS(ne_gcc_qupv3_wrap2_s5_clk_src),
+ DEFINE_RCG_DFS(ne_gcc_qupv3_wrap2_s6_clk_src),
+};
+
+static const struct regmap_config ne_gcc_seca_regmap_config = {
+ .reg_bits = 32,
+ .reg_stride = 4,
+ .val_bits = 32,
+ .max_register = 0xf41f0,
+ .fast_io = true,
+};
+
+static const u32 ne_gcc_seca_critical_cbcrs[] = {
+ 0x30004, /* NE_GCC_AHB2PHY_CLK */
+};
+
+static const struct qcom_cc_driver_data ne_gcc_seca_driver_data = {
+ .clk_cbcrs = ne_gcc_seca_critical_cbcrs,
+ .num_clk_cbcrs = ARRAY_SIZE(ne_gcc_seca_critical_cbcrs),
+ .dfs_rcgs = ne_gcc_seca_dfs_clocks,
+ .num_dfs_rcgs = ARRAY_SIZE(ne_gcc_seca_dfs_clocks),
+};
+
+static const struct qcom_cc_desc ne_gcc_seca_desc = {
+ .config = &ne_gcc_seca_regmap_config,
+ .clks = ne_gcc_seca_clocks,
+ .num_clks = ARRAY_SIZE(ne_gcc_seca_clocks),
+ .resets = ne_gcc_seca_resets,
+ .num_resets = ARRAY_SIZE(ne_gcc_seca_resets),
+ .gdscs = ne_gcc_seca_gdscs,
+ .num_gdscs = ARRAY_SIZE(ne_gcc_seca_gdscs),
+ .driver_data = &ne_gcc_seca_driver_data,
+};
+
+static const struct of_device_id ne_gcc_seca_match_table[] = {
+ { .compatible = "qcom,seca-negcc" },
+ { }
+};
+MODULE_DEVICE_TABLE(of, ne_gcc_seca_match_table);
+
+static int ne_gcc_seca_probe(struct platform_device *pdev)
+{
+ return qcom_cc_probe(pdev, &ne_gcc_seca_desc);
+}
+
+static struct platform_driver ne_gcc_seca_driver = {
+ .probe = ne_gcc_seca_probe,
+ .driver = {
+ .name = "negcc-seca",
+ .of_match_table = ne_gcc_seca_match_table,
+ },
+};
+
+module_platform_driver(ne_gcc_seca_driver);
+
+MODULE_DESCRIPTION("QTI NEGCC Seca driver");
+MODULE_LICENSE("GPL");
diff --git a/drivers/clk/qcom/nwgcc-seca.c b/drivers/clk/qcom/nwgcc-seca.c
new file mode 100644
index 0000000000000000000000000000000000000000..59352c1a73406d837bf2b1dc18b9ba9a0b3162a8
--- /dev/null
+++ b/drivers/clk/qcom/nwgcc-seca.c
@@ -0,0 +1,2138 @@
+// SPDX-License-Identifier: GPL-2.0-only
+/*
+ * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
+ */
+
+#include <linux/clk-provider.h>
+#include <linux/module.h>
+#include <linux/platform_device.h>
+#include <linux/regmap.h>
+
+#include <dt-bindings/clock/qcom,seca-nwgcc.h>
+
+#include "clk-alpha-pll.h"
+#include "clk-branch.h"
+#include "clk-pll.h"
+#include "clk-rcg.h"
+#include "clk-regmap.h"
+#include "clk-regmap-divider.h"
+#include "clk-regmap-phy-mux.h"
+#include "common.h"
+#include "gdsc.h"
+#include "reset.h"
+
+enum {
+ DT_BI_TCXO,
+ DT_SLEEP_CLK,
+ DT_UFS_0_PHY_RX_SYMBOL_0_CLK,
+ DT_UFS_0_PHY_RX_SYMBOL_1_CLK,
+ DT_UFS_0_PHY_TX_SYMBOL_0_CLK,
+ DT_UFS_1_PHY_RX_SYMBOL_0_CLK,
+ DT_UFS_1_PHY_RX_SYMBOL_1_CLK,
+ DT_UFS_1_PHY_TX_SYMBOL_0_CLK,
+};
+
+enum {
+ P_BI_TCXO,
+ P_NW_GCC_GPLL0_OUT_EVEN,
+ P_NW_GCC_GPLL0_OUT_MAIN,
+ P_NW_GCC_GPLL3_OUT_MAIN,
+ P_SLEEP_CLK,
+};
+
+static struct clk_alpha_pll nw_gcc_gpll0 = {
+ .offset = 0x0,
+ .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_LUCID_OLE],
+ .clkr = {
+ .enable_reg = 0x76010,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_gpll0",
+ .parent_data = &(const struct clk_parent_data) {
+ .index = DT_BI_TCXO,
+ },
+ .num_parents = 1,
+ .ops = &clk_alpha_pll_fixed_lucid_ole_ops,
+ },
+ },
+};
+
+static const struct clk_div_table post_div_table_nw_gcc_gpll0_out_even[] = {
+ { 0x1, 2 },
+ { }
+};
+
+static struct clk_alpha_pll_postdiv nw_gcc_gpll0_out_even = {
+ .offset = 0x0,
+ .post_div_shift = 10,
+ .post_div_table = post_div_table_nw_gcc_gpll0_out_even,
+ .num_post_div = ARRAY_SIZE(post_div_table_nw_gcc_gpll0_out_even),
+ .width = 4,
+ .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_LUCID_OLE],
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_gpll0_out_even",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_gpll0.clkr.hw,
+ },
+ .num_parents = 1,
+ .ops = &clk_alpha_pll_postdiv_lucid_ole_ops,
+ },
+};
+
+static struct clk_alpha_pll nw_gcc_gpll3 = {
+ .offset = 0x3000,
+ .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_LUCID_OLE],
+ .clkr = {
+ .enable_reg = 0x76010,
+ .enable_mask = BIT(3),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_gpll3",
+ .parent_data = &(const struct clk_parent_data) {
+ .index = DT_BI_TCXO,
+ },
+ .num_parents = 1,
+ .ops = &clk_alpha_pll_fixed_lucid_ole_ops,
+ },
+ },
+};
+
+static const struct parent_map nw_gcc_parent_map_0[] = {
+ { P_BI_TCXO, 0 },
+ { P_NW_GCC_GPLL0_OUT_MAIN, 1 },
+ { P_SLEEP_CLK, 5 },
+ { P_NW_GCC_GPLL0_OUT_EVEN, 6 },
+};
+
+static const struct clk_parent_data nw_gcc_parent_data_0[] = {
+ { .index = DT_BI_TCXO },
+ { .hw = &nw_gcc_gpll0.clkr.hw },
+ { .index = DT_SLEEP_CLK },
+ { .hw = &nw_gcc_gpll0_out_even.clkr.hw },
+};
+
+static const struct parent_map nw_gcc_parent_map_1[] = {
+ { P_BI_TCXO, 0 },
+ { P_NW_GCC_GPLL0_OUT_MAIN, 1 },
+ { P_NW_GCC_GPLL3_OUT_MAIN, 3 },
+};
+
+static const struct clk_parent_data nw_gcc_parent_data_1[] = {
+ { .index = DT_BI_TCXO },
+ { .hw = &nw_gcc_gpll0.clkr.hw },
+ { .hw = &nw_gcc_gpll3.clkr.hw },
+};
+
+static const struct parent_map nw_gcc_parent_map_2[] = {
+ { P_BI_TCXO, 0 },
+};
+
+static const struct clk_parent_data nw_gcc_parent_data_2[] = {
+ { .index = DT_BI_TCXO },
+};
+
+static const struct parent_map nw_gcc_parent_map_3[] = {
+ { P_BI_TCXO, 0 },
+ { P_NW_GCC_GPLL0_OUT_MAIN, 1 },
+ { P_NW_GCC_GPLL3_OUT_MAIN, 5 },
+};
+
+static const struct parent_map nw_gcc_parent_map_4[] = {
+ { P_BI_TCXO, 0 },
+ { P_NW_GCC_GPLL0_OUT_MAIN, 1 },
+};
+
+static const struct clk_parent_data nw_gcc_parent_data_4[] = {
+ { .index = DT_BI_TCXO },
+ { .hw = &nw_gcc_gpll0.clkr.hw },
+};
+
+static const struct parent_map nw_gcc_parent_map_5[] = {
+ { P_BI_TCXO, 0 },
+ { P_NW_GCC_GPLL0_OUT_MAIN, 1 },
+ { P_NW_GCC_GPLL0_OUT_EVEN, 2 },
+};
+
+static const struct clk_parent_data nw_gcc_parent_data_5[] = {
+ { .index = DT_BI_TCXO },
+ { .hw = &nw_gcc_gpll0.clkr.hw },
+ { .hw = &nw_gcc_gpll0_out_even.clkr.hw },
+};
+
+static struct clk_regmap_phy_mux nw_gcc_ufs_0_phy_rx_symbol_0_clk_src = {
+ .reg = 0x52068,
+ .clkr = {
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_0_phy_rx_symbol_0_clk_src",
+ .parent_data = &(const struct clk_parent_data){
+ .index = DT_UFS_0_PHY_RX_SYMBOL_0_CLK,
+ },
+ .num_parents = 1,
+ .ops = &clk_regmap_phy_mux_ops,
+ },
+ },
+};
+
+static struct clk_regmap_phy_mux nw_gcc_ufs_0_phy_rx_symbol_1_clk_src = {
+ .reg = 0x520f0,
+ .clkr = {
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_0_phy_rx_symbol_1_clk_src",
+ .parent_data = &(const struct clk_parent_data){
+ .index = DT_UFS_0_PHY_RX_SYMBOL_1_CLK,
+ },
+ .num_parents = 1,
+ .ops = &clk_regmap_phy_mux_ops,
+ },
+ },
+};
+
+static struct clk_regmap_phy_mux nw_gcc_ufs_0_phy_tx_symbol_0_clk_src = {
+ .reg = 0x52058,
+ .clkr = {
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_0_phy_tx_symbol_0_clk_src",
+ .parent_data = &(const struct clk_parent_data){
+ .index = DT_UFS_0_PHY_TX_SYMBOL_0_CLK,
+ },
+ .num_parents = 1,
+ .ops = &clk_regmap_phy_mux_ops,
+ },
+ },
+};
+
+static struct clk_regmap_phy_mux nw_gcc_ufs_1_phy_rx_symbol_0_clk_src = {
+ .reg = 0x3d068,
+ .clkr = {
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_1_phy_rx_symbol_0_clk_src",
+ .parent_data = &(const struct clk_parent_data){
+ .index = DT_UFS_1_PHY_RX_SYMBOL_0_CLK,
+ },
+ .num_parents = 1,
+ .ops = &clk_regmap_phy_mux_ops,
+ },
+ },
+};
+
+static struct clk_regmap_phy_mux nw_gcc_ufs_1_phy_rx_symbol_1_clk_src = {
+ .reg = 0x3d0f0,
+ .clkr = {
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_1_phy_rx_symbol_1_clk_src",
+ .parent_data = &(const struct clk_parent_data){
+ .index = DT_UFS_1_PHY_RX_SYMBOL_1_CLK,
+ },
+ .num_parents = 1,
+ .ops = &clk_regmap_phy_mux_ops,
+ },
+ },
+};
+
+static struct clk_regmap_phy_mux nw_gcc_ufs_1_phy_tx_symbol_0_clk_src = {
+ .reg = 0x3d058,
+ .clkr = {
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_1_phy_tx_symbol_0_clk_src",
+ .parent_data = &(const struct clk_parent_data){
+ .index = DT_UFS_1_PHY_TX_SYMBOL_0_CLK,
+ },
+ .num_parents = 1,
+ .ops = &clk_regmap_phy_mux_ops,
+ },
+ },
+};
+
+static const struct freq_tbl ftbl_nw_gcc_gp1_clk_src[] = {
+ F(60000000, P_NW_GCC_GPLL0_OUT_MAIN, 10, 0, 0),
+ F(100000000, P_NW_GCC_GPLL0_OUT_MAIN, 6, 0, 0),
+ F(200000000, P_NW_GCC_GPLL0_OUT_MAIN, 3, 0, 0),
+ { }
+};
+
+static struct clk_rcg2 nw_gcc_gp1_clk_src = {
+ .cmd_rcgr = 0x20004,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = nw_gcc_parent_map_0,
+ .freq_tbl = ftbl_nw_gcc_gp1_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_gp1_clk_src",
+ .parent_data = nw_gcc_parent_data_0,
+ .num_parents = ARRAY_SIZE(nw_gcc_parent_data_0),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_ops,
+ },
+};
+
+static struct clk_rcg2 nw_gcc_gp2_clk_src = {
+ .cmd_rcgr = 0x21004,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = nw_gcc_parent_map_0,
+ .freq_tbl = ftbl_nw_gcc_gp1_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_gp2_clk_src",
+ .parent_data = nw_gcc_parent_data_0,
+ .num_parents = ARRAY_SIZE(nw_gcc_parent_data_0),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_ops,
+ },
+};
+
+static const struct freq_tbl ftbl_nw_gcc_qupv3_wrap0_s0_clk_src[] = {
+ F(7372800, P_NW_GCC_GPLL0_OUT_MAIN, 1, 192, 15625),
+ F(14745600, P_NW_GCC_GPLL0_OUT_MAIN, 1, 384, 15625),
+ F(19200000, P_BI_TCXO, 1, 0, 0),
+ F(29491200, P_NW_GCC_GPLL0_OUT_MAIN, 1, 768, 15625),
+ F(32000000, P_NW_GCC_GPLL0_OUT_MAIN, 1, 4, 75),
+ F(48000000, P_NW_GCC_GPLL0_OUT_MAIN, 1, 2, 25),
+ F(51200000, P_NW_GCC_GPLL0_OUT_MAIN, 1, 32, 375),
+ F(64000000, P_NW_GCC_GPLL0_OUT_MAIN, 1, 8, 75),
+ F(66666667, P_NW_GCC_GPLL0_OUT_MAIN, 9, 0, 0),
+ F(75000000, P_NW_GCC_GPLL0_OUT_MAIN, 8, 0, 0),
+ F(80000000, P_NW_GCC_GPLL0_OUT_MAIN, 1, 2, 15),
+ F(96000000, P_NW_GCC_GPLL0_OUT_MAIN, 1, 4, 25),
+ F(100000000, P_NW_GCC_GPLL0_OUT_MAIN, 6, 0, 0),
+ F(102400000, P_NW_GCC_GPLL0_OUT_MAIN, 1, 64, 375),
+ F(112000000, P_NW_GCC_GPLL0_OUT_MAIN, 1, 14, 75),
+ F(117964800, P_NW_GCC_GPLL0_OUT_MAIN, 1, 3072, 15625),
+ F(120000000, P_NW_GCC_GPLL0_OUT_MAIN, 5, 0, 0),
+ { }
+};
+
+static struct clk_init_data nw_gcc_qupv3_wrap0_s0_clk_src_init = {
+ .name = "nw_gcc_qupv3_wrap0_s0_clk_src",
+ .parent_data = nw_gcc_parent_data_4,
+ .num_parents = ARRAY_SIZE(nw_gcc_parent_data_4),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_no_init_park_ops,
+};
+
+static struct clk_rcg2 nw_gcc_qupv3_wrap0_s0_clk_src = {
+ .cmd_rcgr = 0x5616c,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = nw_gcc_parent_map_4,
+ .freq_tbl = ftbl_nw_gcc_qupv3_wrap0_s0_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &nw_gcc_qupv3_wrap0_s0_clk_src_init,
+};
+
+static struct clk_init_data nw_gcc_qupv3_wrap0_s1_clk_src_init = {
+ .name = "nw_gcc_qupv3_wrap0_s1_clk_src",
+ .parent_data = nw_gcc_parent_data_4,
+ .num_parents = ARRAY_SIZE(nw_gcc_parent_data_4),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_no_init_park_ops,
+};
+
+static struct clk_rcg2 nw_gcc_qupv3_wrap0_s1_clk_src = {
+ .cmd_rcgr = 0x562a8,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = nw_gcc_parent_map_4,
+ .freq_tbl = ftbl_nw_gcc_qupv3_wrap0_s0_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &nw_gcc_qupv3_wrap0_s1_clk_src_init,
+};
+
+static const struct freq_tbl ftbl_nw_gcc_qupv3_wrap0_s2_clk_src[] = {
+ F(7372800, P_NW_GCC_GPLL0_OUT_MAIN, 1, 192, 15625),
+ F(14745600, P_NW_GCC_GPLL0_OUT_MAIN, 1, 384, 15625),
+ F(19200000, P_BI_TCXO, 1, 0, 0),
+ F(29491200, P_NW_GCC_GPLL0_OUT_MAIN, 1, 768, 15625),
+ F(32000000, P_NW_GCC_GPLL0_OUT_MAIN, 1, 4, 75),
+ F(48000000, P_NW_GCC_GPLL0_OUT_MAIN, 1, 2, 25),
+ F(51200000, P_NW_GCC_GPLL0_OUT_MAIN, 1, 32, 375),
+ F(64000000, P_NW_GCC_GPLL0_OUT_MAIN, 1, 8, 75),
+ F(66666667, P_NW_GCC_GPLL0_OUT_MAIN, 9, 0, 0),
+ F(75000000, P_NW_GCC_GPLL0_OUT_MAIN, 8, 0, 0),
+ F(80000000, P_NW_GCC_GPLL0_OUT_MAIN, 1, 2, 15),
+ F(96000000, P_NW_GCC_GPLL0_OUT_MAIN, 1, 4, 25),
+ F(100000000, P_NW_GCC_GPLL0_OUT_MAIN, 6, 0, 0),
+ { }
+};
+
+static struct clk_init_data nw_gcc_qupv3_wrap0_s2_clk_src_init = {
+ .name = "nw_gcc_qupv3_wrap0_s2_clk_src",
+ .parent_data = nw_gcc_parent_data_4,
+ .num_parents = ARRAY_SIZE(nw_gcc_parent_data_4),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_no_init_park_ops,
+};
+
+static struct clk_rcg2 nw_gcc_qupv3_wrap0_s2_clk_src = {
+ .cmd_rcgr = 0x563e4,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = nw_gcc_parent_map_4,
+ .freq_tbl = ftbl_nw_gcc_qupv3_wrap0_s2_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &nw_gcc_qupv3_wrap0_s2_clk_src_init,
+};
+
+static struct clk_init_data nw_gcc_qupv3_wrap0_s3_clk_src_init = {
+ .name = "nw_gcc_qupv3_wrap0_s3_clk_src",
+ .parent_data = nw_gcc_parent_data_4,
+ .num_parents = ARRAY_SIZE(nw_gcc_parent_data_4),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_no_init_park_ops,
+};
+
+static struct clk_rcg2 nw_gcc_qupv3_wrap0_s3_clk_src = {
+ .cmd_rcgr = 0x56520,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = nw_gcc_parent_map_4,
+ .freq_tbl = ftbl_nw_gcc_qupv3_wrap0_s2_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &nw_gcc_qupv3_wrap0_s3_clk_src_init,
+};
+
+static struct clk_init_data nw_gcc_qupv3_wrap0_s4_clk_src_init = {
+ .name = "nw_gcc_qupv3_wrap0_s4_clk_src",
+ .parent_data = nw_gcc_parent_data_4,
+ .num_parents = ARRAY_SIZE(nw_gcc_parent_data_4),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_no_init_park_ops,
+};
+
+static struct clk_rcg2 nw_gcc_qupv3_wrap0_s4_clk_src = {
+ .cmd_rcgr = 0x5665c,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = nw_gcc_parent_map_4,
+ .freq_tbl = ftbl_nw_gcc_qupv3_wrap0_s2_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &nw_gcc_qupv3_wrap0_s4_clk_src_init,
+};
+
+static struct clk_init_data nw_gcc_qupv3_wrap0_s5_clk_src_init = {
+ .name = "nw_gcc_qupv3_wrap0_s5_clk_src",
+ .parent_data = nw_gcc_parent_data_4,
+ .num_parents = ARRAY_SIZE(nw_gcc_parent_data_4),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_no_init_park_ops,
+};
+
+static struct clk_rcg2 nw_gcc_qupv3_wrap0_s5_clk_src = {
+ .cmd_rcgr = 0x56798,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = nw_gcc_parent_map_4,
+ .freq_tbl = ftbl_nw_gcc_qupv3_wrap0_s2_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &nw_gcc_qupv3_wrap0_s5_clk_src_init,
+};
+
+static struct clk_init_data nw_gcc_qupv3_wrap0_s6_clk_src_init = {
+ .name = "nw_gcc_qupv3_wrap0_s6_clk_src",
+ .parent_data = nw_gcc_parent_data_4,
+ .num_parents = ARRAY_SIZE(nw_gcc_parent_data_4),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_no_init_park_ops,
+};
+
+static struct clk_rcg2 nw_gcc_qupv3_wrap0_s6_clk_src = {
+ .cmd_rcgr = 0x568d4,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = nw_gcc_parent_map_4,
+ .freq_tbl = ftbl_nw_gcc_qupv3_wrap0_s2_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &nw_gcc_qupv3_wrap0_s6_clk_src_init,
+};
+
+static struct clk_init_data nw_gcc_qupv3_wrap1_s0_clk_src_init = {
+ .name = "nw_gcc_qupv3_wrap1_s0_clk_src",
+ .parent_data = nw_gcc_parent_data_5,
+ .num_parents = ARRAY_SIZE(nw_gcc_parent_data_5),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_no_init_park_ops,
+};
+
+static struct clk_rcg2 nw_gcc_qupv3_wrap1_s0_clk_src = {
+ .cmd_rcgr = 0x5716c,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = nw_gcc_parent_map_5,
+ .freq_tbl = ftbl_nw_gcc_qupv3_wrap0_s0_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &nw_gcc_qupv3_wrap1_s0_clk_src_init,
+};
+
+static struct clk_init_data nw_gcc_qupv3_wrap1_s1_clk_src_init = {
+ .name = "nw_gcc_qupv3_wrap1_s1_clk_src",
+ .parent_data = nw_gcc_parent_data_5,
+ .num_parents = ARRAY_SIZE(nw_gcc_parent_data_5),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_no_init_park_ops,
+};
+
+static struct clk_rcg2 nw_gcc_qupv3_wrap1_s1_clk_src = {
+ .cmd_rcgr = 0x572a8,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = nw_gcc_parent_map_5,
+ .freq_tbl = ftbl_nw_gcc_qupv3_wrap0_s0_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &nw_gcc_qupv3_wrap1_s1_clk_src_init,
+};
+
+static struct clk_init_data nw_gcc_qupv3_wrap1_s2_clk_src_init = {
+ .name = "nw_gcc_qupv3_wrap1_s2_clk_src",
+ .parent_data = nw_gcc_parent_data_5,
+ .num_parents = ARRAY_SIZE(nw_gcc_parent_data_5),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_no_init_park_ops,
+};
+
+static struct clk_rcg2 nw_gcc_qupv3_wrap1_s2_clk_src = {
+ .cmd_rcgr = 0x573e4,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = nw_gcc_parent_map_5,
+ .freq_tbl = ftbl_nw_gcc_qupv3_wrap0_s2_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &nw_gcc_qupv3_wrap1_s2_clk_src_init,
+};
+
+static struct clk_init_data nw_gcc_qupv3_wrap1_s3_clk_src_init = {
+ .name = "nw_gcc_qupv3_wrap1_s3_clk_src",
+ .parent_data = nw_gcc_parent_data_5,
+ .num_parents = ARRAY_SIZE(nw_gcc_parent_data_5),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_no_init_park_ops,
+};
+
+static struct clk_rcg2 nw_gcc_qupv3_wrap1_s3_clk_src = {
+ .cmd_rcgr = 0x57520,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = nw_gcc_parent_map_5,
+ .freq_tbl = ftbl_nw_gcc_qupv3_wrap0_s2_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &nw_gcc_qupv3_wrap1_s3_clk_src_init,
+};
+
+static struct clk_init_data nw_gcc_qupv3_wrap1_s4_clk_src_init = {
+ .name = "nw_gcc_qupv3_wrap1_s4_clk_src",
+ .parent_data = nw_gcc_parent_data_5,
+ .num_parents = ARRAY_SIZE(nw_gcc_parent_data_5),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_no_init_park_ops,
+};
+
+static struct clk_rcg2 nw_gcc_qupv3_wrap1_s4_clk_src = {
+ .cmd_rcgr = 0x5765c,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = nw_gcc_parent_map_5,
+ .freq_tbl = ftbl_nw_gcc_qupv3_wrap0_s2_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &nw_gcc_qupv3_wrap1_s4_clk_src_init,
+};
+
+static struct clk_init_data nw_gcc_qupv3_wrap1_s5_clk_src_init = {
+ .name = "nw_gcc_qupv3_wrap1_s5_clk_src",
+ .parent_data = nw_gcc_parent_data_5,
+ .num_parents = ARRAY_SIZE(nw_gcc_parent_data_5),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_no_init_park_ops,
+};
+
+static struct clk_rcg2 nw_gcc_qupv3_wrap1_s5_clk_src = {
+ .cmd_rcgr = 0x57798,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = nw_gcc_parent_map_5,
+ .freq_tbl = ftbl_nw_gcc_qupv3_wrap0_s2_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &nw_gcc_qupv3_wrap1_s5_clk_src_init,
+};
+
+static struct clk_init_data nw_gcc_qupv3_wrap1_s6_clk_src_init = {
+ .name = "nw_gcc_qupv3_wrap1_s6_clk_src",
+ .parent_data = nw_gcc_parent_data_5,
+ .num_parents = ARRAY_SIZE(nw_gcc_parent_data_5),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_no_init_park_ops,
+};
+
+static struct clk_rcg2 nw_gcc_qupv3_wrap1_s6_clk_src = {
+ .cmd_rcgr = 0x578d4,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = nw_gcc_parent_map_5,
+ .freq_tbl = ftbl_nw_gcc_qupv3_wrap0_s2_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &nw_gcc_qupv3_wrap1_s6_clk_src_init,
+};
+
+static const struct freq_tbl ftbl_nw_gcc_qupv3_wrap3_qspi_ref_clk_src[] = {
+ F(7372800, P_NW_GCC_GPLL0_OUT_EVEN, 1, 384, 15625),
+ F(14745600, P_NW_GCC_GPLL0_OUT_EVEN, 1, 768, 15625),
+ F(19200000, P_BI_TCXO, 1, 0, 0),
+ F(29491200, P_NW_GCC_GPLL0_OUT_EVEN, 1, 1536, 15625),
+ F(32000000, P_NW_GCC_GPLL0_OUT_EVEN, 1, 8, 75),
+ F(48000000, P_NW_GCC_GPLL0_OUT_EVEN, 1, 4, 25),
+ F(51200000, P_NW_GCC_GPLL0_OUT_EVEN, 1, 64, 375),
+ F(64000000, P_NW_GCC_GPLL0_OUT_EVEN, 1, 16, 75),
+ F(75000000, P_NW_GCC_GPLL0_OUT_EVEN, 4, 0, 0),
+ F(80000000, P_NW_GCC_GPLL0_OUT_EVEN, 1, 4, 15),
+ F(96000000, P_NW_GCC_GPLL0_OUT_EVEN, 1, 8, 25),
+ F(100000000, P_NW_GCC_GPLL0_OUT_MAIN, 6, 0, 0),
+ F(102400000, P_NW_GCC_GPLL0_OUT_EVEN, 1, 128, 375),
+ F(112000000, P_NW_GCC_GPLL0_OUT_EVEN, 1, 28, 75),
+ F(117964800, P_NW_GCC_GPLL0_OUT_EVEN, 1, 6144, 15625),
+ F(120000000, P_NW_GCC_GPLL0_OUT_MAIN, 5, 0, 0),
+ F(150000000, P_NW_GCC_GPLL0_OUT_EVEN, 2, 0, 0),
+ F(240000000, P_NW_GCC_GPLL0_OUT_MAIN, 2.5, 0, 0),
+ { }
+};
+
+static struct clk_init_data nw_gcc_qupv3_wrap3_qspi_ref_clk_src_init = {
+ .name = "nw_gcc_qupv3_wrap3_qspi_ref_clk_src",
+ .parent_data = nw_gcc_parent_data_5,
+ .num_parents = ARRAY_SIZE(nw_gcc_parent_data_5),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_no_init_park_ops,
+};
+
+static struct clk_rcg2 nw_gcc_qupv3_wrap3_qspi_ref_clk_src = {
+ .cmd_rcgr = 0x58174,
+ .mnd_width = 16,
+ .hid_width = 5,
+ .parent_map = nw_gcc_parent_map_5,
+ .freq_tbl = ftbl_nw_gcc_qupv3_wrap3_qspi_ref_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &nw_gcc_qupv3_wrap3_qspi_ref_clk_src_init,
+};
+
+static const struct freq_tbl ftbl_nw_gcc_ufs_0_phy_axi_clk_src[] = {
+ F(120000000, P_NW_GCC_GPLL0_OUT_MAIN, 5, 0, 0),
+ F(201500000, P_NW_GCC_GPLL3_OUT_MAIN, 4, 0, 0),
+ F(300000000, P_NW_GCC_GPLL0_OUT_MAIN, 2, 0, 0),
+ F(403000000, P_NW_GCC_GPLL3_OUT_MAIN, 2, 0, 0),
+ { }
+};
+
+static struct clk_rcg2 nw_gcc_ufs_0_phy_axi_clk_src = {
+ .cmd_rcgr = 0x52034,
+ .mnd_width = 8,
+ .hid_width = 5,
+ .parent_map = nw_gcc_parent_map_1,
+ .freq_tbl = ftbl_nw_gcc_ufs_0_phy_axi_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_0_phy_axi_clk_src",
+ .parent_data = nw_gcc_parent_data_1,
+ .num_parents = ARRAY_SIZE(nw_gcc_parent_data_1),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_ops,
+ },
+};
+
+static struct clk_rcg2 nw_gcc_ufs_0_phy_ice_core_clk_src = {
+ .cmd_rcgr = 0x5208c,
+ .mnd_width = 0,
+ .hid_width = 5,
+ .parent_map = nw_gcc_parent_map_1,
+ .freq_tbl = ftbl_nw_gcc_ufs_0_phy_axi_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_0_phy_ice_core_clk_src",
+ .parent_data = nw_gcc_parent_data_1,
+ .num_parents = ARRAY_SIZE(nw_gcc_parent_data_1),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_ops,
+ },
+};
+
+static const struct freq_tbl ftbl_nw_gcc_ufs_0_phy_phy_aux_clk_src[] = {
+ F(19200000, P_BI_TCXO, 1, 0, 0),
+ { }
+};
+
+static struct clk_rcg2 nw_gcc_ufs_0_phy_phy_aux_clk_src = {
+ .cmd_rcgr = 0x520c0,
+ .mnd_width = 0,
+ .hid_width = 5,
+ .parent_map = nw_gcc_parent_map_2,
+ .freq_tbl = ftbl_nw_gcc_ufs_0_phy_phy_aux_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_0_phy_phy_aux_clk_src",
+ .parent_data = nw_gcc_parent_data_2,
+ .num_parents = ARRAY_SIZE(nw_gcc_parent_data_2),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_ops,
+ },
+};
+
+static struct clk_rcg2 nw_gcc_ufs_0_phy_unipro_core_clk_src = {
+ .cmd_rcgr = 0x520a4,
+ .mnd_width = 0,
+ .hid_width = 5,
+ .parent_map = nw_gcc_parent_map_3,
+ .freq_tbl = ftbl_nw_gcc_ufs_0_phy_axi_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_0_phy_unipro_core_clk_src",
+ .parent_data = nw_gcc_parent_data_1,
+ .num_parents = ARRAY_SIZE(nw_gcc_parent_data_1),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_ops,
+ },
+};
+
+static struct clk_rcg2 nw_gcc_ufs_1_phy_axi_clk_src = {
+ .cmd_rcgr = 0x3d034,
+ .mnd_width = 8,
+ .hid_width = 5,
+ .parent_map = nw_gcc_parent_map_1,
+ .freq_tbl = ftbl_nw_gcc_ufs_0_phy_axi_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_1_phy_axi_clk_src",
+ .parent_data = nw_gcc_parent_data_1,
+ .num_parents = ARRAY_SIZE(nw_gcc_parent_data_1),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_ops,
+ },
+};
+
+static struct clk_rcg2 nw_gcc_ufs_1_phy_ice_core_clk_src = {
+ .cmd_rcgr = 0x3d08c,
+ .mnd_width = 0,
+ .hid_width = 5,
+ .parent_map = nw_gcc_parent_map_1,
+ .freq_tbl = ftbl_nw_gcc_ufs_0_phy_axi_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_1_phy_ice_core_clk_src",
+ .parent_data = nw_gcc_parent_data_1,
+ .num_parents = ARRAY_SIZE(nw_gcc_parent_data_1),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_ops,
+ },
+};
+
+static struct clk_rcg2 nw_gcc_ufs_1_phy_phy_aux_clk_src = {
+ .cmd_rcgr = 0x3d0c0,
+ .mnd_width = 0,
+ .hid_width = 5,
+ .parent_map = nw_gcc_parent_map_2,
+ .freq_tbl = ftbl_nw_gcc_ufs_0_phy_phy_aux_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_1_phy_phy_aux_clk_src",
+ .parent_data = nw_gcc_parent_data_2,
+ .num_parents = ARRAY_SIZE(nw_gcc_parent_data_2),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_ops,
+ },
+};
+
+static struct clk_rcg2 nw_gcc_ufs_1_phy_unipro_core_clk_src = {
+ .cmd_rcgr = 0x3d0a4,
+ .mnd_width = 0,
+ .hid_width = 5,
+ .parent_map = nw_gcc_parent_map_1,
+ .freq_tbl = ftbl_nw_gcc_ufs_0_phy_axi_clk_src,
+ .hw_clk_ctrl = true,
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_1_phy_unipro_core_clk_src",
+ .parent_data = nw_gcc_parent_data_1,
+ .num_parents = ARRAY_SIZE(nw_gcc_parent_data_1),
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_rcg2_shared_ops,
+ },
+};
+
+static struct clk_regmap_div nw_gcc_qupv3_wrap3_s0_clk_src = {
+ .reg = 0x5816c,
+ .shift = 0,
+ .width = 4,
+ .clkr.hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap3_s0_clk_src",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_qupv3_wrap3_qspi_ref_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_regmap_div_ro_ops,
+ },
+};
+
+static struct clk_branch nw_gcc_aggre_noc_ufs_0_phy_axi_clk = {
+ .halt_reg = 0x520f8,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x520f8,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x520f8,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_aggre_noc_ufs_0_phy_axi_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_ufs_0_phy_axi_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_aggre_noc_ufs_1_phy_axi_clk = {
+ .halt_reg = 0x3d0f8,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x3d0f8,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x3d0f8,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_aggre_noc_ufs_1_phy_axi_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_ufs_1_phy_axi_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_camera_hf_axi_clk = {
+ .halt_reg = 0x16008,
+ .halt_check = BRANCH_HALT_SKIP,
+ .hwcg_reg = 0x16008,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x16008,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_camera_hf_axi_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_camera_sf_axi_clk = {
+ .halt_reg = 0x1601c,
+ .halt_check = BRANCH_HALT_SKIP,
+ .hwcg_reg = 0x1601c,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x1601c,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_camera_sf_axi_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_camera_trig_clk = {
+ .halt_reg = 0x16034,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x16034,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x16034,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_camera_trig_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_disp_0_hf_axi_clk = {
+ .halt_reg = 0x18008,
+ .halt_check = BRANCH_HALT_SKIP,
+ .hwcg_reg = 0x18008,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x18008,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_disp_0_hf_axi_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_disp_0_trig_clk = {
+ .halt_reg = 0x1801c,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x1801c,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x1801c,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_disp_0_trig_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_disp_1_hf_axi_clk = {
+ .halt_reg = 0x19008,
+ .halt_check = BRANCH_HALT_SKIP,
+ .hwcg_reg = 0x19008,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x19008,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_disp_1_hf_axi_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_disp_1_trig_clk = {
+ .halt_reg = 0x1901c,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x1901c,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x1901c,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_disp_1_trig_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_dprx0_axi_hf_clk = {
+ .halt_reg = 0x29004,
+ .halt_check = BRANCH_HALT_SKIP,
+ .hwcg_reg = 0x29004,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x29004,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_dprx0_axi_hf_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_eva_axi0_clk = {
+ .halt_reg = 0x1b008,
+ .halt_check = BRANCH_HALT_SKIP,
+ .hwcg_reg = 0x1b008,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x1b008,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_eva_axi0_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_eva_axi0c_clk = {
+ .halt_reg = 0x1b01c,
+ .halt_check = BRANCH_HALT_SKIP,
+ .hwcg_reg = 0x1b01c,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x1b01c,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_eva_axi0c_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_eva_trig_clk = {
+ .halt_reg = 0x1b028,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x1b028,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x1b028,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_eva_trig_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_frq_measure_ref_clk = {
+ .halt_reg = 0x1f008,
+ .halt_check = BRANCH_HALT,
+ .clkr = {
+ .enable_reg = 0x1f008,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_frq_measure_ref_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_gp1_clk = {
+ .halt_reg = 0x20000,
+ .halt_check = BRANCH_HALT,
+ .clkr = {
+ .enable_reg = 0x20000,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_gp1_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_gp1_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_gp2_clk = {
+ .halt_reg = 0x21000,
+ .halt_check = BRANCH_HALT,
+ .clkr = {
+ .enable_reg = 0x21000,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_gp2_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_gp2_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_gpu_gpll0_clk_src = {
+ .halt_reg = 0x23018,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x23018,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x76000,
+ .enable_mask = BIT(4),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_gpu_gpll0_clk_src",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_gpll0.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_gpu_gpll0_div_clk_src = {
+ .halt_reg = 0x23020,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x23020,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x76000,
+ .enable_mask = BIT(5),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_gpu_gpll0_div_clk_src",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_gpll0_out_even.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap0_core_2x_clk = {
+ .halt_reg = 0x56020,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x76000,
+ .enable_mask = BIT(15),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap0_core_2x_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap0_core_clk = {
+ .halt_reg = 0x5600c,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x76000,
+ .enable_mask = BIT(14),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap0_core_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap0_m_ahb_clk = {
+ .halt_reg = 0x56004,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x56004,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x76000,
+ .enable_mask = BIT(12),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap0_m_ahb_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap0_s0_clk = {
+ .halt_reg = 0x5615c,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x76000,
+ .enable_mask = BIT(16),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap0_s0_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_qupv3_wrap0_s0_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap0_s1_clk = {
+ .halt_reg = 0x56298,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x76000,
+ .enable_mask = BIT(17),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap0_s1_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_qupv3_wrap0_s1_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap0_s2_clk = {
+ .halt_reg = 0x563d4,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x76000,
+ .enable_mask = BIT(18),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap0_s2_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_qupv3_wrap0_s2_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap0_s3_clk = {
+ .halt_reg = 0x56510,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x76000,
+ .enable_mask = BIT(19),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap0_s3_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_qupv3_wrap0_s3_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap0_s4_clk = {
+ .halt_reg = 0x5664c,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x76000,
+ .enable_mask = BIT(20),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap0_s4_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_qupv3_wrap0_s4_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap0_s5_clk = {
+ .halt_reg = 0x56788,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x76000,
+ .enable_mask = BIT(21),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap0_s5_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_qupv3_wrap0_s5_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap0_s6_clk = {
+ .halt_reg = 0x568c4,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x76000,
+ .enable_mask = BIT(22),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap0_s6_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_qupv3_wrap0_s6_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap0_s_ahb_clk = {
+ .halt_reg = 0x56008,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x56008,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x76000,
+ .enable_mask = BIT(13),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap0_s_ahb_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap1_core_2x_clk = {
+ .halt_reg = 0x57020,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x76000,
+ .enable_mask = BIT(26),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap1_core_2x_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap1_core_clk = {
+ .halt_reg = 0x5700c,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x76000,
+ .enable_mask = BIT(25),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap1_core_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap1_m_ahb_clk = {
+ .halt_reg = 0x57004,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x57004,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x76000,
+ .enable_mask = BIT(23),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap1_m_ahb_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap1_s0_clk = {
+ .halt_reg = 0x5715c,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x76000,
+ .enable_mask = BIT(27),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap1_s0_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_qupv3_wrap1_s0_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap1_s1_clk = {
+ .halt_reg = 0x57298,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x76000,
+ .enable_mask = BIT(28),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap1_s1_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_qupv3_wrap1_s1_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap1_s2_clk = {
+ .halt_reg = 0x573d4,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x76000,
+ .enable_mask = BIT(29),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap1_s2_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_qupv3_wrap1_s2_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap1_s3_clk = {
+ .halt_reg = 0x57510,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x76000,
+ .enable_mask = BIT(30),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap1_s3_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_qupv3_wrap1_s3_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap1_s4_clk = {
+ .halt_reg = 0x5764c,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x76000,
+ .enable_mask = BIT(31),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap1_s4_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_qupv3_wrap1_s4_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap1_s5_clk = {
+ .halt_reg = 0x57788,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x76008,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap1_s5_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_qupv3_wrap1_s5_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap1_s6_clk = {
+ .halt_reg = 0x578c4,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x76008,
+ .enable_mask = BIT(1),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap1_s6_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_qupv3_wrap1_s6_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap1_s_ahb_clk = {
+ .halt_reg = 0x57008,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x57008,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x76000,
+ .enable_mask = BIT(24),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap1_s_ahb_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap3_core_2x_clk = {
+ .halt_reg = 0x58020,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x76008,
+ .enable_mask = BIT(4),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap3_core_2x_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap3_core_clk = {
+ .halt_reg = 0x5800c,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x76008,
+ .enable_mask = BIT(5),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap3_core_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap3_m_clk = {
+ .halt_reg = 0x58004,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x58004,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x76008,
+ .enable_mask = BIT(7),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap3_m_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap3_qspi_ref_clk = {
+ .halt_reg = 0x58170,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x76008,
+ .enable_mask = BIT(3),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap3_qspi_ref_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_qupv3_wrap3_qspi_ref_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap3_s0_clk = {
+ .halt_reg = 0x5815c,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x76008,
+ .enable_mask = BIT(2),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap3_s0_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_qupv3_wrap3_s0_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_qupv3_wrap3_s_ahb_clk = {
+ .halt_reg = 0x58008,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x58008,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x76008,
+ .enable_mask = BIT(6),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_qupv3_wrap3_s_ahb_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_ufs_0_phy_ahb_clk = {
+ .halt_reg = 0x52028,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x52028,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x52028,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_0_phy_ahb_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_ufs_0_phy_axi_clk = {
+ .halt_reg = 0x52018,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x52018,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x52018,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_0_phy_axi_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_ufs_0_phy_axi_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_ufs_0_phy_ice_core_clk = {
+ .halt_reg = 0x5207c,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x5207c,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x5207c,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_0_phy_ice_core_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_ufs_0_phy_ice_core_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_ufs_0_phy_phy_aux_clk = {
+ .halt_reg = 0x520bc,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x520bc,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x520bc,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_0_phy_phy_aux_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_ufs_0_phy_phy_aux_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_ufs_0_phy_rx_symbol_0_clk = {
+ .halt_reg = 0x52030,
+ .halt_check = BRANCH_HALT_DELAY,
+ .clkr = {
+ .enable_reg = 0x52030,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_0_phy_rx_symbol_0_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_ufs_0_phy_rx_symbol_0_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_ufs_0_phy_rx_symbol_1_clk = {
+ .halt_reg = 0x520d8,
+ .halt_check = BRANCH_HALT_DELAY,
+ .clkr = {
+ .enable_reg = 0x520d8,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_0_phy_rx_symbol_1_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_ufs_0_phy_rx_symbol_1_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_ufs_0_phy_tx_symbol_0_clk = {
+ .halt_reg = 0x5202c,
+ .halt_check = BRANCH_HALT_DELAY,
+ .clkr = {
+ .enable_reg = 0x5202c,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_0_phy_tx_symbol_0_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_ufs_0_phy_tx_symbol_0_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_ufs_0_phy_unipro_core_clk = {
+ .halt_reg = 0x5206c,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x5206c,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x5206c,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_0_phy_unipro_core_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_ufs_0_phy_unipro_core_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_ufs_1_phy_ahb_clk = {
+ .halt_reg = 0x3d028,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x3d028,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x3d028,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_1_phy_ahb_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_ufs_1_phy_axi_clk = {
+ .halt_reg = 0x3d018,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x3d018,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x3d018,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_1_phy_axi_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_ufs_1_phy_axi_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_ufs_1_phy_ice_core_clk = {
+ .halt_reg = 0x3d07c,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x3d07c,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x3d07c,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_1_phy_ice_core_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_ufs_1_phy_ice_core_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_ufs_1_phy_phy_aux_clk = {
+ .halt_reg = 0x3d0bc,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x3d0bc,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x3d0bc,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_1_phy_phy_aux_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_ufs_1_phy_phy_aux_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_ufs_1_phy_rx_symbol_0_clk = {
+ .halt_reg = 0x3d030,
+ .halt_check = BRANCH_HALT_DELAY,
+ .clkr = {
+ .enable_reg = 0x3d030,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_1_phy_rx_symbol_0_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_ufs_1_phy_rx_symbol_0_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_ufs_1_phy_rx_symbol_1_clk = {
+ .halt_reg = 0x3d0d8,
+ .halt_check = BRANCH_HALT_DELAY,
+ .clkr = {
+ .enable_reg = 0x3d0d8,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_1_phy_rx_symbol_1_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_ufs_1_phy_rx_symbol_1_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_ufs_1_phy_tx_symbol_0_clk = {
+ .halt_reg = 0x3d02c,
+ .halt_check = BRANCH_HALT_DELAY,
+ .clkr = {
+ .enable_reg = 0x3d02c,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_1_phy_tx_symbol_0_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_ufs_1_phy_tx_symbol_0_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_ufs_1_phy_unipro_core_clk = {
+ .halt_reg = 0x3d06c,
+ .halt_check = BRANCH_HALT_VOTED,
+ .hwcg_reg = 0x3d06c,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x3d06c,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_ufs_1_phy_unipro_core_clk",
+ .parent_hws = (const struct clk_hw*[]) {
+ &nw_gcc_ufs_1_phy_unipro_core_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_video_axi0_clk = {
+ .halt_reg = 0x1a008,
+ .halt_check = BRANCH_HALT_SKIP,
+ .hwcg_reg = 0x1a008,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x1a008,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_video_axi0_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_video_axi0c_clk = {
+ .halt_reg = 0x1a01c,
+ .halt_check = BRANCH_HALT_SKIP,
+ .hwcg_reg = 0x1a01c,
+ .hwcg_bit = 1,
+ .clkr = {
+ .enable_reg = 0x1a01c,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_video_axi0c_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_gpu_smmu_vote_clk = {
+ .halt_reg = 0x86038,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x86038,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_gpu_smmu_vote_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct clk_branch nw_gcc_mmu_1_tcu_vote_clk = {
+ .halt_reg = 0x86040,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0x86040,
+ .enable_mask = BIT(0),
+ .hw.init = &(const struct clk_init_data) {
+ .name = "nw_gcc_mmu_1_tcu_vote_clk",
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
+static struct gdsc nw_gcc_ufs_0_phy_gdsc = {
+ .gdscr = 0x52004,
+ .en_rest_wait_val = 0x2,
+ .en_few_wait_val = 0x2,
+ .clk_dis_wait_val = 0xf,
+ .pd = {
+ .name = "nw_gcc_ufs_0_phy_gdsc",
+ },
+ .pwrsts = PWRSTS_OFF_ON,
+ .flags = POLL_CFG_GDSCR | RETAIN_FF_ENABLE,
+};
+
+static struct gdsc nw_gcc_ufs_1_mem_phy_gdsc = {
+ .gdscr = 0x3c000,
+ .en_rest_wait_val = 0x2,
+ .en_few_wait_val = 0x2,
+ .clk_dis_wait_val = 0x2,
+ .pd = {
+ .name = "nw_gcc_ufs_1_mem_phy_gdsc",
+ },
+ .pwrsts = PWRSTS_OFF_ON,
+ .flags = POLL_CFG_GDSCR | RETAIN_FF_ENABLE,
+};
+
+static struct gdsc nw_gcc_ufs_0_mem_phy_gdsc = {
+ .gdscr = 0x3b000,
+ .en_rest_wait_val = 0x2,
+ .en_few_wait_val = 0x2,
+ .clk_dis_wait_val = 0x2,
+ .pd = {
+ .name = "nw_gcc_ufs_0_mem_phy_gdsc",
+ },
+ .pwrsts = PWRSTS_OFF_ON,
+ .flags = POLL_CFG_GDSCR | RETAIN_FF_ENABLE,
+};
+
+static struct gdsc nw_gcc_ufs_1_phy_gdsc = {
+ .gdscr = 0x3d004,
+ .en_rest_wait_val = 0x2,
+ .en_few_wait_val = 0x2,
+ .clk_dis_wait_val = 0xf,
+ .pd = {
+ .name = "nw_gcc_ufs_1_phy_gdsc",
+ },
+ .pwrsts = PWRSTS_OFF_ON,
+ .flags = POLL_CFG_GDSCR | RETAIN_FF_ENABLE,
+};
+
+static struct clk_regmap *nw_gcc_seca_clocks[] = {
+ [NW_GCC_AGGRE_NOC_UFS_0_PHY_AXI_CLK] = &nw_gcc_aggre_noc_ufs_0_phy_axi_clk.clkr,
+ [NW_GCC_AGGRE_NOC_UFS_1_PHY_AXI_CLK] = &nw_gcc_aggre_noc_ufs_1_phy_axi_clk.clkr,
+ [NW_GCC_CAMERA_HF_AXI_CLK] = &nw_gcc_camera_hf_axi_clk.clkr,
+ [NW_GCC_CAMERA_SF_AXI_CLK] = &nw_gcc_camera_sf_axi_clk.clkr,
+ [NW_GCC_CAMERA_TRIG_CLK] = &nw_gcc_camera_trig_clk.clkr,
+ [NW_GCC_DISP_0_HF_AXI_CLK] = &nw_gcc_disp_0_hf_axi_clk.clkr,
+ [NW_GCC_DISP_0_TRIG_CLK] = &nw_gcc_disp_0_trig_clk.clkr,
+ [NW_GCC_DISP_1_HF_AXI_CLK] = &nw_gcc_disp_1_hf_axi_clk.clkr,
+ [NW_GCC_DISP_1_TRIG_CLK] = &nw_gcc_disp_1_trig_clk.clkr,
+ [NW_GCC_DPRX0_AXI_HF_CLK] = &nw_gcc_dprx0_axi_hf_clk.clkr,
+ [NW_GCC_EVA_AXI0_CLK] = &nw_gcc_eva_axi0_clk.clkr,
+ [NW_GCC_EVA_AXI0C_CLK] = &nw_gcc_eva_axi0c_clk.clkr,
+ [NW_GCC_EVA_TRIG_CLK] = &nw_gcc_eva_trig_clk.clkr,
+ [NW_GCC_FRQ_MEASURE_REF_CLK] = &nw_gcc_frq_measure_ref_clk.clkr,
+ [NW_GCC_GP1_CLK] = &nw_gcc_gp1_clk.clkr,
+ [NW_GCC_GP1_CLK_SRC] = &nw_gcc_gp1_clk_src.clkr,
+ [NW_GCC_GP2_CLK] = &nw_gcc_gp2_clk.clkr,
+ [NW_GCC_GP2_CLK_SRC] = &nw_gcc_gp2_clk_src.clkr,
+ [NW_GCC_GPLL0] = &nw_gcc_gpll0.clkr,
+ [NW_GCC_GPLL0_OUT_EVEN] = &nw_gcc_gpll0_out_even.clkr,
+ [NW_GCC_GPLL3] = &nw_gcc_gpll3.clkr,
+ [NW_GCC_GPU_GPLL0_CLK_SRC] = &nw_gcc_gpu_gpll0_clk_src.clkr,
+ [NW_GCC_GPU_GPLL0_DIV_CLK_SRC] = &nw_gcc_gpu_gpll0_div_clk_src.clkr,
+ [NW_GCC_GPU_SMMU_VOTE_CLK] = &nw_gcc_gpu_smmu_vote_clk.clkr,
+ [NW_GCC_MMU_1_TCU_VOTE_CLK] = &nw_gcc_mmu_1_tcu_vote_clk.clkr,
+ [NW_GCC_QUPV3_WRAP0_CORE_2X_CLK] = &nw_gcc_qupv3_wrap0_core_2x_clk.clkr,
+ [NW_GCC_QUPV3_WRAP0_CORE_CLK] = &nw_gcc_qupv3_wrap0_core_clk.clkr,
+ [NW_GCC_QUPV3_WRAP0_M_AHB_CLK] = &nw_gcc_qupv3_wrap0_m_ahb_clk.clkr,
+ [NW_GCC_QUPV3_WRAP0_S0_CLK] = &nw_gcc_qupv3_wrap0_s0_clk.clkr,
+ [NW_GCC_QUPV3_WRAP0_S0_CLK_SRC] = &nw_gcc_qupv3_wrap0_s0_clk_src.clkr,
+ [NW_GCC_QUPV3_WRAP0_S1_CLK] = &nw_gcc_qupv3_wrap0_s1_clk.clkr,
+ [NW_GCC_QUPV3_WRAP0_S1_CLK_SRC] = &nw_gcc_qupv3_wrap0_s1_clk_src.clkr,
+ [NW_GCC_QUPV3_WRAP0_S2_CLK] = &nw_gcc_qupv3_wrap0_s2_clk.clkr,
+ [NW_GCC_QUPV3_WRAP0_S2_CLK_SRC] = &nw_gcc_qupv3_wrap0_s2_clk_src.clkr,
+ [NW_GCC_QUPV3_WRAP0_S3_CLK] = &nw_gcc_qupv3_wrap0_s3_clk.clkr,
+ [NW_GCC_QUPV3_WRAP0_S3_CLK_SRC] = &nw_gcc_qupv3_wrap0_s3_clk_src.clkr,
+ [NW_GCC_QUPV3_WRAP0_S4_CLK] = &nw_gcc_qupv3_wrap0_s4_clk.clkr,
+ [NW_GCC_QUPV3_WRAP0_S4_CLK_SRC] = &nw_gcc_qupv3_wrap0_s4_clk_src.clkr,
+ [NW_GCC_QUPV3_WRAP0_S5_CLK] = &nw_gcc_qupv3_wrap0_s5_clk.clkr,
+ [NW_GCC_QUPV3_WRAP0_S5_CLK_SRC] = &nw_gcc_qupv3_wrap0_s5_clk_src.clkr,
+ [NW_GCC_QUPV3_WRAP0_S6_CLK] = &nw_gcc_qupv3_wrap0_s6_clk.clkr,
+ [NW_GCC_QUPV3_WRAP0_S6_CLK_SRC] = &nw_gcc_qupv3_wrap0_s6_clk_src.clkr,
+ [NW_GCC_QUPV3_WRAP0_S_AHB_CLK] = &nw_gcc_qupv3_wrap0_s_ahb_clk.clkr,
+ [NW_GCC_QUPV3_WRAP1_CORE_2X_CLK] = &nw_gcc_qupv3_wrap1_core_2x_clk.clkr,
+ [NW_GCC_QUPV3_WRAP1_CORE_CLK] = &nw_gcc_qupv3_wrap1_core_clk.clkr,
+ [NW_GCC_QUPV3_WRAP1_M_AHB_CLK] = &nw_gcc_qupv3_wrap1_m_ahb_clk.clkr,
+ [NW_GCC_QUPV3_WRAP1_S0_CLK] = &nw_gcc_qupv3_wrap1_s0_clk.clkr,
+ [NW_GCC_QUPV3_WRAP1_S0_CLK_SRC] = &nw_gcc_qupv3_wrap1_s0_clk_src.clkr,
+ [NW_GCC_QUPV3_WRAP1_S1_CLK] = &nw_gcc_qupv3_wrap1_s1_clk.clkr,
+ [NW_GCC_QUPV3_WRAP1_S1_CLK_SRC] = &nw_gcc_qupv3_wrap1_s1_clk_src.clkr,
+ [NW_GCC_QUPV3_WRAP1_S2_CLK] = &nw_gcc_qupv3_wrap1_s2_clk.clkr,
+ [NW_GCC_QUPV3_WRAP1_S2_CLK_SRC] = &nw_gcc_qupv3_wrap1_s2_clk_src.clkr,
+ [NW_GCC_QUPV3_WRAP1_S3_CLK] = &nw_gcc_qupv3_wrap1_s3_clk.clkr,
+ [NW_GCC_QUPV3_WRAP1_S3_CLK_SRC] = &nw_gcc_qupv3_wrap1_s3_clk_src.clkr,
+ [NW_GCC_QUPV3_WRAP1_S4_CLK] = &nw_gcc_qupv3_wrap1_s4_clk.clkr,
+ [NW_GCC_QUPV3_WRAP1_S4_CLK_SRC] = &nw_gcc_qupv3_wrap1_s4_clk_src.clkr,
+ [NW_GCC_QUPV3_WRAP1_S5_CLK] = &nw_gcc_qupv3_wrap1_s5_clk.clkr,
+ [NW_GCC_QUPV3_WRAP1_S5_CLK_SRC] = &nw_gcc_qupv3_wrap1_s5_clk_src.clkr,
+ [NW_GCC_QUPV3_WRAP1_S6_CLK] = &nw_gcc_qupv3_wrap1_s6_clk.clkr,
+ [NW_GCC_QUPV3_WRAP1_S6_CLK_SRC] = &nw_gcc_qupv3_wrap1_s6_clk_src.clkr,
+ [NW_GCC_QUPV3_WRAP1_S_AHB_CLK] = &nw_gcc_qupv3_wrap1_s_ahb_clk.clkr,
+ [NW_GCC_QUPV3_WRAP3_CORE_2X_CLK] = &nw_gcc_qupv3_wrap3_core_2x_clk.clkr,
+ [NW_GCC_QUPV3_WRAP3_CORE_CLK] = &nw_gcc_qupv3_wrap3_core_clk.clkr,
+ [NW_GCC_QUPV3_WRAP3_M_CLK] = &nw_gcc_qupv3_wrap3_m_clk.clkr,
+ [NW_GCC_QUPV3_WRAP3_QSPI_REF_CLK] = &nw_gcc_qupv3_wrap3_qspi_ref_clk.clkr,
+ [NW_GCC_QUPV3_WRAP3_QSPI_REF_CLK_SRC] = &nw_gcc_qupv3_wrap3_qspi_ref_clk_src.clkr,
+ [NW_GCC_QUPV3_WRAP3_S0_CLK] = &nw_gcc_qupv3_wrap3_s0_clk.clkr,
+ [NW_GCC_QUPV3_WRAP3_S0_CLK_SRC] = &nw_gcc_qupv3_wrap3_s0_clk_src.clkr,
+ [NW_GCC_QUPV3_WRAP3_S_AHB_CLK] = &nw_gcc_qupv3_wrap3_s_ahb_clk.clkr,
+ [NW_GCC_UFS_0_PHY_AHB_CLK] = &nw_gcc_ufs_0_phy_ahb_clk.clkr,
+ [NW_GCC_UFS_0_PHY_AXI_CLK] = &nw_gcc_ufs_0_phy_axi_clk.clkr,
+ [NW_GCC_UFS_0_PHY_AXI_CLK_SRC] = &nw_gcc_ufs_0_phy_axi_clk_src.clkr,
+ [NW_GCC_UFS_0_PHY_ICE_CORE_CLK] = &nw_gcc_ufs_0_phy_ice_core_clk.clkr,
+ [NW_GCC_UFS_0_PHY_ICE_CORE_CLK_SRC] = &nw_gcc_ufs_0_phy_ice_core_clk_src.clkr,
+ [NW_GCC_UFS_0_PHY_PHY_AUX_CLK] = &nw_gcc_ufs_0_phy_phy_aux_clk.clkr,
+ [NW_GCC_UFS_0_PHY_PHY_AUX_CLK_SRC] = &nw_gcc_ufs_0_phy_phy_aux_clk_src.clkr,
+ [NW_GCC_UFS_0_PHY_RX_SYMBOL_0_CLK] = &nw_gcc_ufs_0_phy_rx_symbol_0_clk.clkr,
+ [NW_GCC_UFS_0_PHY_RX_SYMBOL_0_CLK_SRC] = &nw_gcc_ufs_0_phy_rx_symbol_0_clk_src.clkr,
+ [NW_GCC_UFS_0_PHY_RX_SYMBOL_1_CLK] = &nw_gcc_ufs_0_phy_rx_symbol_1_clk.clkr,
+ [NW_GCC_UFS_0_PHY_RX_SYMBOL_1_CLK_SRC] = &nw_gcc_ufs_0_phy_rx_symbol_1_clk_src.clkr,
+ [NW_GCC_UFS_0_PHY_TX_SYMBOL_0_CLK] = &nw_gcc_ufs_0_phy_tx_symbol_0_clk.clkr,
+ [NW_GCC_UFS_0_PHY_TX_SYMBOL_0_CLK_SRC] = &nw_gcc_ufs_0_phy_tx_symbol_0_clk_src.clkr,
+ [NW_GCC_UFS_0_PHY_UNIPRO_CORE_CLK] = &nw_gcc_ufs_0_phy_unipro_core_clk.clkr,
+ [NW_GCC_UFS_0_PHY_UNIPRO_CORE_CLK_SRC] = &nw_gcc_ufs_0_phy_unipro_core_clk_src.clkr,
+ [NW_GCC_UFS_1_PHY_AHB_CLK] = &nw_gcc_ufs_1_phy_ahb_clk.clkr,
+ [NW_GCC_UFS_1_PHY_AXI_CLK] = &nw_gcc_ufs_1_phy_axi_clk.clkr,
+ [NW_GCC_UFS_1_PHY_AXI_CLK_SRC] = &nw_gcc_ufs_1_phy_axi_clk_src.clkr,
+ [NW_GCC_UFS_1_PHY_ICE_CORE_CLK] = &nw_gcc_ufs_1_phy_ice_core_clk.clkr,
+ [NW_GCC_UFS_1_PHY_ICE_CORE_CLK_SRC] = &nw_gcc_ufs_1_phy_ice_core_clk_src.clkr,
+ [NW_GCC_UFS_1_PHY_PHY_AUX_CLK] = &nw_gcc_ufs_1_phy_phy_aux_clk.clkr,
+ [NW_GCC_UFS_1_PHY_PHY_AUX_CLK_SRC] = &nw_gcc_ufs_1_phy_phy_aux_clk_src.clkr,
+ [NW_GCC_UFS_1_PHY_RX_SYMBOL_0_CLK] = &nw_gcc_ufs_1_phy_rx_symbol_0_clk.clkr,
+ [NW_GCC_UFS_1_PHY_RX_SYMBOL_0_CLK_SRC] = &nw_gcc_ufs_1_phy_rx_symbol_0_clk_src.clkr,
+ [NW_GCC_UFS_1_PHY_RX_SYMBOL_1_CLK] = &nw_gcc_ufs_1_phy_rx_symbol_1_clk.clkr,
+ [NW_GCC_UFS_1_PHY_RX_SYMBOL_1_CLK_SRC] = &nw_gcc_ufs_1_phy_rx_symbol_1_clk_src.clkr,
+ [NW_GCC_UFS_1_PHY_TX_SYMBOL_0_CLK] = &nw_gcc_ufs_1_phy_tx_symbol_0_clk.clkr,
+ [NW_GCC_UFS_1_PHY_TX_SYMBOL_0_CLK_SRC] = &nw_gcc_ufs_1_phy_tx_symbol_0_clk_src.clkr,
+ [NW_GCC_UFS_1_PHY_UNIPRO_CORE_CLK] = &nw_gcc_ufs_1_phy_unipro_core_clk.clkr,
+ [NW_GCC_UFS_1_PHY_UNIPRO_CORE_CLK_SRC] = &nw_gcc_ufs_1_phy_unipro_core_clk_src.clkr,
+ [NW_GCC_VIDEO_AXI0_CLK] = &nw_gcc_video_axi0_clk.clkr,
+ [NW_GCC_VIDEO_AXI0C_CLK] = &nw_gcc_video_axi0c_clk.clkr,
+};
+
+static struct gdsc *nw_gcc_seca_gdscs[] = {
+ [NW_GCC_UFS_0_MEM_PHY_GDSC] = &nw_gcc_ufs_0_mem_phy_gdsc,
+ [NW_GCC_UFS_0_PHY_GDSC] = &nw_gcc_ufs_0_phy_gdsc,
+ [NW_GCC_UFS_1_MEM_PHY_GDSC] = &nw_gcc_ufs_1_mem_phy_gdsc,
+ [NW_GCC_UFS_1_PHY_GDSC] = &nw_gcc_ufs_1_phy_gdsc,
+};
+
+static const struct qcom_reset_map nw_gcc_seca_resets[] = {
+ [NW_GCC_CAMERA_BCR] = { 0x16000 },
+ [NW_GCC_DISPLAY_0_BCR] = { 0x18000 },
+ [NW_GCC_DISPLAY_1_BCR] = { 0x19000 },
+ [NW_GCC_DPRX0_BCR] = { 0x29000 },
+ [NW_GCC_EVA_BCR] = { 0x1b000 },
+ [NW_GCC_GPU_BCR] = { 0x23000 },
+ [NW_GCC_QUPV3_WRAPPER_0_BCR] = { 0x56000 },
+ [NW_GCC_QUPV3_WRAPPER_1_BCR] = { 0x57000 },
+ [NW_GCC_QUPV3_WRAPPER_3_BCR] = { 0x58000 },
+ [NW_GCC_UFS_0_PHY_BCR] = { 0x52000 },
+ [NW_GCC_UFS_1_PHY_BCR] = { 0x3d000 },
+ [NW_GCC_VIDEO_BCR] = { 0x1a000 },
+ [NW_GCC_VIDEO_AXI0_CLK_ARES] = { 0x1a008, 2 },
+ [NW_GCC_VIDEO_AXI0C_CLK_ARES] = { 0x1a01c, 2 },
+};
+
+static const struct clk_rcg_dfs_data nw_gcc_seca_dfs_clocks[] = {
+ DEFINE_RCG_DFS(nw_gcc_qupv3_wrap0_s0_clk_src),
+ DEFINE_RCG_DFS(nw_gcc_qupv3_wrap0_s1_clk_src),
+ DEFINE_RCG_DFS(nw_gcc_qupv3_wrap0_s2_clk_src),
+ DEFINE_RCG_DFS(nw_gcc_qupv3_wrap0_s3_clk_src),
+ DEFINE_RCG_DFS(nw_gcc_qupv3_wrap0_s4_clk_src),
+ DEFINE_RCG_DFS(nw_gcc_qupv3_wrap0_s5_clk_src),
+ DEFINE_RCG_DFS(nw_gcc_qupv3_wrap0_s6_clk_src),
+ DEFINE_RCG_DFS(nw_gcc_qupv3_wrap1_s0_clk_src),
+ DEFINE_RCG_DFS(nw_gcc_qupv3_wrap1_s1_clk_src),
+ DEFINE_RCG_DFS(nw_gcc_qupv3_wrap1_s2_clk_src),
+ DEFINE_RCG_DFS(nw_gcc_qupv3_wrap1_s3_clk_src),
+ DEFINE_RCG_DFS(nw_gcc_qupv3_wrap1_s4_clk_src),
+ DEFINE_RCG_DFS(nw_gcc_qupv3_wrap1_s5_clk_src),
+ DEFINE_RCG_DFS(nw_gcc_qupv3_wrap1_s6_clk_src),
+ DEFINE_RCG_DFS(nw_gcc_qupv3_wrap3_qspi_ref_clk_src),
+};
+
+static const struct regmap_config nw_gcc_seca_regmap_config = {
+ .reg_bits = 32,
+ .reg_stride = 4,
+ .val_bits = 32,
+ .max_register = 0xf41f0,
+ .fast_io = true,
+};
+
+static void clk_seca_regs_configure(struct device *dev, struct regmap *regmap)
+{
+ qcom_branch_set_force_mem_core(regmap, nw_gcc_ufs_0_phy_ice_core_clk, true);
+ qcom_branch_set_force_mem_core(regmap, nw_gcc_ufs_0_phy_axi_clk, true);
+ qcom_branch_set_force_mem_core(regmap, nw_gcc_ufs_1_phy_ice_core_clk, true);
+ qcom_branch_set_force_mem_core(regmap, nw_gcc_ufs_1_phy_axi_clk, true);
+}
+
+static const u32 nw_gcc_seca_critical_cbcrs[] = {
+ 0x16004, /* NW_GCC_CAMERA_AHB_CLK */
+ 0x16030, /* NW_GCC_CAMERA_XO_CLK */
+ 0x18004, /* NW_GCC_DISP_0_AHB_CLK */
+ 0x19004, /* NW_GCC_DISP_1_AHB_CLK */
+ 0x29018, /* NW_GCC_DPRX0_CFG_AHB_CLK */
+ 0x1b004, /* NW_GCC_EVA_AHB_CLK */
+ 0x1b024, /* NW_GCC_EVA_XO_CLK */
+ 0x23004, /* NW_GCC_GPU_CFG_AHB_CLK */
+ 0x1a004, /* NW_GCC_VIDEO_AHB_CLK */
+ 0x1a030, /* NW_GCC_VIDEO_XO_CLK */
+};
+
+static const struct qcom_cc_driver_data nw_gcc_seca_driver_data = {
+ .dfs_rcgs = nw_gcc_seca_dfs_clocks,
+ .num_dfs_rcgs = ARRAY_SIZE(nw_gcc_seca_dfs_clocks),
+ .clk_regs_configure = clk_seca_regs_configure,
+ .clk_cbcrs = nw_gcc_seca_critical_cbcrs,
+ .num_clk_cbcrs = ARRAY_SIZE(nw_gcc_seca_critical_cbcrs),
+};
+
+static const struct qcom_cc_desc nw_gcc_seca_desc = {
+ .config = &nw_gcc_seca_regmap_config,
+ .clks = nw_gcc_seca_clocks,
+ .num_clks = ARRAY_SIZE(nw_gcc_seca_clocks),
+ .resets = nw_gcc_seca_resets,
+ .num_resets = ARRAY_SIZE(nw_gcc_seca_resets),
+ .gdscs = nw_gcc_seca_gdscs,
+ .num_gdscs = ARRAY_SIZE(nw_gcc_seca_gdscs),
+ .driver_data = &nw_gcc_seca_driver_data,
+};
+
+static const struct of_device_id nw_gcc_seca_match_table[] = {
+ { .compatible = "qcom,seca-nwgcc" },
+ { }
+};
+MODULE_DEVICE_TABLE(of, nw_gcc_seca_match_table);
+
+static int nw_gcc_seca_probe(struct platform_device *pdev)
+{
+ return qcom_cc_probe(pdev, &nw_gcc_seca_desc);
+}
+
+static struct platform_driver nw_gcc_seca_driver = {
+ .probe = nw_gcc_seca_probe,
+ .driver = {
+ .name = "nwgcc-seca",
+ .of_match_table = nw_gcc_seca_match_table,
+ },
+};
+
+module_platform_driver(nw_gcc_seca_driver);
+
+MODULE_DESCRIPTION("QTI NWGCC Seca driver");
+MODULE_LICENSE("GPL");
--
2.47.3
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 3/6] dt-bindings: clock: qcom: document the Seca TCSR Clock Controller
2026-11-27 11:41 [PATCH 0/6] clk: qcom: add clock drivers for Qualcomm Seca Bartosz Golaszewski
2026-11-27 11:41 ` [PATCH 1/6] dt-bindings: clock: qcom: document the Seca Global Clock Controller Bartosz Golaszewski
2026-11-27 11:41 ` [PATCH 2/6] clk: qcom: add the Global Clock Controller driver for Seca Bartosz Golaszewski
@ 2026-11-27 11:41 ` Bartosz Golaszewski
2026-11-27 11:59 ` sashiko-bot
2026-11-27 11:41 ` [PATCH 4/6] clk: qcom: add the TCSR Clock Controller for Seca Bartosz Golaszewski
` (2 subsequent siblings)
5 siblings, 1 reply; 8+ messages in thread
From: Bartosz Golaszewski @ 2026-11-27 11:41 UTC (permalink / raw)
To: Bjorn Andersson, Abel Vesa, Stephen Boyd, Brian Masney,
Jerome Brunet, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Bartosz Golaszewski, Taniya Das
Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel,
Bartosz Golaszewski, Tyler Baker
Add devicetree bindings for the Top Control and Status Register Clock
Controller on Qualcomm Seca SoCs.
Co-developed-by: Tyler Baker <tyler.baker@oss.qualcomm.com>
Signed-off-by: Tyler Baker <tyler.baker@oss.qualcomm.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
.../devicetree/bindings/clock/qcom,seca-tcsr.yaml | 65 ++++++++++++++++++++++
include/dt-bindings/clock/qcom,seca-tcsrcc.h | 25 +++++++++
2 files changed, 90 insertions(+)
diff --git a/Documentation/devicetree/bindings/clock/qcom,seca-tcsr.yaml b/Documentation/devicetree/bindings/clock/qcom,seca-tcsr.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..1349f70b5672a2de4e9388056e4c560cd1eacde2
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/qcom,seca-tcsr.yaml
@@ -0,0 +1,65 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/qcom,seca-tcsr.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Top Control and Status Register Clock Controller on Qualcomm Seca SoC
+
+maintainers:
+ - Bartosz Golaszewski <brgl@kernel.org>
+
+description: |
+ Qualcomm TCSR clock control module provides the clocks, resets and power
+ domains on the Seca SoC.
+
+ See also:
+ - include/dt-bindings/clock/qcom,seca-tcsrcc.h
+
+properties:
+ compatible:
+ const: qcom,seca-tcsr
+
+ clocks:
+ items:
+ - description: TCXO pad clock
+
+ reg:
+ maxItems: 1
+
+ '#clock-cells':
+ const: 1
+
+ vdda-qref-1p2-supply: true
+ vdda-qref0-0p9-supply: true
+ vdda-qref1-0p9-supply: true
+ vdda-qref2-0p9-supply: true
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - '#clock-cells'
+ - vdda-qref-1p2-supply
+ - vdda-qref0-0p9-supply
+ - vdda-qref1-0p9-supply
+ - vdda-qref2-0p9-supply
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/qcom,rpmh.h>
+
+ clock-controller@f1d7000 {
+ compatible = "qcom,seca-tcsr";
+ reg = <0xf1d7000 0xf00c>;
+ clocks = <&rpmhcc RPMH_CXO_CLK>;
+ #clock-cells = <1>;
+ vdda-qref-1p2-supply = <&vreg_px11>;
+ vdda-qref0-0p9-supply = <&vreg_l1h>;
+ vdda-qref1-0p9-supply = <&vreg_l1h>;
+ vdda-qref2-0p9-supply = <&vreg_l1h>;
+ };
+
+...
diff --git a/include/dt-bindings/clock/qcom,seca-tcsrcc.h b/include/dt-bindings/clock/qcom,seca-tcsrcc.h
new file mode 100644
index 0000000000000000000000000000000000000000..ab77bb343a607813def35276fdbfda927accf346
--- /dev/null
+++ b/include/dt-bindings/clock/qcom,seca-tcsrcc.h
@@ -0,0 +1,25 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+/*
+ * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
+ */
+
+#ifndef _DT_BINDINGS_CLK_QCOM_SECA_TCSRCC_H
+#define _DT_BINDINGS_CLK_QCOM_SECA_TCSRCC_H
+
+/* TCSR_CC clocks */
+#define TCSR_DP_RX_0_CLKREF_EN 0
+#define TCSR_DP_TX_0_CLKREF_EN 1
+#define TCSR_DP_TX_1_CLKREF_EN 2
+#define TCSR_DP_TX_2_CLKREF_EN 3
+#define TCSR_PCIE_CLKREF_EN 4
+#define TCSR_UFS_0_CLKREF_EN 5
+#define TCSR_UFS_1_CLKREF_EN 6
+#define TCSR_USB2_0_CLKREF_EN 7
+#define TCSR_USB2_1_CLKREF_EN 8
+#define TCSR_USB2_2_CLKREF_EN 9
+#define TCSR_USB3_0_CLKREF_EN 10
+#define TCSR_USB3_1_CLKREF_EN 11
+#define TCSR_UX_SGMII_0_CLKREF_EN 12
+#define TCSR_UX_SGMII_1_CLKREF_EN 13
+
+#endif
--
2.47.3
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 4/6] clk: qcom: add the TCSR Clock Controller for Seca
2026-11-27 11:41 [PATCH 0/6] clk: qcom: add clock drivers for Qualcomm Seca Bartosz Golaszewski
` (2 preceding siblings ...)
2026-11-27 11:41 ` [PATCH 3/6] dt-bindings: clock: qcom: document the Seca TCSR Clock Controller Bartosz Golaszewski
@ 2026-11-27 11:41 ` Bartosz Golaszewski
2026-11-27 11:41 ` [PATCH 5/6] dt-bindings: clock: qcom,rpmhcc: document the RPMh clock controller on Seca Bartosz Golaszewski
2026-11-27 11:41 ` [PATCH 6/6] clk: qcom: rpmh: add RPMh clocks for Seca Bartosz Golaszewski
5 siblings, 0 replies; 8+ messages in thread
From: Bartosz Golaszewski @ 2026-11-27 11:41 UTC (permalink / raw)
To: Bjorn Andersson, Abel Vesa, Stephen Boyd, Brian Masney,
Jerome Brunet, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Bartosz Golaszewski, Taniya Das
Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel,
Bartosz Golaszewski, Tyler Baker
Add the driver for the Top Control and Status Register Clock Controller
on the Qualcomm Seca SoC.
Co-developed-by: Tyler Baker <tyler.baker@oss.qualcomm.com>
Signed-off-by: Tyler Baker <tyler.baker@oss.qualcomm.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
drivers/clk/qcom/Kconfig | 10 +++
drivers/clk/qcom/Makefile | 1 +
drivers/clk/qcom/tcsrcc-seca.c | 147 +++++++++++++++++++++++++++++++++++++++++
3 files changed, 158 insertions(+)
diff --git a/drivers/clk/qcom/Kconfig b/drivers/clk/qcom/Kconfig
index 0680926b0ae0903d46fed642dd60e6187642e56b..13a6deb0db4f0524e0c2077a66a024ec35167ec2 100644
--- a/drivers/clk/qcom/Kconfig
+++ b/drivers/clk/qcom/Kconfig
@@ -339,6 +339,16 @@ config CLK_SECA_GCC
USB, SD/UFS, PCIe etc. The clock controller is a combination of
NE_GCC and NW_GCC.
+config CLK_SECA_TCSRCC
+ tristate "Seca TCSR Clock Controller"
+ depends on ARM64 || COMPILE_TEST
+ default m if ARCH_QCOM
+ help
+ Support for the TCSR clock controller on Seca devices. It gates
+ the QREF reference clocks of the PCIe, UX SGMII, UFS, DP, USB3 and
+ eUSB2 PHYs and votes the QREF supplies of each path.
+ Say Y or M if you want to use any of these PHYs.
+
config CLK_SHIKRA_GCC
tristate "Shikra Global Clock Controller"
depends on ARM64 || COMPILE_TEST
diff --git a/drivers/clk/qcom/Makefile b/drivers/clk/qcom/Makefile
index 270c1b97b41f3db7f1d2fa98a262a8c8e189becc..34746aa9e0193993748378163f6fc2dc00ac18f5 100644
--- a/drivers/clk/qcom/Makefile
+++ b/drivers/clk/qcom/Makefile
@@ -57,6 +57,7 @@ obj-$(CONFIG_CLK_NORD_GPUCC) += gpucc-nord.o gpu2cc-nord.o
obj-$(CONFIG_CLK_NORD_TCSRCC) += tcsrcc-nord.o
obj-$(CONFIG_CLK_NORD_VIDEOCC) += videocc-glymur.o
obj-$(CONFIG_CLK_SECA_GCC) += negcc-seca.o nwgcc-seca.o
+obj-$(CONFIG_CLK_SECA_TCSRCC) += tcsrcc-seca.o
obj-$(CONFIG_CLK_SHIKRA_AUDIOCORECC) += audiocorecc-shikra.o
obj-$(CONFIG_CLK_SHIKRA_GCC) += gcc-shikra.o
obj-$(CONFIG_CLK_X1E80100_CAMCC) += camcc-x1e80100.o
diff --git a/drivers/clk/qcom/tcsrcc-seca.c b/drivers/clk/qcom/tcsrcc-seca.c
new file mode 100644
index 0000000000000000000000000000000000000000..f24d9d2aad69df7fc89e43fb35426ebd3493bc1b
--- /dev/null
+++ b/drivers/clk/qcom/tcsrcc-seca.c
@@ -0,0 +1,147 @@
+// SPDX-License-Identifier: GPL-2.0-only
+/*
+ * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
+ */
+
+#include <linux/clk/qcom.h>
+#include <linux/module.h>
+#include <linux/platform_device.h>
+#include <linux/regmap.h>
+
+#include <dt-bindings/clock/qcom,seca-tcsrcc.h>
+
+static const char * const seca_tcsr_qref0_regulators[] = {
+ "vdda-qref0-0p9",
+ "vdda-qref-1p2",
+};
+
+static const char * const seca_tcsr_qref1_regulators[] = {
+ "vdda-qref1-0p9",
+ "vdda-qref-1p2",
+};
+
+static const char * const seca_tcsr_qref2_regulators[] = {
+ "vdda-qref2-0p9",
+ "vdda-qref-1p2",
+};
+
+static const struct regmap_config tcsr_cc_seca_regmap_config = {
+ .reg_bits = 32,
+ .reg_stride = 4,
+ .val_bits = 32,
+ .max_register = 0xf008,
+ .fast_io = true,
+};
+
+static const struct qcom_clk_ref_desc * const tcsr_cc_seca_clk_descs[] = {
+ [TCSR_DP_RX_0_CLKREF_EN] = &(const struct qcom_clk_ref_desc) {
+ .name = "tcsr_dp_rx_0_clkref_en",
+ .offset = 0x5008,
+ .regulator_names = seca_tcsr_qref2_regulators,
+ .num_regulators = ARRAY_SIZE(seca_tcsr_qref2_regulators),
+ },
+ [TCSR_DP_TX_0_CLKREF_EN] = &(const struct qcom_clk_ref_desc) {
+ .name = "tcsr_dp_tx_0_clkref_en",
+ .offset = 0x6008,
+ .regulator_names = seca_tcsr_qref2_regulators,
+ .num_regulators = ARRAY_SIZE(seca_tcsr_qref2_regulators),
+ },
+ [TCSR_DP_TX_1_CLKREF_EN] = &(const struct qcom_clk_ref_desc) {
+ .name = "tcsr_dp_tx_1_clkref_en",
+ .offset = 0x7008,
+ .regulator_names = seca_tcsr_qref2_regulators,
+ .num_regulators = ARRAY_SIZE(seca_tcsr_qref2_regulators),
+ },
+ [TCSR_DP_TX_2_CLKREF_EN] = &(const struct qcom_clk_ref_desc) {
+ .name = "tcsr_dp_tx_2_clkref_en",
+ .offset = 0x8008,
+ .regulator_names = seca_tcsr_qref2_regulators,
+ .num_regulators = ARRAY_SIZE(seca_tcsr_qref2_regulators),
+ },
+ [TCSR_PCIE_CLKREF_EN] = &(const struct qcom_clk_ref_desc) {
+ .name = "tcsr_pcie_clkref_en",
+ .offset = 0x8,
+ .regulator_names = seca_tcsr_qref0_regulators,
+ .num_regulators = ARRAY_SIZE(seca_tcsr_qref0_regulators),
+ },
+ [TCSR_UFS_0_CLKREF_EN] = &(const struct qcom_clk_ref_desc) {
+ .name = "tcsr_ufs_0_clkref_en",
+ .offset = 0x3008,
+ .regulator_names = seca_tcsr_qref2_regulators,
+ .num_regulators = ARRAY_SIZE(seca_tcsr_qref2_regulators),
+ },
+ [TCSR_UFS_1_CLKREF_EN] = &(const struct qcom_clk_ref_desc) {
+ .name = "tcsr_ufs_1_clkref_en",
+ .offset = 0x4008,
+ .regulator_names = seca_tcsr_qref2_regulators,
+ .num_regulators = ARRAY_SIZE(seca_tcsr_qref2_regulators),
+ },
+ [TCSR_USB2_0_CLKREF_EN] = &(const struct qcom_clk_ref_desc) {
+ .name = "tcsr_usb2_0_clkref_en",
+ .offset = 0xb008,
+ .regulator_names = seca_tcsr_qref1_regulators,
+ .num_regulators = ARRAY_SIZE(seca_tcsr_qref1_regulators),
+ },
+ [TCSR_USB2_1_CLKREF_EN] = &(const struct qcom_clk_ref_desc) {
+ .name = "tcsr_usb2_1_clkref_en",
+ .offset = 0xc008,
+ .regulator_names = seca_tcsr_qref1_regulators,
+ .num_regulators = ARRAY_SIZE(seca_tcsr_qref1_regulators),
+ },
+ [TCSR_USB2_2_CLKREF_EN] = &(const struct qcom_clk_ref_desc) {
+ .name = "tcsr_usb2_2_clkref_en",
+ .offset = 0xd008,
+ .regulator_names = seca_tcsr_qref1_regulators,
+ .num_regulators = ARRAY_SIZE(seca_tcsr_qref1_regulators),
+ },
+ [TCSR_USB3_0_CLKREF_EN] = &(const struct qcom_clk_ref_desc) {
+ .name = "tcsr_usb3_0_clkref_en",
+ .offset = 0x9008,
+ .regulator_names = seca_tcsr_qref1_regulators,
+ .num_regulators = ARRAY_SIZE(seca_tcsr_qref1_regulators),
+ },
+ [TCSR_USB3_1_CLKREF_EN] = &(const struct qcom_clk_ref_desc) {
+ .name = "tcsr_usb3_1_clkref_en",
+ .offset = 0xa008,
+ .regulator_names = seca_tcsr_qref1_regulators,
+ .num_regulators = ARRAY_SIZE(seca_tcsr_qref1_regulators),
+ },
+ [TCSR_UX_SGMII_0_CLKREF_EN] = &(const struct qcom_clk_ref_desc) {
+ .name = "tcsr_ux_sgmii_0_clkref_en",
+ .offset = 0x1008,
+ .regulator_names = seca_tcsr_qref0_regulators,
+ .num_regulators = ARRAY_SIZE(seca_tcsr_qref0_regulators),
+ },
+ [TCSR_UX_SGMII_1_CLKREF_EN] = &(const struct qcom_clk_ref_desc) {
+ .name = "tcsr_ux_sgmii_1_clkref_en",
+ .offset = 0x2008,
+ .regulator_names = seca_tcsr_qref0_regulators,
+ .num_regulators = ARRAY_SIZE(seca_tcsr_qref0_regulators),
+ },
+};
+
+static const struct of_device_id tcsr_cc_seca_match_table[] = {
+ { .compatible = "qcom,seca-tcsr" },
+ { }
+};
+MODULE_DEVICE_TABLE(of, tcsr_cc_seca_match_table);
+
+static int tcsr_cc_seca_probe(struct platform_device *pdev)
+{
+ return qcom_clk_ref_probe(pdev, &tcsr_cc_seca_regmap_config,
+ tcsr_cc_seca_clk_descs,
+ ARRAY_SIZE(tcsr_cc_seca_clk_descs));
+}
+
+static struct platform_driver tcsr_cc_seca_driver = {
+ .probe = tcsr_cc_seca_probe,
+ .driver = {
+ .name = "tcsrcc-seca",
+ .of_match_table = tcsr_cc_seca_match_table,
+ },
+};
+
+subsys_platform_driver(tcsr_cc_seca_driver);
+
+MODULE_DESCRIPTION("QTI TCSRCC Seca Driver");
+MODULE_LICENSE("GPL");
--
2.47.3
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 5/6] dt-bindings: clock: qcom,rpmhcc: document the RPMh clock controller on Seca
2026-11-27 11:41 [PATCH 0/6] clk: qcom: add clock drivers for Qualcomm Seca Bartosz Golaszewski
` (3 preceding siblings ...)
2026-11-27 11:41 ` [PATCH 4/6] clk: qcom: add the TCSR Clock Controller for Seca Bartosz Golaszewski
@ 2026-11-27 11:41 ` Bartosz Golaszewski
2026-11-27 11:41 ` [PATCH 6/6] clk: qcom: rpmh: add RPMh clocks for Seca Bartosz Golaszewski
5 siblings, 0 replies; 8+ messages in thread
From: Bartosz Golaszewski @ 2026-11-27 11:41 UTC (permalink / raw)
To: Bjorn Andersson, Abel Vesa, Stephen Boyd, Brian Masney,
Jerome Brunet, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Bartosz Golaszewski, Taniya Das
Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel,
Bartosz Golaszewski
Add the compatible for the RPMh clock controller on Qualcomm Seca SoC.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
Documentation/devicetree/bindings/clock/qcom,rpmhcc.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/clock/qcom,rpmhcc.yaml b/Documentation/devicetree/bindings/clock/qcom,rpmhcc.yaml
index 5c9b653bc2aa59ea85582d5bfd9aef5c48ec6903..cfa78198b2c0cca85888303b25766b7b01e2c13e 100644
--- a/Documentation/devicetree/bindings/clock/qcom,rpmhcc.yaml
+++ b/Documentation/devicetree/bindings/clock/qcom,rpmhcc.yaml
@@ -38,6 +38,7 @@ properties:
- qcom,sdx55-rpmh-clk
- qcom,sdx65-rpmh-clk
- qcom,sdx75-rpmh-clk
+ - qcom,seca-rpmh-clk
- qcom,sm4450-rpmh-clk
- qcom,sm6350-rpmh-clk
- qcom,sm7250-rpmh-clk
--
2.47.3
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 6/6] clk: qcom: rpmh: add RPMh clocks for Seca
2026-11-27 11:41 [PATCH 0/6] clk: qcom: add clock drivers for Qualcomm Seca Bartosz Golaszewski
` (4 preceding siblings ...)
2026-11-27 11:41 ` [PATCH 5/6] dt-bindings: clock: qcom,rpmhcc: document the RPMh clock controller on Seca Bartosz Golaszewski
@ 2026-11-27 11:41 ` Bartosz Golaszewski
5 siblings, 0 replies; 8+ messages in thread
From: Bartosz Golaszewski @ 2026-11-27 11:41 UTC (permalink / raw)
To: Bjorn Andersson, Abel Vesa, Stephen Boyd, Brian Masney,
Jerome Brunet, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Bartosz Golaszewski, Taniya Das
Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel,
Bartosz Golaszewski, Tyler Baker
Add the RPMh clocks present on the Qualcomm Seca SoC.
Co-developed-by: Tyler Baker <tyler.baker@oss.qualcomm.com>
Signed-off-by: Tyler Baker <tyler.baker@oss.qualcomm.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
drivers/clk/qcom/clk-rpmh.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c
index 68640e5904a6484a37d48124f9d253d15c9602e7..178f39ca3aef8bfffcde2b7065884d1408eb24e1 100644
--- a/drivers/clk/qcom/clk-rpmh.c
+++ b/drivers/clk/qcom/clk-rpmh.c
@@ -994,6 +994,21 @@ static const struct clk_rpmh_desc clk_rpmh_nord = {
.num_clks = ARRAY_SIZE(nord_rpmh_clocks),
};
+static struct clk_hw *seca_rpmh_clocks[] = {
+ [RPMH_CXO_CLK] = &clk_rpmh_bi_tcxo_div1.hw,
+ [RPMH_CXO_CLK_A] = &clk_rpmh_bi_tcxo_div1_ao.hw,
+ [RPMH_LN_BB_CLK2] = &clk_rpmh_ln_bb_clk2_a1.hw,
+ [RPMH_LN_BB_CLK2_A] = &clk_rpmh_ln_bb_clk2_a1_ao.hw,
+ [RPMH_LN_BB_CLK3] = &clk_rpmh_ln_bb_clk3_a1.hw,
+ [RPMH_LN_BB_CLK3_A] = &clk_rpmh_ln_bb_clk3_a1_ao.hw,
+ [RPMH_IPA_CLK] = &clk_rpmh_ipa.hw,
+};
+
+static const struct clk_rpmh_desc clk_rpmh_seca = {
+ .clks = seca_rpmh_clocks,
+ .num_clks = ARRAY_SIZE(seca_rpmh_clocks),
+};
+
static struct clk_hw *hawi_rpmh_clocks[] = {
[RPMH_CXO_CLK] = &clk_rpmh_bi_tcxo_div2.hw,
[RPMH_CXO_CLK_A] = &clk_rpmh_bi_tcxo_div2_ao.hw,
@@ -1155,6 +1170,7 @@ static const struct of_device_id clk_rpmh_match_table[] = {
{ .compatible = "qcom,sdx55-rpmh-clk", .data = &clk_rpmh_sdx55},
{ .compatible = "qcom,sdx65-rpmh-clk", .data = &clk_rpmh_sdx65},
{ .compatible = "qcom,sdx75-rpmh-clk", .data = &clk_rpmh_sdx75},
+ { .compatible = "qcom,seca-rpmh-clk", .data = &clk_rpmh_seca},
{ .compatible = "qcom,sm4450-rpmh-clk", .data = &clk_rpmh_sm4450},
{ .compatible = "qcom,sm6350-rpmh-clk", .data = &clk_rpmh_sm6350},
{ .compatible = "qcom,sm7250-rpmh-clk", .data = &clk_rpmh_sm7250},
--
2.47.3
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 3/6] dt-bindings: clock: qcom: document the Seca TCSR Clock Controller
2026-11-27 11:41 ` [PATCH 3/6] dt-bindings: clock: qcom: document the Seca TCSR Clock Controller Bartosz Golaszewski
@ 2026-11-27 11:59 ` sashiko-bot
0 siblings, 0 replies; 8+ messages in thread
From: sashiko-bot @ 2026-11-27 11:59 UTC (permalink / raw)
To: Bartosz Golaszewski; +Cc: linux-clk, devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] dt-bindings: clock: qcom: clocks listed before reg in
qcom,seca-tcsr.yaml
- [Low] dt-bindings: clock: qcom: inaccurate description in
qcom,seca-tcsr.yaml
--
commit 79f9dfc2c2abd664b75d0b9d8b416fefd80c9efe
Author: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
dt-bindings: clock: qcom: document the Seca TCSR Clock Controller
This commit adds the devicetree binding schema and clock ID header for the
Top Control and Status Register Clock Controller on Qualcomm Seca SoCs.
> diff --git a/Documentation/devicetree/bindings/clock/qcom,seca-tcsr.yaml b/Documentation/devicetree/bindings/clock/qcom,seca-tcsr.yaml
> new file mode 100644
> index 0000000000000..1349f70b5672a
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/clock/qcom,seca-tcsr.yaml
> @@ -0,0 +1,65 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/clock/qcom,seca-tcsr.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Top Control and Status Register Clock Controller on Qualcomm Seca SoC
> +
> +maintainers:
> + - Bartosz Golaszewski <brgl@kernel.org>
> +
> +description: |
> + Qualcomm TCSR clock control module provides the clocks, resets and power
> + domains on the Seca SoC.
[Severity: Low]
Does the Seca TCSR clock controller provide resets or power domains? The
schema only defines #clock-cells, and include/dt-bindings/clock/qcom,seca-tcsrcc.h
only defines TCSR_*_CLKREF_EN reference clocks, so mentioning resets and
power domains here looks inaccurate (compare with qcom,x1e80100-tcsr.yaml).
> +
> + See also:
> + - include/dt-bindings/clock/qcom,seca-tcsrcc.h
> +
> +properties:
> + compatible:
> + const: qcom,seca-tcsr
> +
> + clocks:
> + items:
> + - description: TCXO pad clock
> +
> + reg:
> + maxItems: 1
[Severity: Low]
Should reg be placed immediately after compatible and before clocks under
properties, matching the canonical DT binding property order used in
required and examples below?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261127-seca-clocks-v1-0-1781298e658b@oss.qualcomm.com?part=3
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2026-11-27 11:59 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27 11:41 [PATCH 0/6] clk: qcom: add clock drivers for Qualcomm Seca Bartosz Golaszewski
2026-11-27 11:41 ` [PATCH 1/6] dt-bindings: clock: qcom: document the Seca Global Clock Controller Bartosz Golaszewski
2026-11-27 11:41 ` [PATCH 2/6] clk: qcom: add the Global Clock Controller driver for Seca Bartosz Golaszewski
2026-11-27 11:41 ` [PATCH 3/6] dt-bindings: clock: qcom: document the Seca TCSR Clock Controller Bartosz Golaszewski
2026-11-27 11:59 ` sashiko-bot
2026-11-27 11:41 ` [PATCH 4/6] clk: qcom: add the TCSR Clock Controller for Seca Bartosz Golaszewski
2026-11-27 11:41 ` [PATCH 5/6] dt-bindings: clock: qcom,rpmhcc: document the RPMh clock controller on Seca Bartosz Golaszewski
2026-11-27 11:41 ` [PATCH 6/6] clk: qcom: rpmh: add RPMh clocks for Seca Bartosz Golaszewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox