forked from Minki/linux
200c0a3e40
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>
17 lines
617 B
Plaintext
17 lines
617 B
Plaintext
* QNAP Power Off
|
|
|
|
QNAP NAS devices have a microcontroller controlling the main power
|
|
supply. This microcontroller is connected to UART1 of the Kirkwood and
|
|
Orion5x SoCs. Sending the character 'A', at 19200 baud, tells the
|
|
microcontroller to turn the power off. This driver adds a handler to
|
|
pm_power_off which is called to turn the power off.
|
|
|
|
Synology NAS devices use a similar scheme, but a different baud rate,
|
|
9600, and a different character, '1'.
|
|
|
|
Required Properties:
|
|
- compatible: Should be "qnap,power-off" or "synology,power-off"
|
|
|
|
- reg: Address and length of the register set for UART1
|
|
- clocks: tclk clock
|