]> git.baikalelectronics.ru Git - kernel.git/commit
tty: ar933x_uart: add device tree support and binding documentation
authorGabor Juhos <juhosg@openwrt.org>
Thu, 29 Aug 2013 06:44:01 +0000 (08:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Aug 2013 21:11:27 +0000 (14:11 -0700)
commit4f70188fccb415dd62c0aa1239814a11f2c02fcc
tree4f149a3230c42b8bb2bdf462b69589a9448cf1c6
parentda01d7566b862258e9ab0a4b04d5ae69c445e438
tty: ar933x_uart: add device tree support and binding documentation

Modify the probe routine to get the port line number
from device tree if the 'of_node' is populated in the
platform device. The driver can be built as module,
thus add an OF specific module device table as well
to support module auto loading.

This makes it possible to use the driver for AR9330
UART devices specified in device tree.

Cc: devicetree@vger.kernel.org
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/devicetree/bindings/tty/serial/qca,ar9330-uart.txt [new file with mode: 0644]
drivers/tty/serial/ar933x_uart.c