Skip to content

Commit ed82b8d

Browse files
committed
Merge tag 'reset-for-v6.17' of https://git.pengutronix.de/git/pza/linux into soc/drivers
Reset controller updates for v6.17 * Support reset controllers on Kendryte K230 and SOPHGO CV1800B. * Add RZ/V2N USB2PHY reset controller bindings * Use auxiliary device creation helpers in reset-mpfs. * Convert nxp,lcp1850-rgu and snps,dw-reset binding docs to DT schema. * Enable reset-brcmstb(-rescal) on BCM2712. * Fix a typo in the T-HEAD TH1520 Kconfig option * tag 'reset-for-v6.17' of https://git.pengutronix.de/git/pza/linux: dt-bindings: reset: Convert snps,dw-reset to DT schema reset: brcmstb: Enable reset drivers for ARCH_BCM2835 reset: simple: add support for Sophgo CV1800B dt-bindings: reset: sophgo: Add CV1800B support reset: mpfs: use the auxiliary device creation dt-bindings: reset: renesas,rzv2h-usb2phy: Document RZ/V2N SoC support dt-bindings: reset: convert nxp,lpc1850-rgu.txt to yaml format reset: thead: Fix TH1520 typo reset: canaan: add reset driver for Kendryte K230 dt-bindings: reset: add support for canaan,k230-rst Link: https://lore.kernel.org/r/20250710152513.1346298-1-p.zabel@pengutronix.de Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents d60b122 + 196dbac commit ed82b8d

13 files changed

Lines changed: 672 additions & 172 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/reset/canaan,k230-rst.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Canaan Kendryte K230 Reset Controller
8+
9+
maintainers:
10+
- Junhui Liu <junhui.liu@pigmoral.tech>
11+
12+
description:
13+
The Canaan Kendryte K230 reset controller is part of the SoC's system
14+
controller and controls the reset registers for CPUs and various peripherals.
15+
16+
properties:
17+
compatible:
18+
const: canaan,k230-rst
19+
20+
reg:
21+
maxItems: 1
22+
23+
'#reset-cells':
24+
const: 1
25+
26+
required:
27+
- compatible
28+
- reg
29+
- '#reset-cells'
30+
31+
additionalProperties: false
32+
33+
examples:
34+
- |
35+
reset-controller@91101000 {
36+
compatible = "canaan,k230-rst";
37+
reg = <0x91101000 0x1000>;
38+
#reset-cells = <1>;
39+
};

Documentation/devicetree/bindings/reset/nxp,lpc1850-rgu.txt

Lines changed: 0 additions & 83 deletions
This file was deleted.
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/reset/nxp,lpc1850-rgu.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: NXP LPC1850 Reset Generation Unit (RGU)
8+
9+
maintainers:
10+
- Frank Li <Frank.Li@nxp.com>
11+
12+
properties:
13+
compatible:
14+
const: nxp,lpc1850-rgu
15+
16+
reg:
17+
maxItems: 1
18+
19+
clocks:
20+
maxItems: 2
21+
22+
clock-names:
23+
items:
24+
- const: delay
25+
- const: reg
26+
27+
'#reset-cells':
28+
const: 1
29+
description: |
30+
See table below for valid peripheral reset numbers. Numbers not
31+
in the table below are either reserved or not applicable for
32+
normal operation.
33+
34+
Reset Peripheral
35+
9 System control unit (SCU)
36+
12 ARM Cortex-M0 subsystem core (LPC43xx only)
37+
13 CPU core
38+
16 LCD controller
39+
17 USB0
40+
18 USB1
41+
19 DMA
42+
20 SDIO
43+
21 External memory controller (EMC)
44+
22 Ethernet
45+
25 Flash bank A
46+
27 EEPROM
47+
28 GPIO
48+
29 Flash bank B
49+
32 Timer0
50+
33 Timer1
51+
34 Timer2
52+
35 Timer3
53+
36 Repetitive Interrupt timer (RIT)
54+
37 State Configurable Timer (SCT)
55+
38 Motor control PWM (MCPWM)
56+
39 QEI
57+
40 ADC0
58+
41 ADC1
59+
42 DAC
60+
44 USART0
61+
45 UART1
62+
46 USART2
63+
47 USART3
64+
48 I2C0
65+
49 I2C1
66+
50 SSP0
67+
51 SSP1
68+
52 I2S0 and I2S1
69+
53 Serial Flash Interface (SPIFI)
70+
54 C_CAN1
71+
55 C_CAN0
72+
56 ARM Cortex-M0 application core (LPC4370 only)
73+
57 SGPIO (LPC43xx only)
74+
58 SPI (LPC43xx only)
75+
60 ADCHS (12-bit ADC) (LPC4370 only)
76+
77+
Refer to NXP LPC18xx or LPC43xx user manual for more details about
78+
the reset signals and the connected block/peripheral.
79+
80+
required:
81+
- compatible
82+
- reg
83+
- clocks
84+
- clock-names
85+
- '#reset-cells'
86+
87+
additionalProperties: false
88+
89+
examples:
90+
- |
91+
#include <dt-bindings/clock/lpc18xx-ccu.h>
92+
#include <dt-bindings/clock/lpc18xx-cgu.h>
93+
94+
reset-controller@40053000 {
95+
compatible = "nxp,lpc1850-rgu";
96+
reg = <0x40053000 0x1000>;
97+
clocks = <&cgu BASE_SAFE_CLK>, <&ccu1 CLK_CPU_BUS>;
98+
clock-names = "delay", "reg";
99+
#reset-cells = <1>;
100+
};
101+

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ description:
1515

1616
properties:
1717
compatible:
18-
const: renesas,r9a09g057-usb2phy-reset # RZ/V2H(P)
18+
oneOf:
19+
- items:
20+
- const: renesas,r9a09g056-usb2phy-reset # RZ/V2N
21+
- const: renesas,r9a09g057-usb2phy-reset
22+
23+
- const: renesas,r9a09g057-usb2phy-reset # RZ/V2H(P)
1924

2025
reg:
2126
maxItems: 1

Documentation/devicetree/bindings/reset/snps,dw-reset.txt

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/reset/snps,dw-reset.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Synopsys DesignWare Reset controller
8+
9+
maintainers:
10+
- Philipp Zabel <p.zabel@pengutronix.de>
11+
12+
properties:
13+
compatible:
14+
enum:
15+
- snps,dw-high-reset
16+
- snps,dw-low-reset
17+
18+
reg:
19+
maxItems: 1
20+
21+
'#reset-cells':
22+
const: 1
23+
24+
reset-controller: true
25+
26+
required:
27+
- compatible
28+
- reg
29+
- '#reset-cells'
30+
31+
additionalProperties: false
32+
33+
examples:
34+
- |
35+
reset-controller@0 {
36+
compatible = "snps,dw-high-reset";
37+
reg = <0x0000 0x4>;
38+
#reset-cells = <1>;
39+
};

Documentation/devicetree/bindings/reset/sophgo,sg2042-reset.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ properties:
1616
- enum:
1717
- sophgo,sg2044-reset
1818
- const: sophgo,sg2042-reset
19-
- const: sophgo,sg2042-reset
19+
- enum:
20+
- sophgo,cv1800b-reset
21+
- sophgo,sg2042-reset
2022

2123
reg:
2224
maxItems: 1

drivers/reset/Kconfig

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,20 @@ config RESET_BERLIN
5151

5252
config RESET_BRCMSTB
5353
tristate "Broadcom STB reset controller"
54-
depends on ARCH_BRCMSTB || COMPILE_TEST
55-
default ARCH_BRCMSTB
54+
depends on ARCH_BRCMSTB || ARCH_BCM2835 || COMPILE_TEST
55+
default ARCH_BRCMSTB || ARCH_BCM2835
5656
help
5757
This enables the reset controller driver for Broadcom STB SoCs using
5858
a SUN_TOP_CTRL_SW_INIT style controller.
5959

6060
config RESET_BRCMSTB_RESCAL
6161
tristate "Broadcom STB RESCAL reset controller"
6262
depends on HAS_IOMEM
63-
depends on ARCH_BRCMSTB || COMPILE_TEST
64-
default ARCH_BRCMSTB
63+
depends on ARCH_BRCMSTB || ARCH_BCM2835 || COMPILE_TEST
64+
default ARCH_BRCMSTB || ARCH_BCM2835
6565
help
6666
This enables the RESCAL reset controller for SATA, PCIe0, or PCIe1 on
67-
BCM7216.
67+
BCM7216 or the BCM2712.
6868

6969
config RESET_EYEQ
7070
bool "Mobileye EyeQ reset controller"
@@ -140,6 +140,15 @@ config RESET_K210
140140
Say Y if you want to control reset signals provided by this
141141
controller.
142142

143+
config RESET_K230
144+
tristate "Reset controller driver for Canaan Kendryte K230 SoC"
145+
depends on ARCH_CANAAN || COMPILE_TEST
146+
depends on OF
147+
help
148+
Support for the Canaan Kendryte K230 RISC-V SoC reset controller.
149+
Say Y if you want to control reset signals provided by this
150+
controller.
151+
143152
config RESET_LANTIQ
144153
bool "Lantiq XWAY Reset Driver" if COMPILE_TEST
145154
default SOC_TYPE_XWAY
@@ -287,7 +296,7 @@ config RESET_SUNXI
287296
This enables the reset driver for Allwinner SoCs.
288297

289298
config RESET_TH1520
290-
tristate "T-HEAD 1520 reset controller"
299+
tristate "T-HEAD TH1520 reset controller"
291300
depends on ARCH_THEAD || COMPILE_TEST
292301
select REGMAP_MMIO
293302
help

drivers/reset/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ obj-$(CONFIG_RESET_IMX7) += reset-imx7.o
2020
obj-$(CONFIG_RESET_IMX8MP_AUDIOMIX) += reset-imx8mp-audiomix.o
2121
obj-$(CONFIG_RESET_INTEL_GW) += reset-intel-gw.o
2222
obj-$(CONFIG_RESET_K210) += reset-k210.o
23+
obj-$(CONFIG_RESET_K230) += reset-k230.o
2324
obj-$(CONFIG_RESET_LANTIQ) += reset-lantiq.o
2425
obj-$(CONFIG_RESET_LPC18XX) += reset-lpc18xx.o
2526
obj-$(CONFIG_RESET_MCHP_SPARX5) += reset-microchip-sparx5.o

0 commit comments

Comments
 (0)