[Letux-kernel] [PATCH pre-upstream] arm: dts: gta04: add gps support
H. Nikolaus Schaller
hns at goldelico.com
Mon Dec 10 08:41:51 CET 2018
Looks good.
I'll take it for letux-4.20-rc6 and we can do integration test.
BR and thanks,
Nikolaus
> Am 09.12.2018 um 21:26 schrieb Andreas Kemnade <andreas at kemnade.info>:
>
> The GTA04 has a w2sg0004 or w2sg0084 gps chip. Not detectable
> which one is mounted so use the compatibility entry for w2sg0004
> for all.
>
> Signed-off-by: Andreas Kemnade <andreas at kemnade.info>
> ---
> will be upstreamed if the gps patches are accepted.
> Maybe we rebase the things needed for gnss_w2sg0004
> on top of it.
> arch/arm/boot/dts/omap3-gta04.dtsi | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
> index d5fe55392230..2286b2554002 100644
> --- a/arch/arm/boot/dts/omap3-gta04.dtsi
> +++ b/arch/arm/boot/dts/omap3-gta04.dtsi
> @@ -312,6 +312,12 @@
> >;
> };
>
> + gps_pins: pinmux_gps_pins {
> + pinctrl-single,pins = <
> + OMAP3_CORE1_IOPAD(0x2176, PIN_INPUT_PULLDOWN | MUX_MODE4) /* gpio145 */
> + >;
> + };
> +
> hdq_pins: hdq_pins {
> pinctrl-single,pins = <
> OMAP3_CORE1_IOPAD(0x21c6, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda.hdq */
> @@ -644,6 +650,13 @@
> &uart2 {
> pinctrl-names = "default";
> pinctrl-0 = <&uart2_pins>;
> + gps: gps {
> + compatible = "wi2wi,w2sg0004";
> + pinctrl-names = "default";
> + pinctrl-0 = <&gps_pins>;
> + sirf,onoff-gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
> + lna-supply = <&vsim>;
> + };
> };
>
> &uart3 {
> --
> 2.11.0
>
> _______________________________________________
> http://projects.goldelico.com/p/gta04-kernel/
> Letux-kernel mailing list
> Letux-kernel at openphoenux.org
> http://lists.goldelico.com/mailman/listinfo.cgi/letux-kernel
More information about the Letux-kernel
mailing list