Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3070663rdh; Mon, 27 Nov 2023 06:03:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IG1esNBFL7CRYBiEp0g6AY7nIxhpPYYCX9EwZY1MbHQB5RRt2aJ0/9r8PMOJyl4uOo/AyAq X-Received: by 2002:ac2:5299:0:b0:507:b14f:e3bc with SMTP id q25-20020ac25299000000b00507b14fe3bcmr3995502lfm.33.1701093825286; Mon, 27 Nov 2023 06:03:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701093825; cv=none; d=google.com; s=arc-20160816; b=ZOiPc5/dt6NKq5QrFcAEE/3LSUmYsahuOE+qyQSqZb0nimdl6sczYTydx1mt8AgJOT qBBSymA0lrd2TtVGYWC/t/gxu2rKDohSQQzKBlTNiy688UOxbrnZaO339NAf9Tndg4GN ulWeLh8S8PsixRj4BFhxIP35COcH0h9kKZeV+8Ig/mSSOAznmbGLqk4KE6Edn6E5HT9c gyY/Y+WJI0ZuDRiRdflxViTNogAF0myp/qDGr66b0F4NO5eYqTlaCFSzSGQ25pmE+6DC iTQ3rRniqEDDHDJcouHARFMnUqWMvJEb+7HGfmG3k8xBTkPKLg10V4isV9hYKFOC3/5u g7hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=3Qq3XHggC/a3WTFnzVjobSSMgh8HRRAAcE/fjAZ01t0=; fh=1ltcttQI5CJo2XFy209GRpMGqzDsgi0qq38M32QjgiA=; b=mor/Es8+G72Kg8oBLLhndjTYtJlf5CWYA73aaN95OnPVubB5I2ISFZhuihQd8/nDaj obI9Bmi8FXeRpOwedf91n11pDPo0Hquk57VQTSDxzmqe7f26ZN88CVnzL9lGuXSvqgcV 8n+uRTkrLuuH0iZwRNBIQdFUJo0roubuYWKvl2YrsgYmPkxtxNoRQiSDt6zZKkHYvXgT VDNECZ8/8Dk9E2E2t4V1RiPOflFDYAW0Cxw8iAg9drnYUKjBmMA+VK+YarQxYjevFqtL VHy0wNdYQMg86rduse5u/gYgL7qXyB3ATqQmNxiziuSM3h1uvdWsdAfMOeT2Rw18vu9v tB0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VC9i7dZP; spf=pass (google.com: domain of linux-bluetooth+bounces-236-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-236-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b9-20020a0565120b8900b005094aaef2b9si3527699lfv.77.2023.11.27.06.03.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 06:03:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-236-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VC9i7dZP; spf=pass (google.com: domain of linux-bluetooth+bounces-236-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-236-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 365801C20C32 for ; Mon, 27 Nov 2023 14:03:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9087030F8A; Mon, 27 Nov 2023 14:03:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VC9i7dZP" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10ABD1BFE; Mon, 27 Nov 2023 06:03:38 -0800 (PST) Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-5ccf64439bdso32090647b3.0; Mon, 27 Nov 2023 06:03:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701093817; x=1701698617; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=3Qq3XHggC/a3WTFnzVjobSSMgh8HRRAAcE/fjAZ01t0=; b=VC9i7dZPTSiHwvJspz+/BGZ3jsokO+JZGbkfSy8N8d1dpxrgH8xfFKRFg6+SgQEjaU jeYH976ym7kOc8DVL9WS4SCvjtwojJZIZJLeVxeLesfPniQZqGjO5USM9paGE4SEWXef xH8i1EEwKejio1+i02w+lG2uxgQbFbfKOaMfA3BIdJ/DXdBbvYuwbaqpqT4n/034h1Cl utxI1sdreJKzwmuZQOtipOMc0ROGRszHFYwAHwr6Vb69wDehg3pdxdVq2dXt1sLBlW0e AT/yS9EjPtUxq0rPT7yfVg6mgyEme2lD4hunGD7hWCLrxWZSRXi7UyHfi/4zW8ajrKwe waDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701093817; x=1701698617; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3Qq3XHggC/a3WTFnzVjobSSMgh8HRRAAcE/fjAZ01t0=; b=NKPYo/fi1jN8AZjykX0NvVTSv+BcVIwxUu/uW1AngEOhrn1j+hE+uYeOf97nnftVTV qPdrBs4nsXBnkTgQTQmOsX+racdJbNe9v4gu5RFScUAgwi8R5JKF502S6xJFh6ZhIJGP ztOznWuucLMLV73U6HhDFtbghO7JTM56kdCEA9gULkt4eaX+b2oEgFrJ9hzAZ+BUHogE 12TIXriJ4wOVVG8mWxJCQaAL+9bZJIitj3fLknn4Rjzdqj+iwcrXC4Zi4z+INIOvQ3DB rphv/gVAGQwU7Cb+n0BMZATEEVSIx3gysebWYvAQxtTYEdIVC/mr+/BuFfyXKNqwcfap mJQw== X-Gm-Message-State: AOJu0YwU9vI1v6e4CG/gRbkOdyuzUGq2FHpoR20ziysxlXdjSt4iEOVx vTtP6GzYt/0J6OAzYX9JMQ6rP/RqqttYD7pr91Y= X-Received: by 2002:a81:84d1:0:b0:5cc:61d9:21dd with SMTP id u200-20020a8184d1000000b005cc61d921ddmr10862420ywf.12.1701093816856; Mon, 27 Nov 2023 06:03:36 -0800 (PST) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231126191840.110564-1-andreas@kemnade.info> In-Reply-To: <20231126191840.110564-1-andreas@kemnade.info> From: Adam Ford Date: Mon, 27 Nov 2023 08:03:24 -0600 Message-ID: Subject: Re: [RFC PATCH 0/3] bluetooth/gnss: GNSS support for TiWi chips To: Andreas Kemnade Cc: marcel@holtmann.org, johan.hedberg@gmail.com, luiz.dentz@gmail.com, johan@kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, tomi.valkeinen@ideasonboard.com, Tony Lindgren , =?UTF-8?Q?P=C3=A9ter_Ujfalusi?= , robh@kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Nov 26, 2023 at 1:47=E2=80=AFPM Andreas Kemnade wrote: > > Some of these chips have GNSS support. In some vendor kernels > a driver on top of misc/ti-st can be found providing a /dev/tigps > device which speaks the secretive Air Independent Interface (AI2) protoco= l. > Implement something comparable as a GNSS interface. > > With some userspace tools a proof-of-concept can be shown. A position > can be successfully read out. Basic properties of the protocol are > understood. > > This was tested on the Epson Moverio BT-200. Can you tell me which WiLink chip this uses? I'd like to try it on the WL1283, but I want to understand which WiLink chips you're targeting. adam > > This is sent out as an early RFC to ensure I am going onto the right > track: > > So the main questions I see: > - is the approach right to abandon drivers/misc/ti-st? > > - Output at /dev/gnssX: > AI2 vs. NMEA > The chip can be configured into sending AI2-encapsulated NMEA, > or proving data in a binary format. > Some research has to be done yet for the details. > A pile of logs is waiting for further analysis... > > Arguments for/against NMEA: > + Userspace is prepared to handle it > + Power management can be easily done by the kernel > - Less functionality can be used. > > Arguments for/against AI2: > + Full functionality can be accessed from userspace (incl. A-GPS, > maybe raw satellite data) > - Userspace has to behave to have proper power management > - No freely (not even as in beer) tool available to fully use AI2, > so there will be only a real advantage after long "French Cafe" > sessions. > > More detailed tings: > - Some live cycle management is left out. Since it depends > on the decisions above, I have not put much thought into it. > - Should some pieces go into drivers/gnss? > - detection for GNSS availability: For now the node name is > used. But the device should be there if the chip supports it > and things are wired up properly. > > Andreas Kemnade (3): > gnss: Add AI2 protocol used by some TI combo chips. > bluetooth: ti-st: add GNSS support for TI Wilink chips > drivers: misc: ti-st: begin to deorbit > > drivers/bluetooth/hci_ll.c | 154 ++++++++++++++++++++++++++++++++++++- > drivers/gnss/core.c | 1 + > drivers/misc/ti-st/Kconfig | 2 +- > include/linux/gnss.h | 1 + > 4 files changed, 156 insertions(+), 2 deletions(-) > > -- > 2.39.2 > >