Commit 0416f00c authored by Animesh Agarwal's avatar Animesh Agarwal Committed by Rob Herring (Arm)
Browse files

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: default avatarAnimesh Agarwal <animeshagarwal28@gmail.com>
Reviewed-by: default avatarConor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240814061210.56213-1-animeshagarwal28@gmail.com


Signed-off-by: default avatarRob Herring (Arm) <robh@kernel.org>
parent 90e09575
Loading
Loading
Loading
Loading
+0 −19
Original line number Diff line number Diff line
* NXP LPC18xx Watchdog Timer (WDT)

Required properties:
- compatible: Should be "nxp,lpc1850-wwdt"
- reg: Should contain WDT registers location and length
- clocks: Must contain an entry for each entry in clock-names.
- clock-names: Should contain "wdtclk" and "reg"; the watchdog counter
               clock and register interface clock respectively.
- interrupts: Should contain WDT interrupt

Examples:

watchdog@40080000 {
	compatible = "nxp,lpc1850-wwdt";
	reg = <0x40080000 0x24>;
	clocks = <&cgu BASE_SAFE_CLK>, <&ccu1 CLK_CPU_WWDT>;
	clock-names = "wdtclk", "reg";
	interrupts = <49>;
};
+52 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/watchdog/nxp,lpc1850-wwdt.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: NXP LPC18xx Watchdog Timer (WDT)

maintainers:
  - Animesh Agarwal <animeshagarwal28@gmail.com>

properties:
  compatible:
    const: nxp,lpc1850-wwdt

  reg:
    maxItems: 1

  clocks:
    items:
      - description: Watchdog counter clock
      - description: Register interface clock

  clock-names:
    items:
      - const: wdtclk
      - const: reg

  interrupts:
    maxItems: 1

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

additionalProperties: false

examples:
  - |
    #include <dt-bindings/clock/lpc18xx-cgu.h>
    #include <dt-bindings/clock/lpc18xx-ccu.h>

    watchdog@40080000 {
        compatible = "nxp,lpc1850-wwdt";
        reg = <0x40080000 0x24>;
        clocks = <&cgu BASE_SAFE_CLK>, <&ccu1 CLK_CPU_WWDT>;
        clock-names = "wdtclk", "reg";
        interrupts = <49>;
    };