Skip to content

Commit fbf57f2

Browse files
committed
Merge tag 'reset-for-v7.1' of https://git.pengutronix.de/git/pza/linux into soc/drivers
Reset controller updates for v7.1 * Rework the reset core to support firmware nodes, add more fine grained locking, and use guard() helpers. * Change the reset-gpio driver to use firmware nodes. * Add support for the Cix Sky1 SoC reset controller. * Add support for the RZ/G3E SoC to the reset-rzv2h-usb2phy driver and convert it to regmap. Prepare registering a VBUS mux controller. * Replace use of the deprecated register_restart_handler() function in the ath79, intel-gw, lpc18xx, ma35d1, npcm, and sunplus reset drivers. * Combine two allocations into one in the sti/reset-syscfg driver. * Fix the reset-rzg2l-usbphy-ctrl MODULE_AUTHOR email. * Fix the reset_control_rearm() kerneldoc comment. The last commit is a merge of reset-fixes-for-v7.0-2 into reset/next, to solve a merge conflict between commits a9b95ce ("reset: gpio: add a devlink between reset-gpio and its consumer") and fbffb8c ("reset: gpio: fix double free in reset_add_gpio_aux_device() error path"). * tag 'reset-for-v7.1' of https://git.pengutronix.de/git/pza/linux: (35 commits) reset: rzv2h-usb2phy: Add support for VBUS mux controller registration reset: rzv2h-usb2phy: Convert to regmap API dt-bindings: reset: renesas,rzv2h-usb2phy: Document RZ/G3E USB2PHY reset dt-bindings: reset: renesas,rzv2h-usb2phy: Add '#mux-state-cells' property reset: core: Drop unnecessary double quote reset: rzv2h-usb2phy: Keep PHY clock enabled for entire device lifetime reset: spacemit: k3: Decouple composite reset lines reset: gpio: fix double free in reset_add_gpio_aux_device() error path reset: rzg2l-usbphy-ctrl: Fix malformed MODULE_AUTHOR string reset: sti: kzalloc + kcalloc to kzalloc reset: don't overwrite fwnode_reset_n_cells reset: core: Fix indentation reset: add Sky1 soc reset support dt-bindings: soc: cix: document the syscon on Sky1 SoC reset: gpio: make the driver fwnode-agnostic reset: convert reset core to using firmware nodes reset: convert the core API to using firmware nodes reset: convert of_reset_control_get_count() to using firmware nodes reset: protect struct reset_control with its own mutex reset: protect struct reset_controller_dev with its own mutex ... Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 62513d2 + d373605 commit fbf57f2

23 files changed

Lines changed: 1217 additions & 402 deletions

Documentation/devicetree/bindings/reset/renesas,rzv2h-usb2phy-reset.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ properties:
1717
compatible:
1818
oneOf:
1919
- items:
20-
- const: renesas,r9a09g056-usb2phy-reset # RZ/V2N
20+
- enum:
21+
- renesas,r9a09g047-usb2phy-reset # RZ/G3E
22+
- renesas,r9a09g056-usb2phy-reset # RZ/V2N
2123
- const: renesas,r9a09g057-usb2phy-reset
2224

2325
- const: renesas,r9a09g057-usb2phy-reset # RZ/V2H(P)
@@ -37,13 +39,17 @@ properties:
3739
'#reset-cells':
3840
const: 0
3941

42+
'#mux-state-cells':
43+
const: 1
44+
4045
required:
4146
- compatible
4247
- reg
4348
- clocks
4449
- resets
4550
- power-domains
4651
- '#reset-cells'
52+
- '#mux-state-cells'
4753

4854
additionalProperties: false
4955

@@ -58,4 +64,5 @@ examples:
5864
resets = <&cpg 0xaf>;
5965
power-domains = <&cpg>;
6066
#reset-cells = <0>;
67+
#mux-state-cells = <1>;
6168
};
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/soc/cix/cix,sky1-system-control.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Cix Sky1 SoC system control register region
8+
9+
maintainers:
10+
- Gary Yang <gary.yang@cixtech.com>
11+
12+
description:
13+
An wide assortment of registers of the system controller on Sky1 SoC,
14+
including resets, usb, wakeup sources and so on.
15+
16+
properties:
17+
compatible:
18+
items:
19+
- enum:
20+
- cix,sky1-system-control
21+
- cix,sky1-s5-system-control
22+
- const: syscon
23+
24+
reg:
25+
maxItems: 1
26+
27+
'#reset-cells':
28+
const: 1
29+
30+
required:
31+
- compatible
32+
- reg
33+
34+
additionalProperties: false
35+
36+
examples:
37+
- |
38+
syscon@4160000 {
39+
compatible = "cix,sky1-system-control", "syscon";
40+
reg = <0x4160000 0x100>;
41+
#reset-cells = <1>;
42+
};

Documentation/driver-api/reset.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ query the reset line status using reset_control_status().
198198
reset_control_rearm
199199
reset_control_put
200200
of_reset_control_get_count
201-
of_reset_control_array_get
202201
devm_reset_control_array_get
203202
reset_control_get_count
204203

drivers/reset/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ config RESET_RZG2L_USBPHY_CTRL
257257
config RESET_RZV2H_USB2PHY
258258
tristate "Renesas RZ/V2H(P) (and similar SoCs) USB2PHY Reset driver"
259259
depends on ARCH_RENESAS || COMPILE_TEST
260+
select AUXILIARY_BUS
261+
select REGMAP_MMIO
260262
help
261263
Support for USB2PHY Port reset Control found on the RZ/V2H(P) SoC
262264
(and similar SoCs).
@@ -291,6 +293,13 @@ config RESET_SIMPLE
291293
- SiFive FU740 SoCs
292294
- Sophgo SoCs
293295

296+
config RESET_SKY1
297+
bool "Cix Sky1 reset controller"
298+
depends on ARCH_CIX || COMPILE_TEST
299+
select REGMAP_MMIO
300+
help
301+
This enables the reset controller for Cix Sky1.
302+
294303
config RESET_SOCFPGA
295304
bool "SoCFPGA Reset Driver" if COMPILE_TEST && (!ARM || !ARCH_INTEL_SOCFPGA)
296305
default ARM && ARCH_INTEL_SOCFPGA

drivers/reset/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ obj-$(CONFIG_RESET_RZG2L_USBPHY_CTRL) += reset-rzg2l-usbphy-ctrl.o
3838
obj-$(CONFIG_RESET_RZV2H_USB2PHY) += reset-rzv2h-usb2phy.o
3939
obj-$(CONFIG_RESET_SCMI) += reset-scmi.o
4040
obj-$(CONFIG_RESET_SIMPLE) += reset-simple.o
41+
obj-$(CONFIG_RESET_SKY1) += reset-sky1.o
4142
obj-$(CONFIG_RESET_SOCFPGA) += reset-socfpga.o
4243
obj-$(CONFIG_RESET_SUNPLUS) += reset-sunplus.o
4344
obj-$(CONFIG_RESET_SUNXI) += reset-sunxi.o

0 commit comments

Comments
 (0)