Re: [PATCH v5 1/6] dt-bindings: soc: Add Cortina Systems CS7542 global controls

From: Krzysztof Kozlowski

Date: Sun Nov 29 2026 - 03:49:50 EST


On 27/11/2026 21:50, Fil Dunsky wrote:
> +
> +properties:
> + compatible:
> + items:
> + - const: cortina,cs7542-syscon
> + - const: syscon
> + - const: simple-mfd


You do not have any children, this cannot be a simple-mfd.

> +
> + reg:
> + maxItems: 1
> +
> + "#clock-cells":
> + const: 1
> +
> + "#reset-cells":
> + const: 1
> +
> +required:
> + - compatible
> + - reg
> + - "#clock-cells"


Also, reset-cells should be required.


> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + syscon@f0000000 {
> + compatible = "cortina,cs7542-syscon", "syscon", "simple-mfd";
> + reg = <0xf0000000 0x100>;
> + #clock-cells = <1>;
> + #reset-cells = <1>;
> + };
> diff --git a/include/dt-bindings/clock/cortina,cs7542-clock.h b/include/dt-bindings/clock/cortina,cs7542-clock.h
> new file mode 100644
> index 000000000..c68c6ba20
> --- /dev/null
> +++ b/include/dt-bindings/clock/cortina,cs7542-clock.h
> @@ -0,0 +1,13 @@
> +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
> +#ifndef _DT_BINDINGS_CLOCK_CORTINA_CS7542_H
> +#define _DT_BINDINGS_CLOCK_CORTINA_CS7542_H
> +
> +#define CS7542_CLK_APB 0
> +#define CS7542_CLK_CPU 1
> +#define CS7542_CLK_AXI 2
> +
> +#define CS7542_CLK_PCIE0 3
> +#define CS7542_CLK_PCIE1 4
> +#define CS7542_CLK_PCIE2 5
> +
> +#endif
> diff --git a/include/dt-bindings/reset/cortina,cs7542-reset.h b/include/dt-bindings/reset/cortina,cs7542-reset.h
> new file mode 100644
> index 000000000..136d21432
> --- /dev/null
> +++ b/include/dt-bindings/reset/cortina,cs7542-reset.h
> @@ -0,0 +1,20 @@
> +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
> +#ifndef _DT_BINDINGS_RESET_CORTINA_CS7542_H
> +#define _DT_BINDINGS_RESET_CORTINA_CS7542_H
> +
> +#define CS7542_RESET_PCIE0 0
> +#define CS7542_RESET_PCIE1 1
> +#define CS7542_RESET_PCIE2 2
> +
> +/* Reserved legacy composite ID; never reinterpret it as an individual line. */

This is confusing. Please do not add legacy bindings. Drop everything
which is legacy here.

> +#define CS7542_RESET_NE 3
> +#define CS7542_RESET_NI 4
> +#define CS7542_RESET_FE 5
> +#define CS7542_RESET_TM 6
> +#define CS7542_RESET_SCH 7
> +#define CS7542_RESET_QM 8
> +#define CS7542_RESET_DMA 9
> +#define CS7542_RESET_NI_XRAM 10
> +#define CS7542_RESET_FLASH 11
> +

Best regards,
Krzysztof