Skip to contentSkip to conversation

Add support for Cix Sky1 resets

PATCH Superseded Gary Yang 2 participants 12 messages Feb 4 – Feb 9

Subsystems (3)

v7 of 10 Superseded Latest is v10 →

lore
Share & tools
lore

Gary Yang

author maintainer
#0 lore raw

v7 cover Add support for Cix Sky1 resets

Patch 1: Add yaml file for Cix Sky1 resets
Patch 2: Add driver codes for Cix Sky1 resets
Patch 3: Add dts nodes for Cix Sky1 resets

v7 changes:
- Pass dts build check with below commands:
make O=$OUTKNL dt_binding_check
make O=$OUTKNL dt_binding_check DT_SCHEMA_FILES=cix,sky1-system-control.yaml make O=$OUTKNL CHECK_DTBS=y W=1 cix/sky1-orion-o6.dtb scripts/checkpatch.pl 000*.patch
- fix build warning

v6 changes:
- Pass dts build check with below commands:
make O=$OUTKNL dt_binding_check
make O=$OUTKNL dt_binding_check DT_SCHEMA_FILES=cix,sky1-system-control.yaml make O=$OUTKNL CHECK_DTBS=y W=1 cix/sky1-orion-o6.dtb scripts/checkpatch.pl 000*.patch
- refine reset driver
- fix dt-bindings style

v5 changes:
- Pass dts build check with below commands:
make O=$OUTKNL dt_binding_check
make O=$OUTKNL dt_binding_check DT_SCHEMA_FILES=cix,sky1-rst.yaml make O=$OUTKNL dt_binding_check DT_SCHEMA_FILES=cix,sky1-system-controller.yaml make O=$OUTKNL CHECK_DTBS=y W=1 cix/sky1-orion-o6.dtb scripts/checkpatch.pl 000*.patch
- refine reset driver
- fix dt-bindings style

v4 changes:
- Pass dts build check with below commands:
make O=$OUTKNL dt_binding_check
make O=$OUTKNL dt_binding_check DT_SCHEMA_FILES=cix,sky1-rst.yaml make O=$OUTKNL CHECK_DTBS=y W=1 cix/sky1-orion-o6.dtb scripts/checkpatch.pl 000*.patch
- add syscon
- refine reset driver
- fix dt-bindings style

v3 changes:
- Pass dts build check with below commands:
make O=$OUTKNL dt_binding_check
make O=$OUTKNL dt_binding_check DT_SCHEMA_FILES=cix,sky1-rst.yaml make O=$OUTKNL CHECK_DTBS=y W=1 cix/sky1-orion-o6.dtb scripts/checkpatch.pl 000*.patch
- remove syscon

v2 changes:
- Pass dts build check with below commands:
make O=$OUTKNL dt_binding_check
make O=$OUTKNL dt_binding_check DT_SCHEMA_FILES=cix,sky1-rst.yaml make O=$OUTKNL CHECK_DTBS=y W=1 cix/sky1-orion-o6.dtb scripts/checkpatch.pl 000*.patch
- fix dt-bindings style
- refine reset driver

Gary Yang (3):
dt-bindings: soc: cix: document the simple-mfd syscon on Sky1 SoC
reset: add Sky1 soc reset support
arm64: dts: cix: add support for cix sky1 resets

 .../soc/cix/cix,sky1-system-control.yaml      |  49 +++++
 arch/arm64/boot/dts/cix/sky1.dtsi             |  14 ++
 drivers/reset/Kconfig                         |   7 +
 drivers/reset/Makefile                        |   1 +
 drivers/reset/reset-sky1-base.c               | 117 ++++++++++
 drivers/reset/reset-sky1-fch.c                |  78 +++++++
 drivers/reset/reset-sky1.c                    | 204 ++++++++++++++++++
 drivers/soc/Kconfig                           |   1 +
 drivers/soc/Makefile                          |   1 +
 drivers/soc/cix/Kconfig                       |  11 +
 drivers/soc/cix/Makefile                      |   1 +
 drivers/soc/cix/sky1-system-control.c         |  47 ++++
 include/dt-bindings/reset/cix,sky1-rst-fch.h  |  42 ++++
 include/dt-bindings/reset/cix,sky1-rst.h      | 164 ++++++++++++++
 include/linux/reset/sky1.h                    |  18 ++
 15 files changed, 755 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/soc/cix/cix,sky1-system-control.yaml
 create mode 100644 drivers/reset/reset-sky1-base.c
 create mode 100644 drivers/reset/reset-sky1-fch.c
 create mode 100644 drivers/reset/reset-sky1.c
 create mode 100644 drivers/soc/cix/Kconfig
 create mode 100644 drivers/soc/cix/Makefile
 create mode 100644 drivers/soc/cix/sky1-system-control.c
 create mode 100644 include/dt-bindings/reset/cix,sky1-rst-fch.h
 create mode 100644 include/dt-bindings/reset/cix,sky1-rst.h
 create mode 100644 include/linux/reset/sky1.h
Signature · 1 line
2.49.0
author maintainer
#1 lore raw

PATCH v7 1/3 dt-bindings: soc: cix: document the simple-mfd syscon on Sky1 SoC

There are two system control on Cix sky1 Soc. One is located in S0 domain, and the other is located in S0 and S5 domain. The system control contains resets, usb typeC and more. At this point, only the reset controller child is described as usb typeC uses it by phandle.

---
 .../soc/cix/cix,sky1-system-control.yaml      |  49 ++++++
 include/dt-bindings/reset/cix,sky1-rst-fch.h  |  42 +++++
 include/dt-bindings/reset/cix,sky1-rst.h      | 164 ++++++++++++++++++
 3 files changed, 255 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/soc/cix/cix,sky1-system-control.yaml
 create mode 100644 include/dt-bindings/reset/cix,sky1-rst-fch.h
 create mode 100644 include/dt-bindings/reset/cix,sky1-rst.h
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-control.yaml new file +49 -0
new file mode 100644
index 000000000000..5fb6b97c3c00
@@ -0,0 +1,49 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/soc/cix/cix,sky1-system-control.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Cix Sky1 SoC system control register region
+
+maintainers:
+  - Gary Yang <[email protected]>
+
+description:
+  An wide assortment of registers of the system controller on Sky1 SoC,
+  including resets, usb, wakeup sources and so on.
+
+properties:
+  compatible:
+    items:
+      - enum:
+          - cix,sky1-system-control
+          - cix,sky1-s5-system-control
+      - const: syscon
+      - const: simple-mfd
+
+  reg:
+    maxItems: 1
+
+  '#address-cells':
+    const: 1
+
+  '#size-cells':
+    const: 1
+
+  '#reset-cells':
+    const: 1
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    syscon@16000000 {
+      compatible = "cix,sky1-s5-system-control", "syscon", "simple-mfd";
+      reg = <0x16000000 0x1000>;
+      #reset-cells = <1>;
+    };
include/dt-bindings/reset/cix,sky1-rst-fch.h new file +42 -0

42 lines not on this page · raw message

include/dt-bindings/reset/cix,sky1-rst.h new file +164 -0

164 lines not on this page · raw message

Signature · 1 line
2.49.0
#2 lore raw

Re: [PATCH v7 1/3] dt-bindings: soc: cix: document the simple-mfd syscon on Sky1 SoC

Quoted 34 lines · Gary Yang

There are two system control on Cix sky1 Soc. One is located in S0 domain, and the other is located in S0 and S5 domain. The system control contains resets, usb typeC and more. At this point, only the reset controller child is described as usb typeC uses it by phandle.

---
 .../soc/cix/cix,sky1-system-control.yaml      |  49 ++++++
 include/dt-bindings/reset/cix,sky1-rst-fch.h  |  42 +++++
 include/dt-bindings/reset/cix,sky1-rst.h      | 164 ++++++++++++++++++
 3 files changed, 255 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/soc/cix/cix,sky1-system-control.yaml
 create mode 100644 include/dt-bindings/reset/cix,sky1-rst-fch.h
 create mode 100644 include/dt-bindings/reset/cix,sky1-rst.h
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-control.yaml new file +13 -0
new file mode 100644
index 000000000000..5fb6b97c3c00
@@ -0,0 +1,49 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/soc/cix/cix,sky1-system-control.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Cix Sky1 SoC system control register region
+
+maintainers:
+  - Gary Yang <[email protected]>
+
+description:
+  An wide assortment of registers of the system controller on Sky1 SoC,

Documentation/devicetree/bindings/soc/cix/cix,sky1-system-control.yaml line 23

Quoted 10 lines
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-control.yaml new file +10 -0
+  including resets, usb, wakeup sources and so on.
+
+properties:
+  compatible:
+    items:
+      - enum:
+          - cix,sky1-system-control
+          - cix,sky1-s5-system-control
+      - const: syscon
+      - const: simple-mfd

Drop simple-mfd, no children

Documentation/devicetree/bindings/soc/cix/cix,sky1-system-control.yaml line 28

Quoted 5 lines
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-control.yaml new file +5 -0
+
+  reg:
+    maxItems: 1
+
+  '#address-cells':

Drop, no children

Documentation/devicetree/bindings/soc/cix/cix,sky1-system-control.yaml line 31

Quoted 3 lines
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-control.yaml new file +3 -0
+    const: 1
+
+  '#size-cells':

Drop

Do you see any recent simple-mfd binding written like this? There are no. Did you read any of other bindings before sending this? Or at least my slides or amny other resources from vast documentation from elinux.org?

Best regards,
Krzysztof

author maintainer
#3 lore raw

回复: [PATCH v7 1/3] dt-bindings: soc: cix: document the simple-mfd syscon on Sky1 SoC

Hi Krzysztof:

I'm glad to see your comments

Quoted 49 lines

EXTERNAL EMAIL

Quoted 10 lines · Gary Yang

There are two system control on Cix sky1 Soc. One is located in S0 domain, and the other is located in S0 and S5 domain. The system control contains resets, usb typeC and more. At this point, only the reset controller child is described as usb typeC uses it by phandle.

---
 .../soc/cix/cix,sky1-system-control.yaml      |  49 ++++++
 include/dt-bindings/reset/cix,sky1-rst-fch.h  |  42 +++++
 include/dt-bindings/reset/cix,sky1-rst.h      | 164

++++++++++++++++++

Quoted 35 lines
 3 files changed, 255 insertions(+)
 create mode 100644
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-control.yaml
 create mode 100644 include/dt-bindings/reset/cix,sky1-rst-fch.h
 create mode 100644 include/dt-bindings/reset/cix,sky1-rst.h

diff --git a/Documentation/devicetree/bindings/soc/cix/cix,sky1-system-control.ya ml b/Documentation/devicetree/bindings/soc/cix/cix,sky1-system-control.ya ml
new file mode 100644
index 000000000000..5fb6b97c3c00

Documentation/devicetree/bindings/soc/cix/cix,sky1-system-contro new file +19 -0
+++ l.yaml
@@ -0,0 +1,49 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause %YAML 1.2
+---
+$id:
+http://devicetree.org/schemas/soc/cix/cix,sky1-system-control.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Cix Sky1 SoC system control register region
+
+maintainers:
+  - Gary Yang <[email protected]>
+
+description:
+  An wide assortment of registers of the system controller on Sky1
+SoC,
+  including resets, usb, wakeup sources and so on.
+
+properties:
+  compatible:
Quoted 9 lines

Documentation/devicetree/bindings/soc/cix/cix,sky1-system-contro line 24

Quoted 6 lines
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-contro new file +6 -0
+    items:
+      - enum:
+          - cix,sky1-system-control
+          - cix,sky1-s5-system-control
+      - const: syscon
+      - const: simple-mfd

Drop simple-mfd, no children

Yes, just now there is no child nodes. We want to reserve it for further. If you feel confuse, we can also delete this strings.

Quoted 7 lines

Documentation/devicetree/bindings/soc/cix/cix,sky1-system-contro line 29

Quoted 5 lines
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-contro new file +5 -0
+
+  reg:
+    maxItems: 1
+
+  '#address-cells':

Drop, no children

The same as above

Quoted 7 lines

Documentation/devicetree/bindings/soc/cix/cix,sky1-system-contro line 32

Quoted 4 lines
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-contro new file +3 -0
+    const: 1
+
+  '#size-cells':

Drop

same

Quoted 4 lines

Do you see any recent simple-mfd binding written like this? There are no. Did you read any of other bindings before sending this? Or at least my slides or amny other resources from vast documentation from elinux.org?

This yaml comes from microchip,mpfs-mss-top-sysreg.yaml as conor's suggestions on V3.
More info: https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/
If you have the different views, please give more information. Thanks

If miss any information, please remind me.

Best Regards
Gary

Quoted 2 lines

Best regards,
Krzysztof

#4 lore raw

Re: 回复: [PATCH v7 1/3] dt-bindings: soc: cix: document the simple-mfd syscon on Sky1 SoC

Quoted 63 lines · Gary Yang

Hi Krzysztof:

I'm glad to see your comments

Quoted 49 lines

EXTERNAL EMAIL

Quoted 10 lines · Gary Yang

There are two system control on Cix sky1 Soc. One is located in S0 domain, and the other is located in S0 and S5 domain. The system control contains resets, usb typeC and more. At this point, only the reset controller child is described as usb typeC uses it by phandle.

---
 .../soc/cix/cix,sky1-system-control.yaml      |  49 ++++++
 include/dt-bindings/reset/cix,sky1-rst-fch.h  |  42 +++++
 include/dt-bindings/reset/cix,sky1-rst.h      | 164

++++++++++++++++++

Quoted 35 lines
 3 files changed, 255 insertions(+)
 create mode 100644
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-control.yaml
 create mode 100644 include/dt-bindings/reset/cix,sky1-rst-fch.h
 create mode 100644 include/dt-bindings/reset/cix,sky1-rst.h

diff --git a/Documentation/devicetree/bindings/soc/cix/cix,sky1-system-control.ya ml b/Documentation/devicetree/bindings/soc/cix/cix,sky1-system-control.ya ml
new file mode 100644
index 000000000000..5fb6b97c3c00

Documentation/devicetree/bindings/soc/cix/cix,sky1-system-contro new file +19 -0
+++ l.yaml
@@ -0,0 +1,49 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause %YAML 1.2
+---
+$id:
+http://devicetree.org/schemas/soc/cix/cix,sky1-system-control.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Cix Sky1 SoC system control register region
+
+maintainers:
+  - Gary Yang <[email protected]>
+
+description:
+  An wide assortment of registers of the system controller on Sky1
+SoC,
+  including resets, usb, wakeup sources and so on.
+
+properties:
+  compatible:
Quoted 9 lines

Documentation/devicetree/bindings/soc/cix/cix,sky1-system-contro line 24

Quoted 6 lines
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-contro new file +6 -0
+    items:
+      - enum:
+          - cix,sky1-system-control
+          - cix,sky1-s5-system-control
+      - const: syscon
+      - const: simple-mfd

Drop simple-mfd, no children

Quoted 2 lines

Yes, just now there is no child nodes. We want to reserve it for further. If you feel confuse, we can also delete this strings.

Sorry, you cannot reserve it. Bindings should be complete (see writing bindings), so you should post a COMPLETE binding for this device now.

Adding ABI for "reserved case" is poor idea, because you will have to support it forever.

Quoted 21 lines
Quoted 8 lines

Documentation/devicetree/bindings/soc/cix/cix,sky1-system-contro line 29

Quoted 6 lines
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-contro new file +5 -0
+
+  reg:
+    maxItems: 1
+
+  '#address-cells':

Drop, no children

The same as above

Quoted 7 lines

Documentation/devicetree/bindings/soc/cix/cix,sky1-system-contro line 32

Quoted 4 lines
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-contro new file +3 -0
+    const: 1
+
+  '#size-cells':

Drop

same

Quoted 7 lines
Quoted 4 lines

Do you see any recent simple-mfd binding written like this? There are no. Did you read any of other bindings before sending this? Or at least my slides or amny other resources from vast documentation from elinux.org?

This yaml comes from microchip,mpfs-mss-top-sysreg.yaml as conor's suggestions on V3.
More info: https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/

Please point to a specific message, not entire thread of 8 untrimmed replies.

Quoted 1 line

If you have the different views, please give more information. Thanks

These are simply wrong in this context.

If you claim you might need it, it means you actually need to finish the binding with missing pieces. Look, do you write such Cc code:

int some_probe() {
	...

	if (0) {
		/* Code reserved for future */
	}

	return 0;
}

No. Creating unused code means more maintenance, wasted review, wasted cycles of preprocessor or compiler. We NEVER write such code.

Quoted 2 lines

If miss any information, please remind me.

Yeah, please post COMPLETE bindings for this device.

Best regards,
Krzysztof

author maintainer
#5 lore raw

回复: 回复: [PATCH v7 1/3] dt-bindings: soc: cix: document the simple-mfd syscon on Sky1 SoC

Hi Krzysztof:

Quoted 106 lines

EXTERNAL EMAIL

Quoted 66 lines · Gary Yang

Hi Krzysztof:

I'm glad to see your comments

Quoted 52 lines

EXTERNAL EMAIL

Quoted 10 lines · Gary Yang

There are two system control on Cix sky1 Soc. One is located in S0 domain, and the other is located in S0 and S5 domain. The system control contains resets, usb typeC and more. At this point, only the reset controller child is described as usb typeC uses it by phandle.

---
 .../soc/cix/cix,sky1-system-control.yaml      |  49 ++++++
 include/dt-bindings/reset/cix,sky1-rst-fch.h  |  42 +++++
 include/dt-bindings/reset/cix,sky1-rst.h      | 164

++++++++++++++++++

Quoted 38 lines
 3 files changed, 255 insertions(+)
 create mode 100644
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-control.ya
ml  create mode 100644 include/dt-bindings/reset/cix,sky1-rst-fch.h
 create mode 100644 include/dt-bindings/reset/cix,sky1-rst.h

diff --git a/Documentation/devicetree/bindings/soc/cix/cix,sky1-system-control. ya
ml b/Documentation/devicetree/bindings/soc/cix/cix,sky1-system-control. ya
ml
new file mode 100644
index 000000000000..5fb6b97c3c00

Documentation/devicetree/bindings/soc/cix/cix,sky1-system-cont new file +20 -0
+++ ro
+++ l.yaml
@@ -0,0 +1,49 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause %YAML 1.2
+---
+$id:
+http://devicetree.org/schemas/soc/cix/cix,sky1-system-control.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Cix Sky1 SoC system control register region
+
+maintainers:
+  - Gary Yang <[email protected]>
+
+description:
+  An wide assortment of registers of the system controller on Sky1
+SoC,
+  including resets, usb, wakeup sources and so on.
+
+properties:
+  compatible:
Quoted 9 lines

Documentation/devicetree/bindings/soc/cix/cix,sky1-system-cont line 24

Quoted 6 lines
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-cont new file +6 -0
+    items:
+      - enum:
+          - cix,sky1-system-control
+          - cix,sky1-s5-system-control
+      - const: syscon
+      - const: simple-mfd

Drop simple-mfd, no children

Quoted 2 lines

Yes, just now there is no child nodes. We want to reserve it for further. If you feel confuse, we can also delete this strings.

Sorry, you cannot reserve it. Bindings should be complete (see writing bindings), so you should post a COMPLETE binding for this device now.

Adding ABI for "reserved case" is poor idea, because you will have to support it forever.

Quoted 12 lines
Quoted 8 lines

Documentation/devicetree/bindings/soc/cix/cix,sky1-system-cont line 29

Quoted 6 lines
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-cont new file +5 -0
+
+  reg:
+    maxItems: 1
+
+  '#address-cells':

Drop, no children

The same as above

Quoted 1 line
Quoted 12 lines
Quoted 6 lines

Documentation/devicetree/bindings/soc/cix/cix,sky1-system-cont line 32

Quoted 3 lines
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-cont new file +3 -0
+    const: 1
+
+  '#size-cells':

Drop

same

Quoted 3 lines

Do you see any recent simple-mfd binding written like this? There are no. Did you read any of other bindings before sending this? Or at least my slides or amny other resources from vast documentation from

elinux.org?

Quoted 2 lines
Quoted 1 line
Quoted 8 lines
Quoted 1 line

This yaml comes from microchip,mpfs-mss-top-sysreg.yaml as conor's

suggestions on V3.

Quoted 3 lines

More info:
https://patchwork.kernel.org/project/linux-arm-kernel/patch/2025112406
[email protected]/

Please point to a specific message, not entire thread of 8 untrimmed replies.

Please pay attention to these below:

Quoted 2 lines

Three, In corresponding driver files, we can get the regmap pointers via syscon API. All right? By the way, How should we describe syscon in yaml file? Are there some files used to refer?

microchip,mpfs-mss-top-sysreg.yaml is one I wrote recently. Going to the corresponding driver you will be able to see how the reset controller driver is probed. You should be able to find it in linux-next. sophgo,sg2044-top-syscon.yaml is another that works in the same way

Quoted 17 lines
Quoted 1 line

If you have the different views, please give more information. Thanks

These are simply wrong in this context.

If you claim you might need it, it means you actually need to finish the binding with missing pieces. Look, do you write such Cc code:

int some_probe() {
        ...

        if (0) {
                /* Code reserved for future */
        }

        return 0;
}
Quoted 10 lines

No. Creating unused code means more maintenance, wasted review, wasted cycles of preprocessor or compiler. We NEVER write such code.

Quoted 2 lines

If miss any information, please remind me.

Yeah, please post COMPLETE bindings for this device.

Yes, I agree your views. we will delete "simple-mfd" strings next version. Thanks for your advices.

Best Regards
Gary

Quoted 2 lines

Best regards,
Krzysztof

#6 lore raw

Re: 回复: 回复: [PATCH v7 1/3] dt-bindings: soc: cix: document the simple-mfd syscon on Sky1 SoC

Quoted 10 lines · Gary Yang
Quoted 9 lines
Quoted 2 lines

This yaml comes from microchip,mpfs-mss-top-sysreg.yaml as conor's

suggestions on V3.

Quoted 3 lines

More info:
https://patchwork.kernel.org/project/linux-arm-kernel/patch/2025112406
[email protected]/

Please point to a specific message, not entire thread of 8 untrimmed replies.

Quoted 6 lines

Please pay attention to these below:

Quoted 2 lines

Three, In corresponding driver files, we can get the regmap pointers via syscon API. All right? By the way, How should we describe syscon in yaml file? Are there some files used to refer?

microchip,mpfs-mss-top-sysreg.yaml is one I wrote recently. Going to the

I do not understand why you are referring to this example. You did nothing like that.

If you followed that example, it would be obviously fine because it is correct. You did not follow that one - you have no children here - thus you just proven that you received review which you just ignored. Sorry, that's waste of our time. If you go that way, don't be surprised we are grumpy. How many examples we need to give you which you can ignore...

Best regards,
Krzysztof

author maintainer
#7 lore raw

回复: 回复: 回复: [PATCH v7 1/3] dt-bindings: soc: cix: document the simple-mfd syscon on Sky1 SoC

Hi Krzysztof:

Thanks for your comments

Quoted 24 lines

EXTERNAL EMAIL

Quoted 13 lines · Gary Yang
Quoted 9 lines
Quoted 2 lines

This yaml comes from microchip,mpfs-mss-top-sysreg.yaml as conor's

suggestions on V3.

Quoted 3 lines

More info:
https://patchwork.kernel.org/project/linux-arm-kernel/patch/20251124
06 [email protected]/

Please point to a specific message, not entire thread of 8 untrimmed replies.

Please pay attention to these below:

Quoted 1 line

Three, In corresponding driver files, we can get the regmap pointers via

syscon API.

Quoted 1 line
Quoted 1 line

All right? By the way, How should we describe syscon in yaml file? Are there

some files used to refer?

Quoted 3 lines

microchip,mpfs-mss-top-sysreg.yaml is one I wrote recently. Going to the

Quoted 9 lines

I do not understand why you are referring to this example. You did nothing like that.

If you followed that example, it would be obviously fine because it is correct. You did not follow that one - you have no children here - thus you just proven that you received review which you just ignored. Sorry, that's waste of our time. If you go that way, don't be surprised we are grumpy. How many examples we need to give you which you can ignore...

I'm sorry. From see conor's advices, we carefully research this scheme. We all refer to this scheme from V4. Although it becomes failure, we try our best to do it every time. we are closer to success than before. All right? please give us more time to grow up. Thanks for your understandings.

Best Regards
Gary

Quoted 3 lines

Best regards,
Krzysztof

author maintainer
#8 lore raw

PATCH v7 2/3 reset: add Sky1 soc reset support

In reply to Gary Yang

Add support for the resets on Cix's Sky1 SoC.
There are two reset controllers on Cix Sky1 Soc. One is located in S0 domain, and the other is located in S0 and S5 domain.

---
 drivers/reset/Kconfig                 |   7 +
 drivers/reset/Makefile                |   1 +
 drivers/reset/reset-sky1-base.c       | 117 +++++++++++++++
 drivers/reset/reset-sky1-fch.c        |  78 ++++++++++
 drivers/reset/reset-sky1.c            | 204 ++++++++++++++++++++++++++
 drivers/soc/Kconfig                   |   1 +
 drivers/soc/Makefile                  |   1 +
 drivers/soc/cix/Kconfig               |  11 ++
 drivers/soc/cix/Makefile              |   1 +
 drivers/soc/cix/sky1-system-control.c |  47 ++++++
 include/linux/reset/sky1.h            |  18 +++
 11 files changed, 486 insertions(+)
 create mode 100644 drivers/reset/reset-sky1-base.c
 create mode 100644 drivers/reset/reset-sky1-fch.c
 create mode 100644 drivers/reset/reset-sky1.c
 create mode 100644 drivers/soc/cix/Kconfig
 create mode 100644 drivers/soc/cix/Makefile
 create mode 100644 drivers/soc/cix/sky1-system-control.c
 create mode 100644 include/linux/reset/sky1.h
drivers/reset/Kconfig +7 -0
index 6e5d6deffa7d..24bf60c4e640 100644
@@ -291,6 +291,13 @@ config RESET_SIMPLE
 	   - SiFive FU740 SoCs
 	   - Sophgo SoCs
 
+config RESET_SKY1
+	bool "Cix Sky1 reset controller"
+	depends on HAS_IOMEM
+	depends on ARCH_CIX || COMPILE_TEST
+	help
+	  This enables the reset controller for Cix Sky1.
+
 config RESET_SOCFPGA
 	bool "SoCFPGA Reset Driver" if COMPILE_TEST && (!ARM || !ARCH_INTEL_SOCFPGA)
 	default ARM && ARCH_INTEL_SOCFPGA
drivers/reset/Makefile +1 -0
index 9c3e484dfd81..6a43ed23da14 100644
@@ -37,6 +37,7 @@ obj-$(CONFIG_RESET_RZG2L_USBPHY_CTRL) += reset-rzg2l-usbphy-ctrl.o
 obj-$(CONFIG_RESET_RZV2H_USB2PHY) += reset-rzv2h-usb2phy.o
 obj-$(CONFIG_RESET_SCMI) += reset-scmi.o
 obj-$(CONFIG_RESET_SIMPLE) += reset-simple.o
+obj-$(CONFIG_RESET_SKY1) += reset-sky1-base.o reset-sky1.o reset-sky1-fch.o
 obj-$(CONFIG_RESET_SOCFPGA) += reset-socfpga.o
 obj-$(CONFIG_RESET_SPACEMIT) += reset-spacemit.o
 obj-$(CONFIG_RESET_SUNPLUS) += reset-sunplus.o
drivers/reset/reset-sky1-base.c new file +117 -0

117 lines not on this page · raw message

drivers/reset/reset-sky1-fch.c new file +78 -0

78 lines not on this page · raw message

drivers/reset/reset-sky1.c new file +204 -0

204 lines not on this page · raw message

drivers/soc/Kconfig +1 -0
index a2d65adffb80..150352c50be9 100644
@@ -8,6 +8,7 @@ source "drivers/soc/atmel/Kconfig"
 source "drivers/soc/bcm/Kconfig"
 source "drivers/soc/canaan/Kconfig"
 source "drivers/soc/cirrus/Kconfig"
+source "drivers/soc/cix/Kconfig"
 source "drivers/soc/fsl/Kconfig"
 source "drivers/soc/fujitsu/Kconfig"
 source "drivers/soc/hisilicon/Kconfig"
drivers/soc/Makefile +1 -0
index c9e689080ceb..e36645abf20a 100644
@@ -9,6 +9,7 @@ obj-$(CONFIG_ARCH_AT91)		+= atmel/
 obj-y				+= bcm/
 obj-$(CONFIG_ARCH_CANAAN)	+= canaan/
 obj-$(CONFIG_EP93XX_SOC)        += cirrus/
+obj-$(CONFIG_ARCH_CIX)		+= cix/
 obj-$(CONFIG_ARCH_DOVE)		+= dove/
 obj-$(CONFIG_MACH_DOVE)		+= dove/
 obj-y				+= fsl/
drivers/soc/cix/Kconfig new file +11 -0
new file mode 100644
index 000000000000..3487499d4b2a
@@ -0,0 +1,11 @@
+config CIX_SOC_SYSCONS
+	bool "Cix SoC syscon drivers"
+	default y
+	depends on ARCH_CIX
+	select MFD_CORE
+	help
+	  The drivers add support for the syscons on Cix SoC. Without
+	  the drivers core parts of the kernel such as resets will not
+	  function correctly.
+
+	  If unsure, and on a Cix SoC, say y.
drivers/soc/cix/Makefile new file +1 -0
new file mode 100644
index 000000000000..e1252cf836ba
@@ -0,0 +1 @@
+obj-$(CONFIG_CIX_SOC_SYSCONS)	+= sky1-system-control.o
drivers/soc/cix/sky1-system-control.c new file +47 -0

47 lines not on this page · raw message

include/linux/reset/sky1.h new file +18 -0
new file mode 100644
index 000000000000..2939071e510c
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __LINUX_RESET_SKY1_H__
+#define __LINUX_RESET_SKY1_H__
+
+struct sky1_src_signal {
+	unsigned int offset;
+	unsigned int bit;
+};
+
+struct sky1_src_variant {
+	const struct sky1_src_signal *signals;
+	unsigned int signals_num;
+};
+
+int sky1_reset_common_probe(struct platform_device *pdev,
+			    const struct sky1_src_variant *variant);
+
+#endif /* __LINUX_RESET_SKY1_H__ */
Signature · 1 line
2.49.0
author maintainer
#9 lore raw

PATCH v7 3/3 arm64: dts: cix: add support for cix sky1 resets

In reply to Gary Yang

There are two reset conctrollers on Cix Sky1 Soc. One is located in S0 domain, and the other is located in S0 and S5 domain.

---
 arch/arm64/boot/dts/cix/sky1.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/cix/sky1.dtsi +14 -0
index 64b76905cbff..37dca97b6b67 100644
@@ -348,6 +348,13 @@ i3c1: i3c@4100000 {
 			status = "disabled";
 		};
 
+		syscon: syscon@4160000 {
+			compatible = "cix,sky1-system-control", "syscon",
+				     "simple-mfd";
+			reg = <0x0 0x4160000 0x0 0x100>;
+			#reset-cells = <1>;
+		};
+
 		iomuxc: pinctrl@4170000 {
 			compatible = "cix,sky1-pinctrl";
 			reg = <0x0 0x04170000 0x0 0x1000>;
@@ -568,6 +575,13 @@ ppi_partition1: interrupt-partition-1 {
 			};
 		};
 
+		s5_syscon: s5-syscon@16000000 {
+			compatible = "cix,sky1-s5-system-control", "syscon",
+				     "simple-mfd";
+			reg = <0x0 0x16000000 0x0 0x1000>;
+			#reset-cells = <1>;
+		};
+
 		iomuxc_s5: pinctrl@16007000 {
 			compatible = "cix,sky1-pinctrl-s5";
 			reg = <0x0 0x16007000 0x0 0x1000>;
Signature · 1 line
2.49.0
#10 lore raw

Re: [PATCH v7 3/3] arm64: dts: cix: add support for cix sky1 resets

Quoted 27 lines · Gary Yang

There are two reset conctrollers on Cix Sky1 Soc. One is located in S0 domain, and the other is located in S0 and S5 domain.

---
 arch/arm64/boot/dts/cix/sky1.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/cix/sky1.dtsi +7 -0
index 64b76905cbff..37dca97b6b67 100644
@@ -348,6 +348,13 @@ i3c1: i3c@4100000 {
 			status = "disabled";
 		};
 
+		syscon: syscon@4160000 {
+			compatible = "cix,sky1-system-control", "syscon",
+				     "simple-mfd";
+			reg = <0x0 0x4160000 0x0 0x100>;
+			#reset-cells = <1>;
+		};
+
 		iomuxc: pinctrl@4170000 {
 			compatible = "cix,sky1-pinctrl";
 			reg = <0x0 0x04170000 0x0 0x1000>;

arch/arm64/boot/dts/cix/sky1.dtsi ppi_partition1: interrupt-partition-1 { · line 578

Quoted 4 lines
arch/arm64/boot/dts/cix/sky1.dtsi +1 -0
@@ -568,6 +575,13 @@ ppi_partition1: interrupt-partition-1 {
 			};
 		};
 
+		s5_syscon: s5-syscon@16000000 {

Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
If you cannot find a name matching your device, please check in kernel sources for similar cases or you can grow the spec (via pull request to DT spec repo).

e.g. syscon

Best regards,
Krzysztof

author maintainer
#11 lore raw

回复: [PATCH v7 3/3] arm64: dts: cix: add support for cix sky1 resets

Hi Krzysztof:

I'm glad your comments.

Quoted 43 lines

EXTERNAL EMAIL

Quoted 22 lines · Gary Yang

There are two reset conctrollers on Cix Sky1 Soc. One is located in S0 domain, and the other is located in S0 and S5 domain.

---
 arch/arm64/boot/dts/cix/sky1.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/cix/sky1.dtsi +5 -0
index 64b76905cbff..37dca97b6b67 100644
@@ -348,6 +348,13 @@ i3c1: i3c@4100000 {
                      status = "disabled";
              };
 
+             syscon: syscon@4160000 {
+                     compatible = "cix,sky1-system-control", "syscon",
+                                  "simple-mfd";
+                     reg = <0x0 0x4160000 0x0 0x100>;
+                     #reset-cells = <1>;

arch/arm64/boot/dts/cix/sky1.dtsi i3c1: i3c@4100000 {

Quoted 10 lines
arch/arm64/boot/dts/cix/sky1.dtsi +4 -0
+             };
+
              iomuxc: pinctrl@4170000 {
                      compatible = "cix,sky1-pinctrl";
                      reg = <0x0 0x04170000 0x0 0x1000>; @@ -568,6
+575,13 @@ ppi_partition1: interrupt-partition-1 {
                      };
              };
 
+             s5_syscon: s5-syscon@16000000 {

Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-
basics.html#generic-names-recommendation
If you cannot find a name matching your device, please check in kernel sources for similar cases or you can grow the spec (via pull request to DT spec repo).

Quoted 2 lines

e.g. syscon

Yes, you're right. This is my bad. I have realized my stupid mistakes. I get a lot from your comments. Thanks for your advices.
We will fix it on next version.

Best Regards
Gary

Quoted 3 lines

Best regards,
Krzysztof