xref: /freebsd/sys/contrib/device-tree/Bindings/reset/microchip,rst.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
15956d97fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25956d97fSEmmanuel Vadot%YAML 1.2
35956d97fSEmmanuel Vadot---
4*fac71e4eSEmmanuel Vadot$id: http://devicetree.org/schemas/reset/microchip,rst.yaml#
5*fac71e4eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65956d97fSEmmanuel Vadot
75956d97fSEmmanuel Vadottitle: Microchip Sparx5 Switch Reset Controller
85956d97fSEmmanuel Vadot
95956d97fSEmmanuel Vadotmaintainers:
105956d97fSEmmanuel Vadot  - Steen Hegelund <steen.hegelund@microchip.com>
115956d97fSEmmanuel Vadot  - Lars Povlsen <lars.povlsen@microchip.com>
125956d97fSEmmanuel Vadot
135956d97fSEmmanuel Vadotdescription: |
145956d97fSEmmanuel Vadot  The Microchip Sparx5 Switch provides reset control and implements the following
155956d97fSEmmanuel Vadot  functions
165956d97fSEmmanuel Vadot    - One Time Switch Core Reset (Soft Reset)
175956d97fSEmmanuel Vadot
185956d97fSEmmanuel Vadotproperties:
195956d97fSEmmanuel Vadot  $nodename:
205956d97fSEmmanuel Vadot    pattern: "^reset-controller@[0-9a-f]+$"
215956d97fSEmmanuel Vadot
225956d97fSEmmanuel Vadot  compatible:
238cc087a1SEmmanuel Vadot    enum:
248cc087a1SEmmanuel Vadot      - microchip,sparx5-switch-reset
258cc087a1SEmmanuel Vadot      - microchip,lan966x-switch-reset
265956d97fSEmmanuel Vadot
275956d97fSEmmanuel Vadot  reg:
285956d97fSEmmanuel Vadot    items:
295956d97fSEmmanuel Vadot      - description: global control block registers
305956d97fSEmmanuel Vadot
315956d97fSEmmanuel Vadot  reg-names:
325956d97fSEmmanuel Vadot    items:
335956d97fSEmmanuel Vadot      - const: gcb
345956d97fSEmmanuel Vadot
355956d97fSEmmanuel Vadot  "#reset-cells":
365956d97fSEmmanuel Vadot    const: 1
375956d97fSEmmanuel Vadot
385956d97fSEmmanuel Vadot  cpu-syscon:
39*fac71e4eSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
405956d97fSEmmanuel Vadot    description: syscon used to access CPU reset
415956d97fSEmmanuel Vadot
425956d97fSEmmanuel Vadotrequired:
435956d97fSEmmanuel Vadot  - compatible
445956d97fSEmmanuel Vadot  - reg
455956d97fSEmmanuel Vadot  - reg-names
465956d97fSEmmanuel Vadot  - "#reset-cells"
475956d97fSEmmanuel Vadot  - cpu-syscon
485956d97fSEmmanuel Vadot
495956d97fSEmmanuel VadotadditionalProperties: false
505956d97fSEmmanuel Vadot
515956d97fSEmmanuel Vadotexamples:
525956d97fSEmmanuel Vadot  - |
535956d97fSEmmanuel Vadot    reset: reset-controller@11010008 {
545956d97fSEmmanuel Vadot        compatible = "microchip,sparx5-switch-reset";
555956d97fSEmmanuel Vadot        reg = <0x11010008 0x4>;
565956d97fSEmmanuel Vadot        reg-names = "gcb";
575956d97fSEmmanuel Vadot        #reset-cells = <1>;
585956d97fSEmmanuel Vadot        cpu-syscon = <&cpu_ctrl>;
595956d97fSEmmanuel Vadot    };
60