Skip to contentSkip to conversation

Add support for Cix Sky1 resets

PATCH Superseded Gary Yang 6 participants 13 messages Jan 28 – Jan 29

Subsystems (4)

v4 of 10 Superseded Latest is v10 →

lore
Share & tools
lore

Gary Yang

author maintainer
#0 lore raw

v4 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

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 scripts/checkpatch.pl 000*.patch
make O=$OUTKNL CHECK_DTBS=y W=1 cix/sky1-orion-o6.dtb
- 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 scripts/checkpatch.pl 000*.patch
make O=$OUTKNL CHECK_DTBS=y W=1 cix/sky1-orion-o6.dtb
- 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 scripts/checkpatch.pl 000*.patch
make O=$OUTKNL CHECK_DTBS=y W=1 cix/sky1-orion-o6.dtb
- fix dt-bindings style
- refine reset driver

Gary Yang (3):
dt-bindings: reset: add sky1 reset controller
reset: cix: add support for cix sky1 resets
arm64: dts: cix: add support for cix sky1 resets

 .../devicetree/bindings/mfd/syscon.yaml       |   7 +
 .../bindings/reset/cix,sky1-rst.yaml          |  46 +++
 .../soc/cix/cix,sky1-system-controller.yaml   |  48 +++
 arch/arm64/boot/dts/cix/sky1.dtsi             |  22 +
 drivers/reset/Kconfig                         |   7 +
 drivers/reset/Makefile                        |   1 +
 drivers/reset/reset-sky1.c                    | 376 ++++++++++++++++++
 include/dt-bindings/reset/cix,sky1-rst-fch.h  |  42 ++
 include/dt-bindings/reset/cix,sky1-rst.h      | 164 ++++++++
 9 files changed, 713 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml
 create mode 100644 Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.yaml
 create mode 100644 drivers/reset/reset-sky1.c
 create mode 100644 include/dt-bindings/reset/cix,sky1-rst-fch.h
 create mode 100644 include/dt-bindings/reset/cix,sky1-rst.h
Signature · 1 line
2.49.0
author maintainer
#7 lore raw

PATCH v4 2/3 reset: cix: add support for cix sky1 resets

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.c | 376 +++++++++++++++++++++++++++++++++++++
 3 files changed, 384 insertions(+)
 create mode 100644 drivers/reset/reset-sky1.c
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..0d2e1329561d 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.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.c new file +376 -0

376 lines not on this page · raw message

Signature · 1 line
2.49.0
author maintainer
#12 lore raw

PATCH v4 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 | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
arch/arm64/boot/dts/cix/sky1.dtsi +22 -0
index 64b76905cbff..45c008bf580a 100644
@@ -348,6 +348,17 @@ i3c1: i3c@4100000 {
 			status = "disabled";
 		};
 
+		syscon: syscon@4160000 {
+			compatible = "cix,sky1-system-controller", "syscon",
+				   "simple-mfd";
+			reg = <0x0 0x4160000 0x0 0x100>;
+
+			src_fch: reset-controller {
+				compatible = "cix,sky1-rst-fch";
+				#reset-cells = <1>;
+			};
+		};
+
 		iomuxc: pinctrl@4170000 {
 			compatible = "cix,sky1-pinctrl";
 			reg = <0x0 0x04170000 0x0 0x1000>;
@@ -568,6 +579,17 @@ ppi_partition1: interrupt-partition-1 {
 			};
 		};
 
+		s5_syscon: s5-syscon@16000000 {
+			compatible = "cix,sky1-s5-system-controller", "syscon",
+				   "simple-mfd";
+			reg = <0x0 0x16000000 0x0 0x1000>;
+
+			src: reset-controller {
+				compatible = "cix,sky1-rst";
+				#reset-cells = <1>;
+			};
+		};
+
 		iomuxc_s5: pinctrl@16007000 {
 			compatible = "cix,sky1-pinctrl-s5";
 			reg = <0x0 0x16007000 0x0 0x1000>;
Signature · 1 line
2.49.0
author maintainer
#1 lore raw

PATCH v4 1/3 dt-bindings: reset: add sky1 reset controller

In reply to Gary Yang

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.

---
 .../devicetree/bindings/mfd/syscon.yaml       |   7 +
 .../bindings/reset/cix,sky1-rst.yaml          |  46 +++++
 .../soc/cix/cix,sky1-system-controller.yaml   |  48 +++++
 include/dt-bindings/reset/cix,sky1-rst-fch.h  |  42 +++++
 include/dt-bindings/reset/cix,sky1-rst.h      | 164 ++++++++++++++++++
 5 files changed, 307 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml
 create mode 100644 Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.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/mfd/syscon.yaml +7 -0
index 55efb83b1495..be864a6b8efb 100644
@@ -170,6 +170,8 @@ properties:
               - cirrus,ep7209-syscon1
               - cirrus,ep7209-syscon2
               - cirrus,ep7209-syscon3
+              - cix,sky1-system-controller
+              - cix,sky1-s5-system-controller
               - cnxt,cx92755-uc
               - freecom,fsg-cs2-system-controller
               - fsl,imx93-aonmix-ns-syscfg
@@ -254,6 +256,11 @@ properties:
           - const: microchip,pic64gx-sysreg-scb
           - const: microchip,mpfs-sysreg-scb
           - const: syscon
+      - items:
+          - enum:
+              - cix,sky1-system-controller
+              - cix,sky1-s5-system-controller
+          - const: syscon
 
   reg:
     maxItems: 1
Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml new file +46 -0

46 lines not on this page · raw message

Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.yaml new file +48 -0

48 lines not on this page · raw message

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 v4 1/3] dt-bindings: reset: add sky1 reset controller

Quoted 3 lines · Gary Yang

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.

Please wrap commit message according to Linux coding style / submission process (neither too early nor over the limit):
https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597

Quoted 30 lines
---
 .../devicetree/bindings/mfd/syscon.yaml       |   7 +
 .../bindings/reset/cix,sky1-rst.yaml          |  46 +++++
 .../soc/cix/cix,sky1-system-controller.yaml   |  48 +++++
 include/dt-bindings/reset/cix,sky1-rst-fch.h  |  42 +++++
 include/dt-bindings/reset/cix,sky1-rst.h      | 164 ++++++++++++++++++
 5 files changed, 307 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml
 create mode 100644 Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.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/mfd/syscon.yaml +2 -0
index 55efb83b1495..be864a6b8efb 100644
@@ -170,6 +170,8 @@ properties:
               - cirrus,ep7209-syscon1
               - cirrus,ep7209-syscon2
               - cirrus,ep7209-syscon3
+              - cix,sky1-system-controller
+              - cix,sky1-s5-system-controller
               - cnxt,cx92755-uc
               - freecom,fsg-cs2-system-controller
               - fsl,imx93-aonmix-ns-syscfg

Documentation/devicetree/bindings/mfd/syscon.yaml properties: · line 263

Quoted 8 lines
Documentation/devicetree/bindings/mfd/syscon.yaml +5 -0
@@ -254,6 +256,11 @@ properties:
           - const: microchip,pic64gx-sysreg-scb
           - const: microchip,mpfs-sysreg-scb
           - const: syscon
+      - items:
+          - enum:
+              - cix,sky1-system-controller
+              - cix,sky1-s5-system-controller
+          - const: syscon

Do not create your own style. Cix is not special. There is already an enum for EVERYONE.

Documentation/devicetree/bindings/mfd/syscon.yaml properties: · line 266

Quoted 3 lines
Documentation/devicetree/bindings/mfd/syscon.yaml +0 -0
   reg:
     maxItems: 1

Independent patch. Please do not combine unrelated patches into one.

Quoted 24 lines
Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml new file +18 -0
new file mode 100644
index 000000000000..4323acdc2c45
@@ -0,0 +1,46 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/reset/cix,sky1-rst.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: CIX Sky1 Reset Controller
+
+maintainers:
+  - Gary Yang <[email protected]>
+
+description: |
+  CIX Sky1 reset controller can be used to reset various set of peripherals.
+  There are two reset controllers, one is located in S0 domain, the other
+  is located in S0 and S5 domain.
+
+  See also:
+  - include/dt-bindings/reset/cix,sky1-rst.h

Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml line 28

Quoted 10 lines
Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml new file +10 -0
+
+properties:
+  compatible:
+    items:
+      - enum:
+          - cix,sky1-rst
+          - cix,sky1-rst-fch
+
+  '#reset-cells':
+    const: 1

No resources? Then not a dedicated child node, but part of the syscon. Fold this entire binding into the parent node.

Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml line 40

Quoted 12 lines
Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml new file +12 -0
+
+required:
+  - compatible
+  - '#reset-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    syscon@16000000 {
+      compatible = "cix,sky1-s5-system-controller", "syscon",
+                "simple-mfd";

Mess alignment.

Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml line 41

Quoted 1 line
Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml new file +1 -0
+      reg = <0x0 0x16000000 0x0 0x1000>;

Does not belong here.

Quoted 24 lines
Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml new file +5 -0
+      src: reset-controller {
+        compatible = "cix,sky1-rst";
+        #reset-cells = <1>;
+      };
 
+    };
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.yaml new file +12 -0
new file mode 100644
index 000000000000..f6e2776e3f53
@@ -0,0 +1,48 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/soc/cix/cix,sky1-system-controller.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Cix Sky1 SoC system controller register region
+
+maintainers:
+  - Gary Yang <[email protected]>
+
+description:

Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.yaml line 22

Quoted 10 lines
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.yaml new file +10 -0
+  An wide assortment of registers of the system controller on Sky1 SoC,
+  including resets and usb.
+
+allOf:
+  - $ref: /schemas/mfd/syscon.yaml#
+
+properties:
+  compatible:
+    oneOf:
+      - contains:

What? No, don't come with random code. There is no single code like this.

Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.yaml line 27

Quoted 5 lines
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.yaml new file +5 -0
+          - enum:
+              - cix,sky1-system-controller
+              - cix,sky1-s5-system-controller
+          - const: syscon
+          - const: simple-mfd

Huh? You already documented this.

NAK, you are making random changes without any concept.

Read previous feedback. Really carefully.

Best regards,
Krzysztof

#3 lore raw

Re: [PATCH v4 1/3] dt-bindings: reset: add sky1 reset controller

Quoted 52 lines · Krzysztof Kozlowski
Quoted 3 lines · Gary Yang

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.

Please wrap commit message according to Linux coding style / submission process (neither too early nor over the limit):
https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597

Quoted 30 lines
---
 .../devicetree/bindings/mfd/syscon.yaml       |   7 +
 .../bindings/reset/cix,sky1-rst.yaml          |  46 +++++
 .../soc/cix/cix,sky1-system-controller.yaml   |  48 +++++
 include/dt-bindings/reset/cix,sky1-rst-fch.h  |  42 +++++
 include/dt-bindings/reset/cix,sky1-rst.h      | 164 ++++++++++++++++++
 5 files changed, 307 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml
 create mode 100644 Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.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/mfd/syscon.yaml +2 -0
index 55efb83b1495..be864a6b8efb 100644
@@ -170,6 +170,8 @@ properties:
               - cirrus,ep7209-syscon1
               - cirrus,ep7209-syscon2
               - cirrus,ep7209-syscon3
+              - cix,sky1-system-controller
+              - cix,sky1-s5-system-controller
               - cnxt,cx92755-uc
               - freecom,fsg-cs2-system-controller
               - fsl,imx93-aonmix-ns-syscfg

Documentation/devicetree/bindings/mfd/syscon.yaml properties: · line 263

Quoted 8 lines
Documentation/devicetree/bindings/mfd/syscon.yaml +5 -0
@@ -254,6 +256,11 @@ properties:
           - const: microchip,pic64gx-sysreg-scb
           - const: microchip,mpfs-sysreg-scb
           - const: syscon
+      - items:
+          - enum:
+              - cix,sky1-system-controller
+              - cix,sky1-s5-system-controller
+          - const: syscon

Do not create your own style. Cix is not special. There is already an enum for EVERYONE.

Quoted 1 line
Quoted 4 lines
Quoted 2 lines

reg:
maxItems: 1

Independent patch. Please do not combine unrelated patches into one.

Was mid reply when I saw this mail come through, just wanted to add the one thing I had to say in excess of what you've written:

All the changes to syscon.yaml should be deleted, as it adds a competing definition to the one in the dedicated file, and I am surprised something like this passed testing.. Perhaps it passes if DT_SCHEMA_FILES=syscon.yaml but it'd fail a real dtbs_check, right? At v4, I'd be hoping for more thorough testing to be done.

Cheers,
Conor.

Quoted 110 lines
Quoted 26 lines
Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml new file +18 -0
new file mode 100644
index 000000000000..4323acdc2c45
@@ -0,0 +1,46 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/reset/cix,sky1-rst.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: CIX Sky1 Reset Controller
+
+maintainers:
+  - Gary Yang <[email protected]>
+
+description: |
+  CIX Sky1 reset controller can be used to reset various set of peripherals.
+  There are two reset controllers, one is located in S0 domain, the other
+  is located in S0 and S5 domain.
+
+  See also:
+  - include/dt-bindings/reset/cix,sky1-rst.h

Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml line 28

Quoted 10 lines
Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml new file +10 -0
+
+properties:
+  compatible:
+    items:
+      - enum:
+          - cix,sky1-rst
+          - cix,sky1-rst-fch
+
+  '#reset-cells':
+    const: 1

No resources? Then not a dedicated child node, but part of the syscon. Fold this entire binding into the parent node.

Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml line 40

Quoted 12 lines
Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml new file +12 -0
+
+required:
+  - compatible
+  - '#reset-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    syscon@16000000 {
+      compatible = "cix,sky1-s5-system-controller", "syscon",
+                "simple-mfd";

Mess alignment.

Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml line 41

Quoted 1 line
Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml new file +1 -0
+      reg = <0x0 0x16000000 0x0 0x1000>;

Does not belong here.

Quoted 24 lines
Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml new file +5 -0
+      src: reset-controller {
+        compatible = "cix,sky1-rst";
+        #reset-cells = <1>;
+      };
 
+    };
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.yaml new file +12 -0
new file mode 100644
index 000000000000..f6e2776e3f53
@@ -0,0 +1,48 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/soc/cix/cix,sky1-system-controller.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Cix Sky1 SoC system controller register region
+
+maintainers:
+  - Gary Yang <[email protected]>
+
+description:

Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.yaml line 22

Quoted 10 lines
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.yaml new file +10 -0
+  An wide assortment of registers of the system controller on Sky1 SoC,
+  including resets and usb.
+
+allOf:
+  - $ref: /schemas/mfd/syscon.yaml#
+
+properties:
+  compatible:
+    oneOf:
+      - contains:

What? No, don't come with random code. There is no single code like this.

Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.yaml line 27

Quoted 5 lines
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.yaml new file +5 -0
+          - enum:
+              - cix,sky1-system-controller
+              - cix,sky1-s5-system-controller
+          - const: syscon
+          - const: simple-mfd

Huh? You already documented this.

NAK, you are making random changes without any concept.

Read previous feedback. Really carefully.

Best regards,
Krzysztof

#5 lore raw

Re: [PATCH v4 1/3] dt-bindings: reset: add sky1 reset controller

In reply to Gary Yang
Quoted 7 lines · Gary Yang

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.

Quoted 12 lines
---
 .../devicetree/bindings/mfd/syscon.yaml       |   7 +
 .../bindings/reset/cix,sky1-rst.yaml          |  46 +++++
 .../soc/cix/cix,sky1-system-controller.yaml   |  48 +++++
 include/dt-bindings/reset/cix,sky1-rst-fch.h  |  42 +++++
 include/dt-bindings/reset/cix,sky1-rst.h      | 164 ++++++++++++++++++
 5 files changed, 307 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml
 create mode 100644 Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.yaml
 create mode 100644 include/dt-bindings/reset/cix,sky1-rst-fch.h
 create mode 100644 include/dt-bindings/reset/cix,sky1-rst.h

My bot found errors running 'make dt_binding_check' on your patch:

yamllint warnings/errors:

dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.yaml: ignoring, error in schema: properties: compatible: oneOf: 0: contains /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.yaml: properties:compatible:oneOf:0:contains: [{'enum': ['cix,sky1-system-controller', 'cix,sky1-s5-system-controller']}, {'const': 'syscon'}, {'const': 'simple-mfd'}] is not of type 'object', 'boolean' /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.yaml: properties:compatible:oneOf:0:contains: [{'enum': ['cix,sky1-system-controller', 'cix,sky1-s5-system-controller']}, {'const': 'syscon'}, {'const': 'simple-mfd'}] is not of type 'object', 'boolean' /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.yaml: properties:compatible:oneOf:0:contains: [{'enum': ['cix,sky1-system-controller', 'cix,sky1-s5-system-controller']}, {'const': 'syscon'}, {'const': 'simple-mfd'}] is not of type 'object', 'boolean' /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.yaml: properties:compatible:oneOf:0:contains: [{'enum': ['cix,sky1-system-controller', 'cix,sky1-s5-system-controller']}, {'const': 'syscon'}, {'const': 'simple-mfd'}] is not of type 'object', 'boolean' /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.yaml: properties:compatible:oneOf:0:contains: [{'enum': ['cix,sky1-system-controller', 'cix,sky1-s5-system-controller']}, {'const': 'syscon'}, {'const': 'simple-mfd'}] is not of type 'object', 'boolean' /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.yaml: properties:compatible:oneOf:0:contains: [{'enum': ['cix,sky1-system-controller', 'cix,sky1-s5-system-controller']}, {'const': 'syscon'}, {'const': 'simple-mfd'}] is not of type 'object', 'boolean' /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.yaml: properties:compatible:oneOf:0:contains: [{'enum': ['cix,sky1-system-controller', 'cix,sky1-s5-system-controller']}, {'const': 'syscon'}, {'const': 'simple-mfd'}] is not of type 'object', 'boolean' Traceback (most recent call last):
File "/usr/local/bin/dt-doc-validate", line 8, in <module>

    sys.exit(main())
             ~~~~^^
  File "/usr/local/lib/python3.13/dist-packages/dtschema/doc_validate.py", line 66, in main
    ret |= check_doc(f)
           ~~~~~~~~~^^^
  File "/usr/local/lib/python3.13/dist-packages/dtschema/doc_validate.py", line 37, in check_doc
    dtsch.check_schema_refs()
    ~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/dist-packages/dtschema/schema.py", line 241, in check_schema_refs
    self._check_schema_refs(resolver, self)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/dist-packages/dtschema/schema.py", line 212, in _check_schema_refs
    self._check_schema_refs(resolver, v, parent=k, is_common=is_common,
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                            has_constraint=has_constraint)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/dist-packages/dtschema/schema.py", line 216, in _check_schema_refs
    self._check_schema_refs(resolver, schema[i], parent=parent, is_common=is_common,
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                            has_constraint=has_constraint)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/dist-packages/dtschema/schema.py", line 203, in _check_schema_refs
    ref_sch = resolver.lookup(schema['$ref']).contents
              ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/dist-packages/referencing/_core.py", line 682, in lookup
    retrieved = self._registry.get_or_retrieve(uri)
  File "/usr/local/lib/python3.13/dist-packages/referencing/_core.py", line 422, in get_or_retrieve
    registry = self.crawl()
  File "/usr/local/lib/python3.13/dist-packages/referencing/_core.py", line 500, in crawl
    id = resource.id()
  File "/usr/local/lib/python3.13/dist-packages/referencing/_core.py", line 231, in id
    id = self._specification.id_of(self.contents)
  File "/usr/local/lib/python3.13/dist-packages/referencing/jsonschema.py", line 50, in _dollar_id
    return contents.get("$id")
           ^^^^^^^^^^^^

AttributeError: 'list' object has no attribute 'get'

doc reference errors (make refcheckdocs):

See https://patchwork.kernel.org/project/devicetree/patch/[email protected]

The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch.

If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:

pip3 install dtschema --upgrade

Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.

maintainer
#8 lore raw

Re: [PATCH v4 2/3] reset: cix: add support for cix sky1 resets

In reply to Gary Yang
Quoted 14 lines · Gary Yang

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.c | 376 +++++++++++++++++++++++++++++++++++++
 3 files changed, 384 insertions(+)
 create mode 100644 drivers/reset/reset-sky1.c

[...]

Quoted 6 lines
drivers/reset/reset-sky1.c new file +0 -0
new file mode 100644
index 000000000000..92e34b48f041
@@ -0,0 +1,376 @@

[...]

drivers/reset/reset-sky1.c line 329

Quoted 8 lines
drivers/reset/reset-sky1.c new file +8 -0
+static const struct regmap_config sky1_src_config[] = {
+	{
+		.reg_bits = 32,
+		.val_bits = 32,
+		.reg_stride = 4,
+		.name = "src",
+	},
+};

This looks unused.

regards
Philipp

#10 lore raw

Re: [PATCH v4 2/3] reset: cix: add support for cix sky1 resets

In reply to Gary Yang
kernel test robot noticed the following build warnings:

Hi Gary,

kernel test robot noticed the following build warnings:

[auto build test WARNING on robh/for-next]
[also build test WARNING on lee-leds/for-leds-next linus/master v6.19-rc7 next-20260127] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Gary-Yang/dt-bindings-reset-add-sky1-reset-controller/20260128-174335
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link:    https://lore.kernel.org/r/20260128093611.1932770-3-gary.yang%40cixtech.com
patch subject: [PATCH v4 2/3] reset: cix: add support for cix sky1 resets
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20260129/[email protected]/config)
compiler: alpha-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260129/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

>> drivers/reset/reset-sky1.c:322:35: warning: 'sky1_src_config' defined but not used [-Wunused-const-variable=]
     322 | static const struct regmap_config sky1_src_config[] = {
         |                                   ^~~~~~~~~~~~~~~

vim +/sky1_src_config +322 drivers/reset/reset-sky1.c

321

 > 322	static const struct regmap_config sky1_src_config[] = {

323 {
324 .reg_bits = 32,
325 .val_bits = 32,
326 .reg_stride = 4,
327 .name = "src",
328 },
329 };
330

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
#11 lore raw

Re: [PATCH v4 2/3] reset: cix: add support for cix sky1 resets

In reply to Gary Yang
kernel test robot noticed the following build warnings:

Hi Gary,

kernel test robot noticed the following build warnings:

[auto build test WARNING on robh/for-next]
[also build test WARNING on lee-leds/for-leds-next linus/master v6.19-rc7 next-20260128] [cannot apply to pza/reset/next pza/imx-drm/next]
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Gary-Yang/dt-bindings-reset-add-sky1-reset-controller/20260128-174335
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link:    https://lore.kernel.org/r/20260128093611.1932770-3-gary.yang%40cixtech.com
patch subject: [PATCH v4 2/3] reset: cix: add support for cix sky1 resets
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20260129/[email protected]/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260129/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

>> drivers/reset/reset-sky1.c:322:35: warning: unused variable 'sky1_src_config' [-Wunused-const-variable]
     322 | static const struct regmap_config sky1_src_config[] = {
         |                                   ^~~~~~~~~~~~~~~

1 warning generated.

vim +/sky1_src_config +322 drivers/reset/reset-sky1.c

321

 > 322	static const struct regmap_config sky1_src_config[] = {

323 {
324 .reg_bits = 32,
325 .val_bits = 32,
326 .reg_stride = 4,
327 .name = "src",
328 },
329 };
330

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
author maintainer
#9 lore raw

回复: [PATCH v4 2/3] reset: cix: add support for cix sky1 resets

In reply to Philipp Zabel

Hi Philipp:

Thanks for your comments

Quoted 40 lines

-----邮件原件-----
发件人: Philipp Zabel <[email protected]>
发送时间: 2026年1月28日 19:27
收件人: Gary Yang <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; Peter Chen <[email protected]>
抄送: [email protected]; [email protected]; [email protected]; cix-kernel-upstream <[email protected]>
主题: Re: [PATCH v4 2/3] reset: cix: add support for cix sky1 resets

EXTERNAL EMAIL

CAUTION: Suspicious Email from unusual domain.

Quoted 17 lines · Gary Yang

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.

Link:
https://lore.kernel.org/r/[email protected]
m

---
 drivers/reset/Kconfig      |   7 +
 drivers/reset/Makefile     |   1 +
 drivers/reset/reset-sky1.c | 376
+++++++++++++++++++++++++++++++++++++
 3 files changed, 384 insertions(+)
 create mode 100644 drivers/reset/reset-sky1.c

[...]

Quoted 5 lines
drivers/reset/reset-sky1.c new file +0 -0
new file mode 100644 index 000000000000..92e34b48f041
@@ -0,0 +1,376 @@

[...]

Quoted 11 lines

drivers/reset/reset-sky1.c line 329

Quoted 8 lines
drivers/reset/reset-sky1.c new file +8 -0
+static const struct regmap_config sky1_src_config[] = {
+     {
+             .reg_bits = 32,
+             .val_bits = 32,
+             .reg_stride = 4,
+             .name = "src",
+     },
+};

This looks unused.

Yes, you're right, we will delete it next patch

Best Regards
Gary

Quoted 2 lines

regards
Philipp

author maintainer
#6 lore raw

回复: [PATCH v4 1/3] dt-bindings: reset: add sky1 reset controller

In reply to Rob Herring (Arm)

Hi Rob:

Thanks for your comments

Quoted 141 lines

-----邮件原件-----
发件人: Rob Herring (Arm) <[email protected]>
发送时间: 2026年1月28日 19:23
收件人: Gary Yang <[email protected]>
抄送: cix-kernel-upstream <[email protected]>; [email protected]; [email protected]; [email protected]; Peter Chen <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected] 主题: Re: [PATCH v4 1/3] dt-bindings: reset: add sky1 reset controller

EXTERNAL EMAIL

Quoted 8 lines · Gary Yang

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.

Link:
https://lore.kernel.org/r/[email protected]
m

Quoted 7 lines
---
 .../devicetree/bindings/mfd/syscon.yaml       |   7 +
 .../bindings/reset/cix,sky1-rst.yaml          |  46 +++++
 .../soc/cix/cix,sky1-system-controller.yaml   |  48 +++++
 include/dt-bindings/reset/cix,sky1-rst-fch.h  |  42 +++++
 include/dt-bindings/reset/cix,sky1-rst.h      | 164

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

Quoted 8 lines
 5 files changed, 307 insertions(+)
 create mode 100644
Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml
 create mode 100644
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.y
aml  create mode 100644 include/dt-bindings/reset/cix,sky1-rst-fch.h
 create mode 100644 include/dt-bindings/reset/cix,sky1-rst.h

My bot found errors running 'make dt_binding_check' on your patch:

yamllint warnings/errors:

dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc /cix/cix,sky1-system-controller.yaml: ignoring, error in schema: properties:
compatible: oneOf: 0: contains /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc /cix/cix,sky1-system-controller.yaml: properties:compatible:oneOf:0:contains:
[{'enum': ['cix,sky1-system-controller', 'cix,sky1-s5-system-controller']}, {'const':
'syscon'}, {'const': 'simple-mfd'}] is not of type 'object', 'boolean' /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc /cix/cix,sky1-system-controller.yaml: properties:compatible:oneOf:0:contains:
[{'enum': ['cix,sky1-system-controller', 'cix,sky1-s5-system-controller']}, {'const':
'syscon'}, {'const': 'simple-mfd'}] is not of type 'object', 'boolean' /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc /cix/cix,sky1-system-controller.yaml: properties:compatible:oneOf:0:contains:
[{'enum': ['cix,sky1-system-controller', 'cix,sky1-s5-system-controller']}, {'const':
'syscon'}, {'const': 'simple-mfd'}] is not of type 'object', 'boolean' /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc /cix/cix,sky1-system-controller.yaml: properties:compatible:oneOf:0:contains:
[{'enum': ['cix,sky1-system-controller', 'cix,sky1-s5-system-controller']}, {'const':
'syscon'}, {'const': 'simple-mfd'}] is not of type 'object', 'boolean' /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc /cix/cix,sky1-system-controller.yaml: properties:compatible:oneOf:0:contains:
[{'enum': ['cix,sky1-system-controller', 'cix,sky1-s5-system-controller']}, {'const':
'syscon'}, {'const': 'simple-mfd'}] is not of type 'object', 'boolean' /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc /cix/cix,sky1-system-controller.yaml: properties:compatible:oneOf:0:contains:
[{'enum': ['cix,sky1-system-controller', 'cix,sky1-s5-system-controller']}, {'const':
'syscon'}, {'const': 'simple-mfd'}] is not of type 'object', 'boolean' /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc /cix/cix,sky1-system-controller.yaml: properties:compatible:oneOf:0:contains:
[{'enum': ['cix,sky1-system-controller', 'cix,sky1-s5-system-controller']}, {'const':
'syscon'}, {'const': 'simple-mfd'}] is not of type 'object', 'boolean' Traceback (most recent call last):
File "/usr/local/bin/dt-doc-validate", line 8, in <module>

    sys.exit(main())
             ~~~~^^
  File "/usr/local/lib/python3.13/dist-packages/dtschema/doc_validate.py",
line 66, in main
    ret |= check_doc(f)
           ~~~~~~~~~^^^
  File "/usr/local/lib/python3.13/dist-packages/dtschema/doc_validate.py",
line 37, in check_doc
    dtsch.check_schema_refs()
    ~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/dist-packages/dtschema/schema.py", line
241, in check_schema_refs
    self._check_schema_refs(resolver, self)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.13/dist-packages/dtschema/schema.py", line
212, in _check_schema_refs
self._check_schema_refs(resolver, v, parent=k, is_common=is_common,

~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

                            has_constraint=has_constraint)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.13/dist-packages/dtschema/schema.py", line
216, in _check_schema_refs
self._check_schema_refs(resolver, schema[i], parent=parent,
is_common=is_common,

~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^

                            has_constraint=has_constraint)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.13/dist-packages/dtschema/schema.py", line
203, in _check_schema_refs
ref_sch = resolver.lookup(schema['$ref']).contents
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/dist-packages/referencing/_core.py", line
682, in lookup
retrieved = self._registry.get_or_retrieve(uri)
File "/usr/local/lib/python3.13/dist-packages/referencing/_core.py", line
422, in get_or_retrieve
registry = self.crawl()
File "/usr/local/lib/python3.13/dist-packages/referencing/_core.py", line
500, in crawl
id = resource.id()
File "/usr/local/lib/python3.13/dist-packages/referencing/_core.py", line
231, in id
id = self._specification.id_of(self.contents)
File "/usr/local/lib/python3.13/dist-packages/referencing/jsonschema.py",
line 50, in _dollar_id

    return contents.get("$id")
           ^^^^^^^^^^^^

AttributeError: 'list' object has no attribute 'get'

doc reference errors (make refcheckdocs):

See
https://patchwork.kernel.org/project/devicetree/patch/20260128093611.193
[email protected]

The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch.

If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:

Quoted 5 lines

pip3 install dtschema --upgrade

Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.

OK, we run " make dt_binding_check " command before submit patch. But not found these errors. We will double check it. if found, we will fix them.

Best Regards
Gary

author maintainer
#4 lore raw

回复: [PATCH v4 1/3] dt-bindings: reset: add sky1 reset controller

In reply to Krzysztof Kozlowski

Hi Krzysztof:

I'm glad to see your comments.

Quoted 12 lines

EXTERNAL EMAIL

Quoted 3 lines · Gary Yang

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.

Please wrap commit message according to Linux coding style / submission process (neither too early nor over the limit):
https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/subm
itting-patches.rst#L597

Yes, we will fix it

Quoted 49 lines
Quoted 5 lines

Link:
https://lore.kernel.org/r/[email protected]
m

Quoted 7 lines
---
 .../devicetree/bindings/mfd/syscon.yaml       |   7 +
 .../bindings/reset/cix,sky1-rst.yaml          |  46 +++++
 .../soc/cix/cix,sky1-system-controller.yaml   |  48 +++++
 include/dt-bindings/reset/cix,sky1-rst-fch.h  |  42 +++++
 include/dt-bindings/reset/cix,sky1-rst.h      | 164

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

Quoted 26 lines
 5 files changed, 307 insertions(+)
 create mode 100644
Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml
 create mode 100644
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller.y
aml  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/mfd/syscon.yaml +2 -0
index 55efb83b1495..be864a6b8efb 100644
@@ -170,6 +170,8 @@ properties:
               - cirrus,ep7209-syscon1
               - cirrus,ep7209-syscon2
               - cirrus,ep7209-syscon3
+              - cix,sky1-system-controller
+              - cix,sky1-s5-system-controller
               - cnxt,cx92755-uc
               - freecom,fsg-cs2-system-controller
               - fsl,imx93-aonmix-ns-syscfg @@ -254,6 +256,11 @@

properties:
- const: microchip,pic64gx-sysreg-scb
- const: microchip,mpfs-sysreg-scb
- const: syscon

Documentation/devicetree/bindings/mfd/syscon.yaml properties: · line 263

Quoted 5 lines
Documentation/devicetree/bindings/mfd/syscon.yaml +5 -0
+      - items:
+          - enum:
+              - cix,sky1-system-controller
+              - cix,sky1-s5-system-controller
+          - const: syscon

Do not create your own style. Cix is not special. There is already an enum for EVERYONE.

Quoted 1 line
Quoted 5 lines
Quoted 2 lines

reg:
maxItems: 1

Independent patch. Please do not combine unrelated patches into one.

We will delete all changes as Conor's suggestions

Quoted 31 lines
Quoted 31 lines
Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml new file +23 -0
new file mode 100644
index 000000000000..4323acdc2c45
@@ -0,0 +1,46 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2
+---
+$id: http://devicetree.org/schemas/reset/cix,sky1-rst.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: CIX Sky1 Reset Controller
+
+maintainers:
+  - Gary Yang <[email protected]>
+
+description: |
+  CIX Sky1 reset controller can be used to reset various set of peripherals.
+  There are two reset controllers, one is located in S0 domain, the
+other
+  is located in S0 and S5 domain.
+
+  See also:
+  - include/dt-bindings/reset/cix,sky1-rst.h
+
+properties:
+  compatible:
+    items:
+      - enum:
Quoted 9 lines

Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml line 28

Quoted 5 lines
Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml new file +5 -0
+          - cix,sky1-rst
+          - cix,sky1-rst-fch
+
+  '#reset-cells':
+    const: 1

No resources? Then not a dedicated child node, but part of the syscon. Fold this entire binding into the parent node.

How to fold this binding? Is there any example used to refer? If yes, please tell us. Thanks

Quoted 69 lines

Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml line 40

Quoted 12 lines
Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml new file +12 -0
+
+required:
+  - compatible
+  - '#reset-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    syscon@16000000 {
+      compatible = "cix,sky1-s5-system-controller", "syscon",
+                "simple-mfd";

Mess alignment.

Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml line 41

Quoted 1 line
Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml new file +1 -0
+      reg = <0x0 0x16000000 0x0 0x1000>;

Does not belong here.

Quoted 31 lines
Documentation/devicetree/bindings/reset/cix,sky1-rst.yaml new file +5 -0
+      src: reset-controller {
+        compatible = "cix,sky1-rst";
+        #reset-cells = <1>;
+      };
 
+    };

diff --git a/Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller .yaml b/Documentation/devicetree/bindings/soc/cix/cix,sky1-system-controller .yaml
new file mode 100644
index 000000000000..f6e2776e3f53

Documentation/devicetree/bindings/soc/cix/cix,sky1-system-contro new file +15 -0
+++ ller.yaml
@@ -0,0 +1,48 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause %YAML 1.2
+---
+$id:
+http://devicetree.org/schemas/soc/cix/cix,sky1-system-controller.yaml
+#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Cix Sky1 SoC system controller register region
+
+maintainers:
+  - Gary Yang <[email protected]>
+
+description:
+  An wide assortment of registers of the system controller on Sky1

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

Quoted 10 lines
Documentation/devicetree/bindings/soc/cix/cix,sky1-system-contro new file +10 -0
+SoC,
+  including resets and usb.
+
+allOf:
+  - $ref: /schemas/mfd/syscon.yaml#
+
+properties:
+  compatible:
+    oneOf:
+      - contains:

What? No, don't come with random code. There is no single code like this.

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
+          - enum:
+              - cix,sky1-system-controller
+              - cix,sky1-s5-system-controller
+          - const: syscon
+          - const: simple-mfd
Quoted 8 lines

Huh? You already documented this.

NAK, you are making random changes without any concept.

Read previous feedback. Really carefully.

Best regards,
Krzysztof

Sorry for my mistakes. I don't know how to write binding doc except refer to other bindings. Is there any training docs? Or Please give us some suggestions.

Best Regards
Gary