Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2021476imu; Sun, 18 Nov 2018 13:59:36 -0800 (PST) X-Google-Smtp-Source: AJdET5fYyNCo5TOK0qp2HQvjZKKtsg7Nk3jI3/1SbwpKtdwCttS6NltZLtKVLJLzxEIpvQkNdwXi X-Received: by 2002:a17:902:24d:: with SMTP id 71mr13863666plc.225.1542578376741; Sun, 18 Nov 2018 13:59:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542578376; cv=none; d=google.com; s=arc-20160816; b=itQn9TFGioRT7qkNzMMp4ktRXQKZqMMFBAFO38Q+wcPLMiKzsGtOTgHXwbqlRnscRb eFI3XX2/DsFliXwcAAeuRHK8E92ElE47b7n3ENHEbw+VMt7ypLz+ehv0cVkIY6Dm7uOQ T5Cwmes8XF+HnudxyhDRNsahsthg2O5JHFQgujOenBAyL/rvBQk8WmGJAlFTXLj1ejso lRgQrl9wjlKmC6TB1PC2gjx0SRLk+UkGVbxSBFSPmzglp286be9tRLR5mshcDypU1pj8 PnYFuJZy/wtqM9Xq2gz8ftkyIzbU7eUCqNGbjZp0Z0J3D2niIUFfeEaLE7EX+obv7vkc qMPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=FaOxu9IScWZqehadeckdK2vcOxjvMUEdwR766hP5WRM=; b=Nl/XMGUhvFRPoweHVFN5v6rFFeY5hxTKkFe0F4+hoWeR101tZIInUzguFPecjSIDsi usH68U9bc2L7/qQVUwIgMAHC4cBTTBerN8YyH+HzqeCIHOAChsKJ3Hwy1STgZxRnksNA CR14EWhf7x+/lFULlcpjZQD/IipMhLMbUbxxTrXe3PtRNSaMBGH+Z7Bsk7R7fgaGSQXt 7YQK1vx2LMr3nvwhntPkMdPP5lns0P3g7ZrbUVvdcVcV/+v1+mWKvKymCRDDTBzAsW6F hbFAvnyoa1v2pZ87JxPEKlxUPV+Xi99ZYFZfIgFvzmYivRTaa0sZu6ussNUvfe9+bcTh csEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=YJp57uAl; 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 i1si26350149pgs.417.2018.11.18.13.59.22; Sun, 18 Nov 2018 13:59:36 -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=@kemnade.info header.s=20180802 header.b=YJp57uAl; 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 S1727974AbeKSITr (ORCPT + 99 others); Mon, 19 Nov 2018 03:19:47 -0500 Received: from mail.andi.de1.cc ([85.214.239.24]:52468 "EHLO h2641619.stratoserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726053AbeKSITr (ORCPT ); Mon, 19 Nov 2018 03:19:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=Message-Id:Date:Subject:Cc:To:From:Sender: Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=FaOxu9IScWZqehadeckdK2vcOxjvMUEdwR766hP5WRM=; b=YJp57uAlv/MxPh6xn92oML3Dzd +VgJd48ag+OCHh7Z1sOcBEsMMklPVGr03vu6SHv8ZJEcRD6dIWP0vKqPxidjevUhOXpQz/z4gG6ED ygRnvb0B6Ap/0CoM2k4XD/6V7BZ1eXoOKIAhpsTu7bLpLLVgjfLi/PgvpiuK/xpdoi2s=; Received: from p200300ccfbe8ca001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:fbe8:ca00:1a3d:a2ff:febf:d33a] helo=aktux) by h2641619.stratoserver.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gOV52-00077d-Rr; Sun, 18 Nov 2018 22:58:12 +0100 Received: from andi by aktux with local (Exim 4.89) (envelope-from ) id 1gOV52-0003D5-FD; Sun, 18 Nov 2018 22:58:12 +0100 From: Andreas Kemnade To: johan@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Discussions about the Letux Kernel Cc: Andreas Kemnade Subject: [PATCH 0/5] gnss: sirf: add support for w2sg0004 + lna Date: Sun, 18 Nov 2018 22:57:56 +0100 Message-Id: <20181118215801.12280-1-andreas@kemnade.info> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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. 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 .../devicetree/bindings/gnss/sirfstar.txt | 2 + drivers/gnss/sirf.c | 126 +++++++++++++++------ 2 files changed, 96 insertions(+), 32 deletions(-) -- 2.11.0