Nrf54l15 sense board with L76K GNSS module

I am trying to have the nrf54l15 board work with L76k board. I have a good antenna. The entire thing works on Arduino IDE. Code is pasted below, however for some reason the similar variant of the code doesnt work with Zephyr. Does anyone have any examples of how they made it work.

This is the code that works on the Arduino IDE, and I get 16 satellites.

#include <Arduino.h>

#include <TinyGPSPlus.h>

TinyGPSPlus gps;

void setup() {

Serial.begin(115200);

delay(2000);

Serial1.begin(9600);   // L76K on XIAO D6/D7

Serial.println(“GPS test started”);

}

void loop() {

while (Serial1.available()) {

char c = Serial1.read();

// Print raw GPS sentences

Serial.write(c);

gps.encode(c);

}

static unsigned long last = 0;

if (millis() - last > 3000) {

last = millis();

Serial.println();

Serial.print("Chars: ");

Serial.println(gps.charsProcessed());

Serial.print("Satellites: ");

Serial.println(gps.satellites.value());

Serial.print("Location: ");

if (gps.location.isValid()) {

Serial.print(gps.location.lat(), 6);

Serial.print(", ");

Serial.println(gps.location.lng(), 6);

} else {

Serial.println(“INVALID / waiting for fix”);

}

}

}