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

dt-bindings: watchdog: Convert i.MX7ULP to json-schema

Convert the i.MX7ULP watchdog binding to DT schema format using json-schema.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Anson Huang and committed by
Rob Herring
8d99f03c 81e41fec

+60 -22
-22
Documentation/devicetree/bindings/watchdog/fsl-imx7ulp-wdt.txt
··· 1 - * Freescale i.MX7ULP Watchdog Timer (WDT) Controller 2 - 3 - Required properties: 4 - - compatible : Should be "fsl,imx7ulp-wdt" 5 - - reg : Should contain WDT registers location and length 6 - - interrupts : Should contain WDT interrupt 7 - - clocks: Should contain a phandle pointing to the gated peripheral clock. 8 - 9 - Optional properties: 10 - - timeout-sec : Contains the watchdog timeout in seconds 11 - 12 - Examples: 13 - 14 - wdog1: watchdog@403d0000 { 15 - compatible = "fsl,imx7ulp-wdt"; 16 - reg = <0x403d0000 0x10000>; 17 - interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>; 18 - clocks = <&pcc2 IMX7ULP_CLK_WDG1>; 19 - assigned-clocks = <&pcc2 IMX7ULP_CLK_WDG1>; 20 - assigned-clocks-parents = <&scg1 IMX7ULP_CLK_FIRC_BUS_CLK>; 21 - timeout-sec = <40>; 22 - };
+60
Documentation/devicetree/bindings/watchdog/fsl-imx7ulp-wdt.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/watchdog/fsl-imx7ulp-wdt.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Freescale i.MX7ULP Watchdog Timer (WDT) Controller 8 + 9 + maintainers: 10 + - Anson Huang <Anson.Huang@nxp.com> 11 + 12 + allOf: 13 + - $ref: "watchdog.yaml#" 14 + 15 + properties: 16 + compatible: 17 + enum: 18 + - fsl,imx7ulp-wdt 19 + 20 + reg: 21 + maxItems: 1 22 + 23 + interrupts: 24 + maxItems: 1 25 + 26 + clocks: 27 + maxItems: 1 28 + 29 + assigned-clocks: 30 + maxItems: 1 31 + 32 + assigned-clocks-parents: 33 + maxItems: 1 34 + 35 + timeout-sec: true 36 + 37 + required: 38 + - compatible 39 + - interrupts 40 + - reg 41 + - clocks 42 + 43 + additionalProperties: false 44 + 45 + examples: 46 + - | 47 + #include <dt-bindings/interrupt-controller/arm-gic.h> 48 + #include <dt-bindings/clock/imx7ulp-clock.h> 49 + 50 + watchdog@403d0000 { 51 + compatible = "fsl,imx7ulp-wdt"; 52 + reg = <0x403d0000 0x10000>; 53 + interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>; 54 + clocks = <&pcc2 IMX7ULP_CLK_WDG1>; 55 + assigned-clocks = <&pcc2 IMX7ULP_CLK_WDG1>; 56 + assigned-clocks-parents = <&scg1 IMX7ULP_CLK_FIRC_BUS_CLK>; 57 + timeout-sec = <40>; 58 + }; 59 + 60 + ...