From a9e6197f8357f3b8e1e175a571339147783dddec Mon Sep 17 00:00:00 2001 From: Shreshtha SAHU Date: Mon, 23 Oct 2017 18:15:24 +0530 Subject: dt-bindings: rename tegra-t21x wdt doc Rename tegra-21x wdt doc "tegra-wdt.txt" to "nvidia,tegra-wdt-t21x.txt" to match the convention of this directory Bug 200344390 Change-Id: I28eaa4d130f61a81bc64679222ec80246f4cba35 Signed-off-by: Shreshtha SAHU --- .../bindings/watchdog/nvidia,tegra-wdt-t21x.txt | 47 ++++++++++++++++++++++ .../devicetree/bindings/watchdog/tegra-wdt.txt | 47 ---------------------- 2 files changed, 47 insertions(+), 47 deletions(-) create mode 100644 Documentation/devicetree/bindings/watchdog/nvidia,tegra-wdt-t21x.txt delete mode 100644 Documentation/devicetree/bindings/watchdog/tegra-wdt.txt diff --git a/Documentation/devicetree/bindings/watchdog/nvidia,tegra-wdt-t21x.txt b/Documentation/devicetree/bindings/watchdog/nvidia,tegra-wdt-t21x.txt new file mode 100644 index 000000000..febb950bc --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/nvidia,tegra-wdt-t21x.txt @@ -0,0 +1,47 @@ +* NVIDIA Tegra Watchdog controller + +Required properties: + +- compatible: Should be "nvidia,tegra-wdt" +- reg: Should contain WDT and corresponding timer source + registers location and length. + +Optional properties: + +- interrupts: interrupt number to the cpu +- nvidia,expiry-count: total expiry count of WDT (1 if not specified) +- nvidia,enable-on-init: Toggle switch for enable during init +- nvidia,heartbeat-init: default timeout in secs (120 secs if not specified) +- nvidia,timer-index: timer source index for WDT + +Timer source index: + + There are three ways by which WDT timer source index can be specified +and timer source selection happens with below given priorty order (decending) +(a) Bootloader programs WDT and timer source +(b) "nvidia,timer-index" property in DT +(c) Timer source base address in DT (old method) + +Method (a) is of highest priority, because bootloader can program the WDT timer +source and lock to prevent any further modification of timer source by kernel. +In order to calculate the timer source address in runtime in this case timer +base address is required and hence Timer base address should be provided in +timer resource property in DT. + +Either timer base address or timer source address is expected in timer resource +property in DT for case (b). + +Note: If method (c) is used it should correspond to the timer source index provided +in method (a) or (b) or make sure that method (a) or (b) is not in use. + +Examples: + +watchdog@60005100 { + compatible = "nvidia,tegra-wdt"; + reg = <0x0 0x60005100 0x0 0x20 /* WDT0 registers */ + 0x0 0x60005088 0x0 0x8>; /* TMR0 registers */ + interrupts = <0 123 0x04>; + nvidia,expiry-count = <4>; + nvidia,timer-index = <7>; + status = "disabled"; +}; diff --git a/Documentation/devicetree/bindings/watchdog/tegra-wdt.txt b/Documentation/devicetree/bindings/watchdog/tegra-wdt.txt deleted file mode 100644 index febb950bc..000000000 --- a/Documentation/devicetree/bindings/watchdog/tegra-wdt.txt +++ /dev/null @@ -1,47 +0,0 @@ -* NVIDIA Tegra Watchdog controller - -Required properties: - -- compatible: Should be "nvidia,tegra-wdt" -- reg: Should contain WDT and corresponding timer source - registers location and length. - -Optional properties: - -- interrupts: interrupt number to the cpu -- nvidia,expiry-count: total expiry count of WDT (1 if not specified) -- nvidia,enable-on-init: Toggle switch for enable during init -- nvidia,heartbeat-init: default timeout in secs (120 secs if not specified) -- nvidia,timer-index: timer source index for WDT - -Timer source index: - - There are three ways by which WDT timer source index can be specified -and timer source selection happens with below given priorty order (decending) -(a) Bootloader programs WDT and timer source -(b) "nvidia,timer-index" property in DT -(c) Timer source base address in DT (old method) - -Method (a) is of highest priority, because bootloader can program the WDT timer -source and lock to prevent any further modification of timer source by kernel. -In order to calculate the timer source address in runtime in this case timer -base address is required and hence Timer base address should be provided in -timer resource property in DT. - -Either timer base address or timer source address is expected in timer resource -property in DT for case (b). - -Note: If method (c) is used it should correspond to the timer source index provided -in method (a) or (b) or make sure that method (a) or (b) is not in use. - -Examples: - -watchdog@60005100 { - compatible = "nvidia,tegra-wdt"; - reg = <0x0 0x60005100 0x0 0x20 /* WDT0 registers */ - 0x0 0x60005088 0x0 0x8>; /* TMR0 registers */ - interrupts = <0 123 0x04>; - nvidia,expiry-count = <4>; - nvidia,timer-index = <7>; - status = "disabled"; -}; -- cgit v1.2.2