mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 06:12:08 +00:00
9d6b4efc16
Add support for the clock. Currently we enable at probe and relinquish at remove. Reviewed-by: Guenter Roeck <linux@roeck-us.net> Acked-by: Sören Brinkmann <soren.brinkmann@xilinx.com> Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
27 lines
849 B
Plaintext
27 lines
849 B
Plaintext
Xilinx AXI/PLB soft-core watchdog Device Tree Bindings
|
|
---------------------------------------------------------
|
|
|
|
Required properties:
|
|
- compatible : Should be "xlnx,xps-timebase-wdt-1.00.a" or
|
|
"xlnx,xps-timebase-wdt-1.01.a".
|
|
- reg : Physical base address and size
|
|
|
|
Optional properties:
|
|
- clocks : Input clock specifier. Refer to common clock
|
|
bindings.
|
|
- clock-frequency : Frequency of clock in Hz
|
|
- xlnx,wdt-enable-once : 0 - Watchdog can be restarted
|
|
1 - Watchdog can be enabled just once
|
|
- xlnx,wdt-interval : Watchdog timeout interval in 2^<val> clock cycles,
|
|
<val> is integer from 8 to 31.
|
|
|
|
Example:
|
|
axi-timebase-wdt@40100000 {
|
|
clock-frequency = <50000000>;
|
|
compatible = "xlnx,xps-timebase-wdt-1.00.a";
|
|
clocks = <&clkc 15>;
|
|
reg = <0x40100000 0x10000>;
|
|
xlnx,wdt-enable-once = <0x0>;
|
|
xlnx,wdt-interval = <0x1b>;
|
|
} ;
|