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 nuvoton,npcm-wdt to DT schema

Convert the Nuvoton watchdog binding to DT schema format. It's a
straight-forward conversion.

Acked-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20250909142201.3209482-1-robh@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

+60 -30
-30
Documentation/devicetree/bindings/watchdog/nuvoton,npcm-wdt.txt
··· 1 - Nuvoton NPCM Watchdog 2 - 3 - Nuvoton NPCM timer module provides five 24-bit timer counters, and a watchdog. 4 - The watchdog supports a pre-timeout interrupt that fires 10ms before the 5 - expiry. 6 - 7 - Required properties: 8 - - compatible : "nuvoton,npcm750-wdt" for NPCM750 (Poleg), or 9 - "nuvoton,wpcm450-wdt" for WPCM450 (Hermon), or 10 - "nuvoton,npcm845-wdt" for NPCM845 (Arbel). 11 - - reg : Offset and length of the register set for the device. 12 - - interrupts : Contain the timer interrupt with flags for 13 - falling edge. 14 - 15 - Required clocking property, have to be one of: 16 - - clocks : phandle of timer reference clock. 17 - - clock-frequency : The frequency in Hz of the clock that drives the NPCM7xx 18 - timer (usually 25000000). 19 - 20 - Optional properties: 21 - - timeout-sec : Contains the watchdog timeout in seconds 22 - 23 - Example: 24 - 25 - timer@f000801c { 26 - compatible = "nuvoton,npcm750-wdt"; 27 - interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>; 28 - reg = <0xf000801c 0x4>; 29 - clocks = <&clk NPCM7XX_CLK_TIMER>; 30 - };
+60
Documentation/devicetree/bindings/watchdog/nuvoton,npcm750-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/nuvoton,npcm750-wdt.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Nuvoton NPCM Watchdog 8 + 9 + maintainers: 10 + - Joel Stanley <joel@jms.id.au> 11 + 12 + description: 13 + Nuvoton NPCM timer module provides five 24-bit timer counters, and a watchdog. 14 + The watchdog supports a pre-timeout interrupt that fires 10ms before the 15 + expiry. 16 + 17 + allOf: 18 + - $ref: watchdog.yaml# 19 + 20 + properties: 21 + compatible: 22 + oneOf: 23 + - enum: 24 + - nuvoton,npcm750-wdt 25 + - nuvoton,wpcm450-wdt 26 + - items: 27 + - enum: 28 + - nuvoton,npcm845-wdt 29 + - const: nuvoton,npcm750-wdt 30 + 31 + reg: 32 + maxItems: 1 33 + 34 + interrupts: 35 + maxItems: 1 36 + 37 + clocks: 38 + maxItems: 1 39 + 40 + clock-frequency: 41 + description: Frequency in Hz of the clock that drives the NPCM timer. 42 + 43 + required: 44 + - compatible 45 + - reg 46 + - interrupts 47 + 48 + unevaluatedProperties: false 49 + 50 + examples: 51 + - | 52 + #include <dt-bindings/interrupt-controller/arm-gic.h> 53 + #include <dt-bindings/clock/nuvoton,npcm7xx-clock.h> 54 + 55 + watchdog@f000801c { 56 + compatible = "nuvoton,npcm750-wdt"; 57 + interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>; 58 + reg = <0xf000801c 0x4>; 59 + clocks = <&clk NPCM7XX_CLK_TIMER>; 60 + };