serial: etraxfs-uart: use mctrl_gpio helpers for handling modem signals
authorNiklas Cassel <nks@flawful.org>
Sat, 25 Jul 2015 00:02:46 +0000 (02:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2015 05:07:20 +0000 (22:07 -0700)
In order to use the mctrl_gpio helpers, we change the DT bindings:
ri-gpios renamed to rng-gpios. cd-gpios renamed to dcd-gpios.
However, no in-tree dts/dtsi specifies these, so no worries.

Signed-off-by: Niklas Cassel <nks@flawful.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/devicetree/bindings/serial/axis,etraxfs-uart.txt
drivers/tty/serial/Kconfig
drivers/tty/serial/etraxfs-uart.c

index ebcbb62..51b3c9e 100644 (file)
@@ -6,7 +6,7 @@ Required properties:
 - interrupts: device interrupt
 
 Optional properties:
-- {dtr,dsr,ri,cd}-gpios: specify a GPIO for DTR/DSR/RI/CD
+- {dtr,dsr,rng,dcd}-gpios: specify a GPIO for DTR/DSR/RI/DCD
   line respectively.
 
 Example:
@@ -16,4 +16,8 @@ serial@b00260000 {
        reg = <0xb0026000 0x1000>;
        interrupts = <68>;
        status = "disabled";
+       dtr-gpios = <&sysgpio 0 GPIO_ACTIVE_LOW>;
+       dsr-gpios = <&sysgpio 1 GPIO_ACTIVE_LOW>;
+       rng-gpios = <&sysgpio 2 GPIO_ACTIVE_LOW>;
+       dcd-gpios = <&sysgpio 3 GPIO_ACTIVE_LOW>;
 };
Simple merge
Simple merge