Skip to content

Commit 57d76ce

Browse files
committed
Merge tag 'linux-watchdog-6.20-rc1' of git://www.linux-watchdog.org/linux-watchdog
Pull watchdog updates from Wim Van Sebroeck: - iTCO: Drop vendor support - s3c2410_wdt: Drop S3C2410 support - Convert mpc8xxx-wdt to YAML - Several small fixes and improvements * tag 'linux-watchdog-6.20-rc1' of git://www.linux-watchdog.org/linux-watchdog: dt-bindings: watchdog: qcom-wdt: Document Glymur watchdog dt-bindings: watchdog: Convert mpc8xxx-wdt to YAML dt-bindings: watchdog: samsung-wdt: Split if:then: and constrain more dt-bindings: watchdog: samsung-wdt: Drop S3C2410 watchdog: s3c2410_wdt: Drop S3C2410 support dt-bindings: watchdog: samsung-wdt: Define cluster constraints top-level watchdog: rzv2h_wdt: Discard pm_runtime_put() return value watchdog: rz: Discard pm_runtime_put() return values watchdog: Make API functions const correct watchdog: imx7ulp_wdt: handle the nowayout option watchdog: sbsa: Update the W_IIDR Implementer bit mask to 0xFFF watchdog: Always return time left until watchdog times out watchdog: iTCO: Drop vendor support watchdog: starfive-wdt: Fix PM reference leak in probe error path fix it87_wdt early reboot by reporting running timer
2 parents 2228d9c + 450517f commit 57d76ce

19 files changed

Lines changed: 153 additions & 346 deletions

Documentation/devicetree/bindings/watchdog/mpc8xxx-wdt.txt

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/watchdog/mpc8xxx-wdt.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Freescale MPC8xxx watchdog timer (For 83xx, 86xx and 8xx)
8+
9+
maintainers:
10+
- J. Neuschäfer <j.ne@posteo.net>
11+
12+
properties:
13+
compatible:
14+
enum:
15+
- mpc83xx_wdt # for an mpc83xx
16+
- fsl,mpc8610-wdt # for an mpc86xx
17+
- fsl,mpc823-wdt # for an mpc8xx
18+
19+
device_type:
20+
const: watchdog
21+
22+
reg:
23+
minItems: 1
24+
items:
25+
- description: |
26+
Base physical address and length of the area hosting the watchdog
27+
registers.
28+
29+
On the 83xx, "Watchdog Timer Registers" area: <0x200 0x100>
30+
On the 86xx, "Watchdog Timer Registers" area: <0xe4000 0x100>
31+
On the 8xx, "General System Interface Unit" area: <0x0 0x10>
32+
33+
- description: |
34+
Additional optional physical address and length (4) of location of
35+
the Reset Status Register (called RSTRSCR on the mpc86xx)
36+
37+
On the 83xx, it is located at offset 0x910
38+
On the 86xx, it is located at offset 0xe0094
39+
On the 8xx, it is located at offset 0x288
40+
41+
required:
42+
- compatible
43+
- reg
44+
45+
allOf:
46+
- $ref: watchdog.yaml#
47+
48+
additionalProperties: false
49+
50+
examples:
51+
- |
52+
watchdog@0 {
53+
compatible = "fsl,mpc823-wdt";
54+
reg = <0x0 0x10 0x288 0x4>;
55+
};
56+
57+
- |
58+
watchdog@200 {
59+
compatible = "mpc83xx_wdt";
60+
reg = <0x200 0x100>;
61+
device_type = "watchdog";
62+
};
63+
64+
...

Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ properties:
1717
oneOf:
1818
- items:
1919
- enum:
20+
- qcom,apss-wdt-glymur
2021
- qcom,kpss-wdt-ipq4019
2122
- qcom,apss-wdt-ipq5018
2223
- qcom,apss-wdt-ipq5332

Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml

Lines changed: 44 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ properties:
1919
oneOf:
2020
- enum:
2121
- google,gs101-wdt # for Google gs101
22-
- samsung,s3c2410-wdt # for S3C2410
2322
- samsung,s3c6410-wdt # for S3C6410, S5PV210 and Exynos4
2423
- samsung,exynos5250-wdt # for Exynos5250
2524
- samsung,exynos5420-wdt # for Exynos5420
@@ -49,6 +48,7 @@ properties:
4948

5049
samsung,cluster-index:
5150
$ref: /schemas/types.yaml#/definitions/uint32
51+
enum: [0, 1, 2]
5252
description:
5353
Index of CPU cluster on which watchdog is running (in case of Exynos850,
5454
Exynos990 or Google gs101).
@@ -74,26 +74,31 @@ allOf:
7474
contains:
7575
enum:
7676
- google,gs101-wdt
77-
- samsung,exynos5250-wdt
78-
- samsung,exynos5420-wdt
79-
- samsung,exynos7-wdt
8077
- samsung,exynos850-wdt
81-
- samsung,exynos990-wdt
8278
- samsung,exynosautov9-wdt
8379
- samsung,exynosautov920-wdt
8480
then:
81+
properties:
82+
clocks:
83+
items:
84+
- description: Bus clock, used for register interface
85+
- description: Source clock (driving watchdog counter)
86+
clock-names:
87+
items:
88+
- const: watchdog
89+
- const: watchdog_src
90+
samsung,cluster-index:
91+
enum: [0, 1]
8592
required:
93+
- samsung,cluster-index
8694
- samsung,syscon-phandle
95+
8796
- if:
8897
properties:
8998
compatible:
9099
contains:
91100
enum:
92-
- google,gs101-wdt
93-
- samsung,exynos850-wdt
94101
- samsung,exynos990-wdt
95-
- samsung,exynosautov9-wdt
96-
- samsung,exynosautov920-wdt
97102
then:
98103
properties:
99104
clocks:
@@ -104,11 +109,37 @@ allOf:
104109
items:
105110
- const: watchdog
106111
- const: watchdog_src
107-
samsung,cluster-index:
108-
enum: [0, 1, 2]
109112
required:
110113
- samsung,cluster-index
111-
else:
114+
- samsung,syscon-phandle
115+
116+
- if:
117+
properties:
118+
compatible:
119+
contains:
120+
enum:
121+
- samsung,exynos5250-wdt
122+
- samsung,exynos5420-wdt
123+
- samsung,exynos7-wdt
124+
then:
125+
properties:
126+
clocks:
127+
items:
128+
- description: Bus clock, which is also a source clock
129+
clock-names:
130+
items:
131+
- const: watchdog
132+
samsung,cluster-index: false
133+
required:
134+
- samsung,syscon-phandle
135+
136+
- if:
137+
properties:
138+
compatible:
139+
contains:
140+
enum:
141+
- samsung,s3c6410-wdt
142+
then:
112143
properties:
113144
clocks:
114145
items:
@@ -117,6 +148,7 @@ allOf:
117148
items:
118149
- const: watchdog
119150
samsung,cluster-index: false
151+
samsung,syscon-phandle: false
120152

121153
unevaluatedProperties: false
122154

Documentation/watchdog/watchdog-kernel-api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ To initialize the timeout field, the following function can be used::
293293

294294
extern int watchdog_init_timeout(struct watchdog_device *wdd,
295295
unsigned int timeout_parm,
296-
struct device *dev);
296+
const struct device *dev);
297297

298298
The watchdog_init_timeout function allows you to initialize the timeout field
299299
using the module timeout parameter or by retrieving the timeout-sec property from

Documentation/watchdog/watchdog-parameters.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,6 @@ iTCO_wdt:
209209

210210
-------------------------------------------------
211211

212-
iTCO_vendor_support:
213-
vendorsupport:
214-
iTCO vendor specific support mode, default=0 (none),
215-
1=SuperMicro Pent3, 2=SuperMicro Pent4+, 911=Broken SMI BIOS
216-
217-
-------------------------------------------------
218-
219212
ib700wdt:
220213
timeout:
221214
Watchdog timeout in seconds. 0<= timeout <=30, default=30.

drivers/watchdog/Kconfig

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,14 +1429,6 @@ config ITCO_WDT
14291429
To compile this driver as a module, choose M here: the
14301430
module will be called iTCO_wdt.
14311431

1432-
config ITCO_VENDOR_SUPPORT
1433-
bool "Intel TCO Timer/Watchdog Specific Vendor Support"
1434-
depends on ITCO_WDT
1435-
help
1436-
Add vendor specific support to the intel TCO timer based watchdog
1437-
devices. At this moment we only have additional support for some
1438-
SuperMicro Inc. motherboards.
1439-
14401432
config IT8712F_WDT
14411433
tristate "IT8712F (Smart Guardian) Watchdog Timer"
14421434
depends on (X86 || COMPILE_TEST) && HAS_IOPORT

drivers/watchdog/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,6 @@ obj-$(CONFIG_IE6XX_WDT) += ie6xx_wdt.o
127127
obj-$(CONFIG_ITCO_WDT) += iTCO_wdt.o
128128
obj-$(CONFIG_LENOVO_SE10_WDT) += lenovo_se10_wdt.o
129129
obj-$(CONFIG_LENOVO_SE30_WDT) += lenovo_se30_wdt.o
130-
ifeq ($(CONFIG_ITCO_VENDOR_SUPPORT),y)
131-
obj-$(CONFIG_ITCO_WDT) += iTCO_vendor_support.o
132-
endif
133130
obj-$(CONFIG_IT8712F_WDT) += it8712f_wdt.o
134131
obj-$(CONFIG_IT87_WDT) += it87_wdt.o
135132
obj-$(CONFIG_HP_WATCHDOG) += hpwdt.o

drivers/watchdog/iTCO_vendor.h

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

0 commit comments

Comments
 (0)