> > Am I missing some w2sg004 specific bits here ?
>
> There is particular behaviour that the device is both turned on and turned
> off by toggling a GPIO, and the only way to detect which state it is in is
> to watch the RX uart line (by reconfiguring it as a GPIO).
Ok so it is somewhat differen
On Fri, 12 Dec 2014 08:59:44 +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.
>
> So it registers with the tty for recv events when the tty
> is open, and optionally configures the RX pi
On Thu, 11 Dec 2014 23:11:00 + One Thousand Gnomes
wrote:
> > +w2sg0004 UART-attached GPS receiver
> > +
>
> I'm wondering why it's tied to the w2sg0004
>
>
> > +struct w2sg_data {
> > + int gpio;
> > + int irq;/* irq line from RX pin when pinctrl
> > +
> +w2sg0004 UART-attached GPS receiver
> +
I'm wondering why it's tied to the w2sg0004
> +struct w2sg_data {
> + int gpio;
> + int irq;/* irq line from RX pin when pinctrl
> + * set to 'idle' */
> + struct regulator *reg;
> +
>
Hi,
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
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.
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 wh