Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2455222imu; Mon, 19 Nov 2018 00:24:46 -0800 (PST) X-Google-Smtp-Source: AJdET5cqmHsY+FJ0QUT/2IHcH4PJEx0o1cvWhYSingKFj9vmSzyEeGfGT06rRh0G4kcnOxqmeSoN X-Received: by 2002:a62:42d4:: with SMTP id h81mr21931519pfd.259.1542615886709; Mon, 19 Nov 2018 00:24:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542615886; cv=none; d=google.com; s=arc-20160816; b=JLAXCgW0xgClhLQzYsScZtnT6MnZnbsH3T/Kp2G7NYRwB9IFIvJQjxULFQVwFv+qVI Z2DM7ZY2DqaRVGwcMOTBFrwXQEKaIR72HDtLzG8qf4eS8BgK2jpN1a3HMUK8eogeouVr UXwe00Eci95uXD50gOLbgnXHL4FhATeiOkhzHNeIeoTPNx9atL9SH7xvG8ELLs2wl1IS KSetLhgwXcZBOqrak/RELJJQswM/mOjb/W7wdOPPe2Q+TC4v/pBA5+UGJAv97u9yTKxz NzMSHjnOt8wO8pENg2rB/Rk14C2l3pErAfDYT6VxHsjuIZmsgPwue2sWuDNIj2JzaRvH DOqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=huXH0DDkgqtIeTuuaOplh0n/TRRLlriFthavvxVJDPk=; b=k2NUl2jFcgifdVHuUZSNXzosg/1uaSVu2UchFWKdViLRN+cNjUVwVLrDsMTJWdRDNa YFTghQluGe8Z1A8PBSNvsRiNAaVPaQFgDLUBEn/YE03/wnzBR3/E1t/WD1xpj/3cugJ1 E4rCZSLJnfAyytIUzAhkYJK6f7WWz1Yi3VibHs2h14FkFUxVb9MC4Wes3NaqyFIbQjbS T66R5kdsycEuytRo2E0Or4OFa2J/zXKQl0djxZH2SH9OsUHhh56cPOIYX/Wbk4kkIM5d gN/p9JaFDsrt6s/Ck58W8I0oaxcYHAfySGQKGwJC3KUMcZRqBUSwpmKGlfuBYvbiVQeC /pXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=HI9IDbad; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a2si25840771pgd.461.2018.11.19.00.24.31; Mon, 19 Nov 2018 00:24:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=HI9IDbad; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727111AbeKSSqI (ORCPT + 99 others); Mon, 19 Nov 2018 13:46:08 -0500 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.24]:11971 "EHLO mo4-p00-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726784AbeKSSqH (ORCPT ); Mon, 19 Nov 2018 13:46:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1542615788; s=strato-dkim-0002; d=goldelico.com; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=huXH0DDkgqtIeTuuaOplh0n/TRRLlriFthavvxVJDPk=; b=HI9IDbadar/LKo4skSLVn6Qkp7bPK7ooHI+hspJMqNPgDLJ4ssBDo0z88ECOTFgpxg oQ3tgvqRIANr3xc/ONqiQfAS8TqLnrT7/mEwXThqVlZQMbXB/lAGax+io49NYRgnCpJY A6p5nYjzwJljpbEYZOkHN/v0jG0AQHhxLr17+IW3NE2B7DlH016JSaZr0wjqI4LO56dM 863JTr72df+6EnJW3ZDDeCXG68dEVUy+ttOABUrCbLsOYl3Ut+04It0TXd0h0NKNy97F bzatJK4VB1EH8mx43kh3fOc8bmKSmyOs75oU1MBbql2YVw68Fky1c18NhCPRi3nE1h8t dYOw== X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj7wpz8NMGH/zowDCvpOU=" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 44.4 DYNA|AUTH) with ESMTPSA id c01a4cuAJ8N0AiF (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Mon, 19 Nov 2018 09:23:00 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [Letux-kernel] [PATCH 0/5] gnss: sirf: add support for w2sg0004 + lna From: "H. Nikolaus Schaller" In-Reply-To: <20181118215801.12280-1-andreas@kemnade.info> Date: Mon, 19 Nov 2018 09:22:59 +0100 Cc: Johan Hovold , Rob Herring , Mark Rutland , devicetree , LKML , Discussions about the Letux Kernel Content-Transfer-Encoding: quoted-printable Message-Id: <3487514B-E546-4F11-8C0A-F5B4A8114376@goldelico.com> References: <20181118215801.12280-1-andreas@kemnade.info> To: Andreas Kemnade X-Mailer: Apple Mail (2.3124) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > Am 18.11.2018 um 22:57 schrieb Andreas Kemnade : >=20 > Here is another chapter of the story to get gta04 gnss power > management into the mainline kernel. > There is a w2sg0004 without wakeup line in there, so power state > can only be determined indirectly by looking at the serial data lines. > Then there as also an lna which needs to be powered for real gps > reception. That part needs probably more discussion, since it might > be an idea to have it more generalized since it has nothing todo > with the chip itself. On the other hand if we follow the "SoC is the spider in the net" way of looking at DTS hierarchy, we have the uart as a child of the SoC and the gnss receiver as a serdev child of the UART. The LNA is even one step more distantly connected to the gnss. So it makes sense to me to have it as a property/reference of the gnss chip's DTS record which is a sibling of the compatible records. So the only place where it can be reasonably processed is the driver. > I marked the corresponding patches as RFC. The support for > the w2sg0004 without wakeup can imho go in without the lna first > because users of that chip without an additional lna power supply > can already benefit from it if we should do more discussion first. > I just kept them together so that the full picture can be seen. >=20 > Andreas Kemnade (5): > gnss: sirf: write data to gnss only when the gnss device is open > gnss: sirf: power on logic for devices without wakeup signal > dt-bindings: gnss: add w2sg0004 compatible string > gnss: sirf: add a separate supply for a lna > dt-bindings: gnss: add lna-supply property >=20 > .../devicetree/bindings/gnss/sirfstar.txt | 2 + > drivers/gnss/sirf.c | 126 = +++++++++++++++------ > 2 files changed, 96 insertions(+), 32 deletions(-) >=20 > --=20 > 2.11.0 >=20 > _______________________________________________ > http://projects.goldelico.com/p/gta04-kernel/ > Letux-kernel mailing list > Letux-kernel@openphoenux.org > http://lists.goldelico.com/mailman/listinfo.cgi/letux-kernel BR, Nikolaus