From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68296C43332 for ; Thu, 7 Jan 2021 09:04:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2C93E23142 for ; Thu, 7 Jan 2021 09:04:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726924AbhAGJEb (ORCPT ); Thu, 7 Jan 2021 04:04:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:41630 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726890AbhAGJEa (ORCPT ); Thu, 7 Jan 2021 04:04:30 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id B3B5923120; Thu, 7 Jan 2021 09:03:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610010229; bh=7mRF/UpDXKObT3hyG6tl9Nq2g6HneEvAVqS1pFJMSNo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AfubH2QbRxm97gWiea7OI8eCNrJQXqnKPZuvX2Hk/3jvmv0QXbGtB0pNjb7NPeP71 ivkbvCv7LOzWN6XM/9XhBiG1t3n74kiQPAywb9/FB8KM4dhn2F6nGAci4/9ttDf/qd sBkNQOjHQ2NSBRLmpwqjNs9zFeznyLLFfg5XQRwmcbow3V09yr800douq+8imqaLYv deuMXn53s9lTTPzOxD4m2oc1T2OMWEPKamXlozYwGga5HOJJxr+G0gmH3SgwhbjxXR M1ni6fgVjYLSU8bp4a0/wZFwGz0ZrimGSWwrigVFWZByFQW2JJhFP6PJaIKNI/owwS bu2n0dwRtJFUw== Received: from johan by xi.lan with local (Exim 4.93.0.4) (envelope-from ) id 1kxRCv-0003sb-Ul; Thu, 07 Jan 2021 10:03:50 +0100 Date: Thu, 7 Jan 2021 10:03:49 +0100 From: Johan Hovold To: Tim Harvey Cc: Johan Hovold , linux-spi@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: Linux gnss driver SPI support? Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org On Wed, Jan 06, 2021 at 12:17:01PM -0800, Tim Harvey wrote: > On Wed, Jan 6, 2021 at 3:21 AM Johan Hovold wrote: > > Correct, there are currently no drivers supporting SPI and hence no > > shared implementation either like there is for UART interfaces. > > > > The driver for your device would need to handle the SPI bits itself for > > now. What kind of device is it? > It is the u-blox ZOE-M8Q which has a UART as well as SPI/I2C/SQI > interface. The particular board design we are working on is > unfortunately out of UART's which is why we were looking at connecting > it via SPI. So we'd need to add support for the SPI interface to the ublox driver, which is currently UART only. > I did come across a posting about this [1] which uses a userspace app > that creates a spy to pty bridge but it seems like they ran into some > performance/latency issues. Yeah, that is one of the problems that the gnss subsystem is meant to solve; to handle the transport interface in the kernel and provide a generic interface to user space. Johan