xref: /freebsd/sys/contrib/device-tree/Bindings/reset/intel,rcu-gw.yaml (revision 354d7675fe12ace9cde344cb79c7ded792802f88)
1*c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*c66ec88fSEmmanuel Vadot%YAML 1.2
3*c66ec88fSEmmanuel Vadot---
4*c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/reset/intel,rcu-gw.yaml#
5*c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel Vadottitle: System Reset Controller on Intel Gateway SoCs
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel Vadotmaintainers:
10*c66ec88fSEmmanuel Vadot  - Dilip Kota <eswara.kota@linux.intel.com>
11*c66ec88fSEmmanuel Vadot
12*c66ec88fSEmmanuel Vadotproperties:
13*c66ec88fSEmmanuel Vadot  compatible:
14*c66ec88fSEmmanuel Vadot    enum:
15*c66ec88fSEmmanuel Vadot      - intel,rcu-lgm
16*c66ec88fSEmmanuel Vadot      - intel,rcu-xrx200
17*c66ec88fSEmmanuel Vadot
18*c66ec88fSEmmanuel Vadot  reg:
19*c66ec88fSEmmanuel Vadot    description: Reset controller registers.
20*c66ec88fSEmmanuel Vadot    maxItems: 1
21*c66ec88fSEmmanuel Vadot
22*c66ec88fSEmmanuel Vadot  intel,global-reset:
23*c66ec88fSEmmanuel Vadot    description: Global reset register offset and bit offset.
24*c66ec88fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32-array
25*c66ec88fSEmmanuel Vadot    items:
26*c66ec88fSEmmanuel Vadot      - description: Register offset
27*c66ec88fSEmmanuel Vadot      - description: Register bit offset
28*c66ec88fSEmmanuel Vadot        minimum: 0
29*c66ec88fSEmmanuel Vadot        maximum: 31
30*c66ec88fSEmmanuel Vadot
31*c66ec88fSEmmanuel Vadot  "#reset-cells":
32*c66ec88fSEmmanuel Vadot    minimum: 2
33*c66ec88fSEmmanuel Vadot    maximum: 3
34*c66ec88fSEmmanuel Vadot    description: |
35*c66ec88fSEmmanuel Vadot      First cell is reset request register offset.
36*c66ec88fSEmmanuel Vadot      Second cell is bit offset in reset request register.
37*c66ec88fSEmmanuel Vadot      Third cell is bit offset in reset status register.
38*c66ec88fSEmmanuel Vadot      For LGM SoC, reset cell count is 2 as bit offset in
39*c66ec88fSEmmanuel Vadot      reset request and reset status registers is same. Whereas
40*c66ec88fSEmmanuel Vadot      3 for legacy SoCs as bit offset differs.
41*c66ec88fSEmmanuel Vadot
42*c66ec88fSEmmanuel Vadotrequired:
43*c66ec88fSEmmanuel Vadot  - compatible
44*c66ec88fSEmmanuel Vadot  - reg
45*c66ec88fSEmmanuel Vadot  - intel,global-reset
46*c66ec88fSEmmanuel Vadot  - "#reset-cells"
47*c66ec88fSEmmanuel Vadot
48*c66ec88fSEmmanuel VadotadditionalProperties: false
49*c66ec88fSEmmanuel Vadot
50*c66ec88fSEmmanuel Vadotexamples:
51*c66ec88fSEmmanuel Vadot  - |
52*c66ec88fSEmmanuel Vadot    rcu0: reset-controller@e0000000 {
53*c66ec88fSEmmanuel Vadot        compatible = "intel,rcu-lgm";
54*c66ec88fSEmmanuel Vadot        reg = <0xe0000000 0x20000>;
55*c66ec88fSEmmanuel Vadot        intel,global-reset = <0x10 30>;
56*c66ec88fSEmmanuel Vadot        #reset-cells = <2>;
57*c66ec88fSEmmanuel Vadot    };
58*c66ec88fSEmmanuel Vadot
59*c66ec88fSEmmanuel Vadot    pwm: pwm@e0d00000 {
60*c66ec88fSEmmanuel Vadot        compatible = "intel,lgm-pwm";
61*c66ec88fSEmmanuel Vadot        reg = <0xe0d00000 0x30>;
62*c66ec88fSEmmanuel Vadot        clocks = <&cgu0 1>;
63*c66ec88fSEmmanuel Vadot        #pwm-cells = <2>;
64*c66ec88fSEmmanuel Vadot        resets = <&rcu0 0x30 21>;
65*c66ec88fSEmmanuel Vadot    };
66