Skip to content

Commit a9a01e1

Browse files
committed
Merge tag 'linux-watchdog-6.3-rc1' of git://www.linux-watchdog.org/linux-watchdog
Pull watchdog updates from Wim Van Sebroeck: - qcom-wdt dt-bindings improvements and additions (like MSM8994 and MDM9615) - mtk_wdt: Add reset_by_toprgu support - devm_clk_get_enabled() helper changes - Fix kmemleak in watchdog_cdev_register - watchdog sysfs improvements - Other fixes and small improvements * tag 'linux-watchdog-6.3-rc1' of git://www.linux-watchdog.org/linux-watchdog: (52 commits) watchdog: at91rm9200: Only warn once about problems in .remove() watchdog: mt7621-wdt: avoid ralink architecture dependent code watchdog: mt7621-wdt: avoid static global declarations dt-bindings: watchdog: mt7621-wdt: add phandle to access system controller registers watchdog: sbsa_wdog: Make sure the timeout programming is within the limits dt-bindings: watchdog: qcom-wdt: add qcom,apss-wdt-sa8775p compatible watchdog: report options in sysfs watchdog: report fw_version in sysfs dt-bindings: watchdog: fsl-imx: document suspend in wait mode watchdog: imx2_wdg: suspend watchdog in WAIT mode watchdog: pcwd_usb: Fix attempting to access uninitialized memory dt-bindings: watchdog: qcom-wdt: merge MSM timer dt-bindings: watchdog: qcom-wdt: allow interrupts dt-bindings: watchdog: qcom-wdt: add qcom,kpss-wdt-mdm9615 dt-bindings: watchdog: qcom-wdt: fix list of MSM timer compatibles dt-bindings: watchdog: qcom-wdt: do not allow fallback alone dt-bindings: watchdog: qcom-wdt: require fallback for IPQ4019 watchdog: Fix kmemleak in watchdog_cdev_register watchdog: Include <linux/kstrtox.h> when appropriate watchdog: at91sam9_wdt: use devm_request_irq to avoid missing free_irq() in error path ...
2 parents c3f9b9f + cf3be7e commit a9a01e1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+527
-455
lines changed

Documentation/ABI/testing/sysfs-class-watchdog

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@ Description:
66
device at boot. It is equivalent to WDIOC_GETBOOTSTATUS of
77
ioctl interface.
88

9+
What: /sys/class/watchdog/watchdogn/options
10+
Date: April 2023
11+
Contact: Thomas Weißschuh
12+
Description:
13+
It is a read only file. It contains options of watchdog device.
14+
15+
What: /sys/class/watchdog/watchdogn/fw_version
16+
Date: April 2023
17+
Contact: Thomas Weißschuh
18+
Description:
19+
It is a read only file. It contains firmware version of
20+
watchdog device.
21+
922
What: /sys/class/watchdog/watchdogn/identity
1023
Date: August 2015
1124
Contact: Wim Van Sebroeck <[email protected]>

Documentation/devicetree/bindings/timer/qcom,msm-timer.txt

Lines changed: 0 additions & 47 deletions
This file was deleted.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/watchdog/amlogic,meson6-wdt.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Amlogic Meson6 SoCs Watchdog timer
8+
9+
maintainers:
10+
- Neil Armstrong <[email protected]>
11+
- Martin Blumenstingl <[email protected]>
12+
13+
allOf:
14+
- $ref: watchdog.yaml#
15+
16+
properties:
17+
compatible:
18+
oneOf:
19+
- enum:
20+
- amlogic,meson6-wdt
21+
- amlogic,meson8-wdt
22+
- amlogic,meson8b-wdt
23+
- items:
24+
- const: amlogic,meson8m2-wdt
25+
- const: amlogic,meson8b-wdt
26+
27+
interrupts:
28+
maxItems: 1
29+
30+
reg:
31+
maxItems: 1
32+
33+
required:
34+
- compatible
35+
- interrupts
36+
- reg
37+
38+
unevaluatedProperties: false
39+
40+
examples:
41+
- |
42+
#include <dt-bindings/interrupt-controller/irq.h>
43+
#include <dt-bindings/interrupt-controller/arm-gic.h>
44+
45+
wdt: watchdog@c1109900 {
46+
compatible = "amlogic,meson6-wdt";
47+
reg = <0xc1109900 0x8>;
48+
interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>;
49+
timeout-sec = <10>;
50+
};

Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.yaml

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ title: Freescale i.MX Watchdog Timer (WDT) Controller
99
maintainers:
1010
- Anson Huang <[email protected]>
1111

12-
allOf:
13-
- $ref: "watchdog.yaml#"
14-
1512
properties:
1613
compatible:
1714
oneOf:
@@ -55,11 +52,45 @@ properties:
5552
If present, the watchdog device is configured to assert its
5653
external reset (WDOG_B) instead of issuing a software reset.
5754
55+
fsl,suspend-in-wait:
56+
$ref: /schemas/types.yaml#/definitions/flag
57+
description: |
58+
If present, the watchdog device is suspended in WAIT mode
59+
(Suspend-to-Idle). Only supported on certain devices.
60+
5861
required:
5962
- compatible
6063
- interrupts
6164
- reg
6265

66+
allOf:
67+
- $ref: watchdog.yaml#
68+
- if:
69+
not:
70+
properties:
71+
compatible:
72+
contains:
73+
enum:
74+
- fsl,imx25-wdt
75+
- fsl,imx35-wdt
76+
- fsl,imx50-wdt
77+
- fsl,imx51-wdt
78+
- fsl,imx53-wdt
79+
- fsl,imx6q-wdt
80+
- fsl,imx6sl-wdt
81+
- fsl,imx6sll-wdt
82+
- fsl,imx6sx-wdt
83+
- fsl,imx6ul-wdt
84+
- fsl,imx7d-wdt
85+
- fsl,imx8mm-wdt
86+
- fsl,imx8mn-wdt
87+
- fsl,imx8mp-wdt
88+
- fsl,imx8mq-wdt
89+
- fsl,vf610-wdt
90+
then:
91+
properties:
92+
fsl,suspend-in-wait: false
93+
6394
unevaluatedProperties: false
6495

6596
examples:
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/watchdog/gpio-wdt.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: GPIO controlled watchdog
8+
9+
maintainers:
10+
- Robert Marko <[email protected]>
11+
12+
properties:
13+
compatible:
14+
const: linux,wdt-gpio
15+
16+
gpios:
17+
maxItems: 1
18+
description: GPIO connected to the WDT reset pin
19+
20+
hw_algo:
21+
$ref: /schemas/types.yaml#/definitions/string
22+
description: Algorithm used by the driver
23+
oneOf:
24+
- description:
25+
Either a high-to-low or a low-to-high transition clears the WDT counter.
26+
The watchdog timer is disabled when GPIO is left floating or connected
27+
to a three-state buffer.
28+
const: toggle
29+
- description:
30+
Low or high level starts counting WDT timeout, the opposite level
31+
disables the WDT.
32+
Active level is determined by the GPIO flags.
33+
const: level
34+
35+
hw_margin_ms:
36+
$ref: /schemas/types.yaml#/definitions/uint32
37+
description: Maximum time to reset watchdog circuit (in milliseconds)
38+
minimum: 2
39+
maximum: 65535
40+
41+
always-running:
42+
type: boolean
43+
description:
44+
If the watchdog timer cannot be disabled, add this flag to have the driver
45+
keep toggling the signal without a client.
46+
It will only cease to toggle the signal when the device is open and the
47+
timeout elapsed.
48+
49+
required:
50+
- compatible
51+
- gpios
52+
- hw_algo
53+
- hw_margin_ms
54+
55+
unevaluatedProperties: false

Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ properties:
1919
reg:
2020
maxItems: 1
2121

22+
mediatek,sysctl:
23+
$ref: /schemas/types.yaml#/definitions/phandle
24+
description:
25+
phandle to system controller 'sysc' syscon node which
26+
controls system registers
27+
2228
required:
2329
- compatible
2430
- reg
@@ -30,4 +36,5 @@ examples:
3036
watchdog@100 {
3137
compatible = "mediatek,mt7621-wdt";
3238
reg = <0x100 0x100>;
39+
mediatek,sysctl = <&sysc>;
3340
};

Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ properties:
5252
description: Disable sending output reset signal
5353
type: boolean
5454

55+
mediatek,reset-by-toprgu:
56+
description: The Top Reset Generation Unit (TOPRGU) generates reset signals
57+
and distributes them to each IP. If present, the watchdog timer will be
58+
reset by TOPRGU once system resets.
59+
type: boolean
60+
5561
'#reset-cells':
5662
const: 1
5763

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

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

0 commit comments

Comments
 (0)