Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp997564pxb; Fri, 22 Apr 2022 16:19:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxx2FOuZpCdyZMlJy9O916mRRM3t5RIRjsAXhpA+e9eQ6GEvAUiDDvzgQMZbpDeQ9fed1eJ X-Received: by 2002:a17:902:f551:b0:15c:96ae:a0a8 with SMTP id h17-20020a170902f55100b0015c96aea0a8mr3671995plf.133.1650669561470; Fri, 22 Apr 2022 16:19:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650669561; cv=none; d=google.com; s=arc-20160816; b=e+1C6jHWnaIea0tG0g0l6bGOxHjd6Ny7UOIji1nG+hqvrSOi7AxtvDcDJHUDOXTbFP WLjCqs9oSwT+ppY3ek+Lf0BfCOpxCd1mYMbLNvbAhRe5UzIRlsIcQM34cgksTabjmqZP 4mEZMe+nLCwDVcoaLbXgRG1EL7+GUZtOzSR5+TU8H+YXHaqdDFe4zP+W4I6l8t/wwjGP FTIM+NUEOMf5qbIOYDfnWoAuyrLZl0ENv4+FUxMd/OxHraypW8VB/Y/GKJWuw8i9BfQb N2grIRRlxHdW1l70bWC06ZgLW7yck6K2Gp2vq+EHTyLIVY3N4lfiGJ1GJe9EhxGawXfx RAXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=I6IucAW2vKmMlZoXu5E0+/gmEChaQTXcva9X1hww8Y4=; b=FZNYRNJEtKXO2WF3pNdKmHXxknjbYHx0pnlY7aq21uYS3ZxchtmrOz2GigrJKDV8OH lvbUIjMBHuyI8Aa+jYw5X7+IG86C6ALtSf18tx0nhimdmSIamBI/VVmdSld35X8AeqQE 20IsYSEF3zCF0tu0vxbLG+KrzvpOH3d9K6tWE1uzYLYCoPlq6Ep3rAkkDRCXd0aymhv8 KL9iqS7REwQ2LjGHIHqrFYprwYnSxznfcgqJdU1FCf5HQN39TePRm9E9fUl66YkRihJ9 yT0UaVj/BkG3zXp+9H+0xgpaKsMacBHFUsYb+02kTU7jG5t9gUEz40C2bcnoyHHjI/Fi BGjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SGmEdvPf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e18-20020a170902ef5200b00153b2d165e4si9370076plx.492.2022.04.22.16.19.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 16:19:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SGmEdvPf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B0E361B9EDF; Fri, 22 Apr 2022 15:34:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233233AbiDVWhG (ORCPT + 99 others); Fri, 22 Apr 2022 18:37:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233252AbiDVWgn (ORCPT ); Fri, 22 Apr 2022 18:36:43 -0400 Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4CB130851B for ; Fri, 22 Apr 2022 14:51:03 -0700 (PDT) Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-2eba37104a2so99294547b3.0 for ; Fri, 22 Apr 2022 14:51:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=I6IucAW2vKmMlZoXu5E0+/gmEChaQTXcva9X1hww8Y4=; b=SGmEdvPf+mBAPoT9mdL6g4e+foKc3ZF0arakcfTnLOFRfmr9f+Mvu1BE/2iclcIlFc OXlCjRiiYgeivc6aYfz8pF50HM04OOwjOBMmqArl9wtTwzQ1L9mURCWZIw+Bb/Y7B1HP mtiI8WM2tM2hlMMnEoLRVQsVqsCT5YLY53HAKikQ11NiQ3Uz3dv+pUxQRnByLKmQ+wMQ q4/0IL8asW9p44fpkXSpm2x/c7a0B3a17mQLQHx4Ws74JuEJqASLf+D7YJlXQTlIr38g FbkdvszCD3YRDBn+bnTj9Fei8itEt3HdcH94tj/R6pn6zH+33Z+KfOHHwbjFdjqJ/sa5 e44w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=I6IucAW2vKmMlZoXu5E0+/gmEChaQTXcva9X1hww8Y4=; b=cVzZi2U/E7cllsLy5QRh/iziYQokdgE24zbDa7x0UoZRsaIL5aLCGd0O6/t61BSLD5 0p7o+NNDQftPojKAd7w0pSH40NeQuiadxVHfdNriZe/u9cHoOb3Ws9UKj7GCJidy6PWg XOm/ZzckSRIkpMi6WMbih+PZfEdRJEDzcV/DXIbAdAT7Myeeb5tiF8U/e59sq2pkyRa9 rYBLErSLWky8Gh7O7DON316hqOEQw2Om/q5SsTf3WJ8UnQlgLzerPTzCsC48mpsk95iY h2uGUdSRAWpSnao1h/Nh2tC5K7qhf3fg9eUGj6XvlM6dUmu82sMKqhMxB05yCG16sGRY fuTw== X-Gm-Message-State: AOAM532sk9baRzyw3/9YtnrJVDybb557pUPMC64lqQMk7VSPyZX/vFJ2 Bf1Tup5pWAEOdASgyyEuaKtrFcyGewSiFOo0y18mHA== X-Received: by 2002:a0d:c4c2:0:b0:2f1:6c00:9eb4 with SMTP id g185-20020a0dc4c2000000b002f16c009eb4mr7127206ywd.448.1650664263007; Fri, 22 Apr 2022 14:51:03 -0700 (PDT) MIME-Version: 1.0 References: <20220414214337.311880-1-linus.walleij@linaro.org> In-Reply-To: From: Linus Walleij Date: Fri, 22 Apr 2022 23:50:51 +0200 Message-ID: Subject: Re: [PATCH] dt-bindings: gnss: Add Broacom BCM4751 family bindings To: Dmitry Osipenko Cc: Johan Hovold , Rob Herring , David Heidelberg , Svyatoslav Ryhel , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 18, 2022 at 1:19 PM Dmitry Osipenko wrote: > What are the chances of seeing the kernel driver for BCM4751+? The kernel does not normally drive the GPS. The kernel has a small driver dealing with hardware power on/off of the GPS and exposing /dev/gnss0 to userspace. See Johans lecture at: https://events19.linuxfoundation.org/wp-content/uploads/2017/12/The-GNSS-Subsystem-Johan-Hovold-Hovold-Consulting-AB.pdf > There are > myriads of Android devices using that GPS chip. Previously the > proprietary firmware interface of BCM4751 was an obstacle for addition > of the driver to upstream kernel, did anything change? Actually there is nothing stopping us from anyway merging device tree bindings, even if no driver is on the horizon for Linux. The DT bindings are not a Linux kernel thing. Actually we merged bindings like that in the past. It makes it possible to create complete device trees, which is nice. A driver for Linux can be slotted in at a later point. Anyway, that is the boring answer. Many if not all GPS:es (as all Wireless chips) have proprietary firmware interfaces. This is normal. GPS:es are special since by tradition the stack using them is in userspace. There exist free software userspace stacks for misc GPS:es. gpsd is the most common userspace daemon for GPS. gpsd will then talk to /dev/gnss0 as any other TTY IIUC. Replicant has a free implementation of the "MEIF" API for this GPS, I think what is needed is really for someone to pick up, polish and contribute that to gpsd https://git.replicant.us/contrib/PaulK/bcm4751/ Yours, Linus Walleij