ARM: dts: ux500: Add GPS to the Codina
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 14 Apr 2022 21:40:16 +0000 (23:40 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 26 Apr 2022 21:17:48 +0000 (23:17 +0200)
The Codina has a Broadcom BCM4751 GPS chip.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/ste-ux500-samsung-codina.dts

index 0b7bb54aa24da5b50c16f6af04cf8006b989d00c..b6746ac167bc16a6ae76df012049fd21cec1835a 100644 (file)
                uart@80121000 {
                        status = "okay";
                        pinctrl-names = "default", "sleep";
-                       /* CTS/RTS is not used, CTS is repurposed as GPIO */
-                       pinctrl-0 = <&u1rxtx_a_1_default>;
-                       pinctrl-1 = <&u1rxtx_a_1_sleep>;
-                       /* FIXME: add a device for the GPS here */
+                       pinctrl-0 = <&u1rxtx_a_1_default &u1ctsrts_a_1_default>;
+                       pinctrl-1 = <&u1rxtx_a_1_sleep &u1ctsrts_a_1_sleep>;
+
+                       gnss {
+                               compatible = "brcm,bcm4751";
+                               /* GPS_RSTN on GPIO21 */
+                               reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
+                               /* GPS_ON_OFF on GPIO86 */
+                               enable-gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>;
+                               /* GPS_1V8 (VSMPS2) */
+                               vddio-supply = <&db8500_vsmps2_reg>;
+                               pinctrl-names = "default";
+                               pinctrl-0 = <&bcm4751_codina_default>;
+                       };
                };
 
                /* Debugging console UART connected to TSU6111RSVR (FSA880) */
                        };
                };
        };
+       bcm4751 {
+               bcm4751_codina_default: bcm4751_codina {
+                       /* Reset line, start out asserted */
+                       codina_cfg1 {
+                               pins = "GPIO21_AB3";
+                               ste,config = <&gpio_out_lo>;
+                       };
+                       /* GPS_ON_OFF, start out deasserted (off) */
+                       codina_cfg2 {
+                               pins = "GPIO86_C6";
+                               ste,config = <&gpio_out_lo>;
+                       };
+               };
+       };
        vibrator {
                vibrator_default: vibrator_default {
                        codina_cfg1 {