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: img,pdc-wdt: Convert to dtschema

Convert txt bindings of ImgTec's PDC watchdog timer to dtschema to allow
for validation.

Signed-off-by: Shresth Prasad <shrestprasad7@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240527195811.7897-2-shresthprasad7@gmail.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

authored by

Shresth Prasad and committed by
Rob Herring (Arm)
fdd81e90 bd7db321

+55 -19
+55
Documentation/devicetree/bindings/watchdog/img,pdc-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/img,pdc-wdt.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: ImgTec PowerDown Controller (PDC) Watchdog Timer (WDT) 8 + 9 + maintainers: 10 + - Shresth Prasad <shresthprasad7@gmail.com> 11 + 12 + allOf: 13 + - $ref: watchdog.yaml# 14 + 15 + properties: 16 + compatible: 17 + enum: 18 + - img,pdc-wdt 19 + 20 + reg: 21 + maxItems: 1 22 + 23 + clocks: 24 + items: 25 + - description: watchdog counter clock 26 + - description: register interface clock 27 + 28 + clock-names: 29 + items: 30 + - const: wdt 31 + - const: sys 32 + 33 + interrupts: 34 + maxItems: 1 35 + 36 + required: 37 + - compatible 38 + - reg 39 + - clocks 40 + - clock-names 41 + - interrupts 42 + 43 + unevaluatedProperties: false 44 + 45 + examples: 46 + - | 47 + #include <dt-bindings/interrupt-controller/irq.h> 48 + 49 + watchdog@18102100 { 50 + compatible = "img,pdc-wdt"; 51 + reg = <0x18102100 0x100>; 52 + clocks = <&pdc_wdt_clk>, <&sys_clk>; 53 + clock-names = "wdt", "sys"; 54 + interrupts = <0 52 IRQ_TYPE_LEVEL_HIGH>; 55 + };
-19
Documentation/devicetree/bindings/watchdog/imgpdc-wdt.txt
··· 1 - *ImgTec PowerDown Controller (PDC) Watchdog Timer (WDT) 2 - 3 - Required properties: 4 - - compatible : Should be "img,pdc-wdt" 5 - - reg : Should contain WDT registers location and length 6 - - clocks: Must contain an entry for each entry in clock-names. 7 - - clock-names: Should contain "wdt" and "sys"; the watchdog counter 8 - clock and register interface clock respectively. 9 - - interrupts : Should contain WDT interrupt 10 - 11 - Examples: 12 - 13 - watchdog@18102100 { 14 - compatible = "img,pdc-wdt"; 15 - reg = <0x18102100 0x100>; 16 - clocks = <&pdc_wdt_clk>, <&sys_clk>; 17 - clock-names = "wdt", "sys"; 18 - interrupts = <0 52 IRQ_TYPE_LEVEL_HIGH>; 19 - };