Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2578605rdh; Sun, 26 Nov 2023 11:19:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IECTSsNVNLNkKsHw9MW1dT4pxJX7XRWOQHDfInf84KDZ5QTrljH4jUTBCJwPXVQsm1QrDTI X-Received: by 2002:a05:6a20:6a0e:b0:18b:8158:b115 with SMTP id p14-20020a056a206a0e00b0018b8158b115mr10477310pzk.56.1701026359354; Sun, 26 Nov 2023 11:19:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701026359; cv=none; d=google.com; s=arc-20160816; b=P5FjdNz3qSzs1gPUH4kplg/+em+r/S5wEv0XNPAPfTYh1iKHYEdabdCTfCGdsqfcCk 6QGhmagFhLYfyu74CvFM7Rd8P0uShV77GCFJpG1T27ja+k2513Q1K3ROynCllA6z1Hol 5W4Y4Ity/6VZfiDOcRX5Pqxu5SKkBp+KNf5ARMHZB2lKas87fnR9hJzPSl0BTiSBeJdi Ub2J/sXyVeDOo7duuWP+MYV19ZwUKbGCnc1sGU9gumuyOzbozqVBXxihTbKG7AvPh67+ QPZlFC+Y+vHqLL6kFR66CIKaCtJXuqykFJqz9pQ9X91N8dEdwpbudVCt1KGF5AG7bw9l IEFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=9lL1jaqptesPyMzwn0qxQg6ZfG8Lnf8cRGymKFQXYjU=; fh=LG9dKayB47Aw5OhgE4A33oFKes3+TtS9nbezIo8wrtw=; b=wGguFVNGfXmR5Ss1OVcf6/8fy49pNc3a1o6KHcmGZykTi4EvXkkUZzUQBf84M6nsXA Y0A4SOLgzv8cKb9ATxhrlY0L4Zsi9u9hQUiwePYLPaEMEpRtQ/0zqA3YBA8KaD/X86ir svJh8qw6Den8FC9NASYG0YuXZ1wcmaDzX+uhX0DgE4aRnH/69kZuA24wFKpLuUY0VSAa 7NjWchKDV7y4w8m0GXYIv3JygPQcA9dMcr8InhVjG0XbOyU/i2PvXjxy2aPwZdX6hsew FzIeDXxtDbRDmucFE5ZzeFkmC4Dza0w/QuaWVBPP6uatj8dy3D4pjFcHpzpAebDzPv5C Fgww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id ha21-20020a17090af3d500b0028587c642f6si6386500pjb.154.2023.11.26.11.19.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 11:19:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 19E8D80859B5; Sun, 26 Nov 2023 11:19:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229472AbjKZTSu (ORCPT + 99 others); Sun, 26 Nov 2023 14:18:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjKZTSs (ORCPT ); Sun, 26 Nov 2023 14:18:48 -0500 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a02:c205:3004:2154::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33B1BFA for ; Sun, 26 Nov 2023 11:18:53 -0800 (PST) Received: from p200301077700a9001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:107:7700:a900: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 1r7KeS-006khP-Q1; Sun, 26 Nov 2023 20:18:44 +0100 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1r7KeS-000Slf-0U; Sun, 26 Nov 2023 20:18:44 +0100 From: Andreas Kemnade To: marcel@holtmann.org, johan.hedberg@gmail.com, luiz.dentz@gmail.com, johan@kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org, andreas@kemnade.info, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, tomi.valkeinen@ideasonboard.com, Tony Lindgren , =?UTF-8?q?P=C3=A9ter=20Ujfalusi?= , robh@kernel.org Subject: [RFC PATCH 1/3] gnss: Add AI2 protocol used by some TI combo chips. Date: Sun, 26 Nov 2023 20:18:38 +0100 Message-Id: <20231126191840.110564-2-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231126191840.110564-1-andreas@kemnade.info> References: <20231126191840.110564-1-andreas@kemnade.info> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sun, 26 Nov 2023 11:19:15 -0800 (PST) Texas Instruments uses something called Air Independent Interface (AI2) for their WLAN/BT/GPS combo chips. No public documentation is available, by looking into captured data, it becomes clear that you can either raw data or encapsulated NMEA after some initialization commands. 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