🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
3 messages
3 total messages Started by Fil Dunsky via B4 Relay Mon, 23 Nov 2026 18:44
[PATCH net-next 1/5] dt-bindings: reset: Add Cortina CS7542 network engine reset domain
#21240
Author: Fil Dunsky via B4 Relay
Date: Mon, 23 Nov 2026 18:44
80 lines
13031 bytes
From: Fil Dunsky <filipp.dunsky@gmail.com>

Describe the atomic reset domain required to stop all network-engine and
LSO/SSP DMA users before releasing their mappings. Exclude the SDRAM
controller and independent PCIe resets. Allow this provider as a child
of the shared global syscon.

Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com>
---
 .../bindings/reset/cortina,cs7542-ne-reset.yaml    | 42 ++++++++++++++++++++++
 .../soc/cortina/cortina,cs7542-syscon.yaml         |  4 +++
 2 files changed, 46 insertions(+)

diff --git a/Documentation/devicetree/bindings/reset/cortina,cs7542-ne-reset.yaml b/Documentation/devicetree/bindings/reset/cortina,cs7542-ne-reset.yaml
new file mode 100644
index 000000000..8f5b5b835
--- /dev/null
+++ b/Documentation/devicetree/bindings/reset/cortina,cs7542-ne-reset.yaml
@@ -0,0 +1,42 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/reset/cortina,cs7542-ne-reset.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Cortina Systems CS7542 network engine reset domain
+
+maintainers:
+  - Fil Dunsky <filipp.dunsky@gmail.com>
+
+description: |
+  Child of the CS7542 global syscon. One reset domain covers NI, FE, TM,
+  scheduler, queue manager, NI XRAM and the entire DMA block (LSO and SSP).
+  SDRAM and unrelated peripheral reset bits are not modified. The consumer
+  must own all these blocks exclusively. This reset is not suitable for a
+  network-only consumer while a separate driver uses SSP DMA.
+
+properties:
+  compatible:
+    const: cortina,cs7542-ne-reset
+
+  "#reset-cells":
+    const: 0
+
+required:
+  - compatible
+  - "#reset-cells"
+
+additionalProperties: false
+
+examples:
+  - |
+    syscon@f0000000 {
+        compatible = "cortina,cs7542-syscon", "syscon", "simple-mfd";
+        reg = <0xf0000000 0x100>;
+        #clock-cells = <1>;
+        reset-controller {
+            compatible = "cortina,cs7542-ne-reset";
+            #reset-cells = <0>;
+        };
+    };
diff --git a/Documentation/devicetree/bindings/soc/cortina/cortina,cs7542-syscon.yaml b/Documentation/devicetree/bindings/soc/cortina/cortina,cs7542-syscon.yaml
index fb074de87..5aca670cd 100644
--- a/Documentation/devicetree/bindings/soc/cortina/cortina,cs7542-syscon.yaml
+++ b/Documentation/devicetree/bindings/soc/cortina/cortina,cs7542-syscon.yaml
@@ -33,6 +33,10 @@ properties:
     type: object
     $ref: /schemas/pinctrl/cortina,cs7542-pinctrl.yaml#
 
+  reset-controller:
+    type: object
+    $ref: /schemas/reset/cortina,cs7542-ne-reset.yaml#
+
 required:
   - compatible
   - reg

-- 
2.53.0
Re: [PATCH net-next 1/5] dt-bindings: reset: Add Cortina CS7542 network engine reset domain
#21558
Author: Krzysztof Kozlowski
Date: Tue, 24 Nov 2026 06:39
53 lines
12888 bytes
On 23/11/2026 19:44, Fil Dunsky wrote:
> Describe the atomic reset domain required to stop all network-engine and
> LSO/SSP DMA users before releasing their mappings. Exclude the SDRAM
> controller and independent PCIe resets. Allow this provider as a child
> of the shared global syscon.
> 
> Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com>
> ---
>  .../bindings/reset/cortina,cs7542-ne-reset.yaml    | 42 ++++++++++++++++++++++
>  .../soc/cortina/cortina,cs7542-syscon.yaml         |  4 +++
>  2 files changed, 46 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/reset/cortina,cs7542-ne-reset.yaml b/Documentation/devicetree/bindings/reset/cortina,cs7542-ne-reset.yaml
> new file mode 100644
> index 000000000..8f5b5b835
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/reset/cortina,cs7542-ne-reset.yaml
> @@ -0,0 +1,42 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/reset/cortina,cs7542-ne-reset.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Cortina Systems CS7542 network engine reset domain
> +
> +maintainers:
> +  - Fil Dunsky <filipp.dunsky@gmail.com>
> +
> +description: |
> +  Child of the CS7542 global syscon. One reset domain covers NI, FE, TM,
> +  scheduler, queue manager, NI XRAM and the entire DMA block (LSO and SSP).
> +  SDRAM and unrelated peripheral reset bits are not modified. The consumer
> +  must own all these blocks exclusively. This reset is not suitable for a
> +  network-only consumer while a separate driver uses SSP DMA.
> +
> +properties:
> +  compatible:
> +    const: cortina,cs7542-ne-reset
> +
> +  "#reset-cells":
> +    const: 0
> +
> +required:
> +  - compatible
> +  - "#reset-cells"

Same comments, no resources here, not a separate device. Fold it into
the parent node.

Best regards,
Krzysztof
Re: [PATCH net-next 1/5] dt-bindings: reset: Add Cortina CS7542 network engine reset domain
#21565
Author: Fil Dunsky
Date: Tue, 24 Nov 2026 06:58
15 lines
11909 bytes
Hi Krzysztof,

Agreed. The shared-global follow-up moves this reset into the parent
syscon provider, together with the PCIe gates and resets:

https://lore.kernel.org/all/20261124-b4-cs7542-global-controls-v1-0-12548785df2c@gmail.com/

The prepared Ethernet revision removes the resource-less NE reset child
binding/provider; the network engine requests its combined reset domain
from the parent. I will collect the remaining review before sending that
consumer revision.

Thanks,
Fil
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads