Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5653570imu; Wed, 30 Jan 2019 01:03:21 -0800 (PST) X-Google-Smtp-Source: ALg8bN7jOlH2OPEr/3UNcijRqrEkIEPqzQxBcZ6i1JnPF9XxlFXWc2kdITnkmoEqQ0Y8krVD6HUJ X-Received: by 2002:a62:9111:: with SMTP id l17mr29617528pfe.200.1548839001163; Wed, 30 Jan 2019 01:03:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548839001; cv=none; d=google.com; s=arc-20160816; b=rLwZbi4HnH0hJ+/xu5z+PtnfDOcuF6noPfbYO3RID0KNGhzoMbt6I6iWyqjytOM5Xe sl9mn0uHLCrQHT0EeqGGO630Z+dZvOKbbgsBVbqZPQvK/OikHYtQVBYGOa0hjRbgDYOo 6bU34Gqq8lMgQuzaPlPiQ0xJycvAOWcGUpKO3WiwuWTx/ZjWBIRH9GKcjVNGL0Kwd67Q f374fboxgnyZEK2/ybl52VCqSMdg5NIWWsQ6ISa6elTNuobuDJXk0PEOrLXHHcPcXh7t zv8Dw34hyUan9uNuKxepV4gLsNoVNn+70207bg13QZf7/A/QYP3MV9tPLuchTCP1pWJw 9dRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=f/hmv/BD3dVn/TN64uCAc70GpQAfJ94e2TwTQxaVaFA=; b=rAXy6NBvKUhjaKmbvpZm6Gz2BdiiX5LwjKGs81W3RjNzdK4Q8DltOrwjbyJ4KiJuW5 Rb+k6g1x4aO7OVlgVh4RZoKJVT10llMXBeYtTOJCaQOpAL1as5j+vxm8IlZ6K2KrLrYk arDEO32KIcVBwaY9/kAzDc7SRVJtUMb1WcN9kIIdRu8LCOWIOcCmJNXShJOkeG9pREk7 PBMggCgID/Sc3+SPRp0oCcM2CJD+2Tz4n8XQ0iU+h5pGiJ/ByuHKxDDH3eEqyF/LJeGG PimU0GPtBgzwFJYLKFS7YOPAMMW3PsR1zqUon4Jo7yIGgl+hmGzz78XHW4U1/GOXVFtx C5HA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v68si904489pgb.70.2019.01.30.01.03.06; Wed, 30 Jan 2019 01:03:21 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730404AbfA3JCl (ORCPT + 99 others); Wed, 30 Jan 2019 04:02:41 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:39825 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726427AbfA3JCl (ORCPT ); Wed, 30 Jan 2019 04:02:41 -0500 Received: by mail-lf1-f66.google.com with SMTP id n18so16792952lfh.6; Wed, 30 Jan 2019 01:02:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=f/hmv/BD3dVn/TN64uCAc70GpQAfJ94e2TwTQxaVaFA=; b=QmilTJ/4BT4LeT/rZflSDgAIlsUOtr1IMtYfSXyLPN/qbs9fwzdTByCNzXii1tZaoy mFCh8T0cOIDSyKJTRZLAp3cxpEIRQ6rm0PkxikdSlNmCZ4eaTVaUm8v5a/iOl5OxGUgc 4wLfIB0eONpFvHc5BUf3SKKEa4yw+rgWzDzOpzW1U1ZWtZXMqsBlmR4bFT5YlTXVTzaS 6imPCIjJQvHoNX7YgA8JLrN5kGa3dAq8Xzhq4f947xTTZew2yMFregMheFMxp7ZMA1FF jfIOMjEkPfIuG3TOuPO8eNaA9tt+5uTpR4d9l7HP9EIvcyk3B/OP8nQ0vXCAQZloMH+9 LshA== X-Gm-Message-State: AJcUukcA/So6WOohFEkd9vsOnrwJMqUlQtQb3hotjuOUOSNSauS/jSiv 5Z0y0zk+i9z0MZg1ycQFmCKC/UnX X-Received: by 2002:a19:ef15:: with SMTP id n21mr23184744lfh.21.1548838958525; Wed, 30 Jan 2019 01:02:38 -0800 (PST) Received: from xi.terra (c-74bee655.07-184-6d6c6d4.bbcust.telenor.se. [85.230.190.116]) by smtp.gmail.com with ESMTPSA id 6sm196636lfa.27.2019.01.30.01.02.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Jan 2019 01:02:37 -0800 (PST) Received: from johan by xi.terra with local (Exim 4.91) (envelope-from ) id 1gollQ-0000u1-FI; Wed, 30 Jan 2019 10:02:32 +0100 Date: Wed, 30 Jan 2019 10:02:32 +0100 From: Johan Hovold To: Andreas Kemnade Cc: Johan Hovold , bcousson@baylibre.com, tony@atomide.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, letux-kernel@openphoenux.org Subject: Re: [PATCH] arm: dts: gta04: add gps support Message-ID: <20190130090232.GL3691@localhost> References: <20190125194310.11170-1-andreas@kemnade.info> <20190128075356.GJ3691@localhost> <20190128163025.7daa385b@kemnade.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190128163025.7daa385b@kemnade.info> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 28, 2019 at 05:44:29PM +0100, Andreas Kemnade wrote: > On Mon, 28 Jan 2019 08:53:56 +0100 > Johan Hovold wrote: > > > On Fri, Jan 25, 2019 at 08:43:10PM +0100, Andreas Kemnade wrote: > > > The GTA04 has a w2sg0004 or w2sg0084 gps chip. Not detectable > > > which one is mounted so use the compatibility entry for w2sg0004 > > > for all which will work for both. > > > > > > Signed-off-by: Andreas Kemnade > > > --- > > > w2sg0004 bindings (together with the corresponding support is in > > > https://git.kernel.org/pub/scm/linux/kernel/git/johan/gnss gnss-next) > > > arch/arm/boot/dts/omap3-gta04.dtsi | 13 +++++++++++++ > > > 1 file changed, 13 insertions(+) > > > + gps: gps { > > > > The node should be named "gnss" as per the binding. > > > > > + compatible = "wi2wi,w2sg0004"; > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&gps_pins>; > > > + sirf,onoff-gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>; > > > + lna-supply = <&vsim>; > > > > Also, the vcc-supply is a required property. > > > well, it is not require in the driver and it has different behavior > (on even when not opened if on-off is there) than the lna-supply used > here. So maybe fix the binding documentation? The device-tree describes hardware, and how a particular driver happens to implement a binding is not relevant. That said, there is a bit of an on-going, shall we say philosophical, debate about this. The regulator maintainer takes a firm position that all mandatory physical supplies should be represented in firmware https://lore.kernel.org/lkml/20181123133126.GF2089@sirena.org.uk/T/#u https://lore.kernel.org/lkml/20180409102244.GB11532@sirena.org.uk/T/#u while Rob appears to take a slightly different stance on fixed regulators while admitting that this an issue which has not yet been fully resolved: https://lore.kernel.org/lkml/20180425171123.xhyoay3nu463btoq@rob-hp-laptop/T/#u Since this is a new binding, and the hardware requires the vcc supply and this is reflected in the binding, I think you should add a fixed regulator. At least until you hear otherwise. ;) Johan