diff options
author | Kunihiko Hayashi <hayashi.kunihiko@socionext.com> | 2018-07-09 21:14:16 -0400 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2018-07-16 06:15:54 -0400 |
commit | ef8b023b230bfa3cf1f09ea1b8f1e47e37b389f2 (patch) | |
tree | 85f98c48263ec5b7e3ca5ee9d0d484124d4e8e3c | |
parent | 9ad39ab2807756ac9b0a3aca4457031ea814e658 (diff) |
dt-bindings: reset: uniphier: add USB3 core reset support
Add DT bindings for reset control of USB3 core implemented in UniPhier SoCs.
The reset control belongs to USB3 glue layer.
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
-rw-r--r-- | Documentation/devicetree/bindings/reset/uniphier-reset.txt | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/reset/uniphier-reset.txt b/Documentation/devicetree/bindings/reset/uniphier-reset.txt index 93efed629900..101743dda223 100644 --- a/Documentation/devicetree/bindings/reset/uniphier-reset.txt +++ b/Documentation/devicetree/bindings/reset/uniphier-reset.txt | |||
@@ -118,3 +118,59 @@ Example: | |||
118 | 118 | ||
119 | other nodes ... | 119 | other nodes ... |
120 | }; | 120 | }; |
121 | |||
122 | |||
123 | USB3 core reset | ||
124 | --------------- | ||
125 | |||
126 | USB3 core reset belongs to USB3 glue layer. Before using the core reset, | ||
127 | it is necessary to control the clocks and resets to enable this layer. | ||
128 | These clocks and resets should be described in each property. | ||
129 | |||
130 | Required properties: | ||
131 | - compatible: Should be | ||
132 | "socionext,uniphier-pro4-usb3-reset" - for Pro4 SoC | ||
133 | "socionext,uniphier-pxs2-usb3-reset" - for PXs2 SoC | ||
134 | "socionext,uniphier-ld20-usb3-reset" - for LD20 SoC | ||
135 | "socionext,uniphier-pxs3-usb3-reset" - for PXs3 SoC | ||
136 | - #reset-cells: Should be 1. | ||
137 | - reg: Specifies offset and length of the register set for the device. | ||
138 | - clocks: A list of phandles to the clock gate for USB3 glue layer. | ||
139 | According to the clock-names, appropriate clocks are required. | ||
140 | - clock-names: Should contain | ||
141 | "gio", "link" - for Pro4 SoC | ||
142 | "link" - for others | ||
143 | - resets: A list of phandles to the reset control for USB3 glue layer. | ||
144 | According to the reset-names, appropriate resets are required. | ||
145 | - reset-names: Should contain | ||
146 | "gio", "link" - for Pro4 SoC | ||
147 | "link" - for others | ||
148 | |||
149 | Example: | ||
150 | |||
151 | usb-glue@65b00000 { | ||
152 | compatible = "socionext,uniphier-ld20-dwc3-glue", | ||
153 | "simple-mfd"; | ||
154 | #address-cells = <1>; | ||
155 | #size-cells = <1>; | ||
156 | ranges = <0 0x65b00000 0x400>; | ||
157 | |||
158 | usb_rst: reset@0 { | ||
159 | compatible = "socionext,uniphier-ld20-usb3-reset"; | ||
160 | reg = <0x0 0x4>; | ||
161 | #reset-cells = <1>; | ||
162 | clock-names = "link"; | ||
163 | clocks = <&sys_clk 14>; | ||
164 | reset-names = "link"; | ||
165 | resets = <&sys_rst 14>; | ||
166 | }; | ||
167 | |||
168 | regulator { | ||
169 | ... | ||
170 | }; | ||
171 | |||
172 | phy { | ||
173 | ... | ||
174 | }; | ||
175 | ... | ||
176 | }; | ||