ARM: dts: ux500: Add GPS to Skomer device tree
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 4 Mar 2022 23:36:03 +0000 (00:36 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 5 Apr 2022 22:50:44 +0000 (00:50 +0200)
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/ste-ux500-samsung-skomer.dts

index dcdec86..81b341a 100644 (file)
                        };
                };
 
-               /* GPF UART */
+               /* GPS UART */
                uart@80121000 {
                        status = "okay";
                        pinctrl-names = "default", "sleep";
                        pinctrl-0 = <&u1rxtx_a_1_default &u1ctsrts_a_1_default>;
                        pinctrl-1 = <&u1rxtx_a_1_sleep &u1ctsrts_a_1_sleep>;
+
+                       gnss {
+                               /* The CSRG05TA03-ICJE-R is a SirfStarV 5t chip */
+                               compatible = "csr,csrg05ta03-icje-r";
+                               /* GPS_RSTN on GPIO209 */
+                               reset-gpios = <&gpio6 17 GPIO_ACTIVE_LOW>;
+                               /* GPS_ON_OFF on GPIO86 */
+                               sirf,onoff-gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>;
+                               /* GPS_1V8 (VSMPS2) */
+                               vcc-supply = <&db8500_vsmps2_reg>;
+                               pinctrl-names = "default";
+                               pinctrl-0 = <&g05ta03_skomer_default>;
+                               /* According to /etc/sirfgps.conf */
+                               current-speed = <460800>;
+                       };
                };
 
                /* Debugging console UART connected to AB8505 USB */
                        };
                };
        };
+       g05ta03 {
+               g05ta03_skomer_default: g05ta03 {
+                       /* Reset line, start out de-asserted */
+                       skomer_cfg1 {
+                               pins = "GPIO209_AG15";
+                               ste,config = <&gpio_out_hi>;
+                       };
+                       /* GPS_ON_OFF, start out deasserted (off) */
+                       skomer_cfg2 {
+                               pins = "GPIO86_C6";
+                               ste,config = <&gpio_out_lo>;
+                       };
+               };
+       };
 };
 
 &ab8505_gpio {