ARM: dts: ux500: Add GPS to the Kyle
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 15 Aug 2022 20:30:44 +0000 (22:30 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 17 Oct 2022 13:05:52 +0000 (15:05 +0200)
This adds the GPS chip to the Kyle device tree.

Link: https://lore.kernel.org/r/20220815203044.468686-1-linus.walleij@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/ste-ux500-samsung-kyle.dts

index c57676f..e6a7d60 100644 (file)
                        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 GPIO21 */
+                               reset-gpios = <&gpio0 21 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_kyle_default>;
+                               /* According to /etc/sirfgps.conf */
+                               current-speed = <460800>;
+                       };
                };
 
                /* Debugging console UART connected to AB8505 USB */
                        };
                };
        };
+       g05ta03 {
+               g05ta03_kyle_default: g05ta03 {
+                       /* Reset line, start out de-asserted */
+                       kyle_cfg1 {
+                               pins = "GPIO21_AB3";
+                               ste,config = <&gpio_out_hi>;
+                       };
+                       /* GPS_ON_OFF, start out deasserted (off) */
+                       kyle_cfg2 {
+                               pins = "GPIO86_C6";
+                               ste,config = <&gpio_out_lo>;
+                       };
+               };
+       };
 };
 
 &ab8505_gpio {