Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp814818rdb; Sun, 28 Jan 2024 10:07:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IH0b5bn5a1tZR0IYu17pDT/UO/QttHdWWLCUyMEx95Fa7Rg3U+9+hESBx2KydnDkpuB3IjH X-Received: by 2002:a05:620a:158c:b0:77f:ac99:38d9 with SMTP id d12-20020a05620a158c00b0077fac9938d9mr3429588qkk.70.1706465229512; Sun, 28 Jan 2024 10:07:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706465229; cv=pass; d=google.com; s=arc-20160816; b=LRTSFLXIsPGcGsB8p6N8T+8Uqf4xPIFNNXdJoV0ecIKiiI5Xmc0+s5YXGkBFmM9vHN ECq6TAp9o2D21EoyizLJvUdgDUJdl49mGto63AmXQR9dzhOsVr8K2cJVGcF5iWwrdNy8 qeBgqr6Oa57sA3I+w93X5/xM44o3r7SZJQQ2EbpEVAShhzSh5sNKbUN2feiw4WSZgFkE zk6cBHRk1TcnLBINLFpf1rjgEf4iJUfFB8HGOPp2vjGv/tHZo/Gy17U6t4M22xhm+t43 5NG5FfU3/X9wXYabQkDJhgwgBuNpaEAnBYaxRIIL66A2HKK9K2nuYjKg+L9jdHx/vPeb p3Eg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=uy766eRmu4f/14ST1SkrTm7XvdpFq6LpMkMB0sq2fWw=; fh=165u2Agqp/AAVqlRCOgrHxie17u9AcXwyBphqfZZF4Q=; b=PFjgajBafen73y85hohBITJBUqFk33Zi3CKs7WSlOgwWLPv6X62KcEA4yx9HAihpQm 3coz7732iy6Byq6FCb8KzubLOZDVlTrPaaXfamu0oY6xdgVSzSTCddodFUy0iI5tlC88 Gs7kiIdRSXVhNKVMa7v6TefxGqR+F68IA/mdos5X3rPhR+MKkcYxHBQboVZASdS0+hsU 3cvjvj54gG1JK7koeH2pCRfQy+o4jtbWM8Bim/uWbMUqiEytFxpmWVya+UtWJ3LxZkBc KR1g/XvPz22Dvd9pE3OkuujqWw+C/TMCnJEga9CFdS6Pnzuz8SqTbU0rw87zA6V6eY0b Rmew== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=HjfMgtol; arc=pass (i=1 spf=pass spfdomain=kemnade.info dkim=pass dkdomain=kemnade.info); spf=pass (google.com: domain of linux-bluetooth+bounces-1419-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1419-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id s11-20020a05620a080b00b00783f27f725asi2535470qks.568.2024.01.28.10.07.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 10:07:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1419-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=fail header.i=@kemnade.info header.s=20220719 header.b=HjfMgtol; arc=pass (i=1 spf=pass spfdomain=kemnade.info dkim=pass dkdomain=kemnade.info); spf=pass (google.com: domain of linux-bluetooth+bounces-1419-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1419-linux.lists.archive=gmail.com@vger.kernel.org" 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 488BB1C20E67 for ; Sun, 28 Jan 2024 18:07:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 891B03C060; Sun, 28 Jan 2024 18:06:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kemnade.info header.i=@kemnade.info header.b="HjfMgtol" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail.andi.de1.cc (mail.andi.de1.cc [178.238.236.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7086833CF1; Sun, 28 Jan 2024 18:06:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.238.236.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706465188; cv=none; b=EfvRqi1Hu7pu075WPjafocbkE5Rs2Uz7mOcRYKwWHJbviRZDul5+9C5UTsAxTh7XDGllegECgJ+x0XYpRR5ZdbkK1WvvUUE3b5nQyI6B1BUkHQCkjondQGGEdyzBYf0n3HypjLqHrIH1vWUaKhJQxqKwar8r3of/b5IwK4QkPSg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706465188; c=relaxed/simple; bh=xeJpHy5p3TX6HUTpy0hNf1X9TiuUySjV1G3KdJuEz+Y=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=mvyMgxCqy8P9QQRtFYR06IBR0bynJSZBU22UwugTa66zw1S762n3bEiS9V3CQzT5D2Io7viClC8LbvrPkhYRURRc5oQq3dgTMEspDBccFBYNrD8CDkaSpJzKNrDLcnqwA5jalEPy9HrfVcxDdEM45+KPSSkDKvj7zk2XLLjt1qk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kemnade.info; spf=pass smtp.mailfrom=kemnade.info; dkim=pass (2048-bit key) header.d=kemnade.info header.i=@kemnade.info header.b=HjfMgtol; arc=none smtp.client-ip=178.238.236.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kemnade.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kemnade.info DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=uy766eRmu4f/14ST1SkrTm7XvdpFq6LpMkMB0sq2fWw=; b=HjfMgtolvJlys2ez29qkSflDmd ccHmjqp2JJgP++WDwMdNUxiEh74O3ZxEdBXCSB2lK9XqVOHfJZypmVaeJbzvy3vHgGa5d6glhUIcq +rSPqwoTKiWZblDBd5b/GIn89zSGl0RSWYxJe3S7eR4RmSErUio3sPYUOTx5mkfyrdBxix5OucT4I AL54Qd3E3G0az2w09lbmLvNaspm55hltm5h76WHQSw05fhLPD5cFpNp67uh704JG4z8em3du9ByXM 95jFh4QNEuGvO9ABfeb2sXZ6WVLso9M4vayXL3BW8/S3eYTqc4taROSrUjQxFvHxMcjS1B5FdrVhC 1NXTPAnA==; Received: from p200300c2070939001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:c2:709:3900:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rU92b-008qDa-Us; Sun, 28 Jan 2024 18:33:57 +0100 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1rU92b-00BO9h-0t; Sun, 28 Jan 2024 18:33:57 +0100 From: Andreas Kemnade To: marcel@holtmann.org, johan.hedberg@gmail.com, luiz.dentz@gmail.com, johan@kernel.org, jirislaby@kernel.org, andreas@kemnade.info, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, Adam Ford , Tony Lindgren , tomi.valkeinen@ideasonboard.com, =?UTF-8?q?P=C3=A9ter=20Ujfalusi?= , robh@kernel.org, hns@goldelico.com Subject: [RFC PATCH v2 1/3] gnss: Add AI2 protocol used by some TI combo chips. Date: Sun, 28 Jan 2024 18:33:50 +0100 Message-Id: <20240128173352.2714442-2-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240128173352.2714442-1-andreas@kemnade.info> References: <20240128173352.2714442-1-andreas@kemnade.info> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Texas Instruments uses something called Air Independent Interface (AI2) for their WLAN/BT/GPS combo chips. No public documentation is available, but allow that protocol to be specified. Signed-off-by: Andreas Kemnade --- drivers/gnss/core.c | 1 + include/linux/gnss.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gnss/core.c b/drivers/gnss/core.c index 48f2ee0f78c4d..cac9f45aec4b2 100644 --- a/drivers/gnss/core.c +++ b/drivers/gnss/core.c @@ -335,6 +335,7 @@ static const char * const gnss_type_names[GNSS_TYPE_COUNT] = { [GNSS_TYPE_SIRF] = "SiRF", [GNSS_TYPE_UBX] = "UBX", [GNSS_TYPE_MTK] = "MTK", + [GNSS_TYPE_AI2] = "AI2", }; static const char *gnss_type_name(const struct gnss_device *gdev) diff --git a/include/linux/gnss.h b/include/linux/gnss.h index 36968a0f33e8d..16b565dab83ea 100644 --- a/include/linux/gnss.h +++ b/include/linux/gnss.h @@ -23,6 +23,7 @@ enum gnss_type { GNSS_TYPE_SIRF, GNSS_TYPE_UBX, GNSS_TYPE_MTK, + GNSS_TYPE_AI2, GNSS_TYPE_COUNT }; -- 2.39.2