Skip to contentSkip to conversation

Add driver support for ESWIN eic700 SoC clock controller

PATCH Superseded [email protected] 2 participants 7 messages May 23, 2025

Subsystems (3)

v2 of 15 Superseded Latest is v15 →

lore
Share & tools
lore
author maintainer
#1 lore raw

PATCH v2 1/2 dt-bindings: clock: eswin: Documentation for eic7700 SoC

In reply to [email protected]

From: Xuyang Dong <[email protected]>

Add device tree binding documentation and header file for the ESWIN EIC7700 clock controller module.

---
 .../bindings/clock/eswin,eic7700-clock.yaml   |  44 ++
 .../dt-bindings/clock/eswin,eic7700-clock.h   | 588 ++++++++++++++++++
 2 files changed, 632 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/clock/eswin,eic7700-clock.yaml
 create mode 100644 include/dt-bindings/clock/eswin,eic7700-clock.h
Documentation/devicetree/bindings/clock/eswin,eic7700-clock.yaml new file +44 -0
new file mode 100644
index 000000000000..de6a008a4dcb
@@ -0,0 +1,44 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/eswin,eic7700-clock.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Eswin EIC7700 SoC clock controller
+
+maintainers:
+  - Yifeng Huang <[email protected]>
+  - Xuyang Dong <[email protected]>
+
+description:
+  The clock controller registers are part of the syscrg block on eic7700 SoC.
+
+properties:
+  compatible:
+    items:
+      - const: eswin,eic7700-clock
+      - const: syscon
+      - const: simple-mfd
+
+  reg:
+    maxItems: 1
+
+  '#clock-cells':
+    const: 1
+
+required:
+  - compatible
+  - reg
+  - '#clock-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/clock/eswin,eic7700-clock.h>
+
+    clock-controller@51828000 {
+        compatible = "eswin,eic7700-clock", "syscon", "simple-mfd";
+        reg = <0x51828000 0x80000>;
+        #clock-cells = <1>;
+    };
include/dt-bindings/clock/eswin,eic7700-clock.h new file +588 -0

588 lines not on this page · raw message

Signature · 1 line
2.17.1
author maintainer
#3 lore raw

PATCH v2 2/2 clock: eswin: Add eic7700 clock driver

In reply to [email protected]

From: Xuyang Dong <[email protected]>

This driver depends on the CCF framework implementation.
Based on this driver, other modules in the SoC can use the APIs provided by CCF to perform clock-related operations. The driver supports eic7700 series chips.

---
 drivers/clk/Kconfig             |    1 +
 drivers/clk/Makefile            |    1 +
 drivers/clk/eswin/Kconfig       |   10 +
 drivers/clk/eswin/Makefile      |    8 +
 drivers/clk/eswin/clk-eic7700.c | 3800 +++++++++++++++++++++++++++++++
 drivers/clk/eswin/clk-eic7700.h |  194 ++
 drivers/clk/eswin/clk.c         |  973 ++++++++
 drivers/clk/eswin/clk.h         |  213 ++
 8 files changed, 5200 insertions(+)
 create mode 100644 drivers/clk/eswin/Kconfig
 create mode 100644 drivers/clk/eswin/Makefile
 create mode 100644 drivers/clk/eswin/clk-eic7700.c
 create mode 100644 drivers/clk/eswin/clk-eic7700.h
 create mode 100644 drivers/clk/eswin/clk.c
 create mode 100644 drivers/clk/eswin/clk.h
drivers/clk/Kconfig +1 -0
index 713573b6c86c..f5d74f200579 100644
@@ -497,6 +497,7 @@ source "drivers/clk/actions/Kconfig"
 source "drivers/clk/analogbits/Kconfig"
 source "drivers/clk/baikal-t1/Kconfig"
 source "drivers/clk/bcm/Kconfig"
+source "drivers/clk/eswin/Kconfig"
 source "drivers/clk/hisilicon/Kconfig"
 source "drivers/clk/imgtec/Kconfig"
 source "drivers/clk/imx/Kconfig"
drivers/clk/Makefile +1 -0
index bf4bd45adc3a..574099a09a30 100644
@@ -118,6 +118,7 @@ obj-$(CONFIG_CLK_BAIKAL_T1)		+= baikal-t1/
 obj-y					+= bcm/
 obj-$(CONFIG_ARCH_BERLIN)		+= berlin/
 obj-$(CONFIG_ARCH_DAVINCI)		+= davinci/
+obj-$(CONFIG_ARCH_ESWIN)			+= eswin/
 obj-$(CONFIG_ARCH_HISI)			+= hisilicon/
 obj-y					+= imgtec/
 obj-y					+= imx/
drivers/clk/eswin/Kconfig new file +10 -0
new file mode 100644
index 000000000000..308ebb0558cc
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: GPL-2.0
+
+config COMMON_CLK_EIC7700
+	bool "EIC7700 Clock Driver"
+	depends on ARCH_ESWIN
+	help
+	  Build the Eswin EIC7700 SOC clock driver based on the
+	  common clock framework. This driver provides support
+	  for the clock control on the Eswin EIC7700 SoC,
+	  which is essential for managing clock rates and power management.
drivers/clk/eswin/Makefile new file +8 -0
new file mode 100644
index 000000000000..a3139e34ee22
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: GPL-2.0
+#
+# Eswin Clock specific Makefile
+#
+
+obj-y	+= clk.o
+
+obj-$(CONFIG_COMMON_CLK_EIC7700)	+= clk-eic7700.o
drivers/clk/eswin/clk-eic7700.c new file +3800 -0

2,968 lines not on this page · raw message

drivers/clk/eswin/clk-eic7700.h new file +194 -0

194 lines not on this page · raw message

drivers/clk/eswin/clk.c new file +973 -0

973 lines not on this page · raw message

drivers/clk/eswin/clk.h new file +213 -0

213 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

--
2.17.1

Part of the diff is not shown here. View the raw message.

[email protected]

author maintainer
#0 lore raw

v2 cover Add driver support for ESWIN eic700 SoC clock controller

From: Xuyang Dong <[email protected]>

Updates:

dt-bindings: clock: eswin: Documentation for eic7700 SoC v1 -> v2: Update example, drop child node.
Clear warnings/errors for using "make dt_binding_check". Change to the correct format.

clock: eswin: Add eic7700 clock driver
v1 -> v2: Drop some non-stanard code.
Use dev_err_probe() in probe functions.

Xuyang Dong (2):
dt-bindings: clock: eswin: Documentation for eic7700 SoC
clock: eswin: Add eic7700 clock driver

 .../bindings/clock/eswin,eic7700-clock.yaml   |   44 +
 drivers/clk/Kconfig                           |    1 +
 drivers/clk/Makefile                          |    1 +
 drivers/clk/eswin/Kconfig                     |   10 +
 drivers/clk/eswin/Makefile                    |    8 +
 drivers/clk/eswin/clk-eic7700.c               | 3800 +++++++++++++++++
 drivers/clk/eswin/clk-eic7700.h               |  194 +
 drivers/clk/eswin/clk.c                       |  973 +++++
 drivers/clk/eswin/clk.h                       |  213 +
 .../dt-bindings/clock/eswin,eic7700-clock.h   |  588 +++
 10 files changed, 5832 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/clock/eswin,eic7700-clock.yaml
 create mode 100644 drivers/clk/eswin/Kconfig
 create mode 100644 drivers/clk/eswin/Makefile
 create mode 100644 drivers/clk/eswin/clk-eic7700.c
 create mode 100644 drivers/clk/eswin/clk-eic7700.h
 create mode 100644 drivers/clk/eswin/clk.c
 create mode 100644 drivers/clk/eswin/clk.h
 create mode 100644 include/dt-bindings/clock/eswin,eic7700-clock.h

--
2.17.1

#2 lore raw

Re: [PATCH v2 1/2] dt-bindings: clock: eswin: Documentation for eic7700 SoC

In reply to [email protected]
Quoted 8 lines · On 23/05/2025 11:09, [email protected] wrote:

From: Xuyang Dong <[email protected]>

Add device tree binding documentation and header file for the ESWIN EIC7700 clock controller module.

NAK, this never happened. Otherwise please point us where you received it.

Best regards,
Krzysztof

#6 lore raw
In reply to [email protected]
Quoted 8 lines · On 23/05/2025 11:07, [email protected] wrote:

From: Xuyang Dong <[email protected]>

Updates:

dt-bindings: clock: eswin: Documentation for eic7700 SoC v1 -> v2: Update example, drop child node.
Clear warnings/errors for using "make dt_binding_check". Change to the correct format.

You also added tags which you did not receive. Write complete changelogs, not vague.

Best regards,
Krzysztof

#4 lore raw

Re: [PATCH v2 2/2] clock: eswin: Add eic7700 clock driver

In reply to [email protected]
Quoted 10 lines · On 23/05/2025 11:09, [email protected] wrote:

From: Xuyang Dong <[email protected]>

This driver depends on the CCF framework implementation.
Based on this driver, other modules in the SoC can use the APIs provided by CCF to perform clock-related operations. The driver supports eic7700 series chips.

NAK, stop adding fake tags. How did you even invent such email?

Best regards,
Krzysztof

#5 lore raw

Re: [PATCH v2 2/2] clock: eswin: Add eic7700 clock driver

Quoted 8 lines · Krzysztof Kozlowski
Quoted 7 lines · On 23/05/2025 11:09, [email protected] wrote:

From: Xuyang Dong <[email protected]>

This driver depends on the CCF framework implementation.
Based on this driver, other modules in the SoC can use the APIs provided by CCF to perform clock-related operations. The driver supports eic7700 series chips.

Quoted 4 lines
Quoted 3 lines

NAK, stop adding fake tags. How did you even invent such email?

To clarify: I NAKed your patch. NAK means Not accepted, Not acknowledge. It is the opposite of review, means your patch is wrong and I do not agree with it.

Translating this to review is inappropriate.

Best regards,
Krzysztof