All of lore.kernel.org
 help / color / mirror / Atom feed
From: "H. Nikolaus Schaller" <hns@goldelico.com>
To: "Rob Herring" <robh+dt@kernel.org>,
	"Mark Rutland" <mark.rutland@arm.com>,
	"Benoît Cousson" <bcousson@baylibre.com>,
	"Tony Lindgren" <tony@atomide.com>,
	"Russell King" <linux@armlinux.org.uk>,
	"H. Nikolaus Schaller" <hns@goldelico.com>,
	"Thierry Reding" <treding@nvidia.com>,
	"Jonathan Cameron" <jic23@kernel.org>,
	"Maxime Ripard" <maxime.ripard@free-electrons.com>,
	"Jarkko Sakkinen" <jarkko.sakkinen@linux.intel.com>
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-omap@vger.kernel.org, letux-kernel@openphoenux.org,
	kernel@pyra-handheld.com
Subject: [PATCH v2 4/5] DTS: gta04: add serdev node for w2sg00x4
Date: Sun, 12 Nov 2017 21:59:57 +0100	[thread overview]
Message-ID: <55121e359ace8568711411de7da68205fc039d56.1510520397.git.hns@goldelico.com> (raw)
In-Reply-To: <cover.1510520397.git.hns@goldelico.com>
In-Reply-To: <cover.1510520397.git.hns@goldelico.com>

GTA04 has a W2SG0004/84 connected to UART2 of the OMAP3
processor. A GPIO can pulse the on/off toggle switch.

The VSIM regulator is used to power on/off the LNA of an external
active GPS antenna so that a driver can turn the LNA off if GPS is
not needed to save battery energy.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
---
 arch/arm/boot/dts/omap3-gta04.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index 4504908c23fe..e967d738aaaf 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -477,6 +477,12 @@
 &uart2 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart2_pins>;
+
+	gps: gps {
+		compatible = "wi2wi,w2sg0004";
+		lna-supply = <&vsim>;   /* LNA regulator */
+		enable-gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;    /* GPIO_145: trigger for turning on/off w2sg0004 */
+	};
 };
 
 &uart3 {
-- 
2.12.2

  parent reply	other threads:[~2017-11-12 21:00 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-12 20:59 [PATCH v2 0/5] misc: new serdev based drivers for Wi2Wi w2sg00x4 GPS module H. Nikolaus Schaller
2017-11-12 20:59 ` [PATCH v2 1/5] DT: vendor prefix for Wi2Wi, Inc H. Nikolaus Schaller
2017-11-15 20:04   ` Rob Herring
2017-11-15 20:04     ` Rob Herring
2017-11-15 20:06     ` H. Nikolaus Schaller
2017-11-15 20:06       ` H. Nikolaus Schaller
2017-11-12 20:59 ` [PATCH v2 2/5] DT: misc: w2sg0004: add bindings documentation (GPS module with serdev UART) H. Nikolaus Schaller
2017-11-15 20:08   ` Rob Herring
2017-11-15 20:08     ` Rob Herring
2017-11-15 20:36     ` H. Nikolaus Schaller
2017-11-12 20:59 ` [PATCH v2 3/5] misc: Add w2sg0004 (gps receiver) power control driver H. Nikolaus Schaller
2017-11-15  9:16   ` kbuild test robot
2017-11-15  9:16     ` kbuild test robot
2017-11-15 10:03   ` kbuild test robot
2017-11-15 10:03     ` kbuild test robot
2017-11-15 20:17   ` Rob Herring
2017-11-15 20:17     ` Rob Herring
2017-11-15 20:49     ` H. Nikolaus Schaller
2017-11-12 20:59 ` H. Nikolaus Schaller [this message]
2017-11-12 20:59 ` [PATCH v2 5/5] misc: w2sg0004: add debugging code and Kconfig H. Nikolaus Schaller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55121e359ace8568711411de7da68205fc039d56.1510520397.git.hns@goldelico.com \
    --to=hns@goldelico.com \
    --cc=bcousson@baylibre.com \
    --cc=devicetree@vger.kernel.org \
    --cc=jarkko.sakkinen@linux.intel.com \
    --cc=jic23@kernel.org \
    --cc=kernel@pyra-handheld.com \
    --cc=letux-kernel@openphoenux.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=mark.rutland@arm.com \
    --cc=maxime.ripard@free-electrons.com \
    --cc=robh+dt@kernel.org \
    --cc=tony@atomide.com \
    --cc=treding@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.