Re: [PATCH 3/3] TTY/slave: add driver for w2sg0004 GPS
From: Sebastian Reichel
Date: Thu Dec 11 2014 - 18:04:19 EST
On Fri, Dec 12, 2014 at 08:59:44AM +1100, NeilBrown wrote:
> This uart-attatched GPS device has a toggle which turns
> both on and off. For reliable use we need to know what
> start it is in.
I guess you mean "what state it is in"?
> So it registers with the tty for recv events when the tty
> is open, and optionally configures the RX pin as a GPIO
> interrupt when the tty is closed.
> If it detects data when it should be off, or a lack of data
> when it should be on, it toggles the line.
> A regulator can also be configured to power the antenna.
> In this case an rfkill device is created. When the rfkill
> is 'blocked' or the device is otherwise powered down,
> the regulator is turned off.
> index 000000000000..c9e7838b3198
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/serial/slave-w2sg0004.txt
> @@ -0,0 +1,35 @@
> +w2sg0004 UART-attached GPS receiver
> +Required properties:
> +- compatbile: "tty,w2sg0004"
$ grep -c tty Documentation/devicetree/bindings/vendor-prefixes.txt
This should be something like "wi2wi,w2sg0004"
Description: Digital signature