Skip to content

Commit 0677963

Browse files
committed
Merge tag 'reset-for-v5.15' of git://git.pengutronix.de/pza/linux into arm/drivers
Reset controller updates for v5.15 Add support for the SC7280 PDC Global and RZ/G2L USB/PHY reset controllers, convert UniPhier glue device tree bindings to json-schema and remove a leftover mention of ZTE zx2967 from Kconfig. * tag 'reset-for-v5.15' of git://git.pengutronix.de/pza/linux: reset: simple: remove ZTE details in Kconfig help reset: renesas: Add RZ/G2L usbphy control driver dt-bindings: reset: Document RZ/G2L USBPHY Control bindings dt-bindings: reset: Convert UniPhier glue reset to json-schema reset: qcom: Add PDC Global reset signals for WPSS dt-bindings: reset: pdc: Add PDC Global bindings dt-bindings: reset: aoss: Add AOSS reset controller binding Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
2 parents 9b3878a + 09f3824 commit 0677963

File tree

10 files changed

+398
-73
lines changed

10 files changed

+398
-73
lines changed

Documentation/devicetree/bindings/reset/qcom,aoss-reset.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ properties:
2121
- const: "qcom,sc7180-aoss-cc"
2222
- const: "qcom,sdm845-aoss-cc"
2323

24+
- description: on SC7280 SoCs the following compatibles must be specified
25+
items:
26+
- const: "qcom,sc7280-aoss-cc"
27+
- const: "qcom,sdm845-aoss-cc"
28+
2429
- description: on SDM845 SoCs the following compatibles must be specified
2530
items:
2631
- const: "qcom,sdm845-aoss-cc"

Documentation/devicetree/bindings/reset/qcom,pdc-global.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ properties:
2121
- const: "qcom,sc7180-pdc-global"
2222
- const: "qcom,sdm845-pdc-global"
2323

24+
- description: on SC7280 SoCs the following compatibles must be specified
25+
items:
26+
- const: "qcom,sc7280-pdc-global"
27+
2428
- description: on SDM845 SoCs the following compatibles must be specified
2529
items:
2630
- const: "qcom,sdm845-pdc-global"
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/reset/renesas,rzg2l-usbphy-ctrl.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Renesas RZ/G2L USBPHY Control
8+
9+
maintainers:
10+
- Biju Das <[email protected]>
11+
12+
description:
13+
The RZ/G2L USBPHY Control mainly controls reset and power down of the
14+
USB/PHY.
15+
16+
properties:
17+
compatible:
18+
items:
19+
- enum:
20+
- renesas,r9a07g044-usbphy-ctrl # RZ/G2{L,LC}
21+
- const: renesas,rzg2l-usbphy-ctrl
22+
23+
reg:
24+
maxItems: 1
25+
26+
clocks:
27+
maxItems: 1
28+
29+
resets:
30+
maxItems: 1
31+
32+
power-domains:
33+
maxItems: 1
34+
35+
'#reset-cells':
36+
const: 1
37+
description: |
38+
The phandle's argument in the reset specifier is the PHY reset associated
39+
with the USB port.
40+
0 = Port 1 Phy reset
41+
1 = Port 2 Phy reset
42+
43+
required:
44+
- compatible
45+
- reg
46+
- clocks
47+
- resets
48+
- power-domains
49+
- '#reset-cells'
50+
51+
additionalProperties: false
52+
53+
examples:
54+
- |
55+
#include <dt-bindings/clock/r9a07g044-cpg.h>
56+
57+
phyrst: usbphy-ctrl@11c40000 {
58+
compatible = "renesas,r9a07g044-usbphy-ctrl",
59+
"renesas,rzg2l-usbphy-ctrl";
60+
reg = <0x11c40000 0x10000>;
61+
clocks = <&cpg CPG_MOD R9A07G044_USB_PCLK>;
62+
resets = <&cpg R9A07G044_USB_PRESETN>;
63+
power-domains = <&cpg>;
64+
#reset-cells = <1>;
65+
};
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/reset/socionext,uniphier-glue-reset.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Socionext UniPhier peripheral core reset in glue layer
8+
9+
description: |
10+
Some peripheral core reset belongs to its own glue layer. Before using
11+
this core reset, it is necessary to control the clocks and resets to
12+
enable this layer. These clocks and resets should be described in each
13+
property.
14+
15+
maintainers:
16+
- Kunihiko Hayashi <[email protected]>
17+
18+
properties:
19+
compatible:
20+
enum:
21+
- socionext,uniphier-pro4-usb3-reset
22+
- socionext,uniphier-pro5-usb3-reset
23+
- socionext,uniphier-pxs2-usb3-reset
24+
- socionext,uniphier-ld20-usb3-reset
25+
- socionext,uniphier-pxs3-usb3-reset
26+
- socionext,uniphier-pro4-ahci-reset
27+
- socionext,uniphier-pxs2-ahci-reset
28+
- socionext,uniphier-pxs3-ahci-reset
29+
30+
reg:
31+
maxItems: 1
32+
33+
"#reset-cells":
34+
const: 1
35+
36+
clocks:
37+
minItems: 1
38+
maxItems: 2
39+
40+
clock-names:
41+
oneOf:
42+
- items: # for Pro4, Pro5
43+
- const: gio
44+
- const: link
45+
- items: # for others
46+
- const: link
47+
48+
resets:
49+
minItems: 1
50+
maxItems: 2
51+
52+
reset-names:
53+
oneOf:
54+
- items: # for Pro4, Pro5
55+
- const: gio
56+
- const: link
57+
- items: # for others
58+
- const: link
59+
60+
additionalProperties: false
61+
62+
required:
63+
- compatible
64+
- reg
65+
- "#reset-cells"
66+
- clocks
67+
- clock-names
68+
- resets
69+
- reset-names
70+
71+
examples:
72+
- |
73+
usb-glue@65b00000 {
74+
compatible = "simple-mfd";
75+
#address-cells = <1>;
76+
#size-cells = <1>;
77+
ranges = <0 0x65b00000 0x400>;
78+
79+
usb_rst: reset@0 {
80+
compatible = "socionext,uniphier-ld20-usb3-reset";
81+
reg = <0x0 0x4>;
82+
#reset-cells = <1>;
83+
clock-names = "link";
84+
clocks = <&sys_clk 14>;
85+
reset-names = "link";
86+
resets = <&sys_rst 14>;
87+
};
88+
};

Documentation/devicetree/bindings/reset/uniphier-reset.txt

Lines changed: 0 additions & 61 deletions
This file was deleted.

drivers/reset/Kconfig

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,13 @@ config RESET_RASPBERRYPI
181181
interfacing with RPi4's co-processor and model these firmware
182182
initialization routines as reset lines.
183183

184+
config RESET_RZG2L_USBPHY_CTRL
185+
tristate "Renesas RZ/G2L USBPHY control driver"
186+
depends on ARCH_R9A07G044 || COMPILE_TEST
187+
help
188+
Support for USBPHY Control found on RZ/G2L family. It mainly
189+
controls reset and power down of the USB/PHY.
190+
184191
config RESET_SCMI
185192
tristate "Reset driver controlled via ARM SCMI interface"
186193
depends on ARM_SCMI_PROTOCOL || COMPILE_TEST
@@ -207,7 +214,6 @@ config RESET_SIMPLE
207214
- Realtek SoCs
208215
- RCC reset controller in STM32 MCUs
209216
- Allwinner SoCs
210-
- ZTE's zx2967 family
211217
- SiFive FU740 SoCs
212218

213219
config RESET_SOCFPGA

drivers/reset/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ obj-$(CONFIG_RESET_PISTACHIO) += reset-pistachio.o
2525
obj-$(CONFIG_RESET_QCOM_AOSS) += reset-qcom-aoss.o
2626
obj-$(CONFIG_RESET_QCOM_PDC) += reset-qcom-pdc.o
2727
obj-$(CONFIG_RESET_RASPBERRYPI) += reset-raspberrypi.o
28+
obj-$(CONFIG_RESET_RZG2L_USBPHY_CTRL) += reset-rzg2l-usbphy-ctrl.o
2829
obj-$(CONFIG_RESET_SCMI) += reset-scmi.o
2930
obj-$(CONFIG_RESET_SIMPLE) += reset-simple.o
3031
obj-$(CONFIG_RESET_SOCFPGA) += reset-socfpga.o

0 commit comments

Comments
 (0)