diff mbox series

[v2,2/3] dt-bindings: watchdog: Add missing clocks requirement in Samsung SoC watchdog

Message ID 20190920162124.7036-2-krzk@kernel.org (mailing list archive)
State Mainlined
Commit 6fd64049cfe1eb07570726c423afec8aa1cb082b
Headers show
Series [v2,1/3] dt-bindings: watchdog: Convert Samsung SoC watchdog bindings to json-schema | expand

Commit Message

Krzysztof Kozlowski Sept. 20, 2019, 4:21 p.m. UTC
The Samsung SoC watchdog driver always required providing a clock
(either through platform data or from DT).  However when bindings were
added in commit 9487a9cc7140 ("watchdog: s3c2410: Add support for device
tree based probe"), they missed the requirement of clock.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org>

---

Changes since v1:
1. Indent example with four spaces (more readable),
2. Add also missing required entries for clocks.
---
 .../devicetree/bindings/watchdog/samsung-wdt.yaml        | 9 +++++++++
 1 file changed, 9 insertions(+)
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml b/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml
index 5a3a3cec8e20..2fa40d8864b2 100644
--- a/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml
+++ b/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml
@@ -26,6 +26,13 @@  properties:
   reg:
     maxItems: 1
 
+  clocks:
+    maxItems: 1
+
+  clock-names:
+    items:
+      - const: watchdog
+
   interrupts:
     maxItems: 1
 
@@ -37,6 +44,8 @@  properties:
 
 required:
   - compatible
+  - clocks
+  - clock-names
   - interrupts
   - reg