lkml.org 
[lkml]   [2019]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 6/8] dt-bindings: watchdog: Add missing clocks requirement in Samsung SoC watchdog
    Date
    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 --git a/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml b/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml
    index 3ea3c9fe8390..311f9dc83fdb 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

    @@ -40,6 +47,8 @@ properties:

    required:
    - compatible
    + - clocks
    + - clock-names
    - interrupts
    - reg

    --
    2.17.1
    \
     
     \ /
      Last update: 2019-09-18 19:33    [W:2.346 / U:0.060 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site