Skip to content

Commit 1f4f84e

Browse files
akemnadetmlind
authored andcommitted
ARM: dts: gta04: add gps support
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 <andreas@kemnade.info> Reviewed-by: Johan Hovold <johan@kernel.org> Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent 0db02b3 commit 1f4f84e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

arch/arm/boot/dts/omap3-gta04.dtsi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,12 @@
329329
>;
330330
};
331331

332+
gps_pins: pinmux_gps_pins {
333+
pinctrl-single,pins = <
334+
OMAP3_CORE1_IOPAD(0x2176, PIN_OUTPUT_PULLDOWN | MUX_MODE4) /* gpio145 */
335+
>;
336+
};
337+
332338
hdq_pins: hdq_pins {
333339
pinctrl-single,pins = <
334340
OMAP3_CORE1_IOPAD(0x21c6, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda.hdq */
@@ -666,6 +672,14 @@
666672
&uart2 {
667673
pinctrl-names = "default";
668674
pinctrl-0 = <&uart2_pins>;
675+
gnss: gnss {
676+
compatible = "wi2wi,w2sg0004";
677+
pinctrl-names = "default";
678+
pinctrl-0 = <&gps_pins>;
679+
sirf,onoff-gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
680+
lna-supply = <&vsim>;
681+
vcc-supply = <&ldo_3v3>;
682+
};
669683
};
670684

671685
&uart3 {

0 commit comments

Comments
 (0)