Message ID | 20240117131807.24997-3-wsa+renesas@sang-engineering.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-29013-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:42cf:b0:101:a8e8:374 with SMTP id q15csp902487dye; Wed, 17 Jan 2024 05:19:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IH4RSTLux3f5UaOG+C4zc67f3RDS6gHX1wlJ0eV3rRghTXZsi09Npy95Jm5UFze7JGOG6WH X-Received: by 2002:a05:620a:4086:b0:783:76ba:2179 with SMTP id f6-20020a05620a408600b0078376ba2179mr490447qko.63.1705497555938; Wed, 17 Jan 2024 05:19:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705497555; cv=pass; d=google.com; s=arc-20160816; b=D2riaE7mufMkro30mlgoWU6MdlNIeK6eDY6WejseKkhe/xboyr5E4Bzicl7JlT9NhX WY8igC2KYnGkSg8729QzVqzZGqm5XlBXC4BcYbTPN2pmfSP0lRN2H6qAtQa90XUkfeIk rxDPrslr3k6tNwb1njzTD/XiN+Jd3ozHeW1IRkQiYyOZE1RqeLmskBYj0VLaxW6Oy1oV PSqgfEt72Jtsm2T7mPuXBPuwL3qZ3g/WQTrAyZbYjXk79elKETSPP04VTxV6d5J7pjgP wLTktsXPv1OwkZ05BOiOfuunCzSlVIKNqJLpTjD5H7qtRiFxOp9sy6EVBbBoUwZs+qW0 94LA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Gm6DXUbLl/SBcL7Tq61flrVhouAD9tPRtlD6zCnjH7E=; fh=tLh6qpaJUlBxT6nqff9PdLnu+gcpblsu+qfj4xYXAts=; b=VdCDge06C/XNM1hlmdip+yIdQ75uf/wsvYIB/Uquw+H2nJb9m2nZN45nqBpf1etSau Ehl7xQqiZ+R676Nvs7h4ozAEiQnjif0K5r2pGZK9s3zETrgnMvAjOFSJGeIrPovCVz+u tNmLiPXrrMCUAa8L+cQY3Ez12Ok9pv0v2a933x9vCFuBMTReMDtL28lkXTwXJW0Wpgp9 ssCkKtdq+klokQcJGcZdiZZQXBOFfZREKW2TN4Uxe6e6MPSm3gnD2pw6oljmX++YzhQl PL/PZNO7ZQtsN05mp358LdcP1XkxhBzZqCU4OqLYLZQIv0XJMVsSCd0oXcXCq4L39R/H bIAA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=ko9Y1Kto; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-29013-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29013-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b15-20020a05620a088f00b007833ac2b003si11748340qka.378.2024.01.17.05.19.15 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 05:19:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29013-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=ko9Y1Kto; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-29013-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29013-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B8BF41C2447E for <ouuuleilei@gmail.com>; Wed, 17 Jan 2024 13:19:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 51806200CA; Wed, 17 Jan 2024 13:18:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="ko9Y1Kto" Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B243C1EB44 for <linux-kernel@vger.kernel.org>; Wed, 17 Jan 2024 13:18:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705497513; cv=none; b=B02y2qEiTm5MSuAi5sPAuAUchtnKVcCZLLT2M6HDYBq7v82jRGFcrFhlMJPBjoiUmcNWKPdbrT7A9VJYBvaYFmyKzPD3Ibz54S8WIOFIo3a57mxy3+5/jEKFit7CeasBn4nCJ61UtGdjbcV9xDPlmciOX6FObgOt5+zvrm6oC4I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705497513; c=relaxed/simple; bh=4pfhhJ6nKwIRmP3erZaYcFWifxCQ0B5IiO08u5mirU0=; h=DKIM-Signature:Received:Received:X-UD-Smtp-Session:From:To:Cc: Subject:Date:Message-Id:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; b=gqCCJ76rWNeJ76RCV+MEUzCxEoHcR5CyfWBChEg61KMuYyUTiZyE9wCHIRrhUWA1bxf+agj33fKpMjm0wSaZjEtuQjgHu486/zfpjCCjimFpRE/LXMjupJ67hyHP6+zHK2PBtZ5x8TVmyvsPDVA3iMrfVYQfsc/UAqOumzY6uRY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=ko9Y1Kto; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=k1; bh=Gm6DXUbLl/SBcL7Tq61flrVhouAD9tPRtlD6zCnjH7E=; b=ko9Y1K toxtvK1ef7XAsff+gKBYfzKSmnxs+07pLBPemTTr/T/TfWtRAARlQDGVT6w0AtZM KVLGx68BuO7gBwCGCLV0nfw60/gZ+hoO5yaRIAo0t+aYsYumr/SPTkxQXKnaS/kz yYBsrYCscYLh8oaQ77WTzTu/090v4d9iLOdgXE4Vmk5xagMt3mFqrEr3I9C3VQoj DX9tn6qPkn85qmvRo3pibZxKm3a5T63MnE5cPjqGHb736XuQTCSCZaQqHB6VdOzu uwf5ceQEr1BffMkcm6WWGeCoT30EucjP6LENAqWannaesTwEEWBqScLBvzPScetC IcCA0SHuZgfV8N9A== Received: (qmail 2754662 invoked from network); 17 Jan 2024 14:18:21 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 17 Jan 2024 14:18:21 +0100 X-UD-Smtp-Session: l3s3148p1@1My/FCQP4qpehhtJ From: Wolfram Sang <wsa+renesas@sang-engineering.com> To: linux-renesas-soc@vger.kernel.org Cc: Wolfram Sang <wsa+renesas@sang-engineering.com>, Geert Uytterhoeven <geert+renesas@glider.be>, Magnus Damm <magnus.damm@gmail.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH v3 2/2] arm64: dts: renesas: ulcb-kf: add node for GNSS Date: Wed, 17 Jan 2024 14:18:07 +0100 Message-Id: <20240117131807.24997-3-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240117131807.24997-1-wsa+renesas@sang-engineering.com> References: <20240117131807.24997-1-wsa+renesas@sang-engineering.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788343804752487598 X-GMAIL-MSGID: 1788343804752487598 |
Series |
arm64: dts: renesas: ulcb-kf: add GNSS support
|
|
Commit Message
Wolfram Sang
Jan. 17, 2024, 1:18 p.m. UTC
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
Changes since last version:
* use 'reg_3p3v' instead of custom regulator
arch/arm64/boot/dts/renesas/ulcb-kf.dtsi | 7 +++++++
1 file changed, 7 insertions(+)
Comments
Hi Wolfram, On Wed, Jan 17, 2024 at 2:18 PM Wolfram Sang <wsa+renesas@sang-engineering.com> wrote: > Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> > --- > Changes since last version: > > * use 'reg_3p3v' instead of custom regulator Thanks for the update! > --- a/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi > +++ b/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi > @@ -392,6 +392,13 @@ &scif1 { > pinctrl-names = "default"; > > status = "okay"; > + > + gnss { > + compatible = "u-blox,neo-m8"; > + reset-gpios = <&gpio_exp_75 6 GPIO_ACTIVE_LOW>; > + vcc-supply = <®_3p3v>; > + current-speed = <9600>; > + }; > }; > > &sdhi3 { LGTM, so Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Before I queue this, I have one remaining question. The device is also connected to I2C bus i2c@7 aka AUDIO_S{DA,CL}. Can it be used over I2C too? Is there some strapping to select the interface used? I couldn't find that in the documentation. (It does support clock stretching! ;-) Gr{oetje,eeting}s, Geert
> Can it be used over I2C too? Is there some strapping to select the > interface used? I couldn't find that in the documentation. It looks to me they both work at the same time. I was able to write and read via I2C (thus not very meaningful data) while serial port was doing the real work. I am not aware of a full GNSS implementation supporting the I2C interface, so I considered it good at that point.
Hi Wolfram, On Fri, Jan 26, 2024 at 4:05 PM Wolfram Sang <wsa+renesas@sang-engineering.com> wrote: > > Can it be used over I2C too? Is there some strapping to select the > > interface used? I couldn't find that in the documentation. > > It looks to me they both work at the same time. I was able to write and > read via I2C (thus not very meaningful data) while serial port was doing > the real work. I am not aware of a full GNSS implementation supporting > the I2C interface, so I considered it good at that point. Indeed, drivers/gnss/ seems to have no support for I2C yet. Queuing in renesas-devel for v6.9. Gr{oetje,eeting}s, Geert
> Indeed, drivers/gnss/ seems to have no support for I2C yet.
Neither does GPSD. But looking again, I found a I2C->virtualSerial
script to do it: https://github.com/MaffooClock/gpsd-i2c
Everything exists! :)
diff --git a/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi b/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi index 40a5f98c1190..e3cc0e0e73cc 100644 --- a/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi +++ b/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi @@ -392,6 +392,13 @@ &scif1 { pinctrl-names = "default"; status = "okay"; + + gnss { + compatible = "u-blox,neo-m8"; + reset-gpios = <&gpio_exp_75 6 GPIO_ACTIVE_LOW>; + vcc-supply = <®_3p3v>; + current-speed = <9600>; + }; }; &sdhi3 {