Skip to content

Commit 3a01467

Browse files
committed
tests: drivers: build_all: gnss: add lx6 driver
Add I2C and UART build variants. Signed-off-by: Nick Ward <nix.ward@gmail.com>
1 parent 2d553a0 commit 3a01467

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

tests/drivers/build_all/gnss/app.overlay

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,21 @@
99
#address-cells = <1>;
1010
#size-cells = <1>;
1111

12+
test_i2c: i2c@11112222 {
13+
#address-cells = <1>;
14+
#size-cells = <0>;
15+
compatible = "zephyr,i2c-emul-controller";
16+
reg = <0x11112222 0x1000>;
17+
status = "okay";
18+
clock-frequency = <100000>;
19+
20+
gnss_l96_i2c: l96@10 {
21+
compatible = "quectel,l96";
22+
pps-mode = "GNSS_PPS_MODE_ENABLED";
23+
reg = <0x10>;
24+
};
25+
};
26+
1227
test_uart: uart@0 {
1328
compatible = "vnd,serial";
1429
reg = <0x0 0x1000>;
@@ -28,6 +43,11 @@
2843
pps-mode = "GNSS_PPS_MODE_ENABLED";
2944
};
3045

46+
gnss_l96: l96 {
47+
compatible = "quectel,l96";
48+
pps-mode = "GNSS_PPS_MODE_ENABLED";
49+
};
50+
3151
gnss_m8: m8 {
3252
compatible = "u-blox,m8";
3353
};

tests/drivers/build_all/gnss/prj.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
CONFIG_SERIAL=y
22
CONFIG_UART_INTERRUPT_DRIVEN=y
33
CONFIG_GNSS=y
4+
CONFIG_I2C=y
5+
CONFIG_EMUL=y

0 commit comments

Comments
 (0)