diff options
author | Andrew Lunn <andrew@lunn.ch> | 2014-02-19 15:02:35 -0500 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2014-03-03 22:48:41 -0500 |
commit | 200c0a3e404beab02be83e5cbf111d26b9f6ce22 (patch) | |
tree | 4cfcb9d5f37a1ea3435c8d33ad4271572a8f8b07 /Documentation/devicetree/bindings/power_supply | |
parent | ff1f0018cf66080d8e6f59791e552615648a033a (diff) |
Power: Reset: Generalize qnap-poweroff to work on Synology devices.
The Synology NAS devices use a very similar mechanism to QNAP NAS
devices to power off. Both send a single charactor command to a PIC,
over the second serial port. However the baud rate and the command
differ. Generalize the driver to support this.
Signed-off-by: Ben Peddell <klightspeed@killerwolves.net>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Cc: Anton Vorontsov <anton@enomsg.org>
Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'Documentation/devicetree/bindings/power_supply')
-rw-r--r-- | Documentation/devicetree/bindings/power_supply/qnap-poweroff.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/power_supply/qnap-poweroff.txt b/Documentation/devicetree/bindings/power_supply/qnap-poweroff.txt index 0347d8350d94..af25e77c0e0c 100644 --- a/Documentation/devicetree/bindings/power_supply/qnap-poweroff.txt +++ b/Documentation/devicetree/bindings/power_supply/qnap-poweroff.txt | |||
@@ -6,8 +6,11 @@ Orion5x SoCs. Sending the character 'A', at 19200 baud, tells the | |||
6 | microcontroller to turn the power off. This driver adds a handler to | 6 | microcontroller to turn the power off. This driver adds a handler to |
7 | pm_power_off which is called to turn the power off. | 7 | pm_power_off which is called to turn the power off. |
8 | 8 | ||
9 | Synology NAS devices use a similar scheme, but a different baud rate, | ||
10 | 9600, and a different character, '1'. | ||
11 | |||
9 | Required Properties: | 12 | Required Properties: |
10 | - compatible: Should be "qnap,power-off" | 13 | - compatible: Should be "qnap,power-off" or "synology,power-off" |
11 | 14 | ||
12 | - reg: Address and length of the register set for UART1 | 15 | - reg: Address and length of the register set for UART1 |
13 | - clocks: tclk clock | 16 | - clocks: tclk clock |