18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
28c2ecf20Sopenharmony_ci%YAML 1.2
38c2ecf20Sopenharmony_ci---
48c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/reset/intel,rcu-gw.yaml#
58c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml#
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_cititle: System Reset Controller on Intel Gateway SoCs
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cimaintainers:
108c2ecf20Sopenharmony_ci  - Dilip Kota <eswara.kota@linux.intel.com>
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ciproperties:
138c2ecf20Sopenharmony_ci  compatible:
148c2ecf20Sopenharmony_ci    enum:
158c2ecf20Sopenharmony_ci      - intel,rcu-lgm
168c2ecf20Sopenharmony_ci      - intel,rcu-xrx200
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci  reg:
198c2ecf20Sopenharmony_ci    description: Reset controller registers.
208c2ecf20Sopenharmony_ci    maxItems: 1
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci  intel,global-reset:
238c2ecf20Sopenharmony_ci    description: Global reset register offset and bit offset.
248c2ecf20Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/uint32-array
258c2ecf20Sopenharmony_ci    items:
268c2ecf20Sopenharmony_ci      - description: Register offset
278c2ecf20Sopenharmony_ci      - description: Register bit offset
288c2ecf20Sopenharmony_ci        minimum: 0
298c2ecf20Sopenharmony_ci        maximum: 31
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci  "#reset-cells":
328c2ecf20Sopenharmony_ci    minimum: 2
338c2ecf20Sopenharmony_ci    maximum: 3
348c2ecf20Sopenharmony_ci    description: |
358c2ecf20Sopenharmony_ci      First cell is reset request register offset.
368c2ecf20Sopenharmony_ci      Second cell is bit offset in reset request register.
378c2ecf20Sopenharmony_ci      Third cell is bit offset in reset status register.
388c2ecf20Sopenharmony_ci      For LGM SoC, reset cell count is 2 as bit offset in
398c2ecf20Sopenharmony_ci      reset request and reset status registers is same. Whereas
408c2ecf20Sopenharmony_ci      3 for legacy SoCs as bit offset differs.
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_cirequired:
438c2ecf20Sopenharmony_ci  - compatible
448c2ecf20Sopenharmony_ci  - reg
458c2ecf20Sopenharmony_ci  - intel,global-reset
468c2ecf20Sopenharmony_ci  - "#reset-cells"
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ciadditionalProperties: false
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ciexamples:
518c2ecf20Sopenharmony_ci  - |
528c2ecf20Sopenharmony_ci    rcu0: reset-controller@e0000000 {
538c2ecf20Sopenharmony_ci        compatible = "intel,rcu-lgm";
548c2ecf20Sopenharmony_ci        reg = <0xe0000000 0x20000>;
558c2ecf20Sopenharmony_ci        intel,global-reset = <0x10 30>;
568c2ecf20Sopenharmony_ci        #reset-cells = <2>;
578c2ecf20Sopenharmony_ci    };
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ci    pwm: pwm@e0d00000 {
608c2ecf20Sopenharmony_ci        status = "disabled";
618c2ecf20Sopenharmony_ci        compatible = "intel,lgm-pwm";
628c2ecf20Sopenharmony_ci        reg = <0xe0d00000 0x30>;
638c2ecf20Sopenharmony_ci        clocks = <&cgu0 1>;
648c2ecf20Sopenharmony_ci        #pwm-cells = <2>;
658c2ecf20Sopenharmony_ci        resets = <&rcu0 0x30 21>;
668c2ecf20Sopenharmony_ci    };
67