xref: /freebsd/sys/contrib/device-tree/Bindings/reset/socionext,uniphier-glue-reset.yaml (revision 8cc087a1eee9ec1ca9f7ac1e63ad51bdb5a682eb)
1354d7675SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2354d7675SEmmanuel Vadot%YAML 1.2
3354d7675SEmmanuel Vadot---
4354d7675SEmmanuel Vadot$id: http://devicetree.org/schemas/reset/socionext,uniphier-glue-reset.yaml#
5354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6354d7675SEmmanuel Vadot
7354d7675SEmmanuel Vadottitle: Socionext UniPhier peripheral core reset in glue layer
8354d7675SEmmanuel Vadot
9354d7675SEmmanuel Vadotdescription: |
10354d7675SEmmanuel Vadot  Some peripheral core reset belongs to its own glue layer. Before using
11354d7675SEmmanuel Vadot  this core reset, it is necessary to control the clocks and resets to
12354d7675SEmmanuel Vadot  enable this layer. These clocks and resets should be described in each
13354d7675SEmmanuel Vadot  property.
14354d7675SEmmanuel Vadot
15354d7675SEmmanuel Vadotmaintainers:
16354d7675SEmmanuel Vadot  - Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
17354d7675SEmmanuel Vadot
18354d7675SEmmanuel Vadotproperties:
19354d7675SEmmanuel Vadot  compatible:
20354d7675SEmmanuel Vadot    enum:
21354d7675SEmmanuel Vadot      - socionext,uniphier-pro4-usb3-reset
22354d7675SEmmanuel Vadot      - socionext,uniphier-pro5-usb3-reset
23354d7675SEmmanuel Vadot      - socionext,uniphier-pxs2-usb3-reset
24354d7675SEmmanuel Vadot      - socionext,uniphier-ld20-usb3-reset
25354d7675SEmmanuel Vadot      - socionext,uniphier-pxs3-usb3-reset
26*8cc087a1SEmmanuel Vadot      - socionext,uniphier-nx1-usb3-reset
27354d7675SEmmanuel Vadot      - socionext,uniphier-pro4-ahci-reset
28354d7675SEmmanuel Vadot      - socionext,uniphier-pxs2-ahci-reset
29354d7675SEmmanuel Vadot      - socionext,uniphier-pxs3-ahci-reset
30354d7675SEmmanuel Vadot
31354d7675SEmmanuel Vadot  reg:
32354d7675SEmmanuel Vadot    maxItems: 1
33354d7675SEmmanuel Vadot
34354d7675SEmmanuel Vadot  "#reset-cells":
35354d7675SEmmanuel Vadot    const: 1
36354d7675SEmmanuel Vadot
37354d7675SEmmanuel Vadot  clocks:
38354d7675SEmmanuel Vadot    minItems: 1
39354d7675SEmmanuel Vadot    maxItems: 2
40354d7675SEmmanuel Vadot
41354d7675SEmmanuel Vadot  clock-names:
42354d7675SEmmanuel Vadot    oneOf:
43354d7675SEmmanuel Vadot      - items:           # for Pro4, Pro5
44354d7675SEmmanuel Vadot          - const: gio
45354d7675SEmmanuel Vadot          - const: link
46354d7675SEmmanuel Vadot      - items:           # for others
47354d7675SEmmanuel Vadot          - const: link
48354d7675SEmmanuel Vadot
49354d7675SEmmanuel Vadot  resets:
50354d7675SEmmanuel Vadot    minItems: 1
51354d7675SEmmanuel Vadot    maxItems: 2
52354d7675SEmmanuel Vadot
53354d7675SEmmanuel Vadot  reset-names:
54354d7675SEmmanuel Vadot    oneOf:
55354d7675SEmmanuel Vadot      - items:           # for Pro4, Pro5
56354d7675SEmmanuel Vadot          - const: gio
57354d7675SEmmanuel Vadot          - const: link
58354d7675SEmmanuel Vadot      - items:           # for others
59354d7675SEmmanuel Vadot          - const: link
60354d7675SEmmanuel Vadot
61354d7675SEmmanuel VadotadditionalProperties: false
62354d7675SEmmanuel Vadot
63354d7675SEmmanuel Vadotrequired:
64354d7675SEmmanuel Vadot  - compatible
65354d7675SEmmanuel Vadot  - reg
66354d7675SEmmanuel Vadot  - "#reset-cells"
67354d7675SEmmanuel Vadot  - clocks
68354d7675SEmmanuel Vadot  - clock-names
69354d7675SEmmanuel Vadot  - resets
70354d7675SEmmanuel Vadot  - reset-names
71354d7675SEmmanuel Vadot
72354d7675SEmmanuel Vadotexamples:
73354d7675SEmmanuel Vadot  - |
74354d7675SEmmanuel Vadot    usb-glue@65b00000 {
75354d7675SEmmanuel Vadot        compatible = "simple-mfd";
76354d7675SEmmanuel Vadot        #address-cells = <1>;
77354d7675SEmmanuel Vadot        #size-cells = <1>;
78354d7675SEmmanuel Vadot        ranges = <0 0x65b00000 0x400>;
79354d7675SEmmanuel Vadot
80354d7675SEmmanuel Vadot        usb_rst: reset@0 {
81354d7675SEmmanuel Vadot            compatible = "socionext,uniphier-ld20-usb3-reset";
82354d7675SEmmanuel Vadot            reg = <0x0 0x4>;
83354d7675SEmmanuel Vadot            #reset-cells = <1>;
84354d7675SEmmanuel Vadot            clock-names = "link";
85354d7675SEmmanuel Vadot            clocks = <&sys_clk 14>;
86354d7675SEmmanuel Vadot            reset-names = "link";
87354d7675SEmmanuel Vadot            resets = <&sys_rst 14>;
88354d7675SEmmanuel Vadot        };
89354d7675SEmmanuel Vadot    };
90