2023-08-14 11:54:30

by Robert Marko

[permalink] [raw]
Subject: [PATCH 1/2] dt-bindings: clock: qcom: ipq4019: add missing networking resets

Add bindings for the missing networking resets found in IPQ4019 GCC.

Signed-off-by: Robert Marko <[email protected]>
---
include/dt-bindings/clock/qcom,gcc-ipq4019.h | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/include/dt-bindings/clock/qcom,gcc-ipq4019.h b/include/dt-bindings/clock/qcom,gcc-ipq4019.h
index 7e8a7be6dcda..fa0587857547 100644
--- a/include/dt-bindings/clock/qcom,gcc-ipq4019.h
+++ b/include/dt-bindings/clock/qcom,gcc-ipq4019.h
@@ -165,5 +165,11 @@
#define GCC_QDSS_BCR 69
#define GCC_MPM_BCR 70
#define GCC_SPDM_BCR 71
+#define ESS_MAC1_ARES 72
+#define ESS_MAC2_ARES 73
+#define ESS_MAC3_ARES 74
+#define ESS_MAC4_ARES 75
+#define ESS_MAC5_ARES 76
+#define ESS_PSGMII_ARES 77

#endif
--
2.41.0



2023-08-14 12:42:03

by Robert Marko

[permalink] [raw]
Subject: [PATCH 2/2] clk: qcom: gcc-ipq4019: add missing networking resets

IPQ4019 has more networking related resets that will be required for future
wired networking support, so lets add them.

Signed-off-by: Robert Marko <[email protected]>
---
drivers/clk/qcom/gcc-ipq4019.c | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/drivers/clk/qcom/gcc-ipq4019.c b/drivers/clk/qcom/gcc-ipq4019.c
index c134c468bb33..4a0bd668892e 100644
--- a/drivers/clk/qcom/gcc-ipq4019.c
+++ b/drivers/clk/qcom/gcc-ipq4019.c
@@ -1713,6 +1713,12 @@ static const struct qcom_reset_map gcc_ipq4019_resets[] = {
[GCC_TCSR_BCR] = {0x22000, 0},
[GCC_MPM_BCR] = {0x24000, 0},
[GCC_SPDM_BCR] = {0x25000, 0},
+ [ESS_MAC1_ARES] = {0x1200C, 0},
+ [ESS_MAC2_ARES] = {0x1200C, 1},
+ [ESS_MAC3_ARES] = {0x1200C, 2},
+ [ESS_MAC4_ARES] = {0x1200C, 3},
+ [ESS_MAC5_ARES] = {0x1200C, 4},
+ [ESS_PSGMII_ARES] = {0x1200C, 5},
};

static const struct regmap_config gcc_ipq4019_regmap_config = {
--
2.41.0


2023-08-16 03:03:37

by Bjorn Andersson

[permalink] [raw]
Subject: Re: (subset) [PATCH 1/2] dt-bindings: clock: qcom: ipq4019: add missing networking resets


On Mon, 14 Aug 2023 12:40:23 +0200, Robert Marko wrote:
> Add bindings for the missing networking resets found in IPQ4019 GCC.
>
>

Applied, thanks!

[1/2] dt-bindings: clock: qcom: ipq4019: add missing networking resets
commit: 268edfe96ab8de82f1ba64a2098610e256bd6db7
[2/2] clk: qcom: gcc-ipq4019: add missing networking resets
commit: 9bc66f973988dc4adc29d36824423448f8da8feb

Best regards,
--
Bjorn Andersson <[email protected]>