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: nxp,lpc1850-wdt: Convert bindings to dtschema

Convert the NXP LPC18xx Watchdog Timer bindings to yaml format.

Cc: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Animesh Agarwal <animeshagarwal28@gmail.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240814061210.56213-1-animeshagarwal28@gmail.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

authored by

Animesh Agarwal and committed by
Rob Herring (Arm)
0416f00c 90e09575

+52 -19
-19
Documentation/devicetree/bindings/watchdog/lpc18xx-wdt.txt
··· 1 - * NXP LPC18xx Watchdog Timer (WDT) 2 - 3 - Required properties: 4 - - compatible: Should be "nxp,lpc1850-wwdt" 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 "wdtclk" and "reg"; the watchdog counter 8 - clock and register interface clock respectively. 9 - - interrupts: Should contain WDT interrupt 10 - 11 - Examples: 12 - 13 - watchdog@40080000 { 14 - compatible = "nxp,lpc1850-wwdt"; 15 - reg = <0x40080000 0x24>; 16 - clocks = <&cgu BASE_SAFE_CLK>, <&ccu1 CLK_CPU_WWDT>; 17 - clock-names = "wdtclk", "reg"; 18 - interrupts = <49>; 19 - };
+52
Documentation/devicetree/bindings/watchdog/nxp,lpc1850-wwdt.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/nxp,lpc1850-wwdt.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: NXP LPC18xx Watchdog Timer (WDT) 8 + 9 + maintainers: 10 + - Animesh Agarwal <animeshagarwal28@gmail.com> 11 + 12 + properties: 13 + compatible: 14 + const: nxp,lpc1850-wwdt 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + clocks: 20 + items: 21 + - description: Watchdog counter clock 22 + - description: Register interface clock 23 + 24 + clock-names: 25 + items: 26 + - const: wdtclk 27 + - const: reg 28 + 29 + interrupts: 30 + maxItems: 1 31 + 32 + required: 33 + - compatible 34 + - reg 35 + - clocks 36 + - clock-names 37 + - interrupts 38 + 39 + additionalProperties: false 40 + 41 + examples: 42 + - | 43 + #include <dt-bindings/clock/lpc18xx-cgu.h> 44 + #include <dt-bindings/clock/lpc18xx-ccu.h> 45 + 46 + watchdog@40080000 { 47 + compatible = "nxp,lpc1850-wwdt"; 48 + reg = <0x40080000 0x24>; 49 + clocks = <&cgu BASE_SAFE_CLK>, <&ccu1 CLK_CPU_WWDT>; 50 + clock-names = "wdtclk", "reg"; 51 + interrupts = <49>; 52 + };