Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: watchdog: Convert marvell,orion-wdt to DT schema

Convert the Marvell Orion and Armada watchdog binding to DT schema
format. It's a straight-forward conversion.

Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

Rob Herring (Arm) and committed by
Wim Van Sebroeck
fbd10d96 af34a253

+100 -45
-45
Documentation/devicetree/bindings/watchdog/marvel.txt
··· 1 - * Marvell Orion Watchdog Time 2 - 3 - Required Properties: 4 - 5 - - Compatibility : "marvell,orion-wdt" 6 - "marvell,armada-370-wdt" 7 - "marvell,armada-xp-wdt" 8 - "marvell,armada-375-wdt" 9 - "marvell,armada-380-wdt" 10 - 11 - - reg : Should contain two entries: first one with the 12 - timer control address, second one with the 13 - rstout enable address. 14 - 15 - For "marvell,armada-375-wdt" and "marvell,armada-380-wdt": 16 - 17 - - reg : A third entry is mandatory and should contain the 18 - shared mask/unmask RSTOUT address. 19 - 20 - Clocks required for compatibles = "marvell,orion-wdt", 21 - "marvell,armada-370-wdt": 22 - - clocks : Must contain a single entry describing the clock input 23 - 24 - Clocks required for compatibles = "marvell,armada-xp-wdt" 25 - "marvell,armada-375-wdt" 26 - "marvell,armada-380-wdt": 27 - - clocks : Must contain an entry for each entry in clock-names. 28 - - clock-names : Must include the following entries: 29 - "nbclk" (L2/coherency fabric clock), 30 - "fixed" (Reference 25 MHz fixed-clock). 31 - 32 - Optional properties: 33 - 34 - - interrupts : Contains the IRQ for watchdog expiration 35 - - timeout-sec : Contains the watchdog timeout in seconds 36 - 37 - Example: 38 - 39 - wdt@20300 { 40 - compatible = "marvell,orion-wdt"; 41 - reg = <0x20300 0x28>, <0x20108 0x4>; 42 - interrupts = <3>; 43 - timeout-sec = <10>; 44 - clocks = <&gate_clk 7>; 45 - };
+100
Documentation/devicetree/bindings/watchdog/marvell,orion-wdt.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/watchdog/marvell,orion-wdt.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Marvell Orion Watchdog Timer 8 + 9 + maintainers: 10 + - Andrew Lunn <andrew@lunn.ch> 11 + - Gregory Clement <gregory.clement@bootlin.com> 12 + 13 + properties: 14 + compatible: 15 + enum: 16 + - marvell,orion-wdt 17 + - marvell,armada-370-wdt 18 + - marvell,armada-xp-wdt 19 + - marvell,armada-375-wdt 20 + - marvell,armada-380-wdt 21 + 22 + reg: 23 + minItems: 2 24 + items: 25 + - description: Timer control register address 26 + - description: RSTOUT enable register address 27 + - description: Shared mask/unmask RSTOUT register address 28 + 29 + clocks: 30 + minItems: 1 31 + items: 32 + - description: L2/coherency fabric clock input 33 + - description: Reference 25 MHz fixed-clock supply 34 + 35 + clock-names: 36 + minItems: 1 37 + items: 38 + - const: nbclk 39 + - const: fixed 40 + 41 + interrupts: 42 + minItems: 1 43 + items: 44 + - description: timeout 45 + - description: pre-timeout 46 + 47 + allOf: 48 + - $ref: watchdog.yaml# 49 + - if: 50 + properties: 51 + compatible: 52 + contains: 53 + enum: 54 + - marvell,armada-375-wdt 55 + - marvell,armada-380-wdt 56 + then: 57 + properties: 58 + reg: 59 + minItems: 3 60 + else: 61 + properties: 62 + reg: 63 + maxItems: 2 64 + 65 + - if: 66 + properties: 67 + compatible: 68 + contains: 69 + enum: 70 + - marvell,armada-xp-wdt 71 + - marvell,armada-375-wdt 72 + - marvell,armada-380-wdt 73 + then: 74 + properties: 75 + clocks: 76 + minItems: 2 77 + clock-names: 78 + minItems: 2 79 + interrupts: 80 + minItems: 2 81 + 82 + required: 83 + - clock-names 84 + 85 + required: 86 + - compatible 87 + - reg 88 + - clocks 89 + 90 + unevaluatedProperties: false 91 + 92 + examples: 93 + - | 94 + watchdog@20300 { 95 + compatible = "marvell,orion-wdt"; 96 + reg = <0x20300 0x28>, <0x20108 0x4>; 97 + interrupts = <3>; 98 + timeout-sec = <10>; 99 + clocks = <&gate_clk 7>; 100 + };